Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable support for caching_sha2_password auth #2787

Merged
merged 3 commits into from
Dec 11, 2024

Conversation

fulghum
Copy link
Contributor

@fulghum fulghum commented Dec 9, 2024

This change enables users configured with the caching_sha2_password auth plugin to authenticate to a running SQL server. The default authentication plugin is still mysql_native_password, but users can opt-in to caching_sha2_password by creating a user and explicitly specifying the auth plugin.

Note that the caching_sha2_password auth plugin requires running the SQL server with a certificate so that TLS connections can be established.

Depends on: dolthub/vitess#390

Related to: dolthub/dolt#8496

@fulghum fulghum force-pushed the fulghum/caching_sha2_password branch from 1d819d1 to fa42af6 Compare December 9, 2024 23:46
@fulghum fulghum force-pushed the fulghum/caching_sha2_password branch from fa42af6 to 9d7d612 Compare December 10, 2024 21:07
@fulghum fulghum marked this pull request as ready for review December 10, 2024 21:46
@fulghum fulghum requested a review from zachmu December 10, 2024 23:03
Copy link
Member

@zachmu zachmu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

sql/mysql_db/auth.go Show resolved Hide resolved
@fulghum fulghum merged commit 29900a6 into main Dec 11, 2024
8 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.

2 participants