Skip to content

fix: expose encrypt_password in Proxysql::User type alias - #255

Open
mailankitkm wants to merge 2 commits into
voxpupuli:masterfrom
mailankitkm:fix/add-encrypt-password-to-user-type
Open

fix: expose encrypt_password in Proxysql::User type alias#255
mailankitkm wants to merge 2 commits into
voxpupuli:masterfrom
mailankitkm:fix/add-encrypt-password-to-user-type

Conversation

@mailankitkm

Copy link
Copy Markdown

The proxy_mysql_user Ruby type already supports the encrypt_password parameter (lib/puppet/type/proxy_mysql_user.rb), which skips SHA1 hashing when set to false. However, the Proxysql::User Puppet type alias (types/user.pp) did not include it, causing Puppet catalog compilation to fail with "unrecognized key 'encrypt_password'" when the parameter was set via Hiera.

This is needed for users with caching_sha2_password hashes (prefixed $A$005$), which are already hashed by MySQL and must not be re-hashed using the mysql_native_password SHA1 logic. Without encrypt_password: false, ProxySQL would store a double-hashed value and all frontend authentication for such users would fail.

Pull Request (PR) description

This Pull Request (PR) fixes the following issues

mailankitkm and others added 2 commits August 2, 2026 18:14
The proxy_mysql_user Ruby type already supports the encrypt_password
parameter (lib/puppet/type/proxy_mysql_user.rb), which skips SHA1
hashing when set to false. However, the Proxysql::User Puppet type
alias (types/user.pp) did not include it, causing Puppet catalog
compilation to fail with "unrecognized key 'encrypt_password'" when
the parameter was set via Hiera.

This is needed for users with caching_sha2_password hashes (prefixed
$A$005$), which are already hashed by MySQL and must not be re-hashed
using the mysql_native_password SHA1 logic. Without encrypt_password:
false, ProxySQL would store a double-hashed value and all frontend
authentication for such users would fail.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant