You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "nevzheng (via GitHub)" <gi...@apache.org> on 2026/08/27 12:50:30 UTC

[PR] [#12677] docs: propose context-aware property security contract [gravitino]

nevzheng opened a new pull request, #12678:
URL: https://github.com/apache/gravitino/pull/12678

   ### What changes were proposed in this pull request?
   
   This PR proposes a context-aware security contract for Gravitino entity properties and records it in `design-docs/secure-properties/context-aware-property-security.md`.
   
   The draft separates three responsibilities:
   
   - canonical property definitions declare reviewed security profiles and optional semantic descriptors;
   - property consumers bind explicitly selected definitions and supply a structured use context; and
   - a core engine produces terminal safe projections or narrowly materializes selected values for an already-authorized runtime operation.
   
   The design preserves ordinary undeclared properties, maps existing `hidden=true` declarations through a legacy compatibility profile, and keeps classification independent of Entity Secrets storage. It proposes Fileset cloud-provider properties as the first complete vertical slice.
   
   The main review questions are whether the cooperative definition-owner/consumer contract is sufficient, whether the purpose/surface contexts and projection actions are appropriately small, and whether the boundary with Entity Secrets and `getSecrets()` remains correct.
   
   ### Why are the changes needed?
   
   Entity properties are commonly represented as `Map<String, String>`. The current `hidden` mechanism protects a property only when every consumer selects matching metadata and applies filtering at the relevant boundary. Fileset catalog metadata currently omits shared cloud-provider definitions, so an inline `s3-secret-access-key` can follow ordinary-property behavior through REST and listener boundaries.
   
   Entity Secrets provides complementary opt-in storage and resolution, but it does not classify legacy inline values or define handling across every property consumer. The proposal establishes that missing runtime contract without replacing Entity Secrets or adding per-property authorization.
   
   Related to #12677.
   
   Related to #11642.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No immediate runtime or API behavior changes. This draft adds only a design document. If adopted, follow-up implementation will introduce the proposed server-side property projection and selected runtime materialization contracts incrementally.
   
   ### How was this patch tested?
   
   - `npm exec --yes prettier@3.6.2 -- --check design-docs/secure-properties/context-aware-property-security.md`
   - `npm exec --yes markdown-link-check@3.13.7 -- design-docs/secure-properties/context-aware-property-security.md -q`
   - `./gradlew rat`
   - `git diff upstream/main...HEAD --check`
   
   All listed checks passed. The five Mermaid blocks were structurally reviewed; GitHub rendering will be checked on the draft PR. Runtime tests were not run because the change is documentation-only.
   


-- 
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] [#12677] docs: propose context-aware property security contract [gravitino]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #12678:
URL: https://github.com/apache/gravitino/pull/12678#issuecomment-5442008717

   <!-- coverage-report -->
   ### Code Coverage Report
   |Overall Project|68.51% **`-0.17%`**|:green_circle:|
   |:-|:-|:-:|
   |Files changed|28.88%|:red_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%|:green_circle:|
   |common|55.74%|:green_circle:|
   |core|83.7%|: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.61%|:green_circle:|
   |idp-basic|85.98%|:green_circle:|
   |integration-test-common|0.0%|:red_circle:|
   |jobs|62.92%|:green_circle:|
   |lance-common|32.72% **`-2.88%`**|:red_circle:|
   |lance-rest-server|64.78% **`-8.51%`**|:green_circle:|
   |lineage|53.02%|:green_circle:|
   |optimizer|83.24%|:green_circle:|
   |optimizer-api|21.95%|:red_circle:|
   |server|88.16%|:green_circle:|
   |server-common|80.35%|:green_circle:|
   |spark|28.57%|:red_circle:|
   |spark-common|48.92%|:green_circle:|
   |tencent|69.84%|:green_circle:|
   |trino-connector|47.44%|:green_circle:|
   
   <details>
   <summary>Files</summary>
   
   |Module|File|Coverage||
   |:-|:-|:-|:-:|
   |lance-common|[NamespaceWrapper.java](https://github.com/nevzheng/gravitino/blob/94623712ab2d3d332cc6fcf67b19262ca794555e/lance/lance-common/src/main/java/org/apache/gravitino/lance/common/ops/NamespaceWrapper.java)|96.0%|:green_circle:|
   ||[LanceConfig.java](https://github.com/nevzheng/gravitino/blob/94623712ab2d3d332cc6fcf67b19262ca794555e/lance/lance-common/src/main/java/org/apache/gravitino/lance/common/config/LanceConfig.java)|94.74%|:green_circle:|
   ||[GravitinoLanceNameSpaceOperations.java](https://github.com/nevzheng/gravitino/blob/94623712ab2d3d332cc6fcf67b19262ca794555e/lance/lance-common/src/main/java/org/apache/gravitino/lance/common/ops/gravitino/GravitinoLanceNameSpaceOperations.java)|1.38%|:red_circle:|
   ||[ObjectIdentifier.java](https://github.com/nevzheng/gravitino/blob/94623712ab2d3d332cc6fcf67b19262ca794555e/lance/lance-common/src/main/java/org/apache/gravitino/lance/common/ops/gravitino/ObjectIdentifier.java)|0.0%|:red_circle:|
   |lance-rest-server|[LanceNamespaceOperations.java](https://github.com/nevzheng/gravitino/blob/94623712ab2d3d332cc6fcf67b19262ca794555e/lance/lance-rest-server/src/main/java/org/apache/gravitino/lance/service/rest/LanceNamespaceOperations.java)|88.37%|:green_circle:|
   ||[LanceRESTService.java](https://github.com/nevzheng/gravitino/blob/94623712ab2d3d332cc6fcf67b19262ca794555e/lance/lance-rest-server/src/main/java/org/apache/gravitino/lance/LanceRESTService.java)|0.0%|: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] [#12677] docs: propose context-aware property security contract [gravitino]

Posted by "nevzheng (via GitHub) via commits" <co...@gravitino.apache.org>.
nevzheng closed pull request #12678: [#12677] docs: propose context-aware property security contract
URL: https://github.com/apache/gravitino/pull/12678


-- 
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] [#12677] docs: propose context-aware property security contract [gravitino]

Posted by "nevzheng (via GitHub) via commits" <co...@gravitino.apache.org>.
nevzheng commented on PR #12678:
URL: https://github.com/apache/gravitino/pull/12678#issuecomment-6657865208

   Stepping away from the project, closing as not planned.


-- 
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] [#12677] docs: propose context-aware property security contract [gravitino]

Posted by "lasdf1234 (via GitHub)" <gi...@apache.org>.
lasdf1234 commented on PR #12678:
URL: https://github.com/apache/gravitino/pull/12678#issuecomment-5494537696

   Your this PR should only be aimed at preventing UI or calling interfaces from obtaining sensitive information. I think this is just a minor change and doesn't require such complex logic. As long as catalog.properties() can filter out sensitive information, the existing logic has already achieved this. Most entities are fine, only a few scenarios have this issue, such as fileset, and this problem has already been fixed. The specific PR is: https://github.com/apache/gravitino/pull/12751
   
   Most of the scenarios are fine. For the rare cases where the bug occurs, it can be fixed separately.


-- 
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] [#12677] docs: propose context-aware property security contract [gravitino]

Posted by "lasdf1234 (via GitHub)" <gi...@apache.org>.
lasdf1234 commented on PR #12678:
URL: https://github.com/apache/gravitino/pull/12678#issuecomment-5490608408

   I have read your design document. Personally, I think it is not very useful:
   1. For those entities with bugs, just fix the bugs in those entities.
   2. The connector obtains the plaintext through the getCredential interface and the getSecret interface, which is unrelated to this design. The other attributes obtained through catalog.properties() (whether they are hidden or not returned) will not affect the use of the connector, and the existing logic does not need to be changed.
   
   I think these bugs can be fixed based on the existing framework.


-- 
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