-
-
Notifications
You must be signed in to change notification settings - Fork 540
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
Support caching_sha2_password
authentication method
#8496
Comments
+1 We're building MyDuck Server using the excellent |
This bit a new user who was using the latest MySQL from Homebrew. I think we need to do it very soon. |
We made some initial progress on this one this week. The first step was applying a refactoring to our vitess fork so that we could cleanly support multiple authentication methods. Those changes have been merged in, so now we can start testing the |
I noticed this issue while working on a similar challenge. We also forked Vitess for our project WeScale and had to implement the caching_sha2_password authentication method. While Vitess provides an excellent framework for MySQL wire protocol authentication, we found that its caching_sha2_password implementation doesn't handle the complete FullAuth flow that MySQL requires. We ended up implementing the full authentication sequence in our fork. If you're interested, you might want to take a look at how we approached this in WeScale. Just thought I'd share our experience in case it helps with your implementation. |
Thank you @earayu! This is very helpful. I noticed some issues with auth negotiation in the Vitess implementation, but I hadn't debugged through them yet. Thanks for sharing your implementation – this looks like it'll be a big help! I'll be digging into this today. |
We're making steady progress on support for The next step is enabling the The initial support will be opt-in, meaning: 1) you'll need to explicitly reference the Stay tuned for more updates. |
We're excited to announce that starting in version 1.44.2 Dolt now supports Support is initially opt-in, meaning customers can explicitly mention the I'm going to resolve this issue, since Dolt now supports
Please feel free to open a new issue with us or swing by our Discord if you have any problems or questions about using |
MySQL 8.4 (LTS) has deprecated, and MySQL 9.0 (innovation) has removed, support for the
mysql_native_password
authentication method. This is currently the only authentication mode supported by Dolt.Customers on MySQL 8.4 can start
mysqld
with the--mysql-native-password=ON
option to opt-in to re-enabling native password authentication, but it will not be available in future major releases of MySQL beyond 9.0.The first affected use case is replication – customers have to opt-in to native password support on the current LTS of MySQL for Dolt to be able to connect to it as a replication source (or vice versa, for MySQL to connect to Dolt as the replication source).
It seems likely that the
mysql
client, as well as MySQL connector libraries, will continue supporting the deprecated native password auth process for a while, but eventually they will follow and may be unable to connect to Dolt sql servers depending on how they are updated.The text was updated successfully, but these errors were encountered: