Two ExternalSecrets write to the same target Secret and its keys flip every refresh cycle
IntermediateTroubleshootingSecrets management: Vault, External Secrets and SOPS
Answer
Likely causes → Both use creationPolicy: Owner, so each one replaces the full Secret data with its own keys.
Diagnose →
kubectl get externalsecret -n prod -o custom-columns=NAME:.metadata.name,TARGET:.spec.target.name,POLICY:.spec.target.creationPolicy
kubectl get secret app -o yaml | yq '.metadata.ownerReferences'
Fix → Merge the data into one ExternalSecret with several data entries, or set the second one to creationPolicy: Merge so it only adds its keys to a Secret owned by the first.
Prevent → Use the convention of one target Secret per ExternalSecret, enforced by a policy that rejects duplicate spec.target.name values within a namespace.
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