-
Notifications
You must be signed in to change notification settings - Fork 232
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
Added the ability to enable trusted_env. #1727
Conversation
Signed-off-by: DerekRushton <derek.rushton1@ibm.com>
stix_shifter_utils/stix_transmission/utils/RestApiClientAsync.py
Outdated
Show resolved
Hide resolved
stix_shifter_utils/stix_transmission/utils/RestApiClientAsync.py
Outdated
Show resolved
Hide resolved
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #1727 +/- ##
===========================================
- Coverage 87.22% 87.22% -0.01%
===========================================
Files 645 645
Lines 56370 56375 +5
===========================================
+ Hits 49171 49175 +4
- Misses 7199 7200 +1 ☔ View full report in Codecov by Sentry. |
Signed-off-by: DerekRushton <derek.rushton1@ibm.com>
#To enable proxy, set the environment variable "STIX_SHIFTER_ENABLE_TRUST_ENV" to true. This option will allow the connection | ||
#to use the system environments proxy settings. This can be done by setting the "https_proxy" environment variable to | ||
#"http(s)://[username]:[password]@[hostname]/[ipaddress]:[port]". Alternative proxy schema's may or may not work. | ||
self.trust_env_enabled = os.environ.get("STIX_SHIFTER_ENABLE_TRUST_ENV", False).lower() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think STIX_SHIFTER_ENABLE_TRUST_PROXY_ENV would be more descriptive or just leave it as it is ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to remove the .lower there.
Signed-off-by: DerekRushton <derek.rushton1@ibm.com>
No description provided.