Renames the namespace introduced in #72 (`forgejo-runners` -> `ci-runners`) per
the orchestrator decision on card t_2bbe34a8, and sets the capsule's
warn/audit levels to `privileged` alongside `enforce: privileged`: everything
in it is allowed by design, so restricted-level warnings on every pod restart
would be noise, and the intent is explicit in Git rather than implied.
Storage is the same three PVs, rebound again by name (Retain + cleared
claimRef), so the runner registration uuids, dind image sets and action caches
survive: verified before/after (uuids 91124ee3/4e07c1e9/a41aad73, image counts
19/2/31, canary files intact). Monitoring selectors and docs follow the new
namespace; the Grafana dashboard keeps its `forgejo-runners` uid.
The three Actions runners (privileged dind sidecars) and the nightly prune
CronJob (hostPath /var/run/docker.sock) cannot live under PSA baseline, so
they move to their own namespace `forgejo-runners` with `enforce: privileged`
(plus warn/audit restricted). That lets `forgejo` — Forgejo, CNPG Postgres,
cluster-backup — enforce `baseline` instead of only warning.
The dind sidecars stay privileged: measured on these nodes, a non-privileged
pod cannot host a container runtime (cgroup fs is mounted ro; rootless dind
cannot mount procfs; procMount=Unmasked needs hostUsers=false where subuid
maps and /dev/net/tun are refused). See docs/pod-security.md.
- PVCs/PVs are reused, not recreated: the two static Retain PVs on rpi and the
dynamic local-path PV on siriussec were rebound by name, so runner.ini
(registration uuid), the dind data-root and the actions cache survive.
- prune CronJob + its SA/Role/RoleBinding/configmap move with the runners;
NAMESPACE and the Role scope follow.
- monitoring: runner/prune queries and runbooks now select forgejo-runners;
cnpg_actions_* panels keep namespace="forgejo" (that is the pg namespace).
- docs: pod-security.md rewritten for the two enforced namespaces.
Verified live: all three runners 2/2 Running in forgejo-runners with their
original registration uuids and image counts, forgejo rejects a privileged pod
at admission, and a real CI image build completes (see the card).
The fix-data-perms init container guarded a chown -R behind a TOP-LEVEL owner
check (`stat -c %u /data/.cache`). /data/.cache was already 1000 while the git
pack files inside it were still root:root from the pre-uid-1000 runner, so the
guard skipped exactly the file that matters and every job on that runner died
in actions/checkout, before a single step:
open /data/.cache/act/actions-checkout@v4/.git/objects/pack/pack-ba0cccfe….pack:
permission denied
That is a 3 s red X with zero steps on a push (websites run 1430, card
t_29249bf0). chown the three trees the runner writes recursively instead
(cache/, .cache/, runner.ini); /data/docker stays root-owned and unwalked.
Also document the Recreate consequence: a template rollout SIGKILLs in-flight
jobs and Forgejo reports them as a plain failure with the log cut off mid-step
(sirius-growth push run 1422: 14 min red, log ending at 'Fetching the
repository').
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.