Files
Aleksei Sviridkin 93b496be95 feat(cozystack-basics): pin the TenantProjection writer to flux
Replace the publish-ca-cert label-leg admission control with a policy on
the sentinel. A ValidatingAdmissionPolicy restricts TenantProjection
CREATE and UPDATE to the flux ServiceAccount helm-controller runs as, so
a tenant (who has no RBAC on internal.cozystack.io) cannot forge a
declaration that publishes a CA of their choosing. DELETE stays ungated
for owner-ref GC.

cozystack runs its flux controllers under one shared cozy-fluxcd:flux
ServiceAccount, so the pin admits any flux controller — a deliberate
platform-tier widening, since only helm-controller renders charts and no
tenant reaches this group. The literal is guarded by a bats check on its
shape, name and namespace. Remove the label-leg policy, its unit test,
its pin check and its chainsaw suite — the sentinel model retires that
leg.

Signed-off-by: Aleksei Sviridkin <f@lex.la>
2026-07-21 17:16:49 +03:00
..
2026-05-25 17:07:02 +03:00