Skip to content

Commit 2fee0fa

Browse files
authored
DPE-4970 Audit log support (#474)
* image bump * audit plugin support * bump dpw to workaround charmcraft issues * rebase * Add new option and fix log rotation for disabled audit plugin * include audit log on test * disable plugin for older image * container not ready breaks initialization sometimes
1 parent 956fbe4 commit 2fee0fa

File tree

17 files changed

+311
-121
lines changed

17 files changed

+311
-121
lines changed

config.yaml

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33

44
options:
55
cluster-name:
6-
description: "Optional - Name of the MySQL InnoDB cluster, set once at deployment"
7-
type: "string"
6+
description: Optional - Name of the MySQL InnoDB cluster, set once at deployment
7+
type: string
88
cluster-set-name:
99
description: |
1010
Optional - Name for async replication cluster set, set once at deployment.
1111
On `recreate-clster` action call, the cluster set name will be re-generated automatically.
12-
type: "string"
12+
type: string
1313
profile:
1414
description: |
1515
profile representing the scope of deployment, and used to be able to enable high-level
@@ -25,17 +25,27 @@ options:
2525
Only comes into effect when the `production` profile is selected.
2626
# Config options for the legacy 'mysql' interface
2727
mysql-interface-user:
28-
description: "The database username for the legacy 'mysql' interface"
29-
type: "string"
28+
description: The database username for the legacy 'mysql' interface
29+
type: string
3030
mysql-interface-database:
31-
description: "The database name for the legacy 'mysql' interface"
32-
type: "string"
31+
description: The database name for the legacy 'mysql' interface
32+
type: string
3333
mysql-root-interface-user:
34-
description: "The database username for the legacy 'mysql' interface (root level access)"
35-
type: "string"
34+
description: The database username for the legacy 'mysql' interface (root level access)
35+
type: string
3636
mysql-root-interface-database:
37-
description: "The database name for the legacy 'mysql' interface (root level access)"
38-
type: "string"
37+
description: The database name for the legacy 'mysql' interface (root level access)
38+
type: string
39+
plugin-audit-enabled:
40+
description: Enable the audit plugin
41+
type: boolean
42+
default: true
43+
plugin-audit-strategy:
44+
description: |
45+
Audit log plugin strategy. Allowed values are: "semi-async" and "async".
46+
Ref. at https://docs.percona.com/percona-server/8.0/audit-log-plugin.html#audit_log_strategy
47+
type: string
48+
default: async
3949
# Experimental features
4050
experimental-max-connections:
4151
type: int

0 commit comments

Comments
 (0)