fix(shared-httpd): exec-surface gate pipefail scan (CI 6352) + probe test accepts guard 403 #64

Merged
jknapp merged 1 commits from fix/exec-surface-gate-pipefail-2026-11-24 into trunk 2026-11-24 18:50:45 +00:00
Owner

Fixes CI 6352 Shell-Checks (pipefail scan flagged scripts/httpd-exec-surface-gate.sh:131) and the 4 false FAILs from #62 review.

  1. Line 131: printf | grep -qE -> grep -qE <<<"$mods" (same behaviour).
  2. Probe test: ajp/ftp/scgi/uwsgi [P] probes accept the proxy guard's 403 (secure) or AH01144; other outcomes still fail.

Verified locally: shellcheck -S warning, bash -n, lsphp-info-probe.test.sh (35/1 -> 36/0), multiarch-workflow.test.py OK, probes vs published shared-httpd:latest (sha256:0a465e77...): old test 9 pass/4 FAIL, new 13 pass/0 fail.

Merge with [skip ci].

🤖 Generated with Claude Code

https://claude.ai/code/session_0185ukXi4YX5FxJGqhi6qab6

Fixes CI 6352 Shell-Checks (pipefail scan flagged scripts/httpd-exec-surface-gate.sh:131) and the 4 false FAILs from #62 review. 1. Line 131: `printf | grep -qE` -> `grep -qE <<<"$mods"` (same behaviour). 2. Probe test: ajp/ftp/scgi/uwsgi [P] probes accept the proxy guard's 403 (secure) or AH01144; other outcomes still fail. Verified locally: shellcheck -S warning, bash -n, lsphp-info-probe.test.sh (35/1 -> 36/0), multiarch-workflow.test.py OK, probes vs published shared-httpd:latest (sha256:0a465e77...): old test 9 pass/4 FAIL, new 13 pass/0 fail. Merge with [skip ci]. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_0185ukXi4YX5FxJGqhi6qab6
jknapp added 1 commit 2026-11-24 18:50:36 +00:00
- httpd-exec-surface-gate.sh:131: printf|grep -q under pipefail replaced by a
  here-string grep; same match, no second exit status for pipefail to prefer.
- httpd-exec-surface-probes.test.sh: the ajp/ftp/scgi/uwsgi [P] probes now accept
  the proxy guard's 403 (secure, refused before handler lookup) as well as the
  AH01144 log line; any other outcome (502/503/200) still fails.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0185ukXi4YX5FxJGqhi6qab6
Author
Owner

Self-review: 2 small edits, no behaviour change in the gate (here-string vs printf pipe, identical match). Probe relaxation only accepts exactly HTTP 403 or AH01144 for ajp/ftp/scgi/uwsgi; 502/503/200 or any proxy attempt still fails. The other 9 probes are untouched and already assert the 403 outcomes. Local results in the PR body. Merging with [skip ci] so no images publish.

Self-review: 2 small edits, no behaviour change in the gate (here-string vs printf pipe, identical match). Probe relaxation only accepts exactly HTTP 403 or AH01144 for ajp/ftp/scgi/uwsgi; 502/503/200 or any proxy attempt still fails. The other 9 probes are untouched and already assert the 403 outcomes. Local results in the PR body. Merging with [skip ci] so no images publish.
jknapp merged commit a2c91c5d85 into trunk 2026-11-24 18:50:45 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: cloud-hosting-platform/cloud-apache-container#64