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

Support NO_PROXY environment variable #413

Open
poconnor-lab49 opened this issue Dec 28, 2022 · 6 comments
Open

Support NO_PROXY environment variable #413

poconnor-lab49 opened this issue Dec 28, 2022 · 6 comments
Labels
feature-request A feature should be added or improved. p2 This is a standard priority issue

Comments

@poconnor-lab49
Copy link

There does not appear to be a way to add a list of hosts which should not be proxied if HTTP_PROXY or HTTPS_PROXY are set.

The current workaround is to unset HTTP_PROXY whenever I want to run against localhost, but this obviously won't work if I need to reach a mix of resources which should and should not be be proxied.

Please add support for NO_PROXY and no_proxy to match the HTTP_PROXY env variable support.

@davejoyce-lab49
Copy link

@poconnor-lab49 I think we may need to agree on no_proxy behavior, as it has an interesting history.

See: We need to talk: Can we standardize NO_PROXY?

@poconnor-lab49
Copy link
Author

@poconnor-lab49 I think we may need to agree on no_proxy behavior, as it has an interesting history.

See: We need to talk: Can we standardize NO_PROXY?

I read the exact same article! Very informative.

My gut says to follow the principle of least surprise and do roughly what curl does. I'd target the lowest common denominator from that article and not bother with CIDR block matching.

@bryanlb
Copy link

bryanlb commented Jul 14, 2023

The lack of NO_PROXY support for this implementation definitely caught us by surprise when attempting to swap AWS clients. We default traffic through squid proxies and then use NO_PROXY to exclude a list of endpoints, which prevents us from using the above workaround.

@yasminetalby yasminetalby added the p2 This is a standard priority issue label Sep 20, 2023
@yasminetalby yasminetalby self-assigned this Sep 20, 2023
@yasminetalby
Copy link
Contributor

Hello everyone,

Thank you very much for this submission and showcasing your interest in this feature.
To provide an update we have discussed this feature and it is currently in the team backlog.

I will provide all updates about this feature here.

Best regards,

Yasmine

@poconnor-lab49
Copy link
Author

Thank you and great timing! See curl/curl#11962

@waahm7
Copy link
Contributor

waahm7 commented Oct 16, 2023

Hello everyone,

aws-c-http and aws-c-s3 support disabling reading of env variables via a parameter, which is helpful for disabling the reading of env variables instead of unsetting them. The Java SDK v2 has a PR that exposes this setting for CRTS3Client. Sharing this as it may be useful for some use cases.

@jmklix jmklix removed the needs-review This issue or pull request needs review from a core team member. label Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved. p2 This is a standard priority issue
Projects
None yet
Development

No branches or pull requests

6 participants