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

   ### What changes were proposed in this pull request?
   
   - Model list-authorization short-circuits as independent parent-scope access 
paths.
   - Check deny policies only for the privilege used by each access path.
   - Support both table filter and table-like list authorization expressions.
   - Preserve the `USE_CATALOG` and `USE_SCHEMA` requirements for table-like 
listing.
   
   ### Why are the changes needed?
   
   The existing short-circuit checks `SELECT_TABLE` and `MODIFY_TABLE` denies 
together. A deny on one privilege therefore disables an independent, deny-free 
access path and falls back to per-object authorization.
   
   For large schemas, this causes thousands of unnecessary authorization checks 
even when all tables are visible through another parent-scope privilege.
   
   Fix: #12837
   
   Related: datastrato/gravitino-enterprise#1651
   
   ### Does this PR introduce _any_ user-facing change?
   
   No API or authorization-result changes. Eligible list operations avoid 
unnecessary per-object authorization checks.
   
   ### How was this patch tested?
   
   - `./gradlew :server-common:spotlessApply`
   - `./gradlew :server-common:test --tests 
org.apache.gravitino.server.authorization.TestMetadataAuthzHelper -PskipITs 
-PskipDockerTests=false`
   - `./gradlew :server-common:check -PskipITs -PskipDockerTests=false`
   - `git diff --check`
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to