Use Frostmoln Secrets with External Secrets Operator (ESO)
External Secrets Operator (ESO) syncs secrets from an external store into native Kubernetes Secret objects. Its generic webhook provider can read from any HTTP API — including Frostmoln Secrets — so you can keep your secrets managed in Frostmoln and have ESO mirror them into your clusters, with no ESO-side code and no custom provider.
This works on Frostmoln managed Kubernetes, where the platform installs ESO for you as a cluster add-on, and on any other Kubernetes cluster with internet egress that you run yourself — bring-your-own or on-prem — because ESO reaches the public API edge (api.frostmoln.cloud) over HTTPS.
What this does
You store a secret in Frostmoln once. On each refresh interval, ESO calls the Frostmoln lookup endpoint, reads the value, and writes it into a Kubernetes Secret your workloads consume as usual (env var or mounted file). When you rotate the value in Frostmoln, ESO picks up the new value on the next refresh.
Prerequisites
- ESO installed in the cluster.
- Frostmoln managed Kubernetes: select the External Secrets Operator add-on (
external-secrets) when you create the cluster, or add it to a running cluster. Do not install the chart yourself. See On Frostmoln managed Kubernetes. - Any other cluster: install the stock chart —bash
helm repo add external-secrets https://charts.external-secrets.io helm install external-secrets external-secrets/external-secrets \ -n external-secrets --create-namespace --set installCRDs=true
- Frostmoln managed Kubernetes: select the External Secrets Operator add-on (
- A Frostmoln API key. Create one under Account → API Keys in the portal (or with
fm account api-key create --name eso— keys carry no scopes any more) and grant it with an attached access policy — see the tip below. On Frostmoln managed Kubernetes, use Workload Identity instead. - Your tenant ID — from
fm auth whoamior the portal.
Grant the API key only the secrets read
With scopes retired (2026-10-21), a key's grant is an attached access policy: attach one whose rule allows secrets:secrets:read with fm iam policy attach <policy-id> --type api_key --id <key-id>. Frostmoln enforces the grant server-side, so a key without it is refused (403) by the Secrets service at request time — a policy naming only that genuinely restricts what the key can do, not just as a convention. Treat the key as sensitive; ESO stores it in a Kubernetes Secret.
On Frostmoln managed Kubernetes
The platform installs ESO for you, in the external-secrets namespace. Once it runs, authenticate it with Workload Identity — no API key — or with an API key as in Steps 1–3 below.
Add it when you create the cluster, or later
- When you create a cluster — select External Secrets Operator in the portal's create form, pass
--addons external-secretstofm kubernetes cluster create, or includeexternal-secretsinaddonsonfrostmoln_kubernetes_cluster. The cluster reports running first; ESO is applied a few minutes later, once the worker nodes have joined, and the add-on shows as Being applied until then. - To a running cluster —
- Portal — the cluster's Add-ons tab.
- fm CLI —bash
fm kubernetes cluster add-addons <cluster-id> --addons external-secrets - Terraform — add
external-secretstoaddonsand apply again; the update adds it to the running cluster without replacing the cluster.
Once you set addons in Terraform, keep the key there: an add-on added from the portal or fm that your addons does not list is removed on the next apply.
Adding it to a running cluster is not immediate: the addition starts its own reconciliation, and ESO reaches the cluster typically within minutes; if that reconciliation cannot be started it falls back to the platform's own reconciliation period, up to an hour. On a cluster whose control plane predates the add-on, the addition is accepted but ESO never arrives; create a new cluster to use it.
Wait until the add-on is ready
Each add-on has a Readiness: whether it is actually serving, as the cluster's control plane reports it. Its state, Applied (converged), only means the platform applied it. On the cluster's Add-ons tab, Readiness shows as Ready, Starting, Not ready or Unknown. In fm kubernetes cluster addons <cluster-id> (the READINESS column, readiness with -o json) and in the readiness attribute of the frostmoln_kubernetes_cluster_addons data source, the same values are ready, starting, not_ready and unknown. Wait until External Secrets Operator shows Ready (ready) before you create a SecretStore or ExternalSecret: until then ESO is still starting and refuses them (see Troubleshooting). That is usually about a minute after it is applied, longer if pulling the image from ghcr.io is slow.
Unknown (unknown) means the platform has no current report; it is not a failure by itself. New values may appear, so treat anything other than Ready as not ready yet. If Unknown persists, or no Readiness is shown at all (an older platform release), check the add-on directly, for example by creating a test SecretStore, or contact support.
Your nodes need outbound HTTPS to ghcr.io
The ESO controller image, ghcr.io/external-secrets/external-secrets, is pulled over your cluster's own outbound HTTPS when the pod starts. It is not preloaded onto your nodes. If you filter egress by hostname, allow bothghcr.io and pkg-containers.githubusercontent.com, because ghcr.io redirects image downloads there. ESO itself also needs outbound HTTPS to api.frostmoln.cloud to read your secrets. The platform does not check either; see Create a cluster.
Authenticate with Workload Identity (recommended)
With Workload Identity, ESO reads a short-lived token that the platform keeps in a Secret for you, so there is no API key to create, store or rotate. You need:
- Both add-ons on the cluster: External Secrets Operator and Workload Identity.
- A binding with an access policy that allows
secrets:secrets:read, for a ServiceAccount in the namespace where theSecretStorelives:bashfm kubernetes workload-identity binding create \ --cluster <cluster-id> --namespace default --service-account eso # Bindings can no longer carry scopes — the grant is the attached policy: fm iam policy attach <policy-id> --type workload_identity --id <binding-id> - That ServiceAccount, annotated to keep the token in a Secret named
frostmoln-token:yamlapiVersion: v1 kind: ServiceAccount metadata: name: eso namespace: default annotations: frostmoln.cloud/workload-identity-secret: frostmoln-token
The Secret already carries the external-secrets.io/type: webhook label, so skip Step 1. In Step 2, use this SecretStore instead — the same URL, with the token as a bearer header:
apiVersion: external-secrets.io/v1
kind: SecretStore
metadata:
name: frostmoln
namespace: default
spec:
provider:
webhook:
url: 'https://api.frostmoln.cloud/api/v1/tenants/<TENANT_ID>/secrets/lookup?name={{ .remoteRef.key }}'
headers:
Authorization: 'Bearer {{ .auth.token }}'
result:
jsonPath: '$.secretValue'
secrets:
- name: auth
secretRef:
name: frostmoln-token
key: tokenStep 3 is unchanged. How the Secret is kept, and when it is removed: Credential in a Secret.
What differs from a self-installed ESO
You cannot see ESO's pods or logs.
external-secretsis a protected platform namespace: your kubeconfig can neither read nor write anything in it, sokubectl -n external-secrets get podsandkubectl logsthere are refused. Read the status and events of your own objects instead, withkubectl -n <namespace> describe externalsecret <name>andkubectl -n <namespace> describe secretstore <name>.Namespaced resources only.
SecretStoreandExternalSecretare available.ClusterSecretStore,ClusterExternalSecretandPushSecretare not enabled.No move back below version 2.15. Once add-on version
v2.15.0-1or later has been applied to a cluster, it cannot be moved to an earlier version (v2.10.0-*), not even by removing the add-on and adding it again. The earlier version's CRDs do not know fields added in 2.15, such asappIDRefandinstallIDRefon the GitHub access token generator, orprefixandsuffixon thePasswordgenerator, so moving back would permanently remove them from your existing resources or make them impossible to update. Re-adding the add-on without choosing a version gives you the version it ran before, as long as that version can still be selected. That is an exception to the general rule in Add-on versions, where an add-on added without a version gets its recommended version.ESO can read every Secret in the cluster. Like upstream ESO, the add-on's controller has cluster-wide read access to Secrets, including in your namespaces. The platform restricts what it may write, not what it may read.
Service-account tokens are refused by design. ESO may not write Secrets in platform namespaces. In every namespace it may not create or update a Secret of type
kubernetes.io/service-account-token, or one carrying thekubernetes.io/service-account.nameannotation, and it may not request tokens for platform service accounts. AnExternalSecretwhose target would be such a Secret — throughtarget.template, or withcreationPolicy: Mergeinto an existing one — fails to sync, and the error inkubectl describe externalsecretcontains:textthe external-secrets add-on may not create or update a service-account token SecretRemove your own ESO first, in this order:
- With your own ESO still running, delete or orphan every
ExternalSecret, as in Removing the add-on. - Uninstall your ESO.
- Delete its CRDs.
Keep that order. Deleting a CRD deletes every
ExternalSecretof that kind, and undercreationPolicy: Ownertheir Secrets with them; with no controller left to remove their finalizers, the CRD stays stuck inTerminatingand the add-on cannot install its own. CRDs you leave in place are adopted as they stand, including any field you added.- With your own ESO still running, delete or orphan every
Removing the add-on
Removing the add-on also leaves the external-secrets namespace in place. It stays reserved for the platform, so your kubeconfig still cannot use it, and adding the add-on again reuses it.
Deal with every ExternalSecret BEFORE you remove the add-on
ESO adds a cleanup finalizer to every ExternalSecret. Removing the add-on deletes the ESO controller and its webhooks but leaves the CRDs, and with the controller gone nothing removes that finalizer. Any ExternalSecret still in the cluster then cannot be deleted, and neither can a namespace that contains one.
List the
ExternalSecrets in each namespace. A list across all namespaces is refused, so run it once per namespace:bashkubectl -n <namespace> get externalsecretsFor each
ExternalSecretwhose Secret you want to keep, do all of these, in order. Do not wait for ESO to drop its ownership on a sync: it does so only on a successful sync, and a failed fetch, an empty result underRetain, or some refresh settings skip it.<target>is the Secret named inspec.target.name, or theExternalSecret's own name if that is unset.- Set
creationPolicy: Orphanfirst; underOwner, ESO would add the owner reference back on its next sync:bashkubectl -n <namespace> patch externalsecret <name> \ --type=merge -p '{"spec":{"target":{"creationPolicy":"Orphan"}}}' - Check whether the Secret still has an owner reference:bash
kubectl -n <namespace> get secret <target> -o jsonpath='{.metadata.ownerReferences}' - Only if that printed anything, remove it, then run step 2.2 again until it prints nothing. A
422(Unprocessable Entity) from this patch is not a failure: the Secret has no owner reference to remove, so it is already safe.bashkubectl -n <namespace> patch secret <target> \ --type=json -p '[{"op":"remove","path":"/metadata/ownerReferences"}]' - Delete the
ExternalSecret; the Secret stays:bashkubectl -n <namespace> delete externalsecret <name>
- Set
For each
ExternalSecretwhose Secret you do not need, delete theExternalSecretwhile ESO is still running. Under the defaultcreationPolicy: Ownerits synced Secret is deleted with it, and anything still using that Secret breaks: pods that reference it fail when they next start, and if it is an image pull secret, new nodes can no longer pull the image.Only then remove the add-on — from the Add-ons tab, with
fm kubernetes cluster remove-addons <cluster-id> --addons external-secrets, or by dropping the key fromaddonsin Terraform.
If you already removed the add-on
Stripping the finalizer can delete the synced Secret
Under the default creationPolicy: Owner, the synced Secret is owned by its ExternalSecret. Once the finalizer is gone and the ExternalSecret is deleted, Kubernetes garbage collection deletes the Secret too — even with deletionPolicy: Retain.
For each remaining ExternalSecret:
- If the namespace itself is being deleted, you cannot keep the Secret: every Secret in it is deleted too, whatever its owner references. Recreate it elsewhere from Frostmoln Secrets. Otherwise, to keep its Secret, first check for an owner reference and remove it if there is one (steps 2.2 and 2.3 above).
- Strip the finalizer:bash
kubectl -n <namespace> patch externalsecret <name> \ --type=merge -p '{"metadata":{"finalizers":null}}' - If the
ExternalSecretis not already being deleted, delete it.
Only ExternalSecret carries this finalizer on Frostmoln clusters, because PushSecret and ClusterExternalSecret are not enabled.
Step 1 — Store the API key as a labeled Secret
API key: clusters other than Frostmoln managed Kubernetes
Steps 1 and 2 use an API key. On Frostmoln managed Kubernetes, use Workload Identity instead.
ESO's webhook provider reads the API key from a Kubernetes Secret. The Secret must carry the label external-secrets.io/type: webhook — the webhook provider refuses to read an unlabeled Secret.
Save the key to a local file that holds only the key, with no trailing newline. Create the Secret from that file, label it, then delete the file:
kubectl -n default create secret generic frostmoln-api-key --from-file=apikey=./apikey
# REQUIRED — the webhook provider ignores an unlabeled Secret
kubectl -n default label secret frostmoln-api-key external-secrets.io/type=webhook
rm ./apikeyUse kubectl create, not kubectl apply with a manifest: apply keeps the whole manifest, key included, in plain text in the Secret's kubectl.kubernetes.io/last-applied-configuration annotation. Do not commit the key to git. Only the SecretStore and ExternalSecret manifests below are safe to keep in source control.
Keep the key in a namespace of its own
A SecretStore reads the API-key Secret from its own namespace, so the key, the store and the ExternalSecrets that use it share one namespace. With a policy allowing secrets:secrets:read on every secret, the key can read every secret in your tenant, and so can anyone who can read Secrets in that namespace. Use a dedicated namespace for them and keep its RBAC tight, and see Least privilege to narrow the key. The examples on this page use default.
Step 2 — Create the SecretStore
The SecretStore points ESO at the Frostmoln lookup endpoint. Use the CRD group external-secrets.io/v1 (not the older v1beta1). Replace <TENANT_ID> with your tenant ID.
apiVersion: external-secrets.io/v1
kind: SecretStore
metadata:
name: frostmoln
namespace: default
spec:
provider:
webhook:
url: 'https://api.frostmoln.cloud/api/v1/tenants/<TENANT_ID>/secrets/lookup?name={{ .remoteRef.key }}'
headers:
# per-secret MAP: <secrets-entry-name>.<data-key>.
# {{ .apikey }} renders the whole map and the API returns 401 — use the .apikey key.
X-API-Key: '{{ .apikey.apikey }}'
result:
jsonPath: '$.secretValue'
secrets:
- name: apikey
secretRef:
name: frostmoln-api-key
key: apikeyThe {{ .remoteRef.key }} in the URL is filled in per ExternalSecret with the Frostmoln secret name (Step 3), so one SecretStore serves all your secrets.
Step 3 — Create an ExternalSecret
Each ExternalSecret maps one Frostmoln secret to one Kubernetes Secret. remoteRef.key is the Frostmoln secret name; target.name is the Kubernetes Secret ESO creates and keeps in sync.
apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
name: my-secret
namespace: default
spec:
refreshInterval: 1m
secretStoreRef: { name: frostmoln, kind: SecretStore }
target: { name: my-secret-synced }
data:
- secretKey: value # key inside the synced Kubernetes Secret
remoteRef: { key: my-secret-name } # the Frostmoln secret nameESO creates the my-secret-synced Secret with a value key holding the fetched secret value. Mount it or reference it from your Pod like any other Secret.
Refresh interval
refreshInterval controls how often ESO re-fetches. A short interval propagates rotations faster but makes more API calls; a longer one is lighter. Choose per secret based on how quickly a rotation must reach your workloads — a minute or a few minutes is typical.
Pin a specific version
Frostmoln secrets are versioned. To pin a version, add &version=N to the SecretStore URL (create a second SecretStore for the pinned secret):
url: 'https://api.frostmoln.cloud/api/v1/tenants/<TENANT_ID>/secrets/lookup?name={{ .remoteRef.key }}&version=2'Without &version, ESO always reads the latest version.
Least privilege: one store per workload
A store can read whatever its credential's access policy allows. With secrets:secrets:read on frn:secrets:*:*:secrets/*, that is every secret in the tenant, for every ExternalSecret that uses the store. To let a workload read only its own secrets, give it its own namespace, policy, credential and store. The example below is for a workload called auth-proxy.
Give the workload a namespace of its own. The namespace is the boundary (see the warning below): narrowing a store does not separate two workloads that share one.
Create a policy that allows only the secrets the workload needs. Target each secret by its id.
fm secrets list -o jsonshows every secret'sidnext to itsname.json{ "schemaVersion": "1", "rules": [ { "name": "auth-proxy-secrets", "access": "allow", "operations": ["secrets:secrets:read"], "targets": ["frn:secrets:*:*:secrets/sec_4Lx9TqWm2RkYc8VnJp3Hd6"] } ] }bashfm iam policy create --name auth-proxy-secrets --document @policy.jsonList more ids in
targetsfor more secrets. The id belongs to the secret, not the name: a secret deleted and created again under the same name gets a new id, so update the policy too.Give the workload a credential of its own, with only that policy. With Workload Identity, create a ServiceAccount for the store and a binding for it, and attach the policy to the binding. ESO reads the token from the Secret; no Pod has to run as this ServiceAccount, so do not reuse your application's ServiceAccount.
yamlapiVersion: v1 kind: ServiceAccount metadata: name: auth-proxy-eso namespace: auth-proxy annotations: frostmoln.cloud/workload-identity-secret: auth-proxy-tokenbashfm kubernetes workload-identity binding create \ --cluster <cluster-id> --namespace auth-proxy --service-account auth-proxy-eso fm iam policy attach <policy-id> --type workload_identity --id <binding-id>With an API key instead, create a new key for this workload and attach the policy to it. Either way, the narrow policy must be the credential's only grant: attach no other policy and never reuse an existing key.
Create the workload's own
SecretStorein its namespace, as in Workload Identity or Step 2, withsecretRef.nameset to that credential's Secret (auth-proxy-tokenabove). Point the workload'sExternalSecrets at it.
Each ServiceAccount needs its own token Secret name
Two ServiceAccounts in one namespace cannot share a token Secret name. If they do, the second one's token is never written, and its store keeps reading with the first one's grant. Use a distinct name per ServiceAccount, as auth-proxy-token above.
A read the policy denies shows on the ExternalSecret as a sync error; ESO does not create or change its target Secret.
Scoping by tag instead of by id
A rule can keep the wildcard target and add "constraints": { "equals": { "frn:resourceTag/workload": "auth-proxy" } }, so that only secrets tagged workload=auth-proxy are readable. This is weaker than listing ids: anyone allowed to create secrets, update their tags or change the tenant's default tags can make another secret readable through this store without touching its policy. Use it only if you also control who may set that tag (see Tags in access policies), and never use a key that is also one of the tenant's default tags.
A namespace is the isolation boundary
Anyone who can create an ExternalSecret, read a Secret or start a Pod in a namespace can use every credential kept there: any ExternalSecret can name any SecretStore in its namespace, and the API-key or token Secret behind a store can be read directly. On Frostmoln managed Kubernetes you cannot add admission rules for ESO objects, so reviewing manifests in your own pipeline is a convention, not an enforced boundary. Put each workload that needs its own policy in its own namespace. On a cluster you run yourself, prefer a namespaced SecretStore; a ClusterSecretStore is usable from every namespace unless its spec.conditions restricts it.
Deleting a secret is fail-safe
If you fm secrets delete a secret that ESO is syncing, the lookup starts returning an error (the secret enters pending-deletion). ESO's refresh fails (SecretSyncedError) and keeps the last synced Kubernetes Secret unchanged — it does not blank it out. Your workloads keep running on the last-known-good value.
Recover to resume syncing
While the secret is deleted, ESO cannot refresh it and the value in your cluster goes stale. Run fm secrets recover <name> within the recovery window to restore it; ESO then resumes syncing on the next interval. If the recovery window passes and the secret is permanently removed, the lookup keeps failing — recreate the secret to resume.
Troubleshooting
Check the ExternalSecret status with kubectl describe externalsecret <name>.
secret does not contain needed label— the API-keySecretis missing theexternal-secrets.io/type: webhooklabel (Step 1).401/ unauthorized — the header template is wrong. It must be{{ .apikey.apikey }}(<secrets-entry-name>.<data-key>);{{ .apikey }}renders the whole map and the API rejects it. Also check the key value and that the key hasn't expired.- Workload Identity: the
frostmoln-tokenSecret does not appear — check that the Workload Identity add-on is on the cluster, that the ServiceAccount carries the annotation and has a binding, and that no Secret of that name existed before: the add-on never overwrites a Secret it did not create. could not get secret data from provider— the secret name or tenant ID is wrong, or the secret is deleted / pending-deletion. Verify the name resolves:fm secrets get <name>.failed calling webhook "validate.secretstore.external-secrets.io"(orvalidate.externalsecret.external-secrets.io) when you create aSecretStoreorExternalSecret, with a message likePost "https://external-secrets-webhook.external-secrets.svc:443/validate-...": dial tcp 10.x.x.x:443: connect: no route to host— ESO is still starting. Check the add-on's Readiness (fm kubernetes cluster addons <cluster-id>or the Add-ons tab). The error stops once ESO shows Ready (ready); apply the object again then, because the rejected object is not retried. If Readiness is not Ready (ready) after a few minutes, check that your nodes can reachghcr.ioandpkg-containers.githubusercontent.com, then contact support.- Nothing syncs at all — check that the
SecretStoreusesexternal-secrets.io/v1, notv1beta1. On a cluster you run yourself, confirm ESO is running (kubectl -n external-secrets get pods). On Frostmoln managed Kubernetes you cannot list those pods: check the add-on's Readiness (fm kubernetes cluster addons <cluster-id>or the Add-ons tab). If the add-on is not listed or not Ready (ready), check that it was added more than a few minutes ago (if the platform said it could not start its reconciliation, allow longer: usually no more than an hour, more during platform maintenance), and that your nodes can reachghcr.ioandpkg-containers.githubusercontent.com.