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,23 @@
apiVersion: v1
data:
.dockerconfigjson: ENC[AES256_GCM,data:FGTPqAwCijts4PwpAdGaasBaOAEreJh1JU/fRvn6SqQCPxb0rJlzl8eOVP6dqfGQkR+gct/5xTI6PfUXzD6ElgjPba9K+D/TTz2y5F2h0N9eKVewnMWywR6XaW1tGEjXazapFUDxLzGbCTG9jyEmjDbgIBHqYzCAro1OrsuMZzzFzeQjLFbxWE5HDPPXcHua/j/3LWS77gl7g4PIeWoKfvmsNwwewakRRiLyk5fJ1+4CRQMEoVcCejxiYrMcGqrONhLwIPpuvq04jRT4eo+SowTWWc9vVLf9YSTEy2MAO61yBoPGquScAN8LwQGWIH5oSOr6nWmHh7LLqXRbC+S2DH5SdessYpKv4OrBdSqXMOmLhqAOkqdcNYI1rXlA/40r,iv:a5Nv5UnfBGNlPKqiLcXGITcfU/W2yuqOv8DzG28l6M8=,tag:04HkP6cRcdkbdlPEuKcWwg==,type:str]
kind: Secret
metadata:
name: forgejo-pull
namespace: siriusdevops
type: kubernetes.io/dockerconfigjson
sops:
age:
- enc: |
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBuTlUwOXBacU5GbkkvUXhk
WFZ4RWtDRjJCbzhkUEwyekZ4OXBZckFETmlvCnJaTjlMVDZDWnVSNXNiM09KRE1Z
MDVsMlZROVZVKzY5enRrVHkzc2VuQVkKLS0tIEF0Z2RqaHdsdFVmcjlCWGJGdnpj
Q2JCNVNPbG9pVGpVTXBoa3o1ZjVQa0UK7ADGX0391HfrzCMRhGciJgpajKUyzJ4I
gCvkdu8SeNFyoktlaQDIqjjWjY4LVG4koUTQF9kb6aZqyJrwDB5XQw==
-----END AGE ENCRYPTED FILE-----
recipient: age12zdn7x72zrgu9cdv8wdj7xfx42nz09nrwpc2g09cwx5fwdm0ry6qp5h4jp
encrypted_regex: ^(data|stringData)$
lastmodified: "2026-11-27T05:16:42Z"
mac: ENC[AES256_GCM,data:5DZxAeqDmCtX2F1SJiXVwVP4mOyWh8XfUQRwNbyYF9pguAgq8NSTC+ZwF2HpUUZa+tzSU6M/wr4hJKtEbkxAOVMN3AhKcR7xfzXsrnOYGU1nW4eNc8J4e3+m51d6gZrN27HWGCWQakM+E/tj2h0F6h7U+07sVlOfEzLnLYRn88Q=,iv:Po+2Y2CQdPkWnCcuxfsdmrUpNe1eHHkbdIqujTDjbss=,tag:vdNJzH7rPlgXe6LKMKLbVQ==,type:str]
version: 3.13.3