-
Notifications
You must be signed in to change notification settings - Fork 118
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
v3.2.0 No Longer Supports Proxy Settings #197
Comments
Hi @dcaswell-square, we also have this problem today. http does not work anymore with proxy settings. |
@chaoqi - I've confirmed that the proxy behavior works fine in at least |
yes... Thank you @dcaswell-square , v3.1.0 works like a charm... but v3.2.0 does not work anymore.... |
Thanks for submitting this bug, we're looking into the issue and will post an update shortly. |
…st failures are attributable to using http DefaultTransport (#197)
Any planned date for the fix release ? @bendbennett |
Hi @RaphaelDucay 👋 |
* Adding ProxyFromEnvironment to http transport (#197) * Switching to using DefaultTransport (#197) * Reinstating equivalency check for server and proxy active connections (#197) * Using http Transport with ProxyFromEnvironment set to determine if test failures are attributable to using http DefaultTransport (#197) * Switching to using httputil single host reverse proxy for testing (#197) * Removing unneeded files and moving test (#197) * Adding some clarifying comments to test (#197) * Updating CHANGELOG.md (#197) * Use func to obtain proxy from environment to avoid issues with caching during testing (#197) * Cloning default transport before modifying to avoid issues with caching during testing (#197) * Apply suggestions from code review Co-authored-by: Brian Flad <[email protected]> * Bumping golang.org/x/net to v0.1.0 (#197) Co-authored-by: Brian Flad <[email protected]>
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. |
Terraform CLI and Provider Versions
Terraform Configuration
Expected Behavior
The
HTTP_PROXY
,HTTPS_PROXY
, andNO_PROXY
environment variables should be respected, and the http request should be made using the proxy values defined in them.Actual Behavior
All proxy values are ignored, and ultimately the request fails with a timeout because direct access to public IPs from our environment is completely blocked.
Steps to Reproduce
terraform apply
How much impact is this issue causing?
High
Logs
No response
Additional Information
PR #125 causes a breaking change for anyone using the provider in an environment that configures
HTTP_PROXY
,HTTPS_PROXY
, and/orNO_PROXY
environment variables.The default behavior of http.Client does not use an empty
http.Transport
, but instead, has several properties configured in the DefaultTransport. There is also no other way to configure the proxy setting through the provider, since it is not exposed as an input. This rendersv3.2.0
completely unusable for anyone that requires use of an HTTP proxy.This line in the PR creates a new
http.Transport{}
and only assigns a newtls.Config
to it, but doesn't configure any of the other properties that would have previously be configured (Proxy = ProxyFromEnvironment
being the primary issue we experienced).I assume the intention was to maintain compatibility for those of us on previous versions, since it was not released as a Major version. I believe this could have been accomplished by assigning
tr := &http.DefaultTransport
and then further customizing that instance with theTLSClientConfig
, instead of starting "from scratch" with an emptyhttp.Transport
.Code of Conduct
The text was updated successfully, but these errors were encountered: