Skip to content

[4.x] Fix caching_sha2_password auth over Unix domain sockets - #1759

Merged
tsegismont merged 1 commit into
4.xfrom
backport/1757-to-4.x
Oct 20, 2026
Merged

tsegismont merged 1 commit into
4.xfrom
backport/1757-to-4.x

Conversation

@tsegismont

Copy link
Copy Markdown
Member

Backport of #1757 to 4.x
Cherry-picked commit: 58117cc

@tsegismont tsegismont added this to the 4.5.36 milestone Oct 20, 2026
MySQL treats Unix domain socket connections as secure, expecting clear-text password exchange during full authentication.

The client only checked `isSsl()` in `AuthenticationMySQLCommandBase`, falling back to RSA key exchange which MySQL 8.4.13+ no longer accepts over secure connections (Bug #39883040).

Added `isUsingDomainSocket()` to `MySQLSocketConnection` to check the actual socket transport, so clear-text passwords are sent over domain sockets, consistent with SSL connections.

Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
(cherry picked from commit 58117cc)
Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
@tsegismont
tsegismont merged commit 632d69e into 4.x Oct 20, 2026
18 checks passed
@tsegismont
tsegismont deleted the backport/1757-to-4.x branch October 20, 2026 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant