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

Added the ability to enable trusted_env. #1727

Merged
merged 3 commits into from
Aug 27, 2024
Merged

Conversation

DerekRushton
Copy link
Collaborator

No description provided.

Signed-off-by: DerekRushton <derek.rushton1@ibm.com>
Copy link

codecov bot commented Aug 26, 2024

Codecov Report

Attention: Patch coverage is 83.33333% with 1 line in your changes missing coverage. Please review.

Project coverage is 87.22%. Comparing base (a1a16a7) to head (063e62a).

Files Patch % Lines
...tils/stix_transmission/utils/RestApiClientAsync.py 83.33% 1 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

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()
Copy link
Collaborator

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 ?

Copy link
Collaborator

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>
@DerekRushton DerekRushton merged commit 67ca4e5 into develop Aug 27, 2024
9 checks passed
@benjamin-craig benjamin-craig deleted the Enable_Trust_Env branch August 27, 2024 13:11
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.

2 participants