Interview Prep/DevSecOps/Secrets management: Vault, External Secrets and SOPS

Vault pod restarted and `vault status` shows `Sealed: true`; every app now fails to fetch secrets

BeginnerTroubleshootingSecrets management: Vault, External Secrets and SOPS
Answer

Likely causes → Vault was set up with Shamir unseal keys, so every restart needs manual unsealing. Or auto-unseal is configured but the KMS key or Vault's IAM permission for it is gone.

Diagnose →

kubectl exec -n vault vault-0 -- vault status     # Seal Type: shamir / awskms
kubectl logs -n vault vault-0 | grep -i -E "seal|kms"

Fix → Short term: vault operator unseal with the quorum of key holders on each pod. Long term: switch to auto-unseal (seal "awskms", gcpckms, azurekeyvault or transit) using vault operator unseal -migrate.

Prevent → In production we always use auto-unseal, run 3 or 5 Raft nodes across zones, and alert on vault_core_unsealed == 0.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Secrets management: Vault, External Secrets and SOPS