review(mod_whp_proxy_guard): None clears scrub/deny lists; probe test is a CI publish gate
Independent review of PR #62 (adversarial probes, combined #59+#60+#61+#62 image): - WHPProxyScrubEnv None / WHPDenyHandler None now empty the list set so far in that context, as WHPProxyAllow None already did. Before, None was only skipped, so a later file (the WHP drop-in) could not switch an image default off at server scope. - build-push.yaml: shellcheck the probe test and run it as a fatal publish gate against the amd64 shared-httpd image by digest (before arm64 and tag assembly), like #60 does for mod_whp_symlink. WHP_PGTEST_REQUIRE=1 turns the local SKIPs (no docker / no image) into failures there. - probe test: `<If><If> SetHandler proxy:http://` accepts "not proxied" (static served) as well as 403: on the #59 image mod_proxy_http is gone and mod_proxy cannot canonicalise the URL; the SSRF-target hit counter still asserts that nothing reached the target. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0185ukXi4YX5FxJGqhi6qab6
This commit is contained in:
1 parent
5f8597363e
commit
c83e4d847f
3 files changed
+32
-5
No files matched your search
@@ -91,6 +91,7 @@ jobs:
|
||||
scripts/tests/index-platforms.test.sh \
|
||||
scripts/tests/lsphp-abi-gate.test.sh \
|
||||
scripts/tests/lsphp-src-upload-progress.test.sh \
|
||||
scripts/tests/whp-proxy-guard-module.test.sh \
|
||||
.gitea/scripts/resolve-base-image.sh \
|
||||
.gitea/scripts/plan-legs.sh
|
||||
|
||||
@@ -960,6 +961,20 @@ jobs:
|
||||
PKG_CACHE=${{ steps.pkgcache.outputs.url }}
|
||||
outputs: type=image,name=repo.anhonesthost.net/cloud-hosting-platform/shared-httpd,push-by-digest=true,name-canonical=true,push=true
|
||||
|
||||
# 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
|
||||
|
||||
Reference in new issue
Block a user