Skip to content

fix(mysql): handle empty passwords during authentication switches. - #4493

Merged
abonander merged 1 commit into
transact-rs:mainfrom
lmont19:fix/mysql-empty-password-4482
Oct 31, 2026
Merged

abonander merged 1 commit into
transact-rs:mainfrom
lmont19:fix/mysql-empty-password-4482

Conversation

@lmont19

@lmont19 lmont19 commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Fixes #4482

This is a big fix to address empty password during authentication plugin switches for MYSQL. the AuthPlugin scramble method calculates a cryptographic result without checking if the password is empty.

This is not a breaking change. It only allows passwordless connections that previously failed. It does not change the public API.

@abonander
abonander merged commit 7908fe7 into transact-rs:main Oct 31, 2026
147 checks passed
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.

MySQL: a user without a password is refused when the server switches the auth plugin (empty password scrambled)

2 participants