Show an ExternalSecret for AWS Secrets Manager.
IntermediateConceptSecrets in GitOps
Answer
apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
name: db
namespace: payments
spec:
refreshInterval: 1h
secretStoreRef:
kind: ClusterSecretStore
name: aws-secrets-manager
target:
name: db-credentials
creationPolicy: Owner
data:
- secretKey: password
remoteRef:
key: prod/payments/db
property: password
The ClusterSecretStore uses provider.aws.service: SecretsManager with IRSA via auth.jwt.serviceAccountRef.
More on Secrets in GitOps
Why are plain Kubernetes Secrets a problem in GitOps?BeginnerHow does Sealed Secrets work?BeginnerWhat are Sealed Secrets scopes?IntermediateHow does Sealed Secrets key rotation work, and what must you back up?AdvancedHow does External Secrets Operator fit into GitOps?BeginnerHow does SOPS work, and how do you use it with Argo CD?Intermediate