quattor / configuration-modules-core

Node Configuration Manager Components for Everyone
www.quattor.org
Other
6 stars 54 forks source link

ncm-mysql: add an option to use encrypted user password #1661

Closed D3SX closed 1 week ago

D3SX commented 6 months ago

Add the possibility to store password in an encrypted way inside templates. The schema is modified (component_mysql_db_user and component_mysql_server_options types) to add a boolean option encrypted_adminpwd which is false by default.

When true, the password has to be set in its encrypted form. The easiest way to generate the encrypted password is the MySQL command select password('plop');

These modifications is fully backward compatible and could be use without changing anything in the templates.