Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 2.1.0
    • None
    • Sentry
    • None

    Description

      In some situations, Sentry client needs to know the owner privilege type that is configured at sentry server.

      client should only be able to read this value, but not be able to change it.

      Attachments

        1. SENTRY-2356.001.patch
          78 kB
          Na Li

        Issue Links

          Activity

            linaataustin Na Li added a comment -

            It is to make the value of the configuration specified in "SENTRY-2355: Merge the DB owner privileges configurations into one enum configuration" available to sentry client

            linaataustin Na Li added a comment - It is to make the value of the configuration specified in " SENTRY-2355 : Merge the DB owner privileges configurations into one enum configuration" available to sentry client
            hadoopqa Hadoop QA added a comment -

            Here are the results of testing the latest attachment
            https://issues.apache.org/jira/secure/attachment/12936333/SENTRY-2356.001.patch against master.

            Overall: +1 all checks pass

            SUCCESS: all tests passed

            Console output: https://builds.apache.org/job/PreCommit-SENTRY-Build/4057/console

            This message is automatically generated.

            hadoopqa Hadoop QA added a comment - Here are the results of testing the latest attachment https://issues.apache.org/jira/secure/attachment/12936333/SENTRY-2356.001.patch against master. Overall: +1 all checks pass SUCCESS: all tests passed Console output: https://builds.apache.org/job/PreCommit-SENTRY-Build/4057/console This message is automatically generated.
            linaataustin Na Li added a comment -

            We already have a general function SentryPolicyServiceClient.getConfigValue(), which calls SentryPolicyStoreProcessor.get_sentry_config_value. The returned value is String.

            The caller can get the returned value in String and compare with org.apache.sentry.service.common.SentryOwnerPrivilegeType to validate the value, and use it accordingly.

            Therefore, we don't need a specific API for Owner Privilege Type only.

            linaataustin Na Li added a comment - We already have a general function SentryPolicyServiceClient.getConfigValue(), which calls SentryPolicyStoreProcessor.get_sentry_config_value. The returned value is String. The caller can get the returned value in String and compare with org.apache.sentry.service.common.SentryOwnerPrivilegeType to validate the value, and use it accordingly. Therefore, we don't need a specific API for Owner Privilege Type only.

            People

              linaataustin Na Li
              linaataustin Na Li
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: