Bug #110161 | Old clients (non-ssl) cannot connect through MySQL Router | ||
---|---|---|---|
Submitted: | 22 Feb 2023 6:33 | Modified: | 19 Aug 2023 6:21 |
Reporter: | Aleksei Faians | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Router | Severity: | S2 (Serious) |
Version: | 8.0.32 | OS: | Linux |
Assigned to: | CPU Architecture: | x86 |
[22 Feb 2023 6:33]
Aleksei Faians
[22 Feb 2023 20:08]
MySQL Verification Team
Hi, Thank you for the report. Can you share a list of those "old" clients you had issues with? thanks
[23 Feb 2023 8:49]
Aleksei Faians
Client list: 1. `mysql` from MariaDB 10.6.8 2. A very old Perl script (Perl 5.16.2, compiled on RHEL6 from sources on 26 November 2012) The Perl script doesn't work even with both client_ssl_mode and server_ssl_mode set to PREFERRED, most probably because it doesn't support modern authentication scheme.
[23 Feb 2023 9:25]
Frederic Descamps
Hello Aleksei, Could you provide the authentication method used by the user(s) and the error you get on the client when the connection fails ? Thank you.
[23 Feb 2023 9:59]
Aleksei Faians
Let's assume that MySQL Router is running on localhost with default settings and connected to a InnoDB cluster node with IP address 10.41.16.14. 1. MySQL> create user 'test'@'%' identified with mysql_native_password by 'test'; 2. $ MYSQL_PWD=test mysql -h 127.0.0.1 -P 6446 -u test # connection fails 3. $ MYSQL_PWD=test mysql -h 10.41.16.14 -P 3306 -u test # connection establishes Expected result on step 2: connection establishes Actual result on step 2: ERROR 2061 (HY000): Couldn't read RSA public key from server
[23 Feb 2023 12:04]
Jan Kneschke
Posted by developer: Looks like a duplicate of Bug#35015376
[22 Mar 2023 12:52]
Edward Gilmore
Posted by developer: Added the following note to the MySQL Router 8.0.33 release notes: It was not possible to connect through MySQL Router using older PHP clients if the MySQL account used caching_sha2_password and MySQL Router was configured to use PASSTHROUGH/AS_CLIENT or PREFERRED/AS_CLIENT options.
[19 Aug 2023 6:21]
Aleksei Faians
This bug is back in MySQL Router 8.0.34. Please reopen.
[24 Aug 2023 6:06]
Jan Kneschke
Posted by developer: Reopened as Bug#112167