From db084c73b76a53ef651479c349648f1be10ab187 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20T=C3=BCchler?= Date: Sat, 24 Oct 2026 14:54:24 +0000 Subject: [PATCH 1/2] ci: separate public tests from trusted site deployment --- .github/workflows/site.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/site.yml b/.github/workflows/site.yml index e53d63b..a542c0d 100644 --- a/.github/workflows/site.yml +++ b/.github/workflows/site.yml @@ -13,10 +13,18 @@ permissions: jobs: test: - # The runner lives on VD-FW next to production keys: never run fork code there. + # Keep fork approval/guards; tests also run under an unprivileged account. if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository - runs-on: [self-hosted, Linux, X64, tuejon-ci] + runs-on: [self-hosted, Linux, X64, tuejon-ci, ci-public] steps: + - name: Verify runner isolation + run: | + test "$(id -un)" = ci-public + test -z "$(id -nG | tr ' ' '\n' | grep -E '^(sudo|docker)$' || true)" + test ! -r /home/vd/.ssh/id_ed25519 + test ! -r /run/docker.sock + ! sudo -n true 2>/dev/null + python3 -c 'import os; assert not os.access("/home/vd", os.R_OK | os.X_OK)' - uses: actions/checkout@v4 - name: Contract tests run: node --test 'tests/*.test.mjs' @@ -33,7 +41,8 @@ jobs: deploy: needs: test if: github.event_name == 'push' - runs-on: [self-hosted, Linux, X64, tuejon-ci] + # Only the trusted push job may access vd's restricted deployment key. + runs-on: [self-hosted, Linux, X64, tuejon-deploy] concurrency: group: webmcpify-at-deploy cancel-in-progress: false From 33c0e3356e21d43d0021ee46336ec6442fdf9cc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20T=C3=BCchler?= Date: Sat, 24 Oct 2026 15:08:34 +0000 Subject: [PATCH 2/2] ci: clarify deployment label trust limitation --- .github/workflows/site.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/site.yml b/.github/workflows/site.yml index a542c0d..a2c45bf 100644 --- a/.github/workflows/site.yml +++ b/.github/workflows/site.yml @@ -41,7 +41,8 @@ jobs: deploy: needs: test if: github.event_name == 'push' - # Only the trusted push job may access vd's restricted deployment key. + # Route the push deploy to vd's restricted key; labels are not authorization. + # Review workflow changes before approving a fork's run. runs-on: [self-hosted, Linux, X64, tuejon-deploy] concurrency: group: webmcpify-at-deploy