XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.1.0
    • Sentry
    • None

    Description

      When authorization is done, sentry binding should translate owner privilege to "ALL" before using it.

      In CommonPrivilege, need to add Owner privilege and treat it as ALL privilege for authorization

       private boolean impliesResource(ImplyMethodType implyMethodType, String policyValue, String requestValue) {
          // wildcard support, "*", "+", "all"("+" and "all" are for backward compatibility) are represented as wildcard
          // if requestValue is wildcard, means privilege request is to match with any value of given resource
          if (SentryConstants.RESOURCE_WILDCARD_VALUE.equals(policyValue)
                  || SentryConstants.RESOURCE_WILDCARD_VALUE.equals(requestValue)
                  || SentryConstants.RESOURCE_WILDCARD_VALUE_ALL.equalsIgnoreCase(policyValue)
                  || SentryConstants.RESOURCE_WILDCARD_VALUE_ALL.equalsIgnoreCase(requestValue)
                  || SentryConstants.RESOURCE_WILDCARD_VALUE_SOME.equals(requestValue)) {
            return true;
          }
      
      

      Attachments

        1. SENTRY-2265.1.patch
          1 kB
          Sergio Peña

        Issue Links

          Activity

            People

              spena Sergio Peña
              kkalyan Krishna Kalyan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: