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,24 @@
|
|||
apiVersion: v1
|
||||
data:
|
||||
database-url: ENC[AES256_GCM,data:2WCA8rHmHIPinTxigCO8tn+dljO1slCXyIRtkQ84v3ekUTRFMuSWL9t6FcnT+MEmogx/MsV3ACxmOfLGZH4FGYsRc9i2SmjqZ4YGlw43HUU58+IlKN8lMRQdFj6ejevBqpwkvMySLkrm2WWaUsYhL+YnwW8svtF1,iv:qYAQONgV0fTYZxtmsSMpXnJPc3OWO2doGdIBJS4Vipc=,tag:xpn8aTWuqaXVPPEs/DnOZw==,type:str]
|
||||
session-secret: ENC[AES256_GCM,data:39e5B6+dkhr/aa2t/zELR4EJbqbzs1u27UW4AqE1IjtYIAU2EuGGx/Lje7+zrG4s2SKq3EtNwYbINXn/zeL5n/KxboIqSWOPVvmQtU/29qShPVonNkdugw==,iv:+TyDMebxlcRyZDysmeB1WU+oFb9sFMmQDdVzgWt9jD0=,tag:y1tL1gB8Ri/byd3B9htfjg==,type:str]
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: sirius-growth-blog-app
|
||||
namespace: sirius-growth
|
||||
type: Opaque
|
||||
sops:
|
||||
age:
|
||||
- enc: |
|
||||
-----BEGIN AGE ENCRYPTED FILE-----
|
||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBBVzMxcXlSMkYyOFRkV3Zx
|
||||
eGw5Z3RyOSt5Rm95KzIyZTdPclNlSi9IcVJzCmZ3bXZQUHNoRlZhT0JDdmhnZWtO
|
||||
VVRyUGhKR3V2eHAyb1VzK3IrQXdnZmcKLS0tIGtVaE5NSloyNzJRUkNpQTE5YnZw
|
||||
T3JsdWtQOW5UNnFKVnJUZ2lOMUdZVjAKEN0eeLT3uMUmRq0RK9WG9I2lpaUMe3EY
|
||||
+U0nqJnW5ZRO3b32Y7akBu1Tz28Cz/IQo0G+bvXPeBY7tKk8mpP+qA==
|
||||
-----END AGE ENCRYPTED FILE-----
|
||||
recipient: age12zdn7x72zrgu9cdv8wdj7xfx42nz09nrwpc2g09cwx5fwdm0ry6qp5h4jp
|
||||
encrypted_regex: ^(data|stringData)$
|
||||
lastmodified: "2026-11-27T05:16:43Z"
|
||||
mac: ENC[AES256_GCM,data:hZ92xr8GDGxfeU/sTiD5ouRAZQBHg73B2Rick7OIKWPqFro4tlT7v7qjh32QiysQ8GkJmFN0O3XPuUHF7pKC4UsBrhJi4Co4LUwDib2SrW1OcKEompEdbxO/etg62X3e5LrpaT+ZM4XhYnfUB4lePBX0/dR6T93LtLy0vj/3ktI=,iv:H0Xbgp12vFE9iIAk1emRHOBpPQ4/JSLXMEHrdN1S+VI=,tag:suPN5kd3i6gfw5mhPVpPqQ==,type:str]
|
||||
version: 3.13.3
|
||||
Loading…
Reference in a new issue