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

Hao Hao commented on SENTRY-993:
--------------------------------

[~gchanan] 1. This interface is not exposed to SimpleDBProviderBackend in v1, 
so to follow the same behavior I did not add it to SentryGenericProviderBackend 
in v2. Do you need it in SentryGenericProviderBackend for Solr, if so we can 
add it.

2. This interface will return you a <role, privileges> map given the 
authorizable object. You can use it to list all privileges for a given 
authorizable object if the requestor user is an admin user and activeRoleSet is 
all. However, you do need to iterate the role names to get all privileges. 

> list_sentry_privileges_by_authorizable() gone in API v2
> -------------------------------------------------------
>
>                 Key: SENTRY-993
>                 URL: https://issues.apache.org/jira/browse/SENTRY-993
>             Project: Sentry
>          Issue Type: Bug
>            Reporter: Romain Rigaux
>            Assignee: Hao Hao
>             Fix For: 1.7.0
>
>         Attachments: SENTRY-993.0.patch, SENTRY-993.1.patch, 
> SENTRY-993.2.patch
>
>
> How to list the privileges of an object?
> It was used before for filling the right panel on 1:24 
> http://gethue.com/apache-sentry-made-easy-with-the-new-hue-security-app/
> list_sentry_privileges_for_provider() is not recommended and provide just a 
> set of text privileges anyway.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to