Skip to content

Draft: support sha256_password authentication#397

Draft
t8y2 wants to merge 3 commits into
blackbeam:masterfrom
t8y2:dbx/sha256-password-auth
Draft

Draft: support sha256_password authentication#397
t8y2 wants to merge 3 commits into
blackbeam:masterfrom
t8y2:dbx/sha256-password-auth

Conversation

@t8y2
Copy link
Copy Markdown

@t8y2 t8y2 commented May 27, 2026

Draft follow-up to blackbeam/rust_mysql_common#186.\n\nThis teaches the async client to handle the deprecated sha256_password auth plugin explicitly:\n\n- TLS/socket connections send the null-terminated password over the secure channel.\n- Plain TCP requests the server RSA key and sends the OAEP-encrypted password.\n- Initial handshake and auth switch paths both route through the plugin-specific flow.\n\nThis is draft because it depends on mysql_common exposing AuthPlugin::Sha256Password and then mysql_async updating to that released dependency.\n\nLocal validation used a Cargo patch to the companion mysql_common branch:\n\n- cargo test --manifest-path /tmp/dbx-dep-forks/mysql_async/Cargo.toml --config 'patch.crates-io.mysql_common.path="/tmp/dbx-dep-forks/rust_mysql_common"' sha256_password_

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.

3 participants