ExternalSecret reports `could not get provider client: SecretStore "aws-sm" is not ready` or `SecretStore.external-secrets.io "aws-sm" not found`
BeginnerTroubleshootingSecrets management: Vault, External Secrets and SOPS
Answer
Likely causes → The ExternalSecret references kind: SecretStore (namespaced) while the store is a ClusterSecretStore, or the reverse. Another cause: the store itself failed validation (bad region, bad auth).
Diagnose →
kubectl get secretstore,clustersecretstore -A
kubectl describe clustersecretstore aws-sm # Conditions: Ready=False, reason
Fix →
spec:
secretStoreRef:
name: aws-sm
kind: ClusterSecretStore
Then fix whatever the store's status condition says.
Prevent → Template ExternalSecrets in a Helm library chart so kind and name are not hand-typed.
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