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

The generic model has not successfully revoke part of privileges from existed ALL privilege

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.0
    • 1.5.0
    • None
    • None

    Description

      When the SENTRY-612 has done the integration test with Sqoop team. I found there existed a revoke problem as following:
      sqoop:000> grant privilege -a read --resource-type connector --resource 3 --principal-type role --principal user1
      sqoop:000> grant privilege -a all --resource-type connector --resource 3 --principal-type role --principal user1
      sqoop:000> show privilege --principal-type role --principal user1

      Action Resource Name Resource Type With Grant
      ALL 3 CONNECTOR false

      sqoop:000> revoke privilege -a read --resource-type connector --resource 3 --principal-type role --principal user1
      Revoked action read on resource connector 3 to principal role user1 successfully
      sqoop:000> show privilege --principal-type role --principal user1

      Action Resource Name Resource Type With Grant
             

      It is not correct. It should be show the write privilege.

      Attachments

        1. SENTRY-693.001.patch
          6 kB
          shenguoquan

        Activity

          People

            guoquan shenguoquan
            guoquan shenguoquan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: