Skip to content

Conversation

@eric-maynard
Copy link
Contributor

Description

If users want to extend/shorten the lifetime of vended storage credentials, we can support that with a PolarisConfiguration.

I didn't see a way to implement this for GcpStorageIntegration, so that is notably missing from this PR for now.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Documentation update
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

@eric-maynard eric-maynard marked this pull request as draft October 29, 2024 16:36
@eric-maynard eric-maynard marked this pull request as ready for review October 30, 2024 20:26
@flyrain flyrain added this to the 1.0.0 milestone Dec 20, 2024
Copy link
Contributor

@flyrain flyrain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with minor suggestions.

* Returns the value of a `PolarisConfiguration`, or the default if it cannot be loaded. This
* method does not need to be used when a `CallContext` is already available
*/
public static <T> T loadConfig(PolarisConfiguration<T> configuration) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 on this method. There are a lot of other places can reuse this as well, like here https://github.com/polaris-catalog/polaris/blob/main/polaris-service/src/main/java/org/apache/polaris/service/catalog/BasePolarisCatalog.java#L1029-L1029. We can consolidate them in a followup PR.

@adutra adutra merged commit 76a0398 into apache:main Jan 7, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants