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

Provide API on SentryPolicyServiceClient for admin and configuration checks.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: In Progress
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Service
    • 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

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

            Dates

              Created:
              Updated: