Draft: support sha256_password authentication#397
Draft
t8y2 wants to merge 3 commits into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_