homek8s/apps/base/forgejo/secret-forgejo-pg-app.sops.yaml
Sirius DevOps c8f0834886 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.
2026-11-27 00:18:14 -05:00

24 lines
1.3 KiB
YAML

apiVersion: v1
data:
password: ENC[AES256_GCM,data:H4walqRkdqsGO3cz,iv:dNH/Nz3J5c7M4e63af8m61Z36yIoNk4amyzdBE8/Pl0=,tag:MHn7hR/XtLnSIwmPgzwEOg==,type:str]
username: ENC[AES256_GCM,data:mEySjuVo1GP9rKo0,iv:IG+GwOj9QuRh72XLjoG/Ho5MToL7g2PPZzziGlGCMvo=,tag:dR/oB5baTxayoHZzCxbBSg==,type:str]
kind: Secret
metadata:
name: forgejo-pg-app
namespace: forgejo
type: Opaque
sops:
age:
- enc: |
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBrQ29kbmRoYk4vbVlRZ3Fy
SUFCNnRtZDR0aGQvb0p5WXh1a296QXkveUVVCnlrTzBKSXNvNmRTZ0NTVzVSRHF1
YldwUlZVSld4dHBnQ2xSeUJVVm9LSEkKLS0tIDR1bDFhRGJkM2dUZ0phRGw2Qkxt
a1p2ckF1UDJCQmtMMThrbE1ydGpFODgKbslEW80bDRppJ+ZlBPS4HWbYZ/s+NeCm
ZoH/JkANBSlIJqb1osQDfSnJ6aBOkIGZcmSFR7GznvO1DsO9TaFUVg==
-----END AGE ENCRYPTED FILE-----
recipient: age12zdn7x72zrgu9cdv8wdj7xfx42nz09nrwpc2g09cwx5fwdm0ry6qp5h4jp
encrypted_regex: ^(data|stringData)$
lastmodified: "2026-11-27T05:16:42Z"
mac: ENC[AES256_GCM,data:k+L4q6BRMFWIjKm1MA+TSpSa9yWCN7KX/6US5HU/+cnrM4hIhBdgdLuCSZjgm0A/Ny8L3unGRK0vdtyU8EVSaQItd2PyhGgZpyzkGkbcme/DzT9ylCJtQTfG3r41Xtya8DHgEppeTmvRWFBGtV2rIYpb0+LtvMcyvf0mLs2MS/k=,iv:x+r5X+NNpcW/wsMx1Lv2FibF6IH7bIcxuEKSEen2LEI=,tag:zsUj99VwOig4jzcp4P+cXQ==,type:str]
version: 3.13.3