You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "diqiu50 (via GitHub)" <gi...@apache.org> on 2026/06/12 04:15:20 UTC
[PR] [#11604] fix(bundle): Include Gravitino credential providers in Iceberg cloud bundles [gravitino]
diqiu50 opened a new pull request, #11616:
URL: https://github.com/apache/gravitino/pull/11616
### What changes were proposed in this pull request?
Add `bundles:aws`, `bundles:aliyun`, and `bundles:azure` as dependencies of `iceberg-aws-bundle`, `iceberg-aliyun-bundle`, and `iceberg-azure-bundle` respectively, so that `S3SecretKeyProvider`, `OSSSecretKeyProvider`, and `AzureAccountKeyProvider` are included via SPI and discoverable by `ServiceLoader` in the catalog `IsolatedClassLoader`.
### Why are the changes needed?
Fix #11604
When users place `gravitino-iceberg-aws-bundle` in `catalogs/lakehouse-iceberg/libs/` as documented, credential vending fails with `No credential provider found for: s3-secret-key` because the provider SPI was missing from the bundle.
### Does this PR introduce _any_ user-facing change?
Yes. Users who place the Iceberg cloud bundle in `catalogs/lakehouse-iceberg/libs/` as documented will now get credential vending working automatically.
### How was this patch tested?
Manually created an Iceberg catalog with S3 static credentials and called the credentials API to confirm the fix.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#11604] fix(bundle): Include Gravitino credential providers in Iceberg cloud bundles [gravitino]
Posted by "diqiu50 (via GitHub)" <gi...@apache.org>.
diqiu50 commented on PR #11616:
URL: https://github.com/apache/gravitino/pull/11616#issuecomment-4708148517
> I don't see any issues with this PR based on the code. Are there enough IT or manual tests that cover the changes?
Tested manually
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#11604] fix(bundle): Include Gravitino credential providers in Iceberg cloud bundles [gravitino]
Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 merged PR #11616:
URL: https://github.com/apache/gravitino/pull/11616
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#11604] fix(bundle): Include Gravitino credential providers in Iceberg cloud bundles [gravitino]
Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 commented on code in PR #11616:
URL: https://github.com/apache/gravitino/pull/11616#discussion_r3412355371
##########
bundles/iceberg-aliyun-bundle/build.gradle.kts:
##########
@@ -30,6 +30,8 @@ dependencies {
// Aliyun oss SDK depends on this package, and JDK >= 9 requires manual add
// https://www.alibabacloud.com/help/en/oss/developer-reference/java-installation?spm=a2c63.p38356.0.i1
implementation(libs.sun.activation)
+ // Include Gravitino Aliyun credential providers (OSSSecretKeyProvider, etc.) for credential vending
+ implementation(project(":bundles:aliyun"))
Review Comment:
Why do we need to include this in the bundle jar? Is this problem introduced in 1.3.0, or has it existed for a long time?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#11604] fix(bundle): Include Gravitino credential providers in Iceberg cloud bundles [gravitino]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #11616:
URL: https://github.com/apache/gravitino/pull/11616#issuecomment-4688473862
<!-- coverage-report -->
### Code Coverage Report
|Overall Project|66.95%|:green_circle:|
|:-|:-|:-:|
|Files changed|63.97%|:green_circle:|
<br>
|Module|Coverage||
|:-|:-|:-:|
|aliyun|1.72%|:red_circle:|
|api|46.82%|:green_circle:|
|authorization-common|85.96%|:green_circle:|
|aws|3.66%|:red_circle:|
|azure|2.47%|:red_circle:|
|catalog-common|10.4%|:red_circle:|
|catalog-fileset|80.23%|:green_circle:|
|catalog-glue|66.91%|:green_circle:|
|catalog-hive|79.44%|:green_circle:|
|catalog-jdbc-clickhouse|80.02%|:green_circle:|
|catalog-jdbc-common|44.22%|:green_circle:|
|catalog-jdbc-doris|80.28%|:green_circle:|
|catalog-jdbc-hologres|54.03%|:green_circle:|
|catalog-jdbc-mysql|79.23%|:green_circle:|
|catalog-jdbc-oceanbase|78.38%|:green_circle:|
|catalog-jdbc-postgresql|82.29%|:green_circle:|
|catalog-jdbc-starrocks|78.51%|:green_circle:|
|catalog-kafka|77.01%|:green_circle:|
|catalog-lakehouse-generic|58.53%|:green_circle:|
|catalog-lakehouse-hudi|79.1%|:green_circle:|
|catalog-lakehouse-iceberg|85.79%|:green_circle:|
|catalog-lakehouse-paimon|79.15%|:green_circle:|
|catalog-model|77.72%|:green_circle:|
|cli|44.51%|:green_circle:|
|client-java|78.01%|:green_circle:|
|common|49.9% **`+0.06%`**|:green_circle:|
|core|82.38%|:green_circle:|
|filesystem-hadoop3|77.27%|:green_circle:|
|flink|0.0%|:red_circle:|
|flink-common|45.72%|:green_circle:|
|flink-runtime|0.0%|:red_circle:|
|gcp|14.12%|:red_circle:|
|hadoop-common|10.39%|:red_circle:|
|hive-metastore-common|53.9%|:green_circle:|
|iceberg-common|57.41%|:green_circle:|
|iceberg-rest-server|73.92%|:green_circle:|
|idp-basic|86.18%|:green_circle:|
|integration-test-common|0.0%|:red_circle:|
|jobs|66.17%|:green_circle:|
|lance-common|20.79%|:red_circle:|
|lance-rest-server|60.54%|:green_circle:|
|lineage|53.02%|:green_circle:|
|optimizer|82.95%|:green_circle:|
|optimizer-api|21.95%|:red_circle:|
|server|85.73%|:green_circle:|
|server-common|73.28% **`+0.07%`**|:green_circle:|
|spark|28.57%|:red_circle:|
|spark-common|41.66%|:green_circle:|
|trino-connector|40.13%|:green_circle:|
<details>
<summary>Files</summary>
|Module|File|Coverage||
|:-|:-|:-|:-:|
|common|[ErrorResponse.java](https://github.com/diqiu50/gravitino/blob/daa0396b5aabee171072d06ba0380ea2f6d69987/common/src/main/java/org/apache/gravitino/dto/responses/ErrorResponse.java)|54.55%|:red_circle:|
||[ErrorConstants.java](https://github.com/diqiu50/gravitino/blob/daa0396b5aabee171072d06ba0380ea2f6d69987/common/src/main/java/org/apache/gravitino/dto/responses/ErrorConstants.java)|0.0%|:red_circle:|
|server-common|[AuthenticationFilter.java](https://github.com/diqiu50/gravitino/blob/daa0396b5aabee171072d06ba0380ea2f6d69987/server-common/src/main/java/org/apache/gravitino/server/authentication/AuthenticationFilter.java)|76.27%|:green_circle:|
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#11604] fix(bundle): Include Gravitino credential providers in Iceberg cloud bundles [gravitino]
Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 commented on PR #11616:
URL: https://github.com/apache/gravitino/pull/11616#issuecomment-4707479734
I don't see any issues with this PR based on the code. Are there enough IT or manual tests that cover the changes?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#11604] fix(bundle): Include Gravitino credential providers in Iceberg cloud bundles [gravitino]
Posted by "diqiu50 (via GitHub)" <gi...@apache.org>.
diqiu50 commented on code in PR #11616:
URL: https://github.com/apache/gravitino/pull/11616#discussion_r3412536508
##########
bundles/iceberg-aliyun-bundle/build.gradle.kts:
##########
@@ -30,6 +30,8 @@ dependencies {
// Aliyun oss SDK depends on this package, and JDK >= 9 requires manual add
// https://www.alibabacloud.com/help/en/oss/developer-reference/java-installation?spm=a2c63.p38356.0.i1
implementation(libs.sun.activation)
+ // Include Gravitino Aliyun credential providers (OSSSecretKeyProvider, etc.) for credential vending
+ implementation(project(":bundles:aliyun"))
Review Comment:
Credential vending was introduced in the catalog, so a credential implementation is required. It is included in the corresponding bundle.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org