gracechen09 commented on PR #4831:
URL: https://github.com/apache/polaris/pull/4831#issuecomment-4824691529

   > Thanks for driving this direction!
   > 
   > I read the linked doc and I'm not sure I fully follow the problem 
statement. I think it merges two authorization axes that Polaris keeps separate 
today: discoverability and metadata access.
   > 
   > Discoverability under a parent is the LIST privilege. TABLE_LIST is 
granted on the namespace, and listTables checks exactly that before returning 
the children. Metadata access is a separate per-entity grant 
(*_READ_PROPERTIES). The two don't gate each other: not holding TABLE_LIST on a 
namespace doesn't stop you from loading a table you were granted directly, and 
holding TABLE_LIST is what lets you see the child names under that namespace.
   > 
   > On the two problems in the doc:
   > 
   > * Discoverability: "I can access a table but can't list it without 
namespace LIST" looks like the model working as intended, not a gap. The grant 
gives you access to the entity, and enumerating names under the parent is what 
LIST grants, separately.
   > * Visibility of unauthorized entities: I'd keep "unauthorized" (no 
metadata or data access) apart from "shows up in a list". A name appearing 
under a parent you hold LIST on is the LIST privilege doing its job, even if 
you can't read that entity's contents. Suppressing names from a LIST-privileged 
caller is a different requirement (anti-enumeration), not the current model 
misbehaving.
   > 
   > Can we re-pin the problem statements?
   
   Thank you for reviewing the proposal, this is a good point! The original 
problem statement conflates two distinct authorization concerns, therefore I 
updated the proposal to remove the discoverability from the problem statement. 
The motivation for this proposal is now aligned with the proposed solution, 
which is for user who holds LIST_* privilege on a parent should only receive 
child entities they have access to. The other case where a user holds 
per-entity grants but no parent-level LIST privileges is moved to Future Work 
section and requires more discussion in the future.


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