Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-2933

[Ranger Ozone Plugin] $USER Placeholder is not honoured in KEY resource path, Policy User Items

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Bug
    • 2.1.0
    • None
    • plugins

    Description

      Observed that $USER placeholder is not enforced while using it in either in KEY value or User's value in Policy Item.

       

      Test Policy:

      1. Resources: 
         volume - test-volume
         bucket - test-bucket
         key - user/$USER, user/$USER/*
      
      2. Policy Item:
         User: $USER
         Permissions: All

       

      Expected Result: 

      Any user should be able to create user home directory

      Actual Result:

      The user is denied permission to create key.

      [root@quasar-tyedwn-1 keytabs]# ozone fs -mkdir -p o3fs://test-bucket.test-volume.ozone1/user/hrt_1 
      mkdir: User hrt_1@AD.HALXG.CLOUDERA.COM doesn't have CREATE permission to access key
      

       

      Attachments

        1. $USER_Policy.png
          474 kB
          Abhishek Shukla
        2. User_Policy_Audit.png
          162 kB
          Abhishek Shukla

        Activity

          People

            Unassigned Unassigned
            Shukla Abhishek Shukla
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: