echonesis opened a new pull request, #9564:
URL: https://github.com/apache/ozone/pull/9564

   ## What changes were proposed in this pull request?
   Enhanced the `ozone sh bucket|key|volume getacl` command to support a new 
`--string` (or `-o`) option that outputs ACLs in a format compatible with 
`setacl/addacl` commands.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-5306
   
   ## How was this patch tested?
   
   GitHub Actions CI: 
https://github.com/echonesis/ozone/actions/runs/20525209081
   Local Test:
   ```
   > docker compose exec om ozone sh bucket getacl s3v/bucket1
   [ {
     "type" : "USER",
     "name" : "testuser",
     "aclScope" : "ACCESS",
     "aclSet" : [ "ALL" ],
     "aclList" : [ "ALL" ]
   }, {
     "type" : "GROUP",
     "name" : "testuser",
     "aclScope" : "ACCESS",
     "aclSet" : [ "READ", "LIST" ],
     "aclList" : [ "READ", "LIST" ]
   } ]
   
   > docker compose exec om ozone sh bucket getacl -o s3v/bucket1
   user:testuser:a,group:testuser:rl
   
   > docker compose exec om ozone sh bucket getacl --string s3v/bucket1
   user:testuser:a,group:testuser:rl
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to