-
Notifications
You must be signed in to change notification settings - Fork 27
[DPE-6752] Implement predefined roles #837
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
Closed
Closed
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
4767990
WIP: Implement unpolished instance level predefined roles
shayancanonical 563ac52
WIP: Working implementation of catalog level roles
shayancanonical ba17595
Ensure postgresql has started before creating set_user + add mistaken…
shayancanonical c72e13a
Merge branch '16/edge' into feature/16_predefined_roles
shayancanonical e03a619
Address for postgresql not running before patroni template is rendered
shayancanonical 6b29546
Simplify postgresql running check in render_patroni_yml
shayancanonical b7a7387
Ensure that test_smoke passes locally
shayancanonical ee95ae8
WIP: Attempt to get more existing integration tests to pass
shayancanonical 3a19bb7
Merge branch '16/edge' into feature/16_predefined_roles
shayancanonical b430238
Accept createdb and createrole extra-user-roles in lowercase
shayancanonical aa0c40a
Merge branch '16/edge' into feature/16_predefined_roles
shayancanonical 5fe02d9
Fixes for smoke and password rotation tests
shayancanonical b046ef7
Add missing set_user extension + predefined roles creation upon upgrade
shayancanonical 607bdec
Fix failing upgrade tests
shayancanonical e5adea3
Appropriately ensure database privileges when more than one relation …
shayancanonical 5decfe8
Fix typo in SQL query
shayancanonical 160e50d
Fix incorrectly referenced attribute
shayancanonical 67d3457
Fix failing status reset after invalid roles status message
shayancanonical ab7f586
Implement DDL role for a created database
shayancanonical ad22818
Flesh out login_hook and database owner role assumption + clean up da…
shayancanonical d5e7130
Allow database_owner role to createdb/createrole
shayancanonical 1d781c9
Allow db_admin roles to SELECT on tables/sequences + EXECUTE on funct…
shayancanonical 539b82f
Update snap (with login_hook) + bump postgresql lib major version + i…
shayancanonical e63be2c
Fix unit tests + minor bugfixes and polish
shayancanonical File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
427 changes: 248 additions & 179 deletions
427
lib/charms/postgresql_k8s/v0/postgresql.py → lib/charms/postgresql_k8s/v1/postgresql.py
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.