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

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.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Secrets management: Vault, External Secrets and SOPS