-
Notifications
You must be signed in to change notification settings - Fork 332
SigV4 Auth Support for Catalog Federation - Part 4: Connection Credential Manager #2759
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
Merged
HonahX
merged 18 commits into
apache:main
from
XJDKC:rxing-catalog-federation-sigv4-part-4
Oct 8, 2025
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
fe31fed
Connection Credentials Retrieval
XJDKC c0d0479
Use delegation to implement DefaultPolarisCredentialManager
XJDKC 201f4db
Some improvements
XJDKC ba86554
Pass in full ConnectionConfigInfo
XJDKC db409e3
Add ConnectionCredentials
XJDKC 9499234
Provide a default priority for SigV4ConnectionCredentialVendor.java
XJDKC ca5ff1b
Remove PolarisCredentialManagerFactory
XJDKC e9d626d
Remove org.apache.polaris.service.credentials from quarkus.arc.ignore…
XJDKC 30c812e
Rename ConnectionCredentialProperty to CatalogAccessProperty
XJDKC 21fb8b1
Provide a default configuration if there is no configuration for defa…
XJDKC e8f62a5
Rename SupportsAuthType to AuthType
XJDKC b48926a
Remove AuthTypes
XJDKC b882865
Resolved some comments
XJDKC 6fed971
Use try catch block to catch any issues during mutiplexing
XJDKC fa3b410
Small fixes
XJDKC eb9e003
Small fixes
XJDKC bb4d586
Merge remote-tracking branch 'apache/main' into rxing-catalog-federat…
XJDKC 62f0ab5
Fix test failures
XJDKC File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
polaris-core/src/main/java/org/apache/polaris/core/credentials/PolarisCredentialManager.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| /* | ||
| * Licensed to the Apache Software Foundation (ASF) under one | ||
| * or more contributor license agreements. See the NOTICE file | ||
| * distributed with this work for additional information | ||
| * regarding copyright ownership. The ASF licenses this file | ||
| * to you under the Apache License, Version 2.0 (the | ||
| * "License"); you may not use this file except in compliance | ||
| * with the License. You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, | ||
| * software distributed under the License is distributed on an | ||
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| * KIND, either express or implied. See the License for the | ||
| * specific language governing permissions and limitations | ||
| * under the License. | ||
| */ | ||
|
|
||
| package org.apache.polaris.core.credentials; | ||
|
|
||
| import org.apache.polaris.core.connection.AuthenticationParametersDpo; | ||
| import org.apache.polaris.core.credentials.connection.ConnectionCredentialVendor; | ||
| import org.apache.polaris.core.identity.credential.ServiceIdentityCredential; | ||
| import org.apache.polaris.core.identity.provider.ServiceIdentityProvider; | ||
|
|
||
| /** | ||
| * PolarisCredentialManager is responsible for retrieving the credentials Polaris needs to access | ||
| * remote services such as federated catalogs and cloud storage. | ||
| * | ||
| * <p>It delegates to {@link ConnectionCredentialVendor} implementations that combine | ||
| * service-managed identity information (e.g., an IAM user Polaris uses) with user-defined | ||
| * authentication parameters (e.g., roleArn) to generate the credentials required for authentication | ||
| * with external systems. | ||
| * | ||
| * <p>Typical flow for connection credentials: | ||
| * | ||
| * <ol> | ||
| * <li>The manager selects the appropriate {@link ConnectionCredentialVendor} based on the | ||
| * authentication type from the {@link AuthenticationParametersDpo}. | ||
| * <li>The vendor resolves the service identity using {@link ServiceIdentityProvider} to obtain a | ||
| * {@link ServiceIdentityCredential}. | ||
| * <li>The vendor uses the service identity credential together with user-provided authentication | ||
| * parameters to obtain temporary access credentials (e.g., via AWS STS AssumeRole). | ||
| * </ol> | ||
| * | ||
| * <p>This design supports both SaaS and self-managed deployments, ensuring a clear separation | ||
| * between user-provided configuration and Polaris-managed identity. In the future, this interface | ||
| * will be extended to also manage storage credentials, providing a unified interface for all | ||
| * credential management needs. | ||
| */ | ||
| public interface PolarisCredentialManager extends ConnectionCredentialVendor {} | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.