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

Update awsconfig #50561

Merged
merged 1 commit into from
Jan 6, 2025
Merged

Update awsconfig #50561

merged 1 commit into from
Jan 6, 2025

Conversation

GavinFrazar
Copy link
Contributor

  • Add a Cache for caching credentials, similar to SDK v1 session cache.
  • Add a Provider interface that provides aws.Config
  • Simplified role chaining options

Unlike our SDK v1 session cache, the SDK v2 implementation in this PR does not include region as a cache key.
There are regional AWS STS endpoints for lower latency calls, but the lowest latency path is to just grab credentials from the cache if we already have them - the region they were originally taken from doesn't matter.

@GavinFrazar GavinFrazar added aws Used for AWS Related Issues. no-changelog Indicates that a PR does not require a changelog entry labels Dec 23, 2024
@GavinFrazar GavinFrazar force-pushed the gavinfrazar/update-awsconfig branch 3 times, most recently from 39816e4 to d280bc5 Compare December 24, 2024 20:07
lib/cloud/awsconfig/awsconfig.go Show resolved Hide resolved
lib/cloud/awsconfig/cache.go Outdated Show resolved Hide resolved
lib/cloud/awsconfig/cache.go Outdated Show resolved Hide resolved
lib/cloud/awsconfig/awsconfig.go Outdated Show resolved Hide resolved
@GavinFrazar GavinFrazar force-pushed the gavinfrazar/update-awsconfig branch from d280bc5 to 2bd71db Compare December 27, 2024 21:40
@GavinFrazar GavinFrazar requested review from greedy52 and removed request for ryanclark and atburke December 27, 2024 21:44
lib/cloud/awsconfig/cache.go Outdated Show resolved Hide resolved
lib/cloud/awsconfig/cache.go Outdated Show resolved Hide resolved
lib/cloud/awsconfig/cache.go Show resolved Hide resolved
lib/cloud/awsconfig/provider.go Outdated Show resolved Hide resolved
* Add a Cache for caching credentials, similar to SDK v1 session cache.
* Add a Provider interface that provides aws.Config
* Simplified role chaining options

Unlike our SDK v1 session cache, the SDK v2 implementation in this PR
does not include region as a cache key.
There are regional AWS STS endpoints for lower latency calls, but the
lowest latency path is to just grab credentials from the cache if we
already have them - the region they were originally taken from doesn't
matter.
@GavinFrazar GavinFrazar force-pushed the gavinfrazar/update-awsconfig branch from 6cbb81c to 6c11f8d Compare January 6, 2025 19:07
@GavinFrazar GavinFrazar enabled auto-merge January 6, 2025 19:08
@GavinFrazar GavinFrazar added this pull request to the merge queue Jan 6, 2025
Merged via the queue into master with commit 40e597e Jan 6, 2025
41 checks passed
@GavinFrazar GavinFrazar deleted the gavinfrazar/update-awsconfig branch January 6, 2025 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws Used for AWS Related Issues. no-changelog Indicates that a PR does not require a changelog entry size/md
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants