wodby/mariadb

best practice for deal with audit related config

terryzwt opened this issue · 3 comments

Hi,
Thanks for this great docker image, in our use case, we want to enable server_audit plugin, and setup custom config for audit config, such as server_audit_events, server_audit_incl_users, what is the best practice to do this task?

As I know, the my.cnf are generated by gotpl, and there is optional way to include custom config.

Thanks for help.

you can load the plugin via $MARIADB_PLUGIN_LOAD, as for the configuration - feel free to submit a PR for extra options

hi @csandanov
PR is here, please review:)
#38

That's not what I meant, you can always mount go template file for your own custom config. I meant that you can add optional server_audit configuration options that will be configured via env vars as the others