Audit finding F6 (2026-11-27-cluster-netsec-audit.md).
Runners (all three Deployments):
* runner container no longer runs as uid 0 — image uid 1000. The dind socket is
now created 0660 root:1000 via `dockerd --group 1000`, which removes the
one-shot `chmod 666` race that was the reason for running as root; a scoped
fix-data-perms init container re-owns runner.ini + the actions cache.
* CI *job* containers are no longer privileged (container.privileged: false) —
previously every job container was privileged inside a privileged dind.
Pod Security:
* enforce baseline on the eight namespaces that have zero baseline violations
(customer1, metabase, osint, piedmont, secops, sirius-growth, siriusdevops,
cert-manager), warn+audit restricted everywhere else (repo-declared and
cluster-owned), so the next privileged/hostPath/hostNetwork pod is visible.
* forgejo itself stays warn/audit: the runner dind sidecar cannot lose
privileged on these nodes (documented in docs/pod-security.md, with the three
measured failure modes: procfs needs SYS_ADMIN, /sys/fs/cgroup is read-only
for non-privileged pods, rootless dind blocked by masked /proc + no tun).
The dind container mounts the dind-run emptyDir at /var/run. A reboot
restarts the container inside the same pod, so that emptyDir keeps the
dead daemon's docker.pid; dockerd then aborts with "process with PID N
is still running" and the runner sits in CrashLoopBackOff until someone
deletes the pod. Removing the stale pid and socket before starting
dockerd makes both the amd64 and arm64 runners recover on their own.
First post-cutover deploy-site run (task 1732) built the image and then died
pushing it: docker only treats 127.0.0.0/8 as insecure by default, so
'Get "https://10.10.0.1:5000/v2/": http: server gave HTTP response to HTTPS
client'. Flag the daemon, not the job image, on both arm64 runners so no
workflow needs to know.
The Pi's host Docker is no longer the arm64 job-container daemon. Both
forgejo-runner-arm64 and forgejo-runner-deploy-arm64 now run a privileged
docker:27-dind sidecar (--mtu=1420, socket on an emptyDir shared with the
runner, data-root on a PVC), the same shape as forgejo-runner-amd64.
- labels preserved verbatim: shared keeps docker-arm64/arm64/docker, deploy
keeps deploy-arm64 only; capacity 1 on both
- runner.ini moved from hostPath to the data PVC by copy, uuid preserved
(4e07c1e9... / a41aad73...); the deploy runner's register init container is
inverted into a guard so a missing file cannot burn a token and create a
second runner
- dind limits.memory 4Gi (measured peak 3.10GiB) and 2Gi for the deploy runner
so a CI run and a deploy cannot both claim the Pi's 7GiB
- static hostPath PVs pinned to rpi with Retain: dynamic local-path cannot
provision there (helper pod hardcoded to siriussec)
- docker CLI/buildx come from the dind image instead of the host's docker-static
- Pi registry additionally published on 10.10.0.1:5000 (out of band on the Pi)
- RpiDindDataRootFillingUp at 70%: the real cap, since a static PV does not
enforce its claim and kubelet_volume_stats_* does not exist here
Design and measured proof: docs/arm64-runner-dind.md (t_627c231c).
alex3305/forgejo-runner-dind ships an amd64 binary in its arm64 manifest,
so the Pi failed with 'exec /usr/local/bin/forgejo-runner: exec format
error'. That took pi-runner (the only runner declaring the bare 'docker'
label) offline and stalled every runs-on: docker job.