-
Notifications
You must be signed in to change notification settings - Fork 26
[DPE-5116] Add pgAudit #688
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
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #688 +/- ##
==========================================
+ Coverage 70.72% 70.81% +0.08%
==========================================
Files 11 11
Lines 2972 2981 +9
Branches 518 520 +2
==========================================
+ Hits 2102 2111 +9
Misses 758 758
Partials 112 112 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
config.yaml
Outdated
type: boolean | ||
description: Enable timescaledb extension | ||
plugin_audit_enable: | ||
default: false |
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 same as VM, check default with Mohamed, please.
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.
Thanks for pointing that out, Alex! After syncing with Mohamed, I updated the plugin to enable it by default on 3243718.
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.
Nice :)
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Issue
The pgAudit plugin/extension is available in the latest revision of the Charmed PostgreSQL rock, but not in this charm.
Solution
Expose pgAudit as another plugin/extension charm config option and enable it when requested by:
pgaudit
to the PostgreSQLshared_preload_libraries
parameter.lib/charms/postgresql_k8s/v0/postgresql.py
.Added new unit and integration tests.
Also, some adjustments were made in the plugin retrieval, which is used in the
config-changed
anddatabase-requested
hook handlers.