ESO: restrict each ClusterSecretStore to a namespace list (spec.conditions) #1784

Open
opened 2026-11-22 21:29:15 +00:00 by ginjiruu · 1 comment
Owner

Every ExternalSecret and PushSecret on mini and c1 goes through a ClusterSecretStore, and none of the four stores sets spec.conditions. Any namespace that can create an ExternalSecret can name any of these stores and copy whatever that store's OpenBao policy allows into its own namespace. On mini, vault-backend covers every key ESO reads.

This is the interim guard from lab/iac ADR-0012 (PR linked in a comment below). The lasting fix is per-app SecretStores (lab/iac#186); this issue only stops a new or compromised namespace from reading through a store it has no business with.

Current consumers on 2026-11-22

Cluster Store ExternalSecrets/PushSecrets Namespaces
mini vault-backend 54 actual-budget agent-vault argo automation carwash-frigate cert-manager ci ddns-system drop firefly flux-system forgejo foundry12 foundry13 foundry14 frigate ghost-blog glmocr grafana harbor hub-system immich karakeep media monitoring nats-system openwebui paperless-ngx public-dns searxng seaweed-system teamspeak tuwunel velero vm
mini openbao 6 flux-system monitoring
mini openbao-infra 1 internal-dns
c1 openbao 2 dns

Store manifests: clusters/mini/eso/{vault-backend,openbao,openbao-infra}.yaml, clusters/c1/external-secrets/store/clustersecretstore.yaml. ESO is v2.15.0 on both clusters.

Change

  • Add spec.conditions[].namespaces to each store, with the namespaces above as its list. Use an explicit list rather than a selector or regex, so adding a namespace is a reviewed diff in the store file.
  • Add a gate check (or a note in AGENTS.md) so that a new ExternalSecret in a namespace missing from its store's list fails review instead of failing at reconcile time.
  • Coordinate with lab/iac#184: if the vault-backend cutover moves consumers between stores, carry the list across.

Done when

  • All four stores have a namespace list, and every current ExternalSecret and PushSecret is still Ready.
  • An ExternalSecret in an unlisted namespace that points at one of these stores is rejected (check with a throwaway namespace on c1).
Every ExternalSecret and PushSecret on mini and c1 goes through a ClusterSecretStore, and none of the four stores sets `spec.conditions`. Any namespace that can create an ExternalSecret can name any of these stores and copy whatever that store's OpenBao policy allows into its own namespace. On mini, `vault-backend` covers every key ESO reads. This is the interim guard from lab/iac ADR-0012 (PR linked in a comment below). The lasting fix is per-app SecretStores (lab/iac#186); this issue only stops a new or compromised namespace from reading through a store it has no business with. ## Current consumers on 2026-11-22 | Cluster | Store | ExternalSecrets/PushSecrets | Namespaces | |---|---|---|---| | mini | `vault-backend` | 54 | actual-budget agent-vault argo automation carwash-frigate cert-manager ci ddns-system drop firefly flux-system forgejo foundry12 foundry13 foundry14 frigate ghost-blog glmocr grafana harbor hub-system immich karakeep media monitoring nats-system openwebui paperless-ngx public-dns searxng seaweed-system teamspeak tuwunel velero vm | | mini | `openbao` | 6 | flux-system monitoring | | mini | `openbao-infra` | 1 | internal-dns | | c1 | `openbao` | 2 | dns | Store manifests: `clusters/mini/eso/{vault-backend,openbao,openbao-infra}.yaml`, `clusters/c1/external-secrets/store/clustersecretstore.yaml`. ESO is v2.15.0 on both clusters. ## Change - Add `spec.conditions[].namespaces` to each store, with the namespaces above as its list. Use an explicit list rather than a selector or regex, so adding a namespace is a reviewed diff in the store file. - Add a gate check (or a note in AGENTS.md) so that a new ExternalSecret in a namespace missing from its store's list fails review instead of failing at reconcile time. - Coordinate with lab/iac#184: if the `vault-backend` cutover moves consumers between stores, carry the list across. ## Done when - All four stores have a namespace list, and every current ExternalSecret and PushSecret is still Ready. - An ExternalSecret in an unlisted namespace that points at one of these stores is rejected (check with a throwaway namespace on c1).
Author
Owner
ADR: lab/iac#188
Sign in to join this conversation.
No milestone
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
lab/clusters#1784
No description provided.