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
|
|
@ -0,0 +1,27 @@
|
|||
apiVersion: v1
|
||||
data:
|
||||
access-key: ENC[AES256_GCM,data:nQYK9vgxtGAnxzKatbwBIEdCSKy6PhE3ulzPvVBTxiY7GqCL,iv:PW6Q7Kdq8leuc8wc9JxqX2Sapi1B7JgY5HjNJG3/Jng=,tag:giD4hBn8MWPDD2tUkEGMRA==,type:str]
|
||||
bucket: ENC[AES256_GCM,data:uNHEPKxdXj0tO3ZLbscAXkNCaU5r5iycob8PZSr2136PxwMH,iv:HWjxUhKQvlU9+jstZDQDFAFk8Zl85sR/V/s0z7VsGcE=,tag:K6xU2KeysNCsqJmgCnITCw==,type:str]
|
||||
endpoint: ENC[AES256_GCM,data:YiGTsqLihDGvgd9fOheQP+qpi3oGa01yuqSZAA==,iv:OXvr8v1r8OhIjfle2FZSHy5C9gLEn1VPjhz2tntapRE=,tag:fAuc5hodGd1G6E44pYCmAQ==,type:str]
|
||||
region: ENC[AES256_GCM,data:jCReGhHjKME=,iv:GEFo1jMowRopFJXqg0MhlB7BoeKy9QUAgF8oFEBJoEY=,tag:pbgVYEG9eJLxQc3e9qBMjA==,type:str]
|
||||
secret-key: ENC[AES256_GCM,data:+cVJh8vODYlikPd1wZUybU9CKavcQNkGUiN3/rIgUKYX6VJr2Vdkhog0lGtWtbEl6ztHtOZYtJKvVGtQsVNaodTiySuhzURdKGECeeBDPYAXuyWoqPCNqw==,iv:KJ2eychXLLI0Nm4CkWCUG8n/sOGcUYOeEjKsz9Spwio=,tag:Q2z3WkLKAanqdN6LDDnBeA==,type:str]
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: sirius-growth-portal-s3
|
||||
namespace: sirius-growth
|
||||
type: Opaque
|
||||
sops:
|
||||
age:
|
||||
- enc: |
|
||||
-----BEGIN AGE ENCRYPTED FILE-----
|
||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSAyNG9UQU02SmVocUFSQzdF
|
||||
VER3cktyekQzRHRXa1lrVkkyYTNKQk1EQVdNCnpvVzUvdVNlN0JOUVhkRmxEY21E
|
||||
YWJlYWVjYS9Xd1VKcU1tM3lsZ29XUHcKLS0tIGlWc21ITnVEZjVPR3JVcEdLQUNN
|
||||
MEZoUHF6U0xuSFdoMlpvMm1tRGtmc1kKaTnCrsZh2R42IibOojqWWiwpxGS67o9b
|
||||
vFqpBh25ouxekmJJTdKUApj/GcfqTIiF2PN+05uciWH9SnZl0Ms0wg==
|
||||
-----END AGE ENCRYPTED FILE-----
|
||||
recipient: age12zdn7x72zrgu9cdv8wdj7xfx42nz09nrwpc2g09cwx5fwdm0ry6qp5h4jp
|
||||
encrypted_regex: ^(data|stringData)$
|
||||
lastmodified: "2026-11-27T05:16:44Z"
|
||||
mac: ENC[AES256_GCM,data:ibtGyLLBwMgOZuVMRi8uP/vJXYAFv0Y3sy4TROdMnx+Nx9e6uAvCM7nQAWLxKWRN95YGTyAOET/q1Pz1Gm3ipgMa22iIEhH8QqoRl1ruIrUoNAvR/snpt9SxVS1TiCZBszKxpg2+fUXffnSqB5F6N0K3kppVaI7vYBuqYMcMi8Y=,iv:zHefLJ1EhblzQzb3N1IPctOLP1BLSYKGSRkLagP03/o=,tag:musgvP5M2M5ZnHD7LEnEHQ==,type:str]
|
||||
version: 3.13.3
|
||||
Loading…
Reference in a new issue