You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@sentry.apache.org by "Na Li (Jira)" <ji...@apache.org> on 2019/12/10 19:55:00 UTC

[jira] [Created] (SENTRY-2539) PolicyEngine should be able to return privilege directly

Na Li created SENTRY-2539:
-----------------------------

             Summary: PolicyEngine  should be able to return privilege directly
                 Key: SENTRY-2539
                 URL: https://issues.apache.org/jira/browse/SENTRY-2539
             Project: Sentry
          Issue Type: Improvement
          Components: Sentry
    Affects Versions: 2.1
            Reporter: Na Li
            Assignee: Na Li


Right now, the PolicyEngine Interface only returns the list of privileges in the form of String. As a result, every authorization check has to convert the privilege string to privilege object even though the cached privilege objects are of the correct type already.

We should add a new function that returns privilege object directly to avoid the overhead of conversion.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)