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

Driver: Add proxy support #485

Merged
merged 1 commit into from
Nov 7, 2017
Merged

Driver: Add proxy support #485

merged 1 commit into from
Nov 7, 2017

Conversation

yebinama
Copy link
Contributor

@yebinama yebinama commented Nov 7, 2017

I have to use a proxy on my servers running Clair.

Setting HTTP_PROXY variable works fine for the updater since http.Get and then DefaultTransport is used.

var DefaultTransport RoundTripper = &Transport{
        Proxy: ProxyFromEnvironment,
        ...
}

On the other hand, as the imagefmt driver declares a custom http.Transport to enable/disable certificate verification, it does not support HTTP_PROXY. I modified it to have the same behavior as the updater.

Enable the use of HTTP_PROXY and HTTPS_PROXY variables when downloading
layers
@jzelinskie
Copy link
Contributor

Awesome thanks for the contribution!

@jzelinskie jzelinskie merged commit 39f00cd into quay:master Nov 7, 2017
KeyboardNerd pushed a commit to KeyboardNerd/clair that referenced this pull request Feb 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants