-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not allow predefined server roles to be members of each other #3292
Do not allow predefined server roles to be members of each other #3292
Conversation
Pull Request Test Coverage Report for Build 12427825146Details
💛 - Coveralls |
Signed-off-by: ANJU BHARTI <[email protected]>
ea2983e
to
21e2d6e
Compare
@@ -1946,6 +1946,12 @@ check_alter_server_stmt(GrantRoleStmt *stmt) | |||
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED), | |||
errmsg("'sysadmin' role cannot be granted to login: a user is already created in database '%s'", db_name))); | |||
|
|||
/* Forbidden the use of fixed server principals as grantee*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems grammatically incorrect.
Alter server role dbcreator add member securityadmin | ||
go | ||
~~ERROR (Code: 33557097)~~ | ||
|
||
~~ERROR (Message: Cannot use the special principal 'securityadmin')~~ | ||
|
||
|
||
Alter server role dbcreator add member dbcreator | ||
go | ||
~~ERROR (Code: 33557097)~~ | ||
|
||
~~ERROR (Message: Cannot use the special principal 'dbcreator')~~ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Please add dbcreator/secadmin <-> sysadmin combination.
- Are there existing testcases for PG endpoint?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Added more testcases.
- no it's the behaviour from BBF endpoint and for PG we have already blocked operations on BBF created objects.
Signed-off-by: ANJU BHARTI <[email protected]>
b33ac65
to
c125588
Compare
3cba022
into
babelfish-for-postgresql:BABEL_5_X_DEV
…elfish-for-postgresql#3292) Earlier fixed server-level roles could made members of each other. With this commit, we blocked making predefined server-level roles members of each other. Task: BABEL-5484 Signed-off-by: ANJU BHARTI <[email protected]>
…) (#3294) Earlier fixed server-level roles could made members of each other. With this commit, we blocked making predefined server-level roles members of each other. Task: BABEL-5484 Signed-off-by: ANJU BHARTI <[email protected]>
…elfish-for-postgresql#3292) Earlier fixed server-level roles could made members of each other. With this commit, we blocked making predefined server-level roles members of each other. Task: BABEL-5484 Signed-off-by: ANJU BHARTI <[email protected]>
Description
Earlier fixed server-level roles could made members of each other.
With this commit, we blocked making predefined server-level roles members of each other.
Issues Resolved
BABEL-5484