secops(f6): de-privilege CI job containers + runner uid, add Pod Security labels (#54)

This commit is contained in:
sirius 2026-11-27 05:42:39 +00:00
commit cb387a8121
20 changed files with 349 additions and 8 deletions

View file

@ -26,7 +26,12 @@ data:
enabled: true
dir: /data/cache
container:
privileged: true
# CI job containers run unprivileged. They still get the dind socket (a
# bind mount in `options` below), which is what the build/deploy
# workflows actually need; nothing in them needs extra capabilities.
# This was `true` until card t_2bbe34a8 (audit F6): a privileged job
# container inside a privileged dind was node root twice over.
privileged: false
# No docker_host here: setting it makes the runner inject the socket bind
# into the job container itself, which collides with the explicit
# -v /var/run/docker.sock in options ("Duplicate mount point"). The
@ -69,7 +74,12 @@ data:
enabled: true
dir: /data/cache
container:
privileged: true
# CI job containers run unprivileged. They still get the dind socket (a
# bind mount in `options` below), which is what the build/deploy
# workflows actually need; nothing in them needs extra capabilities.
# This was `true` until card t_2bbe34a8 (audit F6): a privileged job
# container inside a privileged dind was node root twice over.
privileged: false
# Same injection as arm64.toml: the job container is node:20-bullseye,
# which has no docker CLI and no buildx, and deploy-site.yml needs both.
# Both come from the dind sidecar's own filesystem. binfmt/QEMU is
@ -98,7 +108,12 @@ data:
enabled: true
dir: /data/cache
container:
privileged: true
# CI job containers run unprivileged. They still get the dind socket (a
# bind mount in `options` below), which is what the build/deploy
# workflows actually need; nothing in them needs extra capabilities.
# This was `true` until card t_2bbe34a8 (audit F6): a privileged job
# container inside a privileged dind was node root twice over.
privileged: false
# No docker_host: it injects the socket bind into the job container,
# which collides with the explicit -v /var/run/docker.sock in options
# ("Duplicate mount point"). The options bind is the deliberate choice.