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
20 lines
1.1 KiB
INI
20 lines
1.1 KiB
INI
# Client defaults for the mariadb/mysql/mariadb-dump CLIs in this image.
|
|
#
|
|
# The MariaDB server runs in WHP's separate `mysql` container, reached over
|
|
# the docker bridge. An 11.x client defaults to "TLS required, verify the
|
|
# certificate": against a 10.11 server it fails with
|
|
# ERROR 2026: SSL is required, but the server does not support it
|
|
# and against an 11.x server with a passwordless account with "self-signed
|
|
# certificate". This image ships a 10.11 client today (no effect), but WP-CLI
|
|
# `wp db ...`, mysqldump and any client a customer adds would break the day the
|
|
# client series differs from the server's.
|
|
#
|
|
# ssl-verify-server-cert=0 (measured on mariadb:11.8 and 10.11.18 clients vs
|
|
# 10.11.18 and 11.8 servers) keeps TLS negotiated when the server offers it and
|
|
# stops the verification/"required" failure, so a customer who points the CLI at
|
|
# a remote TLS database is not downgraded to plaintext. A customer who wants
|
|
# verification passes --ssl-verify-server-cert or sets it in ~/.my.cnf (later
|
|
# files and the command line win).
|
|
[client]
|
|
ssl-verify-server-cert=0
|