homek8s/apps/base/osint/secret-osint-admin.sops.yaml
Sirius DevOps c8f0834886 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.
2026-11-27 00:18:14 -05:00

25 lines
1.7 KiB
YAML

apiVersion: v1
data:
ADMIN_PASSWORD_HASH: ENC[AES256_GCM,data:pM52EBdmrx+ZTJKVL3hK1xcMZ8PkhEExJnMzEx2zRblTRPoTCFM/2ghu/sfz7HpaHNvZ/izx8EQwyyRAHFlUj3rPeA7Cveek3FvXR6PWyMOdJ2t8aW9QN5QF8k3eXDDA7jP0WfF3tVFLc48oRed8V1kjqL0=,iv:Vv3R/Kq2BUlUrQ8y2TEsYSK59sDEPOEVn1hfjrmmFh0=,tag:u8iiY7QcYFGyZh2J9ttrnQ==,type:str]
ADMIN_SESSION_SECRET: ENC[AES256_GCM,data:u6ef6ry1H+jeC5o2fhs6dETG+AHxOz5nMpYhTWFU4wHraJtFgoMUudXX7pfsqvpvQ4SBMhgGNotkpyxW1ubSMf/MD4QYU2SUfCZwXawJoquBgFHGttm8Yg==,iv:phTH+xno6OCHgB1vvn03DIdubjd8qDpxXx6oe4Uc9Jo=,tag:QaTEFWAnj7bRZKUlhiEnkg==,type:str]
ADMIN_USER: ENC[AES256_GCM,data:GTC0VP8jl90=,iv:awQwkQGGpClTE2b/qjHg0gOyY0id4Ns/NJaHniQ0yTw=,tag:Jh0enTrfRUXofp0xOVzhMw==,type:str]
kind: Secret
metadata:
name: osint-admin
namespace: osint
type: Opaque
sops:
age:
- enc: |
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSA0TEJSWHVuR3gwVnVDbkRk
UWhsdnRvaUk5VkNKN3VicERneEpYVnNIeFVjCmg1ZkIrMjAzayt2WFdEc0ZpNzZp
czNhcUszazZ4QWpVTXVaUUk1YW9UcEUKLS0tIDI4T1plYjVEYXhGSUZRSE5JUnNJ
TmJvcmN4dmY2YUU3Zzd2aktEZHM5TFkK8NXP+DRnltYkuUIBJgG0LhxUnK2R3JBm
6+vgVHNGhtn1Dp7yYWTAbT7dAh9puJyG2E1unXi2cvnWRDyP/xlviA==
-----END AGE ENCRYPTED FILE-----
recipient: age12zdn7x72zrgu9cdv8wdj7xfx42nz09nrwpc2g09cwx5fwdm0ry6qp5h4jp
encrypted_regex: ^(data|stringData)$
lastmodified: "2026-11-27T05:16:44Z"
mac: ENC[AES256_GCM,data:tr6R/iqO9lIDrDl5NhKFUeqlAUaEJXOEvsEthaW/FpY9lMnwzzNUYVazFy5i3I34O3o71kPabrUUHfCiMnoD1+Echl/nZGpnQKQNEh2+CaG/cCavqVEYjw18sClGCUnBE8FdL9ccO2iAZAtkOlYjJimwT+9qauZIJGwTPakh22o=,iv:LuJtnsq4XSEI2NNWU3ST9eR5dwLOkeOstnlED6TJTOc=,tag:TlqvkhkP9bdd0ltAhQdghQ==,type:str]
version: 3.13.3