Skip to content
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

Support Fixed server and database roles #475

Conversation

anju15bharti
Copy link
Contributor

Description

Issues Resolved

[List any issues this PR will resolve]

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is under the terms of the PostgreSQL license, and grant any person obtaining a copy of the contribution permission to relicense all or a portion of my contribution to the PostgreSQL License solely to contribute all or a portion of my contribution to the PostgreSQL open source project.

For more information on following Developer Certificate of Origin and signing off your commits, please check here.

anju15bharti and others added 5 commits November 15, 2024 10:37
Description 
Babel: Do not dump securityadmin from BBF catalog

Extension PR amazon-aurora/babelfish_extensions#67

Task: BABEL-5040
Signed-off-by: ANJU BHARTI <[email protected]>
… (#96)

### Description

See babelfish-for-postgresql#447

Handle bbf dump restore changes for babelfish db_accessadmin fixed database role.
 
#### Engine PR: babelfish-for-postgresql#447
#### Extension PR: babelfish-for-postgresql/babelfish_extensions#2970

### Issues Resolved

[List any issues this PR will resolve]
 
### Check List

- [x] Commits are signed per the DCO using --signoff 

By submitting this pull request, I confirm that my contribution is under the terms of the PostgreSQL license, and grant any person obtaining a copy of the contribution permission to relicense all or a portion of my contribution to the PostgreSQL License solely to contribute all or a portion of my contribution to the PostgreSQL open source project.

For more information on following Developer Certificate of Origin and signing off your commits, please check [here](https://github.com/babelfish-for-postgresql/postgresql_modified_for_babelfish/blob/main/CONTRIBUTING.md#developer-certificate-of-origin).
Handle dump restore for dbcreator fixed server role by restrict dumping dbcreator catalog entry

Extension PR : amazon-aurora/babelfish_extensions#65

Task: BABEL-5115
Signed-off-by: ANJU BHARTI <[email protected]>
Description
Handle babelfish dump restore changes for fixed database role db_securityadmin
Extension PR : amazon-aurora/babelfish_extensions#70

Signed-off-by: Harsh Lunagariya <[email protected]>
@shardgupta shardgupta force-pushed the server-db-fixed-role-5-x branch from e831a95 to 3f20518 Compare November 16, 2024 07:07
Comment on lines +5039 to +5046
temp_acl = merge_acl_with_grant(old_acl,
false, /* is_grant */
false, /* grant_option */
DROP_RESTRICT,
list_make1_oid(roleid),
ACLITEM_ALL_PRIV_BITS,
sysadminOid,
ownerId);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a temporary fix. This will be reworked in the same cycle as a separate issue.

@shardgupta shardgupta merged commit 2e0148e into babelfish-for-postgresql:BABEL_5_X_DEV__PG_17_X Nov 18, 2024
2 checks passed
@shardgupta shardgupta deleted the server-db-fixed-role-5-x branch November 18, 2024 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants