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

   ### What changes were proposed in this pull request?
   
   Require tag-scoped `APPLY_TAG` and object grant authority for 
access-carrying tag assignments, while preserving the metalake-owner exception. 
Require metalake ownership or `CREATE_POLICY` to bind or unbind an access 
policy and to widen a bound access policy. Preserve policy-edit ownership and 
the existing rules for descriptive tags and governance policies.
   
   Revalidate the policy, tag, object identities and relevant bindings used for 
authorization when the relational write occurs. Evaluate column grant authority 
against the parent table.
   
   ### Why are the changes needed?
   
   Applying an access-carrying tag or widening a bound policy can confer 
access. The existing checks do not require all of the authority specified by 
OQ-4.
   
   Fixes #13907
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes. Calls without the required authority can now return HTTP 403 for 
access-tag assignments, access-policy binding or unbinding, and widening of 
bound access policies. Writes can return HTTP 409 when the authorization state 
changes concurrently. There are no new public APIs or configuration properties.
   
   ### How was this patch tested?
   
   - Ran focused executor, storage, and real-JCasbin H2 authorization tests, 
including column add/remove, missing names, padded-name compatibility, stale 
identities, unbinding, and a create-and-bind race.
   - Ran a local MySQL policy bind/widen concurrency test. The pre-fix control 
reproduced the race; with the fix, MySQL reported the bind waiting on the 
policy row and both operations completed in the intended order.
   - Applied the complete patch to Apache `main` at 
`48632d583466eea312812222d7c9729a6758beaa` and passed focused core, 
server-common, server, and policy H2 tests: 36 tests, no failures or skips.
   
   Docker-backed MySQL and PostgreSQL test lanes were not run.
   


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