homek8s/apps/base/sirius-growth/secret-sirius-growth-portal-db.sops.yaml

24 lines
1.4 KiB
YAML
Raw Permalink Normal View History

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:17:47 -05:00
apiVersion: v1
data:
password: ENC[AES256_GCM,data:nyMG2GOfeqrLf/Wrc8gpJvWvhmt+mOl4cufF/jEjN3RFTuOxlA2Dpv7Tkcc=,iv:FcVjGBS3VTd0uiIwtCR9bKTC40bBd06NgEiejg++qBM=,tag:qPbU3aXoQUY//ZtsvhZVXw==,type:str]
username: ENC[AES256_GCM,data:MGxy7B3XPoY=,iv:Yl9kg/miYjB5ztWgkNaHotAL9gAJOr0sIIzSnsfJb40=,tag:F6C/xFr7siImFTwejk4qVw==,type:str]
kind: Secret
metadata:
name: sirius-growth-portal-db
namespace: sirius-growth
type: kubernetes.io/basic-auth
sops:
age:
- enc: |
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSA2cWg3dXdEalVsTjdrcDdq
dVZuM3pIUk9QS1VMLzYxdy94NkFFZzdyZDM4CnRsemVGZUFSMyszK2dTcWtDRzlw
UVFKNVlLWUdZK1g1T1ArdGVpVW9LSmMKLS0tIHI0UG5TOFp0V2RvTVdyeThjL1RM
ekVXekpNdDRTMlppLzdtMWhBcXpuR0EKD4Up4T0fZBvTo4CaT1++eEABGq3QqFWf
jKVP8HH7rrfL3vFiURBq+5hnveGOdG660tOhUwObfqQ+/By/Hd848Q==
-----END AGE ENCRYPTED FILE-----
recipient: age12zdn7x72zrgu9cdv8wdj7xfx42nz09nrwpc2g09cwx5fwdm0ry6qp5h4jp
encrypted_regex: ^(data|stringData)$
lastmodified: "2026-11-27T05:16:43Z"
mac: ENC[AES256_GCM,data:R5ujg3tKTtRJ5xP0n0B4QxLAY17BsMT4PUQS/I4FsGdF3WbWe9a8NDCuauLSW5iWiLwrmnrV+BfTwSFLwawFfFCu06z4+XuqrdRP7MQ29jfnqvMO1rHhO41egJK7D8qZhOlSJSgIjqjP8NmsbAmLDKacUUkK4Iac3xUChJIGUlg=,iv:ntiQQVeTAoz+zlFUsZjqEcrKajv3I9jIHV3HxKZUWMA=,tag:KtcVneaGvgNIYbUVyy69tw==,type:str]
version: 3.13.3