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
54182: backupccl: show schema privileges in SHOW BACKUP r=adityamaru,dt a=pbardea Previously, privileges for schemas were not displayed in SHOW BACKUP. Part of cockroachdb#53548. Release note: None 54183: backupccl: check privileges on types and schemas during backup r=solongordon,dt a=pbardea This commit adds a check that ensures that the user running the backup has USAGE privileges on the schemas and types they're backing up. Note that this check doesn't actually enforce anything for now since currently BACKUP must be run by an `admin`, which has to have ALL privileges on both types and schemas. However, this check is consistent with the other privilege checks we have for databases and tables. Part of cockroachdb#53548. Release note: None Co-authored-by: Paul Bardea <[email protected]>
- Loading branch information
Showing
3 changed files
with
63 additions
and
26 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