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:
parent
43353e9aa0
commit
c8f0834886
41 changed files with 932 additions and 8 deletions
25
apps/base/sirius-growth/secret-portal-wal-s3.sops.yaml
Normal file
25
apps/base/sirius-growth/secret-portal-wal-s3.sops.yaml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
apiVersion: v1
|
||||
data:
|
||||
ACCESS_KEY_ID: ENC[AES256_GCM,data:Lv5TNsSVLCh03dNOmamaf0N5bb0Os7KSoAKr5fuY+DLv/mtK,iv:0aAyylLmxqr9vaqTjYu81KmwbQdtR5+b9Yp4dyLuUb8=,tag:IqPPBBmAJ6cqAFiX+5+9RQ==,type:str]
|
||||
ACCESS_SECRET_KEY: ENC[AES256_GCM,data:mpRJy20dQIHjqAV1iWH03P/QwX0R21aF1Y6v5ieKvYIEf+y1P8S9+HJOsHCc3LImRaUterbTWNFNXivdkBpWUCoAIQgHuYwFXhDBfxuK35kfTvcWtfrOqg==,iv:RCxJy+2pOib0dhLQFzz4uEjdRCvvqJNS9FcCIIClPwM=,tag:0+lhnpO5+lHsKCnOvaA5EA==,type:str]
|
||||
REGION: ENC[AES256_GCM,data:jhWHctCFNl8=,iv:QoO2S/SpsAI4su0Bc2WX8qvEVu1IVt4NqBZdu9jmNG8=,tag:oAACcO+Oi6DlwMMoRR3STQ==,type:str]
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: portal-wal-s3
|
||||
namespace: sirius-growth
|
||||
type: Opaque
|
||||
sops:
|
||||
age:
|
||||
- enc: |
|
||||
-----BEGIN AGE ENCRYPTED FILE-----
|
||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBjd28zeWk1ekp2NlB6S21N
|
||||
UVVleGM0NjEvWGNuVU5GbmFYWE1ad0hBb2o4Ck5kbC9FNGo5WndpQ05IY1Z0S0cx
|
||||
aTZlb2g4WlpJTi9ibU16dloxUUtIZEkKLS0tIDBldFhyT3U3ckNiV0hpS1o2Tjdn
|
||||
enV0L0hPakdva3k2K3pEWFZTMUtSSHcKhO+8DmGwgiRYOBkRtyHroHs2uU8/96fi
|
||||
VfceBBfXNB/h4Hmt99xuVoEiPSnOAVS5/itBArTMoT1iZdD3gadQqw==
|
||||
-----END AGE ENCRYPTED FILE-----
|
||||
recipient: age12zdn7x72zrgu9cdv8wdj7xfx42nz09nrwpc2g09cwx5fwdm0ry6qp5h4jp
|
||||
encrypted_regex: ^(data|stringData)$
|
||||
lastmodified: "2026-11-27T05:16:43Z"
|
||||
mac: ENC[AES256_GCM,data:5RK21+O7LMmj7P6bZW5uITv4v60fq7PUJfsIBgNrLuKzplOcSHTrg+8HVN7X2mMxzkjeNshh4FC3Kkc62mIoWk9ECpboZFAAuFIY0T+m/AVsZXBY9QswtwYH1zpN5xmWvAsA5kbx8WkwsFMOTUeF8/nPrGi/oTW15PxmfmT8xNY=,iv:TPiYECXPnz+vvMqQv0JpyTdZ6dzVQpALyvDXXws170I=,tag:MpneZrMZO7JI9J7bmhv3JA==,type:str]
|
||||
version: 3.13.3
|
||||
Loading…
Reference in a new issue