Uploaded image for project: 'Sentry'
  1. Sentry
  2. SENTRY-2327

Provide API on SentryPolicyServiceClient for admin and configuration checks.

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: In Progress
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Service
    • Labels:
      None

      Description

      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()

        Attachments

          Activity

            People

            • Assignee:
              kkalyan Krishna Kalyan
              Reporter:
              aholley Adam Holley
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: