You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "lasdf1234 (via GitHub)" <gi...@apache.org> on 2026/08/26 12:19:40 UTC
[PR] [#12645] feat(secret): Support setSecretBinding/setSecretReference on catalog/schema alter [gravitino]
lasdf1234 opened a new pull request, #12646:
URL: https://github.com/apache/gravitino/pull/12646
### What changes were proposed in this pull request?
- Add catalog / schema alter change types `setSecretBinding` / `setSecretReference` (API, DTOs, OpenAPI, Java/Python clients).
- Wire `CatalogManager` / `SchemaOperationDispatcher` with local `prepare*SecretChanges` loops calling `SecretManager` alter helpers.
- Include fileset alter wiring and `SecretManager` alter helpers in the same branch (prerequisite for catalog/schema alter; mirrors the split in the development fork).
### Why are the changes needed?
Create-time `secretBindings` / `secretReferences` for catalog and schema are already on `main` (#12420). Entity alter still needs the typed secret update contract from the entity-secrets design (ยง5.9.4).
Fix: #12645
### Does this PR introduce _any_ user-facing change?
- Yes. Catalog and schema alter APIs / REST update requests gain `setSecretBinding` and `setSecretReference`.
- Fileset alter gains the same `@type` values (included as prerequisite in this PR).
### How was this patch tested?
- Unit tests: `TestSecretManagerAlter`, `TestCatalogManager`, `TestSchemaOperationDispatcher`, `TestFilesetOperationDispatcher`, `TestRequestJsonSerDe`
- `./gradlew spotlessApply`
- `./gradlew :core:test :common:test -PskipITs` (targeted secret/alter tests)
Made with [Cursor](https://cursor.com)
--
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] [#12297] feat(secret): Support setSecretBinding/setSecretReference on fileset alter [gravitino]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #12646:
URL: https://github.com/apache/gravitino/pull/12646#issuecomment-5426886831
<!-- coverage-report -->
### Code Coverage Report
|Overall Project|68.19% **`-0.06%`**|:green_circle:|
|:-|:-|:-:|
|Files changed|66.04%|:green_circle:|
<br>
|Module|Coverage||
|:-|:-|:-:|
|aliyun|19.74%|:red_circle:|
|api|52.6%|:green_circle:|
|authorization-common|85.96%|:green_circle:|
|authorization-ranger|4.38%|:red_circle:|
|aws|53.54%|:green_circle:|
|azure|32.1%|:red_circle:|
|catalog-common|9.9%|:red_circle:|
|catalog-fileset|80.17%|:green_circle:|
|catalog-glue|69.24%|:green_circle:|
|catalog-hive|82.96%|:green_circle:|
|catalog-jdbc-common|45.69%|:green_circle:|
|catalog-jdbc-doris|82.44%|:green_circle:|
|catalog-jdbc-mysql|79.33%|:green_circle:|
|catalog-jdbc-postgresql|83.39%|:green_circle:|
|catalog-jdbc-starrocks|79.16%|:green_circle:|
|catalog-kafka|76.99%|:green_circle:|
|catalog-lakehouse-generic|60.55%|:green_circle:|
|catalog-lakehouse-hudi|79.1%|:green_circle:|
|catalog-lakehouse-iceberg|85.86%|:green_circle:|
|catalog-lakehouse-paimon|84.26%|:green_circle:|
|catalog-model|77.99%|:green_circle:|
|cli|44.48%|:green_circle:|
|client-java|77.92% **`-2.52%`**|:green_circle:|
|common|52.25% **`-0.36%`**|:green_circle:|
|core|83.43% **`-0.43%`**|:green_circle:|
|filesystem-hadoop3|76.45%|:green_circle:|
|flink|0.0%|:red_circle:|
|flink-common|50.29%|:green_circle:|
|flink-runtime|0.0%|:red_circle:|
|gcp|32.2%|:red_circle:|
|hadoop-auth|68.0%|:green_circle:|
|hadoop-common|17.84%|:red_circle:|
|hive-metastore-common|53.4%|:green_circle:|
|iceberg-aliyun-bundle|0.0%|:red_circle:|
|iceberg-common|64.75%|:green_circle:|
|iceberg-rest-server|75.31%|:green_circle:|
|idp-basic|85.98%|:green_circle:|
|integration-test-common|0.0%|:red_circle:|
|jobs|62.92%|:green_circle:|
|lance-common|32.81% **`-7.77%`**|:red_circle:|
|lance-rest-server|64.78%|:green_circle:|
|lineage|53.02%|:green_circle:|
|optimizer|83.24%|:green_circle:|
|optimizer-api|21.95%|:red_circle:|
|server|88.04%|:green_circle:|
|server-common|79.6%|:green_circle:|
|spark|28.57%|:red_circle:|
|spark-common|48.92%|:green_circle:|
|tencent|69.84%|:green_circle:|
|trino-connector|47.41%|:green_circle:|
<details>
<summary>Files</summary>
|Module|File|Coverage||
|:-|:-|:-|:-:|
|api|[FilesetChange.java](https://github.com/lasdf1234/gravitino/blob/4f68d15324b2a81144f5fae91238ec3e897994a8/api/src/main/java/org/apache/gravitino/file/FilesetChange.java)|52.5%|:red_circle:|
|client-java|[DTOConverters.java](https://github.com/lasdf1234/gravitino/blob/4f68d15324b2a81144f5fae91238ec3e897994a8/clients/client-java/src/main/java/org/apache/gravitino/client/DTOConverters.java)|54.64%|:red_circle:|
|common|[FilesetUpdateRequest.java](https://github.com/lasdf1234/gravitino/blob/4f68d15324b2a81144f5fae91238ec3e897994a8/common/src/main/java/org/apache/gravitino/dto/requests/FilesetUpdateRequest.java)|17.39%|:red_circle:|
|core|[PropertiesMetadataHelpers.java](https://github.com/lasdf1234/gravitino/blob/4f68d15324b2a81144f5fae91238ec3e897994a8/core/src/main/java/org/apache/gravitino/catalog/PropertiesMetadataHelpers.java)|100.0%|:green_circle:|
||[EntityCombinedTable.java](https://github.com/lasdf1234/gravitino/blob/4f68d15324b2a81144f5fae91238ec3e897994a8/core/src/main/java/org/apache/gravitino/catalog/EntityCombinedTable.java)|97.22%|:green_circle:|
||[EntityCombinedFileset.java](https://github.com/lasdf1234/gravitino/blob/4f68d15324b2a81144f5fae91238ec3e897994a8/core/src/main/java/org/apache/gravitino/catalog/EntityCombinedFileset.java)|96.43%|:green_circle:|
||[SecretPropertyUtils.java](https://github.com/lasdf1234/gravitino/blob/4f68d15324b2a81144f5fae91238ec3e897994a8/core/src/main/java/org/apache/gravitino/secret/SecretPropertyUtils.java)|95.65%|:green_circle:|
||[EntityCombinedSchema.java](https://github.com/lasdf1234/gravitino/blob/4f68d15324b2a81144f5fae91238ec3e897994a8/core/src/main/java/org/apache/gravitino/catalog/EntityCombinedSchema.java)|93.33%|:green_circle:|
||[EntityCombinedTopic.java](https://github.com/lasdf1234/gravitino/blob/4f68d15324b2a81144f5fae91238ec3e897994a8/core/src/main/java/org/apache/gravitino/catalog/EntityCombinedTopic.java)|93.33%|:green_circle:|
||[EntityCombinedView.java](https://github.com/lasdf1234/gravitino/blob/4f68d15324b2a81144f5fae91238ec3e897994a8/core/src/main/java/org/apache/gravitino/catalog/EntityCombinedView.java)|91.89%|:green_circle:|
||[OperationDispatcher.java](https://github.com/lasdf1234/gravitino/blob/4f68d15324b2a81144f5fae91238ec3e897994a8/core/src/main/java/org/apache/gravitino/catalog/OperationDispatcher.java)|90.83%|:green_circle:|
||[EntityCombinedModelVersion.java](https://github.com/lasdf1234/gravitino/blob/4f68d15324b2a81144f5fae91238ec3e897994a8/core/src/main/java/org/apache/gravitino/catalog/EntityCombinedModelVersion.java)|89.29%|:green_circle:|
||[FilesetOperationDispatcher.java](https://github.com/lasdf1234/gravitino/blob/4f68d15324b2a81144f5fae91238ec3e897994a8/core/src/main/java/org/apache/gravitino/catalog/FilesetOperationDispatcher.java)|82.86%|:green_circle:|
||[EntityCombinedModel.java](https://github.com/lasdf1234/gravitino/blob/4f68d15324b2a81144f5fae91238ec3e897994a8/core/src/main/java/org/apache/gravitino/catalog/EntityCombinedModel.java)|82.76%|:green_circle:|
||[MetalakeManager.java](https://github.com/lasdf1234/gravitino/blob/4f68d15324b2a81144f5fae91238ec3e897994a8/core/src/main/java/org/apache/gravitino/metalake/MetalakeManager.java)|76.19%|:green_circle:|
||[SecretManager.java](https://github.com/lasdf1234/gravitino/blob/4f68d15324b2a81144f5fae91238ec3e897994a8/core/src/main/java/org/apache/gravitino/secret/SecretManager.java)|76.04%|:green_circle:|
||[CatalogManager.java](https://github.com/lasdf1234/gravitino/blob/4f68d15324b2a81144f5fae91238ec3e897994a8/core/src/main/java/org/apache/gravitino/catalog/CatalogManager.java)|71.25%|:green_circle:|
||[BaseCatalog.java](https://github.com/lasdf1234/gravitino/blob/4f68d15324b2a81144f5fae91238ec3e897994a8/core/src/main/java/org/apache/gravitino/connector/BaseCatalog.java)|63.64%|:green_circle:|
|lance-common|[GravitinoLanceNameSpaceOperations.java](https://github.com/lasdf1234/gravitino/blob/4f68d15324b2a81144f5fae91238ec3e897994a8/lance/lance-common/src/main/java/org/apache/gravitino/lance/common/ops/gravitino/GravitinoLanceNameSpaceOperations.java)|1.4%|:red_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] [#12297] feat(secret): Support setSecretBinding/setSecretReference on fileset alter [gravitino]
Posted by "roryqi (via GitHub)" <gi...@apache.org>.
roryqi commented on PR #12646:
URL: https://github.com/apache/gravitino/pull/12646#issuecomment-5435287461
How do we handle this case?
1. set property a with secret binding A.
2. set property a with secret binding B
Do we remove secret binding A storage after we set the property bind to secret binding B?
--
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] [#12297] feat(secret): Support setSecretBinding/setSecretReference on fileset alter [gravitino]
Posted by "lasdf1234 (via GitHub)" <gi...@apache.org>.
lasdf1234 commented on PR #12646:
URL: https://github.com/apache/gravitino/pull/12646#issuecomment-5437226798
> How do we handle this case?
>
> 1. set property a with secret binding A.
> 2. set property a with secret binding B
> Do we remove secret binding A storage after we set the property bind to secret binding B?
Yes of course. this code handle this case
--
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] [#12297] feat(secret): Support setSecretBinding/setSecretReference on fileset alter [gravitino]
Posted by "roryqi (via GitHub)" <gi...@apache.org>.
roryqi merged PR #12646:
URL: https://github.com/apache/gravitino/pull/12646
--
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