Skip to content

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

Merged
nastra merged 1 commit into
apache:mainfrom
nastra:s3-credential-refresh-impr
Mar 13, 2025
Merged

AWS: Don't fetch credential from endpoint if properties contain a valid credential#12504
nastra merged 1 commit into
apache:mainfrom
nastra:s3-credential-refresh-impr

Conversation

@nastra

@nastra nastra commented Mar 12, 2025

Copy link
Copy Markdown
Contributor

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
@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.
nastra added a commit to nastra/iceberg that referenced this pull request Apr 16, 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 Apr 16, 2025
…id credential (#12504) (#12811)

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