-
Couldn't load subscription status.
- Fork 27
[DPE-7594] Add custom users to pg_hba filter #1072
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
Conversation
Codecov Report❌ Patch coverage is
❌ Your project status has failed because the head coverage (66.02%) is below the target coverage (70.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## 16/edge #1072 +/- ##
===========================================
+ Coverage 65.84% 66.02% +0.17%
===========================================
Files 17 17
Lines 4178 4179 +1
Branches 609 610 +1
===========================================
+ Hits 2751 2759 +8
+ Misses 1284 1276 -8
- Partials 143 144 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| if user in ( | ||
| "backup", | ||
| "monitoring", | ||
| "operator", | ||
| "postgres", | ||
| "replication", | ||
| "rewind", | ||
| ): | ||
| continue |
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.
Copied from the trigger.
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 create a dedicated Jira ticket on Mohamed to decide the behavior here, as we are adding here backward compatibility to the current behavior which is not the best way to do in modernly hardened charm.
Thank you!
| if plugins: | ||
| self.enable_disable_extensions(dict.fromkeys(plugins, True), database) |
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.
Lib change for PGB.
| if user in ( | ||
| "backup", | ||
| "monitoring", | ||
| "operator", | ||
| "postgres", | ||
| "replication", | ||
| "rewind", | ||
| ): | ||
| continue |
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 create a dedicated Jira ticket on Mohamed to decide the behavior here, as we are adding here backward compatibility to the current behavior which is not the best way to do in modernly hardened charm.
Thank you!
| else: | ||
| logger.debug(f"User {user} has no databases to connect to") |
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.
The structure of relations_user_databases_map changed with logical replication. Should it be ported back to 14/edge?
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.
Done: #1075
| else: | ||
| logger.debug(f"User {user} has no databases to connect to") |
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.
Done: #1075
Don't skip custom users when generating pg_hba configuration
Checklist