Compare commits

...
Author SHA1 Message Date
shadowdaoandClaude Opus 5.5 89547c395f mariadb client: ssl-verify-server-cert=0 drop-in (cac, cac-fpm)
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
2026-11-28 11:03:30 -08:00
jknappandClaude Opus 5.5 89aef8100b Merge pull request 'ci: run amd64 jobs on the ephemeral runners only' (#65) [skip ci]
Workflow-only change; [skip ci] so the merge does not rebuild/publish images.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0185ukXi4YX5FxJGqhi6qab6
2026-11-26 18:13:31 +00:00
jknappandClaude Opus 5.5 9608427a4c ci: run amd64 jobs on the ephemeral runners only
shared-httpd mod_whp_symlink PR check / Symlink-Module-Probe (pull_request) Successful in 1m20s
runs-on: ubuntu-latest -> runs-on: ephemeral. Only the per-job LXC runners
from gitea-ci-manager carry the `ephemeral` label, so jobs (and the secrets
they use) no longer land on the persistent instance runners shared with
other branches and repos.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0185ukXi4YX5FxJGqhi6qab6
2026-11-26 09:19:46 -08:00
jknapp a2c91c5d85 Merge pull request #64 exec-surface gate pipefail + probe 403 [skip ci]
[skip ci]
2026-11-24 18:50:43 +00:00
7 changed files with 36 additions and 13 deletions

No files matched your search

+1 -1
View File
@@ -37,7 +37,7 @@ jobs:
Attach-arm64:
# Only from trunk: the arm64 is built from the dispatched ref's Dockerfile.
if: github.ref == 'refs/heads/trunk'
runs-on: ubuntu-latest
runs-on: ephemeral
timeout-minutes: 90
steps:
- name: Checkout
+8 -8
View File
@@ -32,7 +32,7 @@ jobs:
# missing — see scripts/tests/lsphp-info-probe.test.sh for what went wrong
# and why it needed a test outside the image build to catch it.
Shell-Checks:
runs-on: ubuntu-latest
runs-on: ephemeral
steps:
- name: Checkout
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
@@ -166,7 +166,7 @@ jobs:
# job below takes its matrix from here and is skipped when its list is empty.
# Push events and an empty `only` input plan the full set, as before.
plan:
runs-on: ubuntu-latest
runs-on: ephemeral
timeout-minutes: 5
outputs:
cac: ${{ steps.plan.outputs.cac }}
@@ -188,7 +188,7 @@ jobs:
Build-and-Push:
needs: plan
if: needs.plan.outputs.cac != '[]'
runs-on: ubuntu-latest
runs-on: ephemeral
timeout-minutes: 130
strategy:
# One PHP version failing (e.g. an EOL stream) must not cancel the
@@ -396,7 +396,7 @@ jobs:
Build-FPM-Images:
needs: plan
if: needs.plan.outputs.cac_fpm != '[]'
runs-on: ubuntu-latest
runs-on: ephemeral
timeout-minutes: 130
strategy:
# One PHP version failing (e.g. an EOL stream) must not cancel the
@@ -607,7 +607,7 @@ jobs:
Build-LiteSpeed-Images:
needs: plan
if: needs.plan.outputs.cac_litespeed != '[]'
runs-on: ubuntu-latest
runs-on: ephemeral
# One place for the OLS base tag: digest lookup and build-args both read it.
# OLS_VERSION pinned to 1.8.4 (see the build step); Dockerfile default differs.
env:
@@ -769,7 +769,7 @@ jobs:
Build-LSPHP-Images:
needs: plan
if: needs.plan.outputs.cac_lsphp != '[]'
runs-on: ubuntu-latest
runs-on: ephemeral
# One place for the OLS base tag: digest lookup and build-args both read it.
# OLS_VERSION pinned to 1.8.4 (see the build step); Dockerfile default differs.
env:
@@ -929,7 +929,7 @@ jobs:
Build-Shared-httpd:
needs: plan
if: needs.plan.outputs.shared_httpd == 'true'
runs-on: ubuntu-latest
runs-on: ephemeral
timeout-minutes: 80
steps:
- name: Checkout
@@ -1115,7 +1115,7 @@ jobs:
Build-Shared-OLS:
needs: plan
if: needs.plan.outputs.shared_ols == 'true'
runs-on: ubuntu-latest
runs-on: ephemeral
# One place for the OLS base tag: digest lookup and build-args both read it.
env:
OLS_VERSION: "1.8.4"
+1 -1
View File
@@ -55,7 +55,7 @@ on:
jobs:
Build-lsphp-from-source:
runs-on: ubuntu-latest
runs-on: ephemeral
strategy:
fail-fast: false
matrix:
@@ -8,8 +8,8 @@ run-name: mod_whp_symlink probe test for ${{ gitea.actor }}
## fails the job. Run the same thing locally: docs/shared-httpd-symlink-module.md.
##
## Untrusted code: this runs PR-supplied Dockerfile/C source. Gitea has only the
## shared `ubuntu-latest` runners (no separate label for untrusted jobs), the same
## ones the publish jobs use, so this job is hardened instead: no secrets and no registry
## `ephemeral` runners (a fresh LXC per job, never reused), the same label as
## the publish jobs, so this job is hardened anyway: no secrets and no registry
## login, `--pull --no-cache`, a per-run image tag, and an `if: always()`
## cleanup. The publish builds (build-push.yaml) use their own fresh buildx
## builder with `pull: true` / `no-cache: true`, so nothing built here can be
@@ -27,7 +27,7 @@ on:
jobs:
Symlink-Module-Probe:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
runs-on: ephemeral
timeout-minutes: 40
steps:
- name: Checkout
+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