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
23
apps/base/sirius-growth/secret-forgejo-pull.sops.yaml
Normal file
23
apps/base/sirius-growth/secret-forgejo-pull.sops.yaml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
apiVersion: v1
|
||||
data:
|
||||
.dockerconfigjson: ENC[AES256_GCM,data:0DHKiX4UaYk314D7LEtFEL2XHHYSxjy8Ezde2ZEWjbHzNxVTbV3lLvCEVGcfh5OpWvWjJ0nu3qf7zHZtYpurXpHQW//BsYXcMGsfTcNO2DeTAd2YZ71FRp71h3hruOR97rldz1Fias8ko2e6QtZMo3ZnuWXnmOEt/y03YHJcOZl2FrM3ZZvdvpRV/wOidpj1DxYQkJqYzhthg3BWd69n45fpNbqIz5RAr+prtEHhxW3CU5/qH+kYVagEdVx+pP6x1L5+7vtGU9vLspk1T6ffoRZ1i2tWwbNCUHRnxzuXVY46Ar+Xz0wPwfpRXwv9PN85Bc1gS8JPy1Tk/ecBp//KfYK1xYF0SRX5axb5BtdlYYNJxPAkqKVx444Rs/FPLpcl,iv:fXN6LROLY1vbOQMmrGiiOztYgulXDV2uZXQhaPnK0Q4=,tag:LPu1DaQSkddNbWbYP5dwcA==,type:str]
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: forgejo-pull
|
||||
namespace: sirius-growth
|
||||
type: kubernetes.io/dockerconfigjson
|
||||
sops:
|
||||
age:
|
||||
- enc: |
|
||||
-----BEGIN AGE ENCRYPTED FILE-----
|
||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBiLzBrd29tNkZpWVh4K1BJ
|
||||
UWtMMGhsa1RqWG04dkRHaEVUUm5MZkZyRVhjCjdCb2hEYlVCY2hBcEo2Mnk2L1NC
|
||||
TTd1NnNYU1c5SFNpY3hYY0t1Z2RHbnMKLS0tIFFQVGhodllFUExIV0ZCZm0vTnlZ
|
||||
ZFE1cURYMU41dmw1T0F2dC9BOFRxMm8KrBF8/v5iSPWYgS6Nb31xJfhJWZHDUk7p
|
||||
LMZHsoddSToOr4CqL8y91ka7MCtUyoJg1NiMnEng+KpI+EpaGjkQlw==
|
||||
-----END AGE ENCRYPTED FILE-----
|
||||
recipient: age12zdn7x72zrgu9cdv8wdj7xfx42nz09nrwpc2g09cwx5fwdm0ry6qp5h4jp
|
||||
encrypted_regex: ^(data|stringData)$
|
||||
lastmodified: "2026-11-27T05:16:43Z"
|
||||
mac: ENC[AES256_GCM,data:RfT47fcDHgOxbjX0HBwtFo6ddD5ijW0QahnTJor1qanCH6pFwqmlJM0BuUTcXfCQmyijJ1SKbaOPQEnkQ0O4zLh2mdUEoSCH7Ig4a6tTVaIVm2kwWfi5Un/uQ/Ok0f+Mc9Bjk7PslSO4szsu6/Q0EeSgVaryTZpslkg0q5NEi80=,iv:L0s0e3RRKKeXcu9tS4stXi/0CSxE9e5NS810jTIrHmI=,tag:fKt1vciLFy9U7JFu31p/fQ==,type:str]
|
||||
version: 3.13.3
|
||||
Loading…
Reference in a new issue