secrets: SOPS the backup SSH key + monitoring's hand-made Secrets (F12 part 2) #50

Merged
sirius merged 1 commit from secrets/sops-part2 into master 2026-11-27 05:30:38 +00:00
Owner

Part 2 of F12, on the objects deliberately held back until the drill on siriusdevops/siriusdevops-contact proved the path (it did — deleted 05:29:03Z, Flux recreated it 05:29:05Z, byte-identical data, pod restarted off the recovered Secret, /health 200 via localhost, Service DNS and ClusterIP).

What this adds (6 Secrets)

  • cluster-backup-ssh in forgejo, sirius-growth, monitoring — three files, one plaintext ed25519 key. A Secret cannot be referenced across namespaces and each backup CronJob mounts its own namespace's copy, so all three must exist and all three must be rotated together. This is the key the nightly off-host backups use, so its absence in a rebuild silently means "no backups".
  • monitoring/grafana-admin, monitoring/grafana-secret-key, monitoring/alertmanager-telegram — the inputs Grafana and the Alertmanager consume.

The operator's rendered prometheus-* / alertmanager-* objects stay excluded: they are rewritten from the CRs on every reconcile, so a second writer in git would only ever lose.

The monitoring Flux Kustomization gains the same decryption block as apps.

Verified

All six files decrypt to a byte-identical data map and type versus the live objects (6/6), so this apply is a no-op, not a rotation. kubectl kustomize monitoring/controllers/home renders 4 Secrets with unprefixed names in namespace: monitoring; kubectl kustomize apps/home still renders clean.

Full inventory, the exclusion table with reasons, key escrow locations and the drill transcript: docs/secrets-sops.md.

Part 2 of **F12**, on the objects deliberately held back until the drill on `siriusdevops/siriusdevops-contact` proved the path (it did — deleted 05:29:03Z, Flux recreated it 05:29:05Z, byte-identical data, pod restarted off the recovered Secret, `/health` 200 via localhost, Service DNS and ClusterIP). ## What this adds (6 Secrets) * **`cluster-backup-ssh`** in `forgejo`, `sirius-growth`, `monitoring` — three files, one plaintext ed25519 key. A Secret cannot be referenced across namespaces and each backup CronJob mounts its own namespace's copy, so all three must exist and all three must be rotated together. This is the key the nightly off-host backups use, so its absence in a rebuild silently means "no backups". * **`monitoring/grafana-admin`**, **`monitoring/grafana-secret-key`**, **`monitoring/alertmanager-telegram`** — the *inputs* Grafana and the Alertmanager consume. The operator's rendered `prometheus-*` / `alertmanager-*` objects stay **excluded**: they are rewritten from the CRs on every reconcile, so a second writer in git would only ever lose. The `monitoring` Flux Kustomization gains the same `decryption` block as `apps`. ## Verified All six files decrypt to a byte-identical `data` map and `type` versus the live objects (6/6), so this apply is a no-op, not a rotation. `kubectl kustomize monitoring/controllers/home` renders 4 Secrets with unprefixed names in `namespace: monitoring`; `kubectl kustomize apps/home` still renders clean. Full inventory, the exclusion table with reasons, key escrow locations and the drill transcript: `docs/secrets-sops.md`.
Completes F12 on the objects deliberately held back until the delete-and-reconcile
drill on siriusdevops/siriusdevops-contact had proved the path works (it did:
deleted 05:29:03Z, recreated by Flux 05:29:05Z, byte-identical, pod restarted off
the recovered Secret and /health 200 — see docs/secrets-sops.md).

* cluster-backup-ssh in forgejo, sirius-growth and monitoring — three files, one
  plaintext ed25519 key: a Secret cannot cross namespaces and each backup
  CronJob mounts its own namespace's copy, so all three must exist and all three
  must be rotated together.
* monitoring/grafana-admin, monitoring/grafana-secret-key and
  monitoring/alertmanager-telegram, which are the *inputs* the prometheus-operator
  and Grafana consume; the operator's rendered prometheus-*/alertmanager-* objects
  stay excluded (a second writer would fight it).
* monitoring Kustomization gains the same sops decryption block as apps.

All six files were generated from the live objects and decrypt to a byte-identical
data map and type, so this apply is a no-op.
sirius merged commit b22239a6aa into master 2026-11-27 05:30:38 +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!50
No description provided.