-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#25348] YSQL: add flag to block dangerous roles
Summary: Add a new tserver flag --ysql_block_dangerous_roles to prevent roles from becoming members of the following system roles: - pg_read_all_data - pg_write_all_data - pg_read_server_files - pg_write_server_files - pg_execute_server_program In an environment that does not allow superusers and uses yb_db_admin (such as multitenancy or YBM), having the abilities of the above system roles can potentially escalate privileges. Since it is not problematic to have the above system roles become members of other roles, leave that unblocked. Also, permit REVOKE of these dangerous roles from user roles. Jira: DB-14566 Test Plan: On Almalinux 8: ./yb_build.sh fastdebug --gcc11 \ --gtest_filter PgLibPqTest.BlockDangerousRoles Close: #25348 Reviewers: smishra, telgersma Reviewed By: telgersma Subscribers: ybase, yql Differential Revision: https://phorge.dev.yugabyte.com/D40693
- Loading branch information
Showing
5 changed files
with
78 additions
and
0 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