Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of External Secrets Knowledge Patch?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nevaberry-external-secrets-knowledge-patch)
---
name: external-secrets-knowledge-patch
description: External Secrets Operator
version: "2.15.0"
license: MIT
metadata:
author: Nevaberry
---
# External Secrets Operator
Load this skill when configuring, upgrading, or diagnosing External Secrets
Operator resources, providers, Helm deployments, templates, generators, or
PushSecret workflows. Use the topic references for complete configuration
examples, provider details, and release-specific behavior.
## Reference index
| Reference | Topics |
| --- | --- |
| [API resources and reconciliation](references/api-and-reconciliation.md) | API transitions, validation, targets, namespace selection, refresh policies, sync windows, status, and logs |
| [Cloud, Vault, and Kubernetes providers](references/cloud-and-vault-providers.md) | AWS, Google, Vault, OpenBao, Kubernetes, Azure, IBM, other cloud stores, authentication, TLS, and replication |
| [Helm and operations](references/helm-and-operations.md) | Images, Flux, CRDs, RBAC, pod settings, certificates, probes, leader election, metrics, and dashboards |
| [Integration providers](references/integration-providers.md) | Provider removal, 1Password, Infisical, GitLab, GitHub, Passbolt, BeyondTrust, Delinea, Keeper, Akeyless, Conjur, Pulumi, and webhooks |
| [PushSecret workflows](references/push-secrets.md) | Generator inputs, template mappings, bulk pushes, ClusterPushSecret children, destinations, and cleanup |
| [Security and support](references/security-and-support.md) | Compatibility policy, upgrade cadence, tested Kubernetes versions, provider support, network policies, signatures, provenance, and SBOMs |
| [Templates, generators, and CLI](references/templates-generators-and-cli.md) | Removed functions and authentication, template parsing, certificate extraction, credential generators, esoctl, and builds |
## Breaking changes and deprecations
- The Alibaba and Device42 providers were removed. Migrate stores using either
provider before upgrading across their removal.
- JWT authentication was removed from the `STSSessionToken` generator. Migrate
configurations using it to a supported AWS authentication method.
- The `getHostByName` template function was removed. Replace calls before upgrading.
- For Infisical discovery, `spec.dataFrom[].find.path` matches the secret's path.
Existing filters that matched secret names can return different results.
- Replace ClusterExternalSecret's deprecated `spec.namespaceSelector` and
`spec.namespaces` with `spec.namespaceSelectors`; any matching selector deploys a child.
- The chart defaults to `ghcr.io/external-secrets/external-secrets`. Update image
overrides and allowlists referencing `oci.external-secrets.io/external-secrets/external-secrets`.
- The v2.12.0 chart reverts the v2.11.0 image registry handling change, restoring
the earlier behavior for registry overrides.
- v2.13.0 restricts which targets Secret templates can use through
`external-secrets.io/v1beta1`.
- Additional rewrite validation can reject previously accepted ExternalSecret rules
when reapplied. Namespace validation can reject invalid namespaces in `secretRef`.
## Target creation and recreation
`CreateOrMerge` creates a missing target Secret. If it exists, the ExternalSecret
merges its managed keys and preserves unrelated keys.
```yaml
spec:
target:
creationPolicy: CreateOrMerge
```
With `CreatedOnce`, the first reconcile of each new ExternalSecret can overwrite
an existing target Secret. Deleting and recreating the ExternalSecret can regenerate
credentials. Use `Orphan` to keep the Secret on deletion and `immutable: true` to
preserve existing data on recreation.
```yaml
spec:
refreshPolicy: CreatedOnce
target:
creationPolicy: Orphan
immutable: true
```
An ExternalSecret can synchronize to a dynamic resource target as well as a
Kubernetes Secret. Object metadata and owner references propagate to targeted
resources. Optional strategy fields stay unset when omitted; set a strategy
explicitly if clients need it to appear in the stored spec.
## Refresh policies and sync windows
Sync windows control periodic refreshes. Omitting `spec.refreshPolicy` defaults to
`Periodic`; `OnChange` and `CreatedOnce` ignore sync windows.
With `kind: allow`, refreshes can run only during an active window. With `kind: deny`,
any active window blocks refreshes. Windows use five-field UTC cron schedules and
a duration; invalid schedules count as inactive. The controller polls on its usual
`refreshInterval`, which should be shorter than the shortest window to avoid missing it.
```yaml
spec:
refreshInterval: 30m
syncWindows:
kind: allow
windows:
- schedule: "0 9 * * 1-5"
duration: 8h
```
Adding, updating, or removing `external-secrets.io/force-sync` on a
ClusterExternalSecret propagates the change to every child. To refresh one
ExternalSecret, update its `force-sync` annotation when its policy supports manual
refresh. Go clients can use `esv1.AnnotationForceSync` for an ExternalSecret or
ClusterExternalSecret.
## Store and namespace selection
- Use `spec.data[].sourceRef.storeRef` for a per-key store. Supply a store reference
for every entry when omitting top-level `spec.secretStoreRef`.
- A ClusterSecretStore's `spec.conditions` can restrict use by namespace labels,
exact names, or regular expressions. Any matching condition makes a namespace eligible.
- To fan out from one upstream reader, sync into a source namespace, configure the
Kubernetes store's `spec.provider.kubernetes.remoteNamespace` to that namespace,
grant its service account read access there, and set each child's
`dataFrom[].extract.key` to the source Secret's name via `spec.externalSecretSpec`.
- ClusterExternalSecret provisioning failures appear in `status.failedNamespaces`;
successes appear in `status.provisionedNamespaces`. Inspect the child's `Ready`
condition for Secret synchronization errors.
## PushSecret inputs, mappings, and cleanup
- Set exactly one of `selector.generatorRef` and `selector.secret`.
`spec.selector.generatorRef` pushes values produced by a generator.
- Inline templates and ConfigMap templates loaded by `spec.template.templateFrom`
expose output keys for `spec.data[].match.secretKey`. Use `index` for source keys
containing dashes; place explicit-mapping `conversionStrategy` alongside `match`.
- The proposed `spec.dataTo` expansion writes one provider secret per selected key
when `remoteKey` is omitted, or bundles values into one JSON object when it is set.
Each entry needs a `storeRef` matching a store in `spec.secretStoreRefs`.
- Templates run before expansion. Key conversion precedes regular-expression
filtering and per-key rewrites. Bundle entries use converted keys as JSON properties;
omit `rewrite` when setting `remoteKey`.
- `spec.dataTo[].conversionStrategy` defaults to `None`. `ReverseUnicode` decodes
escapes introduced by ExternalSecret's `Unicode` strategy. Rewrites run in order;
a Go-template transform receives the current key name in `.value`.
- An explicit `spec.data` mapping takes precedence for the same original, unconverted
source key. Duplicate remote keys within or across bulk entries fail reconciliation
and report conflicting sources. A zero-key match logs a warning while remaining `Ready`.
- `updatePolicy: IfNotExists` skips existing remote secrets. With `deletionPolicy: Delete`,
expanded destinations are tracked in `status.syncedPushSecrets` and cleaned up when
the source Secret is deleted. Cleanup preserves remote keys still in use.
- Cleanup finalizers are added only to stores the PushSecret processes. A reference
to a skipped store does not add a finalizer to that store.
Put ClusterPushSecret child settings under `spec.pushSecretSpec`. Any matching
`spec.namespaceSelectors` entry creates a child. Parent `spec.refreshTime` checks
that children exist; the child's `spec.refreshInterval` controls provider pushes.
The parent's `Ready` condition describes namespace provisioning. Inspect children
for provider sync errors.
## Helm installation, permissions, and availability
- When disabling a `crds.create…` value, disable its matching top-level `process…`
value. ClusterSecretStore uses `processClusterStore`.
- With `webhook.create: false`, keep `crds.conversion.enabled: false` (the default)
to avoid API server requests to the absent conversion endpoint.
- If externally installed CRDs lack `external-secrets.io/component`, set
`certController.enablePartialCache: false`.
- `scopedRBAC: true` disables cluster-scoped controllers, including
ClusterSecretStore and ClusterExternalSecret. An omitted `scopedNamespace`
defaults to the release namespace; set it to select the reconciliation namespace.
- Disabling `processClusterExternalSecret` removes chart-granted write permissions
on `externalsecrets`. Enabling it grants namespace `update` and `patch` for finalizers.
- TokenRequest-dependent stores and generators need rendered RBAC granting `create`
on `serviceaccounts/token`. To restrict TokenRequests, set
`rbac.serviceAccountTokenCreate: false` and grant per-account access with a Role
and RoleBinding, using the account name in `resourceNames`.
- `genericTargets.enabled: true` grants create, update, and delete permissions for
ConfigMaps. Add `genericTargets.resources` RBAC rules for custom resource types.
- With `leaderElect: true`, `leaderElectionID` defaults to
`external-secrets-controller`. The renewal deadline must be shorter than the lease
duration. If leader election is enabled and `rbac.leaderElection.create` is `false`,
grant lease permissions separately.
- The chart defaults to one replica per component and disabled PodDisruptionBudgets.
With `webhook.failurePolicy: Fail`, webhook unavailability can block affected writes;
use multiple webhook replicas and a disruption budget to maintain admission availability.
## Metrics, probes, and network access
With `serviceMonitor.enabled: true`, the default `skipIfMissing` render mode omits
the ServiceMonitor if its CRD is absent. `failIfMissing` fails Helm in that case;
`alwaysRender` renders without checking for the CRD.
Enable secure serving and authentication for RBAC-authenticated metrics:
```yaml
metrics:
listen:
secure:
enabled: true
auth:
enabled: true
```
The same structure applies under `webhook.metrics.listen` or
`certController.metrics.listen`. Secure serving falls back to self-signed
certificates if certificate settings are missing or invalid. Configure scrapers for
HTTPS when secure serving is enabled, and provide credentials permitted to read the
endpoint when access control is enabled.
`readinessProbe.enabled: true` starts the main controller's health server even with
liveness disabled. Its address and port still come from `livenessProbe.spec.address`
and `livenessProbe.spec.port`.
Component network policies are opt-in. Populate their empty-by-default `egress`
lists for DNS and the Kubernetes API server, and allow the core controller to reach
providers. Restrictive ingress needs webhook TCP 10250 from the API server; enabled
metrics use TCP 8080, and health probes use TCP 8082 for the core controller or
TCP 8081 for the webhook and certificate controller.
## Provider and template checks
- Explicit AWS credentials no longer fall back to IMDS. Combined AWS Secrets Manager
name and tag discovery filters require both to match.
- When a Kubernetes provider push writes a whole Secret, it replaces destination
data; destination keys absent from the source are removed.
- When a `PushSecret` creates a regional Google Secret Manager secret, the provider
omits replication settings.
- Vault token caching is no longer experimental; validation checks cached-token
expiry. Deprecated cache flags affect caching only when explicitly supplied.
- Keeper requires `folderID` when a push creates a new record; it is optional for
other operations. Webhook `spec.dataFrom[].find` returns an unsupported-operation error.
- Value-scope templates preserve original value types. Generic-target field paths
preserve capitalization, and template expressions support slice notation.
- Some template functions enforce size limits; logged bounds can help diagnose
size-related failures. Oversized webhook response bodies can fail synchronization.
- The `Password` generator supports multiple `secretKeys` and fixed `prefix` and
`suffix` text. The UUID generator emits lowercase version 4 UUIDs.
- Use `esoctl` for template/Secret rendering and generator bootstrapping.
## Diagnosis and support
SecretStore readiness can be unknown. Failed reconciliations retry less aggressively
and can take longer to retry. Check resource status conditions for reconciliation
error details that are safe to expose, and use `kubectl get externalsecrets,pushsecrets`
to inspect `Last Sync`.
Only the current minor release is supported. Upgrade one minor at a time and check
the tested Kubernetes version for each step. The support reference preserves the
provider feature matrix and compatibility policy, including the scope in which
Helm, images, signatures, and other release artifacts may have breaking changes.