homek8s/clusters/homek8s
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Lance Walters eea80f475e sops: decrypt on every Flux Kustomization + static guard
`spec.decryption` is opt-in per Flux Kustomization, and a secret-*.sops.yaml
under a tree without it is still valid YAML: Flux applies the Secret with
literal ENC[AES256_GCM,...] values and reports success. The Secret is green and
wrong, and the first symptom is an auth failure days later that looks nothing
like a git problem. Only `apps` and `monitoring` had the block; the other six
trees were a trap for the next person to add a Secret there.

- add decryption: {provider: sops, secretRef: sops-age} to cert-manager,
  databases, gateway-api-crds, infrastructure, logging and flux-system
  (8/8 Kustomizations now decrypt; harmless where no encrypted files exist)
- scripts/check-sops-decryption.py + `make check-sops`: static guard that reads
  the live sync path from gotk-sync.yaml, walks each Kustomization's kustomize
  resource graph, and fails when a *.sops.yaml file is under a tree whose owner
  cannot decrypt, is under no reconciled tree, or is not actually encrypted
  (also catches `flux bootstrap` regenerating gotk-sync.yaml without the block)
- .gitattributes marks *.sops.yaml with diff=sopsdiffer; docs/secrets-sops.md
  explains the opt-in trap, the eight Kustomizations and the guard

No secret contents, recipients or keys touched.
2026-11-27 00:57:31 -05:00
..
flux-system sops: decrypt on every Flux Kustomization + static guard 2026-11-27 00:57:31 -05:00
apps.yaml secrets: bring 29 hand-made cluster Secrets under Git via SOPS/age (audit F12) 2026-11-27 00:18:14 -05:00
cert-manager.yaml sops: decrypt on every Flux Kustomization + static guard 2026-11-27 00:57:31 -05:00
databases.yaml sops: decrypt on every Flux Kustomization + static guard 2026-11-27 00:57:31 -05:00
gateway-api-crds.yaml sops: decrypt on every Flux Kustomization + static guard 2026-11-27 00:57:31 -05:00
infrastructure.yaml sops: decrypt on every Flux Kustomization + static guard 2026-11-27 00:57:31 -05:00
logging.yaml sops: decrypt on every Flux Kustomization + static guard 2026-11-27 00:57:31 -05:00
monitoring.yaml secrets: SOPS the backup SSH key and monitoring's hand-made Secrets (F12, part 2) 2026-11-27 00:30:24 -05:00