Details
Description
Monitoring and backups require authentication.
The healthcheck script as a executed within container is a perfect example. Having another password to manage on a privileged account is an additional maintaince burden. With unix_socket authentication this provides easy access for a user that will already have direct access to database files.
The security is documented in https://mariadb.com/kb/en/authentication-plugin-unix-socket/#is-it-secure
Add MARIADB_MYSQL_LOCALHOST_[USER,GRANTS] per https://github.com/MariaDB/mariadb-docker/commit/3805a68f295fb3adb93d1b4b9b8691498fb73267