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

feat: NO_PROXY environment variable can be used to override HTTP(S)_PROXY values #301

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

keelerm84
Copy link
Member

When determining if a proxy should be used, the SDK would:

  1. Check the config.http_config.http_proxy value. If that is set, use
    that value without further consideration.
  2. If the target URI is https, use the value from the HTTPS_PROXY
    environment variable.
  3. If the target is http, use HTTP_PROXY instead.

The SDK will now support another environment variable -- NO_PROXY.
This variable can be set to a comma-separated list of hosts to exclude
from proxy support, or the special case '*' meaning to ignore all hosts.

The NO_PROXY variable will only take affect if the SDK isn't
explicitly configured to use a proxy as specified in #1 above.

@keelerm84 keelerm84 requested a review from a team as a code owner August 7, 2024 17:02
@keelerm84 keelerm84 marked this pull request as draft August 7, 2024 17:25
@keelerm84 keelerm84 removed the request for review from a team August 7, 2024 17:25
@keelerm84 keelerm84 force-pushed the mk/sc-252382/no-proxy branch 2 times, most recently from c6bbbe8 to 0903460 Compare August 7, 2024 19:13
@keelerm84 keelerm84 marked this pull request as ready for review August 13, 2024 18:27
…)_PROXY` values

When determining if a proxy should be used, the SDK would:

1. Check the `config.http_config.http_proxy` value. If that is set, use
   that value without further consideration.
2. If the target URI is `https`, use the value from the `HTTPS_PROXY`
   environment variable.
3. If the target is `http`, use `HTTP_PROXY` instead.

The SDK will now support another environment variable -- `NO_PROXY`.
This variable can be set to a comma-separated list of hosts to exclude
from proxy support, or the special case '*' meaning to ignore all hosts.

The `NO_PROXY` variable will only take affect if the SDK isn't
explicitly configured to use a proxy as specified in #1 above.
@keelerm84 keelerm84 merged commit d0913ee into main Aug 19, 2024
11 checks passed
@keelerm84 keelerm84 deleted the mk/sc-252382/no-proxy branch August 19, 2024 14:36
keelerm84 pushed a commit that referenced this pull request Aug 19, 2024
🤖 I have created a release *beep* *boop*
---


##
[9.6.0](9.5.0...9.6.0)
(2024-08-19)


### Features

* `NO_PROXY` environment variable can be used to override
`HTTP(S)_PROXY` values
([#301](#301))
([d0913ee](d0913ee))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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