puppetlabs / puppetlabs-mysql

MySQL Puppet Module / Manifests + Types & Providers
Apache License 2.0
380 stars 790 forks source link

(CAT-1919) - Handle scenario when user input password in <anything-in-caps-with-alpha-numeric>*<alpha-numeric-40-chars-in-caps> #1634

Closed Ramesh7 closed 1 month ago

Ramesh7 commented 1 month ago

Summary

When the password is passed in <anything-in-caps-with-alpha-numeric>*<alpha-numeric-40-chars-in-caps> format with Sensitive then the current implementation fails with below error :

Error: Only mysql_native_password (*ABCD...XXX) hashes are supported.
Error: /Stage[main]/Main/Mysql_user[test1@127.0.0.1]/password_hash: change from [old password hash redacted] to [new password hash redacted] failed: Only mysql_native_password (*ABCD...XXX) hashes are supported.

This is because the mysql::password doesn't handle mentioned condition properly.

Checklist