Abyss-lord opened a new pull request, #6293:
URL: https://github.com/apache/gravitino/pull/6293

   ### What changes were proposed in this pull request?
   
   Revoke all privileges from a role via the Gravitino CLI. syntax: `gcli role 
revoke --name <name> --role <role> --all`
   
   The step as follows:
   
   1. Retrieve the `SecurableObject` instance using `role` and `fullname`;
   2. Obtain the privileges associated with the `SecurableObject`;
   3. Revoke all identified privileges;
   
   ### Why are the changes needed?
   
   Fix: #6278 
   
   ### Does this PR introduce _any_ user-facing change?
   
   No
   
   ### How was this patch tested?
   
   local tests + ut
   
   ```bash
   gcli role grant -m demo_metalake --name Hive.default --role roleA 
--privilege create_table modify_table -i
   # roleA granted create_table,modify_table on Hive.default
   
   gcli role revoke -m demo_metalake --name Hive.default --all --role roleA -i
   # Hive.default: ALLOW create table, ALLOW modify table
   ```


-- 
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]

Reply via email to