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

AWS: Don't fetch credential from endpoint if properties contain a valid credential #12504

Merged
merged 1 commit into from
Mar 13, 2025

Conversation

nastra
Copy link
Contributor

@nastra nastra commented Mar 12, 2025

When the VendedCredentialProvider is created, the properties typically already contain a valid credential from the first time a table is loaded. This PR uses the credential from the properties and otherwise falls back to loading a valid credential from the refresh endpoint in case the credential in properties is incomplete or expired.

@github-actions github-actions bot added the AWS label Mar 12, 2025
@nastra nastra changed the title AWS: Don't fetch credentials from endpoint if valid credentials are in properties AWS: Don't fetch credential from endpoint if properties contain a valid credential Mar 12, 2025
@nastra nastra requested a review from danielcweeks March 12, 2025 16:55
…id credential

When the `VendedCredentialProvider` is created, the `properties` typically already contain a valid credential from the first time a table is loaded.
This PR uses the credential from the properties and otherwise falls back to loading a valid credential from the refresh endpoint in case the credential in `properties` is incomplete or expired.
@nastra nastra force-pushed the s3-credential-refresh-impr branch from c195535 to b0aa09c Compare March 12, 2025 16:59
@nastra nastra merged commit 9a98de0 into apache:main Mar 13, 2025
42 checks passed
@nastra nastra deleted the s3-credential-refresh-impr branch March 13, 2025 05:24
@nastra nastra added this to the Iceberg 1.7.2 milestone Mar 13, 2025
nastra added a commit to nastra/iceberg that referenced this pull request Mar 13, 2025
…id credential (apache#12504)

When the `VendedCredentialProvider` is created, the `properties` typically already contain a valid credential from the first time a table is loaded.
This PR uses the credential from the properties and otherwise falls back to loading a valid credential from the refresh endpoint in case the credential in `properties` is incomplete or expired.
nastra added a commit that referenced this pull request Mar 13, 2025
…id credential (#12504) (#12515)

When the `VendedCredentialProvider` is created, the `properties` typically already contain a valid credential from the first time a table is loaded.
This PR uses the credential from the properties and otherwise falls back to loading a valid credential from the refresh endpoint in case the credential in `properties` is incomplete or expired.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants