forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
126866: delegate: show privileges inherited through public role r=rimadeodhar a=rimadeodhar This PR updates the SHOW GRANTS FOR <role> output to also contain grants inherited through the public role. public is an implicit role in every cluster. Every role/user within the cluster inherits all privileges from the public role. However, the public role is assigned privileges on all virtual schemas such as crdb_internal. To make the output more meaningful for SHOW GRANTS, we filter out grants related to virtual schemas but include all other grants inherited through the public role. The grants on virtual schemas as listed when the public role is explicitly queried as a target role in a SHOW GRANTS statement. Epic: none Fixes: cockroachdb#122204 Release note (sql change): SHOW GRANTS for a role shows grants inherited through the implicitly defined public role. 127016: jwtauthccl: use RedactableString for detailed error r=rafiss a=rafiss Also, only join the detailed error string if it's non-empty. Epic: None Release note: None Co-authored-by: rimadeodhar <[email protected]> Co-authored-by: Rafi Shamim <[email protected]>
- Loading branch information
Showing
15 changed files
with
284 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.