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.
40 lines
1.4 KiB
YAML
40 lines
1.4 KiB
YAML
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
kind: Kustomization
|
|
resources:
|
|
- namespace.yaml
|
|
- deployment.yaml
|
|
- deployment-api.yaml
|
|
- deployment-portal.yaml
|
|
- deployment-blog.yaml
|
|
- deployment-portal-gate.yaml
|
|
- configmap-portal-gate.yaml
|
|
- service.yaml
|
|
- service-api.yaml
|
|
- service-portal.yaml
|
|
- service-blog.yaml
|
|
- service-portal-gate.yaml
|
|
- httproute.yaml
|
|
# The WAL archive store must exist before the Cluster references it.
|
|
- objectstore-portal-wal.yaml
|
|
- cluster.yaml
|
|
- scheduled-backup.yaml
|
|
- podmonitor.yaml
|
|
- pvc-leadgen.yaml
|
|
- cronjob-leadgen.yaml
|
|
- cronjob-leadgen-ncda.yaml
|
|
# exec-only RBAC so forgejo/cluster-backup can pg_dump this namespace's CNPG
|
|
# cluster (portal) without copying a database password across namespaces.
|
|
- backup-exec-rbac.yaml
|
|
# Snapshot mirror of the lead-gen capture PVC to the Linode.
|
|
- leadgen-backup.yaml
|
|
# Secrets, SOPS/age-encrypted in git. Flux decrypts them (the `apps`
|
|
# Kustomization carries a decryption block; key = flux-system/sops-age).
|
|
# Never add a plaintext Secret next to these — see docs/secrets-sops.md.
|
|
- secret-forgejo-pull.sops.yaml
|
|
- secret-portal-wal-s3.sops.yaml
|
|
- secret-sirius-growth-blog-app.sops.yaml
|
|
- secret-sirius-growth-blog-s3.sops.yaml
|
|
- secret-sirius-growth-contact.sops.yaml
|
|
- secret-sirius-growth-portal-app.sops.yaml
|
|
- secret-sirius-growth-portal-db.sops.yaml
|
|
- secret-sirius-growth-portal-s3.sops.yaml
|