Adds configs/whp-mariadb-client.cnf installed as /etc/my.cnf.d/zz-whp-client.cnf in Dockerfile (cac) and Dockerfile.fpm (cac-fpm): [client] ssl-verify-server-cert=0. The lsphp/litespeed/shared images install no MariaDB client and are unchanged.
Why
Lab Phase B (B-F4) / F5: an 11.x client against the 10.11 WHP mysql container fails with ERROR 2026: SSL is required, but the server does not support it (stock wordpress:cli shows it); an 11.x client against 11.x with a passwordless account fails self-signed certificate. These images ship the 10.11 client today, so this changes nothing now; it removes the client/server series mismatch as a failure mode.
Why ssl-verify-server-cert=0 here and not ssl=0
Measured on mariadb:11.8 and 10.11 clients against mariadb:10.11.18 and mariadb:11.8 servers (docker, bridge IPs), root and passwordless accounts: all 8 combinations connect. It keeps TLS negotiated where the server offers it, so a customer pointing the CLI at a remote TLS database is not silently downgraded to plaintext (ssl=0 would do that). Later files, ~/.my.cnf and the command line override it.
Measured (11.8 client, drop-in in /etc/mysql/conf.d)
server
without
with
10.11.18
ERROR 2026 SSL is required
OK
11.8.10
OK
OK
almalinux/10-base + dnf install mariadb (10.11.19 client, the image's base): OK against both servers with and without the file (the file is inert for 10.11). The full image was not built.
Companion: WHP PR for the host-side option files (linked from there).
## What
Adds `configs/whp-mariadb-client.cnf` installed as `/etc/my.cnf.d/zz-whp-client.cnf` in `Dockerfile` (cac) and `Dockerfile.fpm` (cac-fpm): `[client] ssl-verify-server-cert=0`. The lsphp/litespeed/shared images install no MariaDB client and are unchanged.
## Why
Lab Phase B (B-F4) / F5: an 11.x client against the 10.11 WHP `mysql` container fails with `ERROR 2026: SSL is required, but the server does not support it` (stock `wordpress:cli` shows it); an 11.x client against 11.x with a passwordless account fails `self-signed certificate`. These images ship the 10.11 client today, so this changes nothing now; it removes the client/server series mismatch as a failure mode.
## Why ssl-verify-server-cert=0 here and not ssl=0
Measured on `mariadb:11.8` and 10.11 clients against `mariadb:10.11.18` and `mariadb:11.8` servers (docker, bridge IPs), root and passwordless accounts: all 8 combinations connect. It keeps TLS negotiated where the server offers it, so a customer pointing the CLI at a remote TLS database is not silently downgraded to plaintext (ssl=0 would do that). Later files, ~/.my.cnf and the command line override it.
## Measured (11.8 client, drop-in in /etc/mysql/conf.d)
| server | without | with |
|---|---|---|
| 10.11.18 | ERROR 2026 SSL is required | OK |
| 11.8.10 | OK | OK |
almalinux/10-base + `dnf install mariadb` (10.11.19 client, the image's base): OK against both servers with and without the file (the file is inert for 10.11). The full image was not built.
Companion: WHP PR for the host-side option files (linked from there).
Do not merge.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_0185ukXi4YX5FxJGqhi6qab6
An 11.x client fails against a 10.11 server ("ERROR 2026: SSL is required,
but the server does not support it") and against 11.x with a passwordless
account ("self-signed certificate"). Ship /etc/my.cnf.d/zz-whp-client.cnf with
[client] ssl-verify-server-cert=0 so the client series does not matter; TLS is
still negotiated where the server offers it. Measured: mariadb:11.8 client
with the drop-in vs 10.11.18 and 11.8 servers, 10.11 client vs both.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0185ukXi4YX5FxJGqhi6qab6
Independent review: do not merge without Josh's OK — this changes customer-facing TLS behaviour (MEDIUM/HIGH when an 11.x client lands).
What the file does: /etc/my.cnf.d/zz-whp-client.cnf with [client] ssl-verify-server-cert=0 is read by every libmariadb/CLI client in the customer container (mysql/mariadb, mysqldump, wp db ... which shells to the CLI, any customer tool that reads the default option files). It is not scoped to WHP's mysql container: MariaDB option files have no per-host sections.
Today: no effect. dnf install mariadb runs before configs/mariadb.repo is copied, so the image ships the AlmaLinux 10.11 client, which does not verify by default. PHP (mysqlnd) never reads my.cnf, so sites themselves are unaffected either way.
The day the client becomes 11.x (note configs/mariadb.repo already points at the 11.4 repo; any reordering of the Dockerfile or a base-image change picks it up): 11.x clients verify the server certificate by default. With this file, a customer connecting from their container to an external database (managed DB, another provider) silently loses certificate verification. And because the measured "11.8 client vs 10.11 server: OK" only works by falling back, TLS also becomes opportunistic: a MITM can strip it. That is exactly the protection the 11.x default adds, removed for every customer without them knowing. The comment's "a customer ... is not downgraded to plaintext" holds only against a passive attacker.
A customer can re-enable it with --ssl-verify-server-cert or ~/.my.cnf, but nobody will know they need to.
Recommendation (no change pushed; needs Josh's call):
Drop this PR. Keep the image client on the same series as the server: pin configs/mariadb.repo to the series the fleet runs (or remove it, since nothing installs from it), and move the image client to 11.x only after the servers are on 11.8. 11.8 client vs 11.8 server with a password account verifies via zero-config TLS (measured in the lab), so no option is needed then. Customer accounts always have passwords, so the passwordless case does not apply to customers.
If something has to ship before then, scope it to WHP's server only. For example, a wrapper or WP-CLI config that adds --skip-ssl / --ssl-verify-server-cert=0 only when the host is the WHP mysql container. Never as an image-wide [client] default.
Not merged.
Independent review: **do not merge without Josh's OK — this changes customer-facing TLS behaviour (MEDIUM/HIGH when an 11.x client lands).**
What the file does: `/etc/my.cnf.d/zz-whp-client.cnf` with `[client] ssl-verify-server-cert=0` is read by every libmariadb/CLI client in the customer container (`mysql`/`mariadb`, `mysqldump`, `wp db ...` which shells to the CLI, any customer tool that reads the default option files). It is not scoped to WHP's `mysql` container: MariaDB option files have no per-host sections.
- **Today:** no effect. `dnf install mariadb` runs before `configs/mariadb.repo` is copied, so the image ships the AlmaLinux 10.11 client, which does not verify by default. PHP (mysqlnd) never reads my.cnf, so sites themselves are unaffected either way.
- **The day the client becomes 11.x** (note `configs/mariadb.repo` already points at the **11.4** repo; any reordering of the Dockerfile or a base-image change picks it up): 11.x clients verify the server certificate by default. With this file, a customer connecting from their container to an **external** database (managed DB, another provider) silently loses certificate verification. And because the measured "11.8 client vs 10.11 server: OK" only works by falling back, TLS also becomes opportunistic: a MITM can strip it. That is exactly the protection the 11.x default adds, removed for every customer without them knowing. The comment's "a customer ... is not downgraded to plaintext" holds only against a passive attacker.
- A customer can re-enable it with `--ssl-verify-server-cert` or `~/.my.cnf`, but nobody will know they need to.
Recommendation (no change pushed; needs Josh's call):
1. Drop this PR. Keep the image client on the **same series as the server**: pin `configs/mariadb.repo` to the series the fleet runs (or remove it, since nothing installs from it), and move the image client to 11.x only after the servers are on 11.8. 11.8 client vs 11.8 server with a password account verifies via zero-config TLS (measured in the lab), so no option is needed then. Customer accounts always have passwords, so the passwordless case does not apply to customers.
2. If something has to ship before then, scope it to WHP's server only. For example, a wrapper or WP-CLI config that adds `--skip-ssl` / `--ssl-verify-server-cert=0` only when the host is the WHP `mysql` container. Never as an image-wide `[client]` default.
Not merged.
Decision (Josh, 2026-11-28 21:43 PST): merge as is. The trade-off was raised in the independent review: once an 11.x client ships in this image, CLI connections to external TLS databases no longer verify the server certificate by default; customers can opt back in with --ssl-verify-server-cert or ~/.my.cnf. It does not affect PHP (mysqlnd does not read my.cnf) or Node drivers. Accepted, so that CLI tools like WP-CLI wp db and mysqldump keep working whatever the client/server series.
Decision (Josh, 2026-11-28 21:43 PST): merge as is. The trade-off was raised in the independent review: once an 11.x client ships in this image, CLI connections to external TLS databases no longer verify the server certificate by default; customers can opt back in with `--ssl-verify-server-cert` or `~/.my.cnf`. It does not affect PHP (mysqlnd does not read my.cnf) or Node drivers. Accepted, so that CLI tools like WP-CLI `wp db` and mysqldump keep working whatever the client/server series.
jknapp
merged commit a971412243 into trunk2026-11-29 05:43:46 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
What
Adds
configs/whp-mariadb-client.cnfinstalled as/etc/my.cnf.d/zz-whp-client.cnfinDockerfile(cac) andDockerfile.fpm(cac-fpm):[client] ssl-verify-server-cert=0. The lsphp/litespeed/shared images install no MariaDB client and are unchanged.Why
Lab Phase B (B-F4) / F5: an 11.x client against the 10.11 WHP
mysqlcontainer fails withERROR 2026: SSL is required, but the server does not support it(stockwordpress:clishows it); an 11.x client against 11.x with a passwordless account failsself-signed certificate. These images ship the 10.11 client today, so this changes nothing now; it removes the client/server series mismatch as a failure mode.Why ssl-verify-server-cert=0 here and not ssl=0
Measured on
mariadb:11.8and 10.11 clients againstmariadb:10.11.18andmariadb:11.8servers (docker, bridge IPs), root and passwordless accounts: all 8 combinations connect. It keeps TLS negotiated where the server offers it, so a customer pointing the CLI at a remote TLS database is not silently downgraded to plaintext (ssl=0 would do that). Later files, ~/.my.cnf and the command line override it.Measured (11.8 client, drop-in in /etc/mysql/conf.d)
dnf install mariadb(10.11.19 client, the image's base): OK against both servers with and without the file (the file is inert for 10.11). The full image was not built.Companion: WHP PR for the host-side option files (linked from there).
Do not merge.
🤖 Generated with Claude Code
https://claude.ai/code/session_0185ukXi4YX5FxJGqhi6qab6
An 11.x client fails against a 10.11 server ("ERROR 2026: SSL is required, but the server does not support it") and against 11.x with a passwordless account ("self-signed certificate"). Ship /etc/my.cnf.d/zz-whp-client.cnf with [client] ssl-verify-server-cert=0 so the client series does not matter; TLS is still negotiated where the server offers it. Measured: mariadb:11.8 client with the drop-in vs 10.11.18 and 11.8 servers, 10.11 client vs both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0185ukXi4YX5FxJGqhi6qab6Independent review: do not merge without Josh's OK — this changes customer-facing TLS behaviour (MEDIUM/HIGH when an 11.x client lands).
What the file does:
/etc/my.cnf.d/zz-whp-client.cnfwith[client] ssl-verify-server-cert=0is read by every libmariadb/CLI client in the customer container (mysql/mariadb,mysqldump,wp db ...which shells to the CLI, any customer tool that reads the default option files). It is not scoped to WHP'smysqlcontainer: MariaDB option files have no per-host sections.dnf install mariadbruns beforeconfigs/mariadb.repois copied, so the image ships the AlmaLinux 10.11 client, which does not verify by default. PHP (mysqlnd) never reads my.cnf, so sites themselves are unaffected either way.configs/mariadb.repoalready points at the 11.4 repo; any reordering of the Dockerfile or a base-image change picks it up): 11.x clients verify the server certificate by default. With this file, a customer connecting from their container to an external database (managed DB, another provider) silently loses certificate verification. And because the measured "11.8 client vs 10.11 server: OK" only works by falling back, TLS also becomes opportunistic: a MITM can strip it. That is exactly the protection the 11.x default adds, removed for every customer without them knowing. The comment's "a customer ... is not downgraded to plaintext" holds only against a passive attacker.--ssl-verify-server-certor~/.my.cnf, but nobody will know they need to.Recommendation (no change pushed; needs Josh's call):
configs/mariadb.repoto the series the fleet runs (or remove it, since nothing installs from it), and move the image client to 11.x only after the servers are on 11.8. 11.8 client vs 11.8 server with a password account verifies via zero-config TLS (measured in the lab), so no option is needed then. Customer accounts always have passwords, so the passwordless case does not apply to customers.--skip-ssl/--ssl-verify-server-cert=0only when the host is the WHPmysqlcontainer. Never as an image-wide[client]default.Not merged.
Decision (Josh, 2026-11-28 21:43 PST): merge as is. The trade-off was raised in the independent review: once an 11.x client ships in this image, CLI connections to external TLS databases no longer verify the server certificate by default; customers can opt back in with
--ssl-verify-server-certor~/.my.cnf. It does not affect PHP (mysqlnd does not read my.cnf) or Node drivers. Accepted, so that CLI tools like WP-CLIwp dband mysqldump keep working whatever the client/server series.