secrets: bring 29 hand-made cluster Secrets under Git via SOPS/age (audit F12)

Nothing in the cluster was reconciled from the repo: 67 hand-made Secrets and no
managed Secret at all, so a restore of this Git tree produced a cluster that would
not start. This commits the first-party ones as SOPS/age ciphertext and enables
Flux's sops decryptor.

* provider: SOPS + age (chosen over SealedSecrets: Flux already ships the sops
  decryptor, so no extra controller/CRD, and the age key is escrowed off-cluster).
* 29 Secrets across forgejo, siriusdevops, piedmont, sirius-growth, osint,
  metabase and customer1, as apps/base/<ns>/secret-<name>.sops.yaml with
  encrypted_regex ^(data|stringData)$ — names/namespaces stay reviewable.
* each file was generated from the LIVE object and decrypts to a byte-identical
  data map and type, so the first apply is a no-op (not a rotation).
* the CNPG bootstrap secrets (forgejo-pg-app, pg-app, sirius-growth-portal-db)
  are ours, not operator output — bootstrap.initdb.secret points at them, so a
  rebuild has no application password without them.
* forgejo-pull is included despite docs/registry-pull-auth.md calling it
  out-of-band: with imagePullSecrets on every workload it is the one Secret whose
  absence stops the whole cluster from pulling images.
* .gitignore keeps **/*secret*.yaml ignored and re-includes only .sops.yaml, so a
  plaintext Secret still cannot be committed; age.agekey stays ignored.
* excluded on purpose (controller/helm-owned): CNPG *-server/*-replication/*-ca,
  cnpg-system CA+webhook, cert-manager webhook CA, cilium/hubble certs, helm
  release records, prometheus-operator rendered prompts. Full table in
  docs/secrets-sops.md.

Key locations (never in git): Secret flux-system/sops-age (age.agekey) and
/root/sops/homek8s-age.key on the Linode, reached only over the mesh.
This commit is contained in:
Sirius DevOps 2026-11-27 00:17:47 -05:00 • committed by Lance Walters
commit c8f0834886
41 changed files with 932 additions and 8 deletions

View file

@ -0,0 +1,24 @@
apiVersion: v1
data:
AWS_ACCESS_KEY_ID: ENC[AES256_GCM,data:ZFFYbez5y5eM5zYyTpWsPWz6AOuSTSRfg2cnqxiyPFxF2MNy,iv:Ii4KlCf1qmYdM/1BK5Y06MCyIS5xjBnBV+uB/pPNDc0=,tag:aS9VAusLyv+GXaoZx8fnhQ==,type:str]
AWS_SECRET_ACCESS_KEY: ENC[AES256_GCM,data:6UCRnrORf/EVtEl4ZBPpLBLzLlZ6C+sxPx9Q4WzEdW42UX9AhosImDs5YoDGiskzHksO4I55JUZeTf1xhuWbkYB/0BheWlr4pHz5b4IjMfdCYJStccXspQ==,iv:ftRq37JciHfGll1LkgpIWftFkXshv2t1HAcCegV+//0=,tag:w8vOXTFW/n19PxikdcUMeg==,type:str]
kind: Secret
metadata:
name: garage-media-s3
namespace: siriusdevops
type: Opaque
sops:
age:
- enc: |
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBJcllHcHErb3FvaTRpTDZ6
WHBwT2doVXJnTm1lSmtZbSs4bkIzc3JmdUdjCnFhbUNwd2R4dk1uc0Z2ZlkyME5a
RWUySFdjTHVtQVFVblc0MkZETzBuUWMKLS0tIEp0WlYrcXYzU0pqM0xHOUF4VFc2
T210dEtmYmU0d3Q2Z3J0ZS9ia2hQV0EKXxXxfQV9XuOCewI9DDJ7WQ7F+q3jJMOl
BITWgXv2XkFBr2UeCKoYo5AayA5XXRVS16qzySL0Bihcf5do8Y4AQQ==
-----END AGE ENCRYPTED FILE-----
recipient: age12zdn7x72zrgu9cdv8wdj7xfx42nz09nrwpc2g09cwx5fwdm0ry6qp5h4jp
encrypted_regex: ^(data|stringData)$
lastmodified: "2026-11-27T05:16:42Z"
mac: ENC[AES256_GCM,data:hKCawRhmKuvLNdF2sLKeE4vF7ZP5UU/w99cfmbkmUqzHea1ioRvTmqUBA5e9/CiYOHDWyTvZDLj/O1jVZBzR3EU3SxU6GK2tuqg/F0vzAzPuwJo32MhuJM+RGu6xbGq5MNjsp7yKyPr00u6krQxpkWSD1RVR7UXLX2T6wvP9HMI=,iv:GY70FcdOaOtkLRLorHqx0lZfiV4/1jpwUYhJHQgqkVk=,tag:LOj61JlJzek2XpxOrKUpEg==,type:str]
version: 3.13.3