`sops -d secrets.enc.yaml` fails with `Failed to get the data key required to decrypt the SOPS file` and `no identity matched any of the recipients`
BeginnerTroubleshootingSecrets management: Vault, External Secrets and SOPS
Answer
Likely causes → Your age private key is not where SOPS looks for it, or the file was encrypted to recipients that do not include your public key.
Diagnose →
yq '.sops.age[].recipient' secrets.enc.yaml
age-keygen -y ~/.config/sops/age/keys.txt # your public key
echo "$SOPS_AGE_KEY_FILE"
Fix → Point SOPS at your key with export SOPS_AGE_KEY_FILE=~/keys/age.txt. On Linux the default path is ~/.config/sops/age/keys.txt. If your recipient is missing from the file, someone who can decrypt must add you (see Q112).
Prevent → Keep a team recipient list in .sops.yaml and document key setup in the repo README.
More on Secrets management: Vault, External Secrets and SOPS
`vault kv get secret/app/db` returns `Code: 403. Errors: * permission denied` although the policy allows `secret/app/*`BeginnerVault pod restarted and `vault status` shows `Sealed: true`; every app now fails to fetch secretsBeginnerPod stuck in `Init:0/1`; the `vault-agent-init` container logs `error authenticating: ... Code: 403 ... * permission denied`IntermediateAfter a cluster upgrade, Vault Kubernetes auth fails for every pod with `error validating token: invalid issuer (iss) claim`AdvancedPods annotated with `vault.hashicorp.com/agent-inject: true` start without a Vault sidecar, and the app fails on a missing fileBeginnerExternalSecret shows `SecretSyncedError` with `AccessDeniedException: ... is not authorized to perform: secretsmanager:GetSecretValue`Intermediate