[MDEV-31857] enable --ssl-verify-server-cert by default Created: 2023-08-05 Updated: 2024-02-08 Resolved: 2024-02-05 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | SSL |
| Fix Version/s: | 11.4.1 |
| Type: | New Feature | Priority: | Critical |
| Reporter: | Sergei Golubchik | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Preview_11.3 | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||
| Description |
|
The summary says it all, let's get a secure-by-default connection by enabling --ssl-verify-server-cert by default. |
| Comments |
| Comment by Daniel Lenski [ 2023-08-10 ] |
|
I wholeheartedly approve of this! Note that my PR mariadb-connector-c #225 already accomplishes two important related tasks:
|
| Comment by Sergei Golubchik [ 2023-08-21 ] |
|
Note that |
| Comment by Sergei Golubchik [ 2023-09-06 ] |
|
the most time consuming part was to fix mtr tests, as they mostly use passwordless accounts and that makes server cert validation to fail |
| Comment by Sergei Golubchik [ 2023-09-08 ] |
|
see |
| Comment by Oleksandr Byelkin [ 2023-09-12 ] |
|
OK to push |
| Comment by Sergei Golubchik [ 2023-09-15 ] |
|
To be more user-friendly in a typical passwordless test environment, mariadb cli, will disable --ssl-verify-server-cert if
It'll also print a warning in this case |
| Comment by Lena Startseva [ 2024-01-23 ] |
|
Testing done. Ok to push. |
| Comment by Inada Naoki [ 2024-02-08 ] |
|
`mysql_init()` now set `use_ssl=1` by default . Is this intended? It makes MariaDB close to MySQL behavior (ssl_mode=PREFERRED by default). But use_ssl by default makes difficult to prohibit plaintext downgrade. |