Closed
Description
It would be nice if I could provide a MARIADB_ROOT_PASSWORD_HASH
and MARIADB_PASSWORD_HASH
.
This would greatly simplify credential management as a password hash isn't as critical as the password itself.
There is a corresponding MariaDB functionality: https://mariadb.com/kb/en/create-user/#identified-by-password-password_hash
https://github.com/MariaDB/mariadb-docker/blob/master/docker-entrypoint.sh#L353 could be extended with a case like
CREATE USER '$MARIADB_USER'@'%' IDENTIFIED BY PASSWORD '$userPasswordHashEscaped';
https://github.com/MariaDB/mariadb-docker/blob/master/docker-entrypoint.sh#L291 could be changed in the same way.