You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "Abyss-lord (via GitHub)" <gi...@apache.org> on 2025/01/16 07:20:40 UTC

[PR] [#6278] improve(CLI): Revoke all privileges from a role via the Gravitino CLI. [gravitino]

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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#6278] improve(CLI): Revoke all privileges from a role via the Gravitino CLI. [gravitino]

Posted by "justinmclean (via GitHub)" <gi...@apache.org>.
justinmclean merged PR #6293:
URL: https://github.com/apache/gravitino/pull/6293


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#6278] improve(CLI): Revoke all privileges from a role via the Gravitino CLI. [gravitino]

Posted by "Abyss-lord (via GitHub)" <gi...@apache.org>.
Abyss-lord commented on PR #6293:
URL: https://github.com/apache/gravitino/pull/6293#issuecomment-2594704275

   @justinmclean @tengqm could you please review this PR when you have time? I’d really appreciate your feedback.


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org