Skip to content

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

Merged
keelerm84 merged 1 commit into
mainfrom
mk/sc-252382/no-proxy
Aug 19, 2024
Merged

feat: NO_PROXY environment variable can be used to override HTTP(S)_PROXY values#301
keelerm84 merged 1 commit into
mainfrom
mk/sc-252382/no-proxy

Conversation

@keelerm84

Copy link
Copy Markdown
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
Comment thread ldclient/testing/impl/test_http.py
@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 force-pushed the mk/sc-252382/no-proxy branch from 0903460 to 67a6394 Compare August 13, 2024 18:29
@keelerm84 keelerm84 merged commit d0913ee into main Aug 19, 2024
@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