Secrets flow
Git holds secret references, not their values. Vault stores credential values, External Secrets authenticates using Kubernetes identity, and the resulting namespaced Kubernetes Secrets are consumed by workloads.
Installation is only the first step
| Responsibility | Owner |
|---|---|
| Install Vault and External Secrets | Flux secrets group |
| Initialize and unseal Vault | Operator |
| Configure Kubernetes authentication, the KV mount, policy, and role | Terraform under iac/vault |
| Choose and preserve credential values in private tfvars | Operator |
| Populate application and tunnel credential records | Terraform under iac/vault |
| Read approved Vault paths and synchronize Kubernetes Secrets | External Secrets |
| Consume the delivered Secrets | Shoutrrr, Homepage widgets, and Cloudflared |
The vault ClusterSecretStore authenticates at auth/kubernetes using role eso, the external-secrets service account, and audience vault. It reads the external-secrets KV v2 mount. The service address http://vault.vault.svc.cluster.local:8200 uses Kubernetes DNS and does not depend on the workstation hosts file.
The secret-store gate
A running Vault pod can still be sealed or uninitialized. Until authentication and the required values work, the secret store and dependent application credentials remain unready. Homepage's basic dashboard and Linkding are independent of this chain.
Follow Vault bootstrap. Terraform creates the Vault configuration and writes the application and enabled tunnel records from sensitive private inputs. It does not manage application-generated OAuth tokens.
Secret ownership
The operator owns credential values and recovery material. A manifest reference or an available token does not grant automation permission to read or mutate secrets. Keep .env, Terraform inputs/state/plans, unseal keys, and Raft snapshots outside the public repository. Use the recovery runbook when the cluster or Terraform state changes.
Shoutrrr has its own ExternalSecrets and waits for the same secret store through its own Flux group. Shoutrrr stores its runtime provider tokens in SQLite, encrypted using its stable APP_KEY; Terraform cannot recreate that application data. Cloudflared consumes its separate Terraform-managed tunnel credential from Vault.