You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@kyuubi.apache.org by GitBox <gi...@apache.org> on 2022/08/29 07:32:52 UTC

[GitHub] [incubator-kyuubi] bowenliang123 commented on pull request #3361: [KYUUBI #3360] [Improvement] [AUTHZ] Batch verifing column privileges for single AccessRequest in RuleAuthorization

bowenliang123 commented on PR #3361:
URL: https://github.com/apache/incubator-kyuubi/pull/3361#issuecomment-1229892346

   > does batch verify only works for columns?
   
   As for the batchVerify method, it's verifing all the request of any resource type in one batch (no matter column, table, db ...).
   
   But right now, it's introduced in column level checking for two reason,
   1. Following similar way as Ranger.  `RangerHiveAuthorizer` the hive plugin of Ranger itself is doing it in same way, check all column for one table in one batch and leave other request one by one. see https://github.com/apache/ranger/blob/master/hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveAuthorizer.java#L1041
   
   2. Fast fail. Although `RangerHiveAuthorizer` emmits only first unallowed result for exception, RangerBasePlugin support batch checking in isAccessAllowed. If we check all privileges in one batch, it will cause more time and cost without fast failing.
   
   3. Future feature. In current implementation of auth, only first and only one column  privilege violation is thrown. In future, I would like to introduce a feature for checking all required privilege, to support guidance for end-users to apply all required privileges.


-- 
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: notifications-unsubscribe@kyuubi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org