-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
AWS SDK mutates http.DefaultTransport #4496
Comments
Hi @jastBytes can you provide a sample of reproducible code that we can use to investigate this? |
Hi! I will provide an example as soon as I get to it. :) |
Hello. We have a reproduction example for you that exhibits the problem in a slightly different way by connecting to the same server rather than a subsequent connection to another party. The attached go module:
In the third connection, the http.DefaultClient has the TLSClientConfig from the second session which allows it to connect even when the session is created without the CustomCABundle field set. cc: @SMiller70 |
Hi there, This is not an issue with the Go v2 SDK. Please consider migrating to v2. Thanks, |
Comments on closed issues are hard for our team to see. |
Describe the bug
When
AWS_CA_BUNDLE
env var is specified and a new session is created with defaults it mutates thehttp.DefaultTransport
. This leads to a globally changed CA for all other parts of the same program using thehttp.DefaultTransport
orhttp.DefaultClient
to connect to another party which most likely will end up with an error like:x509: certificate signed by unknown authority
.Expected Behavior
Specifying
AWS_CA_BUNDLE
does not mutate the CAs of thehttp.DefaultTransport
.Current Behavior
Specifying
AWS_CA_BUNDLE
does mutate the CAs of thehttp.DefaultTransport
.Reproduction Steps
Specify
AWS_CA_BUNDLE
, create a new session, connect to another party with the default HTTPClient.Possible Solution
Create a new HTTPClient/Transport not using the global one.
Additional Information/Context
No response
SDK version used
v1.44.60
Environment details (Version of Go (
go version
)? OS name and version, etc.)go: 1.18.4
The text was updated successfully, but these errors were encountered: