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 http_proxy & no_proxy environment variables for Depot calls. #512

Merged
merged 1 commit into from
May 12, 2016

Conversation

fnichol
Copy link
Collaborator

@fnichol fnichol commented May 12, 2016

This feature adds support for using the http_proxy and
no_proxy environment variables when interacting with a Depot via the
depot-client component which powers the hab CLI and the hab-sup
Supervisor.

The raw environment variable parsing and interpretation is maintained in
the core component, which is then used by the depot-client when
creating hyper::Client instances. If the Depot URL's host/domain part
matches an entry in the no_proxy comma-separated list of domain
extensions, a proxy will not be used. Note that at the moment the
behavior when calling SSL-wrapped Depot instances is undefined and not
tested (which will happen later when this is officially supported).

Signed-off-by: Fletcher Nichol [email protected]

@thesentinels
Copy link
Contributor

By analyzing the blame information on this pull request, we identified @reset, @metadave, @adamhjk and @smith to be potential reviewers

@fnichol
Copy link
Collaborator Author

fnichol commented May 12, 2016

While this will help users in constrained network environments, I'm really excited about regaining the speed of locally caching artifacts with an http proxy instance.

gif-keyboard-17490845053276435511

@fnichol fnichol force-pushed the fnichol/depot-client-http-proxy branch 2 times, most recently from 55a169e to 385a167 Compare May 12, 2016 17:20
@thesentinels
Copy link
Contributor

☔ The latest upstream changes (presumably 0b12a73) made this pull request unmergeable. Please resolve the merge conflicts.

@reset
Copy link
Collaborator

reset commented May 12, 2016

@fnichol super clean. Let's get the 0.5.0 commit out of this PR and merge it!

This feature adds support for using the `http_proxy` and
`no_proxy` environment variables when interacting with a Depot via the
`depot-client` component which powers the `hab` CLI and the `hab-sup`
Supervisor.

The raw environment variable parsing and interpretation is maintained in
the `core` component, which is then used by the `depot-client` when
creating `hyper::Client` instances. If the Depot URL's host/domain part
matches an entry in the `no_proxy` comma-separated list of domain
extensions, a proxy will not be used. Note that at the moment the
behavior when calling SSL-wrapped Depot instances is undefined and not
tested (which will happen later when this is officially supported).

Signed-off-by: Fletcher Nichol <[email protected]>
@fnichol fnichol force-pushed the fnichol/depot-client-http-proxy branch from 385a167 to 705906a Compare May 12, 2016 18:02
@fnichol
Copy link
Collaborator Author

fnichol commented May 12, 2016

@reset agreed. 0.5.0 just landed and I just rebased/repushed against that. We're ready on this anytime now

@reset
Copy link
Collaborator

reset commented May 12, 2016

@thesentinels r+

@thesentinels
Copy link
Contributor

📌 Commit 705906a has been approved by reset

@thesentinels
Copy link
Contributor

⌛ Testing commit 705906a with merge 8a2a0a2...

thesentinels pushed a commit that referenced this pull request May 12, 2016
This feature adds support for using the `http_proxy` and
`no_proxy` environment variables when interacting with a Depot via the
`depot-client` component which powers the `hab` CLI and the `hab-sup`
Supervisor.

The raw environment variable parsing and interpretation is maintained in
the `core` component, which is then used by the `depot-client` when
creating `hyper::Client` instances. If the Depot URL's host/domain part
matches an entry in the `no_proxy` comma-separated list of domain
extensions, a proxy will not be used. Note that at the moment the
behavior when calling SSL-wrapped Depot instances is undefined and not
tested (which will happen later when this is officially supported).

Signed-off-by: Fletcher Nichol <[email protected]>

Pull request: #512
Approved by: reset
@thesentinels
Copy link
Contributor

☀️ Test successful - travis

@thesentinels thesentinels merged commit 705906a into master May 12, 2016
@fnichol fnichol deleted the fnichol/depot-client-http-proxy branch May 12, 2016 20:25
jtimberman pushed a commit that referenced this pull request Jun 12, 2016
This feature adds support for using the `http_proxy` and
`no_proxy` environment variables when interacting with a Depot via the
`depot-client` component which powers the `hab` CLI and the `hab-sup`
Supervisor.

The raw environment variable parsing and interpretation is maintained in
the `core` component, which is then used by the `depot-client` when
creating `hyper::Client` instances. If the Depot URL's host/domain part
matches an entry in the `no_proxy` comma-separated list of domain
extensions, a proxy will not be used. Note that at the moment the
behavior when calling SSL-wrapped Depot instances is undefined and not
tested (which will happen later when this is officially supported).

Signed-off-by: Fletcher Nichol <[email protected]>

Pull request: #512
Approved by: reset
raskchanky pushed a commit that referenced this pull request Apr 16, 2019
This feature adds support for using the `http_proxy` and
`no_proxy` environment variables when interacting with a Depot via the
`depot-client` component which powers the `hab` CLI and the `hab-sup`
Supervisor.

The raw environment variable parsing and interpretation is maintained in
the `core` component, which is then used by the `depot-client` when
creating `hyper::Client` instances. If the Depot URL's host/domain part
matches an entry in the `no_proxy` comma-separated list of domain
extensions, a proxy will not be used. Note that at the moment the
behavior when calling SSL-wrapped Depot instances is undefined and not
tested (which will happen later when this is officially supported).

Signed-off-by: Fletcher Nichol <[email protected]>

Pull request: #512
Approved by: reset
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