-
Notifications
You must be signed in to change notification settings - Fork 407
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
[#5894] feat(iceberg): support Azure account key credential #5938
Conversation
api/src/main/java/org/apache/gravitino/credential/ADLSAccountKeyCredential.java
Outdated
Show resolved
Hide resolved
LGTM, just one naming issue. |
...src/test/java/org/apache/gravitino/iceberg/integration/test/IcebergRESTADLSAccountKeyIT.java
Outdated
Show resolved
Hide resolved
...s/azure-bundle/src/main/java/org/apache/gravitino/abs/credential/ADLSAccountKeyProvider.java
Outdated
Show resolved
Hide resolved
...s/azure-bundle/src/main/java/org/apache/gravitino/abs/credential/ADLSAccountKeyProvider.java
Outdated
Show resolved
Hide resolved
@FANNG1 I think we should use public class ADLSAccountKeyCredential implements Credential {
public static final String ADLS_ACCOUNT_KEY_CREDENTIAL_TYPE = "adls-account-key";
public static final String GRAVITINO_ADLS_STORAGE_ACCOUNT_NAME = "adls-storage-account-name";
public static final String GRAVITINO_ADLS_STORAGE_ACCOUNT_KEY = "adls-storage-account-key";
@VisibleForTesting static final String ICEBERG_ADLS_ACCOUNT_NAME = "adls.auth.shared-key.account.name";
@VisibleForTesting static final String ICEBERG_ADLS_ACCOUNT_KEY = "adls.auth.shared-key.account.key";
ImmutableMap.of(
ADLSAccountKeyCredential.GRAVITINO_ADLS_STORAGE_ACCOUNT_NAME,
ICEBERG_ADLS_ACCOUNT_NAME,
ADLSAccountKeyCredential.GRAVITINO_ADLS_STORAGE_ACCOUNT_KEY,
ICEBERG_ADLS_ACCOUNT_KEY);
if(credential instanceof ADLSAccountKeyCredential) {
return transformProperties(credential.credentialInfo(), icebergCredentialPropertyMap);
} Iceberg use We could change ADLSCredentialConfig to AzureCredentialConfig, as it's more general. WDYT? |
api/src/main/java/org/apache/gravitino/credential/AzureAccountKeyCredential.java
Outdated
Show resolved
Hide resolved
For Iceberg it just supports ADLS, but this credential will be used by Gravitino server too, and if supports ABS storage, it will be odd to use ADLSxxxCredential. |
LGTM, @tengqm any other comments? |
All good from my side. |
…nnector (#5952) ### What changes were proposed in this pull request? 1. Most code work is implemented in #5938 #5737 including catalog properties convert and add Iceberg azure bundle jar, this PR mainly about test and document. 2. Remove hidden properties of the cloud secret key from the Iceberg catalog, as Gravitino doesn't have an unified security management yet and Iceberg REST server need to fetch catalog cloud properties to initiate `IcebergWrapper` dymaticly. Another benefit is spark connector does not need to specify the secret key explictly. Supports ADLS for Iceberg catalog and spark connector ### Why are the changes needed? Fix: #5954 ### Does this PR introduce _any_ user-facing change? Yes, the user no need to specify the cloud secret key in spark connector. ### How was this patch tested? test in local enviroment
…ache#5938) ### What changes were proposed in this pull request? Support Azure account key credential ### Why are the changes needed? Fix: apache#5894 ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Unit Test IcebergRESTADLSAccountKeyIT at iceberg 1.6.0
…ark connector (apache#5952) ### What changes were proposed in this pull request? 1. Most code work is implemented in apache#5938 apache#5737 including catalog properties convert and add Iceberg azure bundle jar, this PR mainly about test and document. 2. Remove hidden properties of the cloud secret key from the Iceberg catalog, as Gravitino doesn't have an unified security management yet and Iceberg REST server need to fetch catalog cloud properties to initiate `IcebergWrapper` dymaticly. Another benefit is spark connector does not need to specify the secret key explictly. Supports ADLS for Iceberg catalog and spark connector ### Why are the changes needed? Fix: apache#5954 ### Does this PR introduce _any_ user-facing change? Yes, the user no need to specify the cloud secret key in spark connector. ### How was this patch tested? test in local enviroment
What changes were proposed in this pull request?
Support Azure account key credential
Why are the changes needed?
Fix: #5894
Does this PR introduce any user-facing change?
No
How was this patch tested?
Unit Test IcebergRESTADLSAccountKeyIT at iceberg 1.6.0