mariadb client: ssl-verify-server-cert=0 drop-in (cac, cac-fpm) #66

Merged
jknapp merged 1 commits from fix/client-ssl-verify-off into trunk 2026-11-29 05:43:46 +00:00
3 changed files with 23 additions and 0 deletions

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/zz-php2shell-mitigation.ini /etc/php.d/zz-php2shell-mitigation.ini
COPY ./configs/phpinfo.php /var/www/html/ COPY ./configs/phpinfo.php /var/www/html/
COPY ./configs/mariadb.repo /etc/yum.repos.d/ 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. # 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 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/ 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. # 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/zz-php2shell-mitigation.ini /etc/php.d/zz-php2shell-mitigation.ini
COPY ./configs/mariadb.repo /etc/yum.repos.d/ 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. # 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 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