Open Source
All templates and components

Cluster component

External Secrets Operator

Copies secrets from a store such as Vault or 1Password into the cluster and keeps them in sync.

Memory when idle
about 60 MiB
CI measures it once the app is ready and before any traffic. Leave room for more.
Tested on
x86 and ARM servers
Installed by default
Optional

Introduction

External Secrets Operator copies secrets from an external store, such as OpenBao, Vault, 1Password or AWS Secrets Manager, into Kubernetes Secrets. It keeps them in sync at the interval you set. Services read the result like any other Secret.

The component is optional. It does nothing until you add a SecretStore. The webhook certificate comes from cert-manager, so the chart’s own certificate controller is off.

The operator reads, creates, updates and deletes Secrets in every namespace. It also creates ServiceAccount tokens in every namespace, so a SecretStore can sign in as a ServiceAccount.

Before you install

  • Install cert-manager first. It issues the webhook certificate.
  • Prepare your secret store and read-only credentials for it.

Use it

Add a SecretStore in the namespace of the service, then an ExternalSecret that names the values to copy. See Sync secrets from an external store. It has steps for OpenBao, Vault, 1Password and AWS Secrets Manager.

Remove it

Removing the chart also deletes the CRDs, and with them every SecretStore and ExternalSecret. With the default creationPolicy: Owner, an ExternalSecret owns its Secret, so the Secret is deleted too and services lose the value. Before you remove it, set creationPolicy: Orphan on each ExternalSecret whose Secret must stay, or copy the Secrets. See Remove components.

Troubleshooting

An ExternalSecret is not ready

Run kubectl -n <namespace> describe externalsecret <name>. The status says whether the SecretStore is the problem. Then run kubectl -n <namespace> describe secretstore <name> to see if it can reach the store.

Creating a SecretStore fails

Writes to its CRDs go through the webhook. Check it with kubectl -n external-secrets get pods and kubectl -n external-secrets get certificate.

Technical details

This release

Provides
external-secrets
Licence
Apache-2.0

Tested in CI

CI installs these exact files on a new cluster, waits until they are ready, then records the idle memory.

DistributionPlatformKubernetesPassedIdle memory
k3slinux/amd64v1.37.256 MiB
k3slinux/arm64v1.37.255 MiB
kindlinux/amd64v1.37.055 MiB
kindlinux/arm64v1.37.055 MiB
kubesololinux/amd64v1.36.655 MiB
kubesololinux/arm64v1.36.654 MiB
rke2linux/amd64v1.37.255 MiB
rke2linux/arm64v1.37.256 MiB

Security

ClusterRole: reads, creates, updates and deletes Secrets in every namespace; creates ServiceAccount tokens in every namespace (for SecretStores that authenticate as a ServiceAccount); reads ConfigMaps, ServiceAccounts and its own CRDs; reads and updates Namespaces; creates Events. The webhook has no RBAC. The chart aggregates read access to its CRDs into view, and write access into edit and admin.

What it installs

  • external-secrets 2.15.0

Needs

  • any certificates component