fix(f6): fix-data-perms must run as root; PSA labels for logging + cnpg-system #58

Merged
sirius merged 1 commit from fix/f6-runner-uid-and-psa-labels into master 2026-11-27 05:48:41 +00:00
Owner

Fixup for #54 (merged, but wanted)

Two corrections found while watching the rollout:

  1. The fix-data-perms init container was left at the runner's uid 1000, so
    its chown failed with EPERM and neither the amd64 nor the arm64 runner
    could start (only deploy-arm64 got it right). It runs as root for that one
    operation again; the runner container stays uid 1000.
  2. PSA labels for the two namespaces Flux owns outside apps/: logging
    (which has enforce: privileged, so PSA was silent) and cnpg-system
    (declared inside the vendored operator manifest, so out-of-band labels were
    stripped on every reconcile). Both now carry warn/audit: restricted.

Net effect unchanged from #54: runner uid 1000, unprivileged CI job containers,
enforce: baseline on the eight clean namespaces, warn/audit everywhere else.

## Fixup for #54 (merged, but wanted) Two corrections found while watching the rollout: 1. **The `fix-data-perms` init container was left at the runner's uid 1000**, so its `chown` failed with `EPERM` and neither the amd64 nor the arm64 runner could start (only `deploy-arm64` got it right). It runs as root for that one operation again; the *runner* container stays uid 1000. 2. **PSA labels for the two namespaces Flux owns outside `apps/`**: `logging` (which has `enforce: privileged`, so PSA was silent) and `cnpg-system` (declared inside the vendored operator manifest, so out-of-band labels were stripped on every reconcile). Both now carry `warn`/`audit: restricted`. Net effect unchanged from #54: runner uid 1000, unprivileged CI job containers, `enforce: baseline` on the eight clean namespaces, warn/audit everywhere else.
The init container that chowns the runner PVC to 1000:1000 was left with the
runner's uid (1000), so `chown` failed and the arm64/amd64 runners could not
start. It now runs as root for that one operation; the runner container itself
stays uid 1000.

Also label `logging` (warn+audit restricted alongside enforce=privileged) and
`cnpg-system` (warn+audit) so every namespace reports PSA violations instead of
silently allowing them — cnpg-system's labels live in the vendored operator
manifest because Flux owns that Namespace object and strips out-of-band labels.
sirius merged commit a8534bae42 into master 2026-11-27 05:48:41 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sirius/homek8s!58
No description provided.