Merge pull request 'mariadb client: ssl-verify-server-cert=0 drop-in (cac, cac-fpm)' (#66) from fix/client-ssl-verify-off into trunk
Cloud Apache Container / plan (push) Successful in 9s
Cloud Apache Container / Shell-Checks (push) Successful in 1m52s
Cloud Apache Container / Build-and-Push (82) (push) Failing after 3m38s
Cloud Apache Container / Build-Shared-httpd (push) Failing after 3m15s
Cloud Apache Container / Build-LiteSpeed-Images (82) (push) Successful in 4m53s
Cloud Apache Container / Build-Shared-OLS (push) Successful in 4m0s
Cloud Apache Container / Build-LSPHP-Images (82) (push) Successful in 5m26s
Cloud Apache Container / Build-LiteSpeed-Images (83) (push) Successful in 3m48s
Cloud Apache Container / Build-LiteSpeed-Images (84) (push) Failing after 3m36s
Cloud Apache Container / Build-LiteSpeed-Images (85) (push) Failing after 3m55s
Cloud Apache Container / Build-LSPHP-Images (83) (push) Failing after 3m53s
Cloud Apache Container / Build-LSPHP-Images (85) (push) Failing after 3m53s
Cloud Apache Container / Build-FPM-Images (82) (push) Successful in 9m34s
Cloud Apache Container / Build-FPM-Images (83) (push) Successful in 9m33s
Cloud Apache Container / Build-and-Push (84) (push) Failing after 3m26s
Cloud Apache Container / Build-and-Push (83) (push) Successful in 16m11s
Cloud Apache Container / Build-and-Push (85) (push) Failing after 3m5s
Cloud Apache Container / Build-FPM-Images (84) (push) Successful in 8m58s
Cloud Apache Container / Build-FPM-Images (85) (push) Successful in 9m22s
Cloud Apache Container / Build-and-Push (86) (push) Failing after 3m16s
Cloud Apache Container / Build-FPM-Images (86) (push) Successful in 10m0s
Cloud Apache Container / Build-LSPHP-Images (84) (push) Failing after 1h14m34s

This commit was merged in pull request #66.
This commit is contained in:
jknapp committed 2026-11-29 05:43:45 +00:00
commit a971412243
3 files changed
+23

No files matched your search

+2
View File
@@ -80,6 +80,8 @@ COPY ./configs/prod-php.ini /etc/php.ini
COPY ./configs/zz-php2shell-mitigation.ini /etc/php.d/zz-php2shell-mitigation.ini
COPY ./configs/phpinfo.php /var/www/html/
COPY ./configs/mariadb.repo /etc/yum.repos.d/
# MariaDB client defaults: connect to the WHP mysql container whatever the client/server series.
COPY ./configs/whp-mariadb-client.cnf /etc/my.cnf.d/zz-whp-client.cnf
# mirror.mariadb.org names the arch dir amd64/aarch64 (not $basearch); amd64 result is byte-identical.
RUN sed -i "s/rhel\$releasever-amd64/rhel\$releasever-$(uname -m | sed s/x86_64/amd64/)/" /etc/yum.repos.d/mariadb.repo
COPY ./configs/index.php /var/www/html/
+2
View File
@@ -77,6 +77,8 @@ COPY ./configs/prod-php.ini /etc/php.ini
# all images ship PHP >= 8.2.35 / 8.3.36 / 8.4.27 / 8.5.12.
COPY ./configs/zz-php2shell-mitigation.ini /etc/php.d/zz-php2shell-mitigation.ini
COPY ./configs/mariadb.repo /etc/yum.repos.d/
# MariaDB client defaults: connect to the WHP mysql container whatever the client/server series.
COPY ./configs/whp-mariadb-client.cnf /etc/my.cnf.d/zz-whp-client.cnf
# mirror.mariadb.org names the arch dir amd64/aarch64 (not $basearch); amd64 result is byte-identical.
RUN sed -i "s/rhel\$releasever-amd64/rhel\$releasever-$(uname -m | sed s/x86_64/amd64/)/" /etc/yum.repos.d/mariadb.repo
+19
View File
@@ -0,0 +1,19 @@
# 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