ci(runners): isolate the CI capsule in forgejo-runners, enforce baseline on forgejo
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).
This commit is contained in:
parent
0fdd918875
commit
3d21e96a9c
18 changed files with 239 additions and 127 deletions
|
|
@ -203,7 +203,7 @@ deploying another exporter.
|
|||
- **CNPG custom-query metrics carry `namespace`/`pod` from the scrape, not the
|
||||
exporter's `cluster` label.** `cnpg_collector_*` has `cluster`; the
|
||||
`cnpg_actions_*` and `cnpg_pg_stat_*` families do not. Filter those by
|
||||
`namespace="forgejo"`.
|
||||
`namespace="forgejo-runners"` (the `cnpg_actions_*` panels keep `namespace="forgejo"`: that label is the Postgres cluster's namespace).
|
||||
|
||||
## Known unknowns (deliberate, documented on the boards themselves)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue