Repository navigation
Commit e0783e6
committed
Skip server certificate verification for MariaDB connections
MariaDB 11.4 enables TLS server certificate verification by default. WP-CLI
connects the same way WordPress does, which does not verify the server
certificate. Against MariaDB's auto-generated self-signed certificate,
verification either prints a warning to STDERR that it disabled itself for the
passwordless login or fails the connection outright. The warning fails the Behat
tests on MariaDB and is noise for users running `wp db` commands.
Explicitly pass `--skip-ssl-verify-server-cert` on MariaDB to keep the previous
(pre-11.4) behaviour, unless the user opted into verification. Enabling
verification instead would force certificate checks that break self-signed or
untrusted certificates and older clients, so it is not the right default.
Both `ssl-verify-server-cert` and its `skip-` variant are added to the allowed
MySQL client options so the behaviour can be overridden per invocation.1 parent 8a9a130 commit e0783e6
2 files changed
Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1988 | 1988 | | |
1989 | 1989 | | |
1990 | 1990 | | |
| 1991 | + | |
| 1992 | + | |
| 1993 | + | |
| 1994 | + | |
| 1995 | + | |
| 1996 | + | |
| 1997 | + | |
| 1998 | + | |
| 1999 | + | |
| 2000 | + | |
| 2001 | + | |
1991 | 2002 | | |
1992 | 2003 | | |
1993 | 2004 | | |
| |||
2232 | 2243 | | |
2233 | 2244 | | |
2234 | 2245 | | |
| 2246 | + | |
2235 | 2247 | | |
2236 | 2248 | | |
2237 | 2249 | | |
| |||
2243 | 2255 | | |
2244 | 2256 | | |
2245 | 2257 | | |
| 2258 | + | |
2246 | 2259 | | |
2247 | 2260 | | |
2248 | 2261 | | |
| |||
0 commit comments