-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Add support for HTTP proxy env vars. #18629
Add support for HTTP proxy env vars. #18629
Conversation
👍 |
Also I can confirm that this fix works and makes TF follow the http_proxy and https_proxy env vars. |
Thanks for working on this @xocasdashdash! This seems like a good change, that we can merge. However, it is unfortunately likely to conflict with ongoing work in our 0.12 major feature development branch, so I'd like to pause on merging for the moment until we are able to land that branch into Due to the scale of the work in progress it's likely take a while longer to get the development branch in a shape ready to merge. Once we have merged it we plan to take a second look over the pending PRs and see what other changes we are reasonable to include in the 0.12 release. Thanks again, and sorry for the delay while we work through these other changes. |
@apparentlymart ok! I'll keep my eye out when you land the changes on master so I'll rebase those changes in. I do believe that it might make sense to try to respect the proxy vars whenever possible in all the providers. |
@apparentlymart Hi! I've updated with the latest release from origin/master. Do you think this change can make it into the 0.11.9 release? |
Hi @apparentlymart ! |
…rt proxy environment variables
Hi @xocasdashdash, Thanks for the PR. The addition of the proxy setting seems like a good idea, but your transport is missing a number of parameters. Rather than setting them here, you can fetch a new configured transport using: https://godoc.org/github.com/hashicorp/go-cleanhttp#DefaultPooledTransport |
I'll make the change right now! |
Hi @xocasdashdash! Sorry for the delay here. This looks great to me and I'm going to merge it now. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Added a minimal transport to the artifactory client so that it support proxy environment variables. This should fix this issue #9403 .
Upstream there's this issue opened lusis/go-artifactory#9 but I think there might need to be some refactor on terraform's side to support the latest client.