Adam Holley created SENTRY-2327:
-----------------------------------
Summary: Provide API on SentryPolicyServiceClient for admin and
configuration checks.
Key: SENTRY-2327
URL: https://issues.apache.org/jira/browse/SENTRY-2327
Project: Sentry
Issue Type: Improvement
Components: Service
Reporter: Adam Holley
Currently if I want to check if a user is an administrator I either check the
local sentry config file or make a call that is only accessible to sentry admin
and check for an exception. Additionally, If I want to see if an specific
configuration is enabled, I need to check the local sentry config which could
bypass the sentry server config.
What I'd like is to have a method or two that allows this through the
SentryPolicyServiceClient. e.g.
boolean client.isAdmin(String user)
boolean client.isOwnerPrivilegeEnabled()
boolean client.isOwnerPrivilegeWithGrantEnabled()
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)