Merge trunk into fix/local-dev-and-docroot-2026-11-23 [skip ci]
This commit is contained in:
commit
61c47bd55d
14 files changed
+2022
No files matched your search
@@ -77,6 +77,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,20 @@ 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-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
|
||||
|
||||
@@ -296,6 +310,10 @@ jobs:
|
||||
id: amd64
|
||||
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
|
||||
with:
|
||||
# Never trust a cache or a local image: fresh pull of the (digest-pinned)
|
||||
# base and no layer cache, whatever ran on this runner before.
|
||||
pull: true
|
||||
no-cache: true
|
||||
platforms: linux/amd64
|
||||
build-args: |
|
||||
PHPVER=${{ matrix.phpver }}
|
||||
@@ -316,6 +334,10 @@ jobs:
|
||||
timeout-minutes: 45
|
||||
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
|
||||
with:
|
||||
# Never trust a cache or a local image: fresh pull of the (digest-pinned)
|
||||
# base and no layer cache, whatever ran on this runner before.
|
||||
pull: true
|
||||
no-cache: true
|
||||
platforms: linux/arm64
|
||||
build-args: |
|
||||
PHPVER=${{ matrix.phpver }}
|
||||
@@ -337,6 +359,10 @@ jobs:
|
||||
timeout-minutes: 45
|
||||
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
|
||||
with:
|
||||
# Never trust a cache or a local image: fresh pull of the (digest-pinned)
|
||||
# base and no layer cache, whatever ran on this runner before.
|
||||
pull: true
|
||||
no-cache: true
|
||||
platforms: linux/arm64
|
||||
build-args: |
|
||||
PHPVER=${{ matrix.phpver }}
|
||||
@@ -492,6 +518,10 @@ jobs:
|
||||
id: amd64
|
||||
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
|
||||
with:
|
||||
# Never trust a cache or a local image: fresh pull of the (digest-pinned)
|
||||
# base and no layer cache, whatever ran on this runner before.
|
||||
pull: true
|
||||
no-cache: true
|
||||
file: ./Dockerfile.fpm
|
||||
platforms: linux/amd64
|
||||
build-args: |
|
||||
@@ -513,6 +543,10 @@ jobs:
|
||||
timeout-minutes: 45
|
||||
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
|
||||
with:
|
||||
# Never trust a cache or a local image: fresh pull of the (digest-pinned)
|
||||
# base and no layer cache, whatever ran on this runner before.
|
||||
pull: true
|
||||
no-cache: true
|
||||
file: ./Dockerfile.fpm
|
||||
platforms: linux/arm64
|
||||
build-args: |
|
||||
@@ -535,6 +569,10 @@ jobs:
|
||||
timeout-minutes: 45
|
||||
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
|
||||
with:
|
||||
# Never trust a cache or a local image: fresh pull of the (digest-pinned)
|
||||
# base and no layer cache, whatever ran on this runner before.
|
||||
pull: true
|
||||
no-cache: true
|
||||
file: ./Dockerfile.fpm
|
||||
platforms: linux/arm64
|
||||
build-args: |
|
||||
@@ -705,6 +743,10 @@ jobs:
|
||||
- name: Build and Push LiteSpeed Image
|
||||
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
|
||||
with:
|
||||
# Never trust a cache or a local image: fresh pull of the (digest-pinned)
|
||||
# base and no layer cache, whatever ran on this runner before.
|
||||
pull: true
|
||||
no-cache: true
|
||||
file: ./Dockerfile.litespeed
|
||||
platforms: linux/amd64
|
||||
push: true
|
||||
@@ -863,6 +905,10 @@ jobs:
|
||||
- name: Build and Push lsphp Image
|
||||
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
|
||||
with:
|
||||
# Never trust a cache or a local image: fresh pull of the (digest-pinned)
|
||||
# base and no layer cache, whatever ran on this runner before.
|
||||
pull: true
|
||||
no-cache: true
|
||||
file: ./Dockerfile.lsphp
|
||||
platforms: linux/amd64
|
||||
push: true
|
||||
@@ -964,6 +1010,10 @@ jobs:
|
||||
id: amd64
|
||||
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
|
||||
with:
|
||||
# Never trust a cache or a local image: fresh pull of the (digest-pinned)
|
||||
# base and no layer cache, whatever ran on this runner before.
|
||||
pull: true
|
||||
no-cache: true
|
||||
file: ./Dockerfile.shared-httpd
|
||||
platforms: linux/amd64
|
||||
build-args: |
|
||||
@@ -971,6 +1021,35 @@ 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_symlink: run the live probe test against the very
|
||||
# amd64 image that was just pushed (pulled by digest). The step is fatal and
|
||||
# sits before the arm64 build and the tag-assembly step, so a failed
|
||||
# assertion (or a missing docker/image: WHP_SYMTEST_REQUIRE=1 turns the
|
||||
# local SKIP into a FAIL) publishes no tag. Only the untagged by-digest
|
||||
# blob exists at this point, as after any other failed job.
|
||||
- name: Probe test (mod_whp_symlink, 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_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
|
||||
@@ -982,6 +1061,10 @@ jobs:
|
||||
timeout-minutes: 25
|
||||
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
|
||||
with:
|
||||
# Never trust a cache or a local image: fresh pull of the (digest-pinned)
|
||||
# base and no layer cache, whatever ran on this runner before.
|
||||
pull: true
|
||||
no-cache: true
|
||||
file: ./Dockerfile.shared-httpd
|
||||
platforms: linux/arm64
|
||||
build-args: |
|
||||
@@ -1001,6 +1084,10 @@ jobs:
|
||||
timeout-minutes: 25
|
||||
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
|
||||
with:
|
||||
# Never trust a cache or a local image: fresh pull of the (digest-pinned)
|
||||
# base and no layer cache, whatever ran on this runner before.
|
||||
pull: true
|
||||
no-cache: true
|
||||
file: ./Dockerfile.shared-httpd
|
||||
platforms: linux/arm64
|
||||
build-args: |
|
||||
@@ -1106,6 +1193,10 @@ jobs:
|
||||
- name: Build and Push Shared OLS Image
|
||||
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
|
||||
with:
|
||||
# Never trust a cache or a local image: fresh pull of the (digest-pinned)
|
||||
# base and no layer cache, whatever ran on this runner before.
|
||||
pull: true
|
||||
no-cache: true
|
||||
file: ./Dockerfile.shared-ols
|
||||
platforms: linux/amd64
|
||||
push: true
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
name: shared-httpd mod_whp_symlink PR check
|
||||
run-name: mod_whp_symlink probe test for ${{ gitea.actor }}
|
||||
|
||||
## Pull-request gate for the shared-httpd tenant-symlink module. build-push.yaml
|
||||
## only runs on trunk (and publishes); this builds the amd64 shared-httpd image
|
||||
## locally (nothing is pushed, no secrets) and runs the live probe test against
|
||||
## it. WHP_SYMTEST_REQUIRE=1: a missing docker/image or a failed assertion
|
||||
## 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
|
||||
## 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
|
||||
## reused by them. Repo setting (maintainer): require approval for PR workflows
|
||||
## from forks.
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- 'src/mod_whp_symlink/**'
|
||||
- 'configs/whp-symlink.conf'
|
||||
- 'Dockerfile.shared-httpd'
|
||||
- 'scripts/tests/whp-symlink-module.test.sh'
|
||||
- '.gitea/workflows/shared-httpd-symlink-pr.yaml'
|
||||
|
||||
jobs:
|
||||
Symlink-Module-Probe:
|
||||
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 40
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
# Runner images differ on whether they are root and whether sudo exists.
|
||||
- name: Install shellcheck
|
||||
run: |
|
||||
if ! command -v shellcheck >/dev/null 2>&1; then
|
||||
(apt-get update && apt-get install -y shellcheck) ||
|
||||
(sudo apt-get update && sudo apt-get install -y shellcheck)
|
||||
fi
|
||||
shellcheck --version
|
||||
|
||||
- name: Lint the probe test
|
||||
run: |
|
||||
bash -n scripts/tests/whp-symlink-module.test.sh
|
||||
shellcheck -S warning scripts/tests/whp-symlink-module.test.sh
|
||||
|
||||
- name: Build shared-httpd (amd64, local only, nothing pushed)
|
||||
env:
|
||||
TAG: shared-httpd:pr-probe-${{ gitea.run_id }}
|
||||
run: docker build --pull --no-cache -f Dockerfile.shared-httpd -t "$TAG" .
|
||||
|
||||
- name: Probe test (fails the job on any failed assertion)
|
||||
env:
|
||||
TAG: shared-httpd:pr-probe-${{ gitea.run_id }}
|
||||
run: WHP_SYMTEST_REQUIRE=1 ./scripts/tests/whp-symlink-module.test.sh "$TAG"
|
||||
|
||||
- name: Remove this run's image and containers
|
||||
if: always()
|
||||
env:
|
||||
TAG: shared-httpd:pr-probe-${{ gitea.run_id }}
|
||||
run: |
|
||||
docker ps -aq --filter "ancestor=$TAG" | xargs -r docker rm -f || true
|
||||
docker rmi -f "$TAG" || true
|
||||
Reference in new issue
Block a user