What is the External Secrets Operator?

IntermediateConceptDatabase connections in apps
Answer

Short answer

The External Secrets Operator (ESO) is a Kubernetes controller that reads secrets from an external secret manager — AWS Secrets Manager, Parameter Store, Azure Key Vault, HashiCorp Vault, GCP Secret Manager — and creates/updates normal Kubernetes Secrets from them automatically. The real secret lives in the vault; Git only contains a reference.

How it works

AWS Secrets Manager: prod/orders/db  ──(ESO polls, IRSA auth)──▶  K8s Secret orders-db  ──▶  pod env
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata: { name: orders-db }
spec:
  refreshInterval: 1h
  secretStoreRef: { name: aws-secrets, kind: ClusterSecretStore }
  target: { name: orders-db }
  data:
    - secretKey: password
      remoteRef: { key: prod/orders/db, property: password }

Why teams use it

  • GitOps-friendly — the ExternalSecret YAML is safe to commit.
  • Rotation — change the secret in the vault; ESO updates the K8s Secret on the next refresh.
  • Central audit — access is logged in the cloud secret manager.
  • Authenticates with workload identity (IRSA / Azure Workload Identity), so no static cloud keys.

What to say in the interview

"ESO syncs secrets from Secrets Manager, Key Vault or Vault into Kubernetes Secrets. We commit only ExternalSecret manifests, ESO authenticates with workload identity, and rotation in the vault flows into the cluster automatically."

All Build Tools (Java, Node.js, Python, .NET) questions Roadmap: Connecting apps to databases

More on Database connections in apps