mehakmeet commented on PR #15035:
URL: https://github.com/apache/gravitino/pull/15035#issuecomment-6958677527

   I have some open design questions :
   1. Does `CREATE_POLICY` replace policy ownership when widening?
      If Bob has metalake `CREATE_POLICY` but does not own Alice’s policy, can 
he add a role to it?
      Our PR: No. He must also satisfy the existing policy-edit ownership 
check. A policy owner who widens a bound access policy additionally needs 
metalake `CREATE_POLICY`.
   
   2. Should tag removal use the same checks as addition?
      Removing a table’s local tag value can expose an inherited value from its 
schema and potentially grant access. Is the same authorization sufficient in 
that case?
      Our PR: Yes. Addition and removal use the same applicable checks; we did 
not add a removal-only privilege or simulate the resulting access.
   
   3. Do disabled policies and nonmatching selectors still make a tag 
access-carrying?
      For example, should the stronger checks apply when a disabled policy is 
bound to the tag, or when the assigned value does not match its selector?
      Our PR: Yes. We classify the tag by its bound access-policy type, 
regardless of whether the policy is disabled or the value matches.
   
   4. Should deleting a whole tag or policy require central authority?
      Today, a policy owner who cannot unbind an access policy may still be 
able to delete the whole policy and thereby remove its bindings. Similarly, a 
tag owner may be able to delete the whole tag. Should deletion require metalake 
authority, require an authorized unbind first, or keep the existing ownership 
rule?
      Our PR: Leaves deletion behavior unchanged. This is open for discussion. 
The concern demonstrated so far is removal of classifications or access, not an 
unauthorized access grant.
   
   Please let me know what you guys think on the above, and if you can review 
the PR. If it's too big I can separate it out, but majorly changes are Tests as 
I have added the split of code changes in the description as well. Thank you.
   
   @bharos @roryqi 


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