SSL mode seems bugged with mysql #5111
Replies: 1 comment 4 replies
|
@DorianCoding I converted this to a discussion as this affects MariaDB which is not officially supported by diesel yet. See #1882 for adding support for MariaDB. As long as such support doesn't officially exist we don't treat missing/broken features like this a bug that should be tracked in an issue, but as a compatibility problem on MariaDB's side as their "mysql" compatibility doesn't actually work like the official MySQL. We still accept patches to fix such behaviour but the at least I won't spend time on working on fixes for such issues. That written this particular problem occurs as libmariadb requires to specify the SSL setup in a different way using different flags that libmysqlclient. The current implementation only supports libmysqlclient in that manner. You can find the relevant code here: diesel/diesel/src/mysql/connection/raw.rs Lines 210 to 252 in f8645bb In particular there is no Also consider filling this bug upstream (libmariadb, and possibly also in your distribution), as they both claim that libmariadb is a drop in replacement for libmysqlclient. |
Uh oh!
There was an error while loading. Please reload this page.
Rust Version
1.97.0
Diesel Version
2.3.10
Diesel Features
mysql
Database Version
mariadb from 11.8.8-MariaDB
Operating System Version
Debian 14 (Forky)
What happened?
With this script and using tcpdump, the traffic is not encrypted and if require_secure_transport is set on server, connection is rejected:
I got:
What did you expect to happen?
SSL connection working, even with --require_secure_transport=ON
Additional details
It does not work with preferred as well.
Steps to reproduce
Compile time error
No response
Checklist
I have already looked over the issue tracker and the discussion forum for similar possible closed issues.
This issue can be reproduced on Rust's stable channel. (Please submit the issue in the Rust issue tracker instead if that's not the case)
This issue can be reproduced without requiring a third party crate
All reactions