Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Backport release-2.26] Pass AWS client configuration to the default credentials provider chain. (#5315) #5318

Merged
merged 4 commits into from
Sep 26, 2024

Conversation

teo-tsirpanis
Copy link
Member

Backport of #5315 to release-2.26


TYPE: BUG
DESC: Fix HTTP requests for AWS default credentials provider chain not honoring config options.

…in. (#5315)

[SC-55378](https://app.shortcut.com/tiledb-inc/story/55378/ensure-all-aws-clients-and-credentials-providers-are-being-passed-client-configuration)

This PR applies a similar fix to #4641, but for the
`DefaultAWSCredentialsProviderChain` which was being implicitly used
when we don't pass any credentials provider to `S3Client` (it's now
explicitly used).

Because `DefaultAWSCredentialsProviderChain` does not accept a
`ClientConfiguration`, I copied its sources, as well as the sources of
all applicable credentials providers and updated them to accept a
`ClientConfiguration`. This is a temporary measure until the changes to
the providers are upstreamed to the AWS SDK.

You are encouraged to review this PR by looking at each commit
individually.

---
TYPE: BUG
DESC: Fix HTTP requests for AWS default credentials provider chain not
honoring config options.
…eralHTTPCredentialsProvider`.

The 2.26.x branch uses an older AWS SDK version that lacks an API required for this feature. We can safely remove it, since that AWS SDK version did not have it either.
That constant is not declared in the old AWS SDK's headers.
@teo-tsirpanis teo-tsirpanis force-pushed the backport/pr-5315-to-release-2.26 branch 2 times, most recently from b4277b9 to bfba226 Compare September 25, 2024 11:18
@teo-tsirpanis
Copy link
Member Author

CI is green apart from an arguably unrelated failure in the RTools40 build. @ihnorton can you review my subsequent commits?

@ihnorton ihnorton merged commit 3d2da73 into release-2.26 Sep 26, 2024
61 of 62 checks passed
@ihnorton ihnorton deleted the backport/pr-5315-to-release-2.26 branch September 26, 2024 18:21
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants