[ 
https://issues.apache.org/jira/browse/SENTRY-359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14102654#comment-14102654
 ] 

Prasad Mujumdar commented on SENTRY-359:
----------------------------------------

This would require the Sentry service to extract the child object from Hive 
metastore or for non-DB object this would be from some other repository.
An alternative could be to support a bulk fetch API where call provides a list 
of objects and Sentry will return a map of object name to all privileges. Here 
the client is responsible for extracting the child objects. Sentry will only 
manage it's own metadata lookup.

> Support Sentry service API to retrieve applicable privileges for a given 
> authorizable object
> --------------------------------------------------------------------------------------------
>
>                 Key: SENTRY-359
>                 URL: https://issues.apache.org/jira/browse/SENTRY-359
>             Project: Sentry
>          Issue Type: Improvement
>    Affects Versions: 1.4.0
>            Reporter: Prasad Mujumdar
>
> The current implementation of list_sentry_privileges_for_provider is 
> specifically to facilitate Sentry auth engine. It's not intended to be a 
> general purpose metadata query.
> We should add a new API that returns the list of privileges 
> (TSentryPrivilege)  for the give authorizable object and all it's applicable 
> privileges. 



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to