Merge trunk into feat/shared-httpd-symlink-guard (keep both module build stages and publish gates); fork-PR guard on the PR job [skip ci]

This commit is contained in:
shadowdao committed 2026-11-23 17:44:09 -08:00
commit eb817a2b6b
9 files changed
+1165

No files matched your search

+27
View File
@@ -76,6 +76,9 @@ jobs:
scripts/lsphp-abi-gate.sh \
scripts/tune-mpm.sh \
scripts/httpd-h2-md-gate.sh \
scripts/httpd-exec-surface-gate.sh \
scripts/tests/httpd-exec-surface-gate.test.sh \
scripts/tests/httpd-exec-surface-probes.test.sh \
scripts/tests/lsphp-info-probe.test.sh \
scripts/lsphp-repo-version.sh \
scripts/tests/lsphp-repo-version.test.sh \
@@ -92,9 +95,19 @@ jobs:
scripts/tests/lsphp-abi-gate.test.sh \
scripts/tests/lsphp-src-upload-progress.test.sh \
scripts/tests/whp-symlink-module.test.sh \
scripts/tests/whp-proxy-guard-module.test.sh \
.gitea/scripts/resolve-base-image.sh \
.gitea/scripts/plan-legs.sh
# shared-httpd tenant isolation (2026-11-22): the gate that strips cgid/lua/include/
# actions/dav/userdir, status/info, every proxy_* but fcgi/balancer, suexec/dbd/cache
# and the global SSI filter + cgi-bin ScriptAlias must be able to FAIL. Runs the gate
# in a throwaway stock-Alma httpd container (needs docker + dnf). Informational only:
# the image jobs do not `needs:` this job; the Dockerfile's own `gate check` is what
# stops a bad image from being published.
- name: shared-httpd exec-surface gate test
run: ./scripts/tests/httpd-exec-surface-gate.test.sh
- name: lsphp pin-resolve fixture test
run: ./scripts/tests/lsphp-pin-resolve.test.sh
@@ -1012,6 +1025,20 @@ jobs:
docker pull "$ref"
WHP_SYMTEST_REQUIRE=1 ./scripts/tests/whp-symlink-module.test.sh "$ref"
# Publish gate for mod_whp_proxy_guard: the live probe test against the
# amd64 image that was just pushed (pulled by digest). Fatal and before the
# arm64 build and the tag-assembly step, so a failed assertion (or a missing
# docker/image: WHP_PGTEST_REQUIRE=1 turns the local SKIP into a FAIL)
# publishes no tag. Only the untagged by-digest blob exists at that point.
- name: Probe test (mod_whp_proxy_guard, amd64 image by digest)
env:
AMD64_DIGEST: ${{ steps.amd64.outputs.digest }}
run: |
set -euo pipefail
ref="repo.anhonesthost.net/cloud-hosting-platform/shared-httpd@${AMD64_DIGEST}"
docker pull "$ref"
WHP_PGTEST_REQUIRE=1 ./scripts/tests/whp-proxy-guard-module.test.sh "$ref"
# arm64: best effort, built under QEMU on this same trusted x86 runner (no
# secret ever leaves it). Same Dockerfile, same build-args (incl. the php.net
# EXPECT_PHP_MIN gate, which runs `php -r` on the arm64 binary). Must never