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

Permit disabling use of http_proxy #38

Merged
merged 1 commit into from
Feb 6, 2023
Merged

Conversation

bbockelm
Copy link

@bbockelm bbockelm commented Feb 4, 2023

In the context of the HTCSS download plugin, it's not possible to remove the http_proxy environment variable. Add a second environment variable to disable things. Either of these are permitted:

  • OSG_DISABLE_HTTP_PRXY
  • OSDF_DISABLE_HTTP_PROXY

If the HTTP proxy is disabled, then fallback is also disabled.

Additionally, this permits it to accept OSDF_DISABLE_PROXY_FALLBACK as an alias to OSG_DISABLE_PROXY_FALLBACK.

In the context of the HTCSS download plugin, it's not possible to
remove the http_proxy environment variable.  Add a second environment
variable to disable things.  Either of these are permitted:

- OSG_DISABLE_HTTP_PRXY
- OSDF_DISABLE_HTTP_PROXY

If the HTTP proxy is disabled, then fallback is also disabled.

Additionally, this permits it to accept OSDF_DISABLE_PROXY_FALLBACK
as an alias to OSG_DISABLE_PROXY_FALLBACK.
@djw8605
Copy link
Collaborator

djw8605 commented Feb 6, 2023

Has this been tested?

@bbockelm
Copy link
Author

bbockelm commented Feb 6, 2023

Yes - hand tested. Easiest when you just set http_proxy to an invalid hostname and then look at the debug output.

@djw8605
Copy link
Collaborator

djw8605 commented Feb 6, 2023

Looks good. In the end, we will probably have to start using something like a configuration reader like Viper, but this will work for now.

Copy link
Collaborator

@djw8605 djw8605 left a comment

Choose a reason for hiding this comment

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

LGTM

@DrDaveD
Copy link

DrDaveD commented May 18, 2023

I don't understand why this isn't disabled by default. There's too many cases where squids will accidentally be used.

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.

3 participants