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).
siriussec is a T480 on a 5V/3A (15W) USB-C supply and died 2026-11-22 04:20
after ~12h on battery. Host PL1 was 25W with turbo on, so any sustained burst
outran the adapter. Cap the two workload-side bursts that can pin cores:
- forgejo-runner-amd64 dind: no CPU limit before -> add cpu: 3
- metabase + farrisilk metabase: cpu limit 2 -> 1 each (two JVMs = 4 threads)
Host-side cap (PL1 12W/PL2 15W, no_turbo=1) is applied by
cpu-power-cap.service on the node itself, not by this repo.
Forgejo's container registry now lives in the cluster and is reachable only
as the plain-HTTP ClusterIP forgejo.forgejo.svc.cluster.local:3000. Docker
treats only 127.0.0.0/8 as insecure, so any workflow logging in to or pushing
to that host would fail with "server gave HTTP response to HTTPS client".
Adds --insecure-registry for that host to the amd64 dind daemon, which is the
runner the osint-dashboard build now targets (amd64 matches the cluster, so
images are usable on the nodes).
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.
Two concurrent x86_64 builds on the dind daemon made the second one's egress
fail (apt looping on Ign: for Debian InRelease) while a single build on the
same daemon succeeded. Serialize the amd64 runner, and match the docker bridge
MTU to the pod's 1420 so containers stop assuming a 1500-byte path.