Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update asset integration actions #909

Merged
merged 3 commits into from
Jul 7, 2022
Merged

Conversation

iamsdas
Copy link
Contributor

@iamsdas iamsdas commented Jul 4, 2022

  • minor bug fixes
  • sort out misplaced actions between hl7 and onvif.

@iamsdas iamsdas requested a review from a team as a code owner July 4, 2022 10:04
@@ -14,7 +14,7 @@ def handle_action(self, action):
pass

def get_url(self, endpoint):
return "http://{}/{}".format(self.middleware_hostname, endpoint)
return "https://{}/{}".format(self.middleware_hostname, endpoint)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure this would work in a local env?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe not, but using http only was giving me unexpected errors while testing with the dev camera.

Copy link
Member

@vigneshhari vigneshhari Jul 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move it to an env variable then, with the default set to https

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of an environment variable, I added the variable to the asset metadata with it defaulting to https as it makes more sense to have the connection type set per asset.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ideally, we would not want any data to be sent over non HTTPS in production (especially medical data)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a check to prevent sending insecure requests in production mode.

@iamsdas iamsdas requested a review from vigneshhari July 6, 2022 12:23
@vigneshhari vigneshhari merged commit 0247b81 into coronasafe:master Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants