Skip to content

[Request] Add possibility to set password hash #458

Closed
@TheAlgorythm

Description

@TheAlgorythm

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    RequestRequest for image modification or feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions