Skip to content
Back to skills

External Secrets Knowledge Patch

ASecurity

External Secrets Operator

  • 25 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 5, 2026
developmentrustgoexpresskubernetesawsgcpazuregitapisecurity

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill external-secrets-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of External Secrets Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for External Secrets Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-external-secrets-knowledge-patch-nevaberry-plugins/badge)](https://www.skillsdirectory.com/skills/nevaberry-external-secrets-knowledge-patch-nevaberry-plugins)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: external-secrets-knowledge-patch
description: External Secrets Operator
version: "2.15.0"
license: MIT
metadata:
  author: Nevaberry
---


# External Secrets Operator compatibility guidance

Load this skill when upgrading External Secrets Operator, configuring stores and
generators, writing ExternalSecrets or PushSecrets, or operating its Helm chart.
Use the topic references for complete configuration details and examples.

## Reference index

| Reference | Topics |
| --- | --- |
| [API and reconciliation](references/api-and-reconciliation.md) | API validation, target policies, sync windows, namespace selection, status, manual refresh |
| [Cloud and Kubernetes providers](references/cloud-and-kubernetes-providers.md) | AWS, Google, Azure, Kubernetes, IBM, Barbican, other cloud stores, provider support matrix |
| [Helm, operations, and security](references/helm-operations-security.md) | Upgrade policy, images, CRDs, RBAC, probes, leader election, TLS, metrics, network policies, signing |
| [Push workflows](references/push-workflows.md) | Generator inputs, templates, bulk pushes, ClusterPushSecret children, cleanup |
| [Templates, generators, and CLI](references/templates-generators-cli.md) | Template functions, decoding, certificates, credential generators, esoctl, source builds |
| [Vault and integration providers](references/vault-and-integration-providers.md) | Vault, OpenBao, 1Password, Akeyless, Infisical, BeyondTrust, Delinea, Conjur, GitHub, GitLab, other integrations |

## Breaking changes and deprecations

- The Alibaba and Device42 providers were removed. Migrate stores using either provider before upgrading.
- JWT authentication was removed from `STSSessionToken`. Migrate JWT configurations to a supported AWS authentication method.
- `getHostByName` was removed from the template function set. Replace calls before upgrading.
- The chart defaults to `ghcr.io/external-secrets/external-secrets`. Update image overrides and registry 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 registry override behavior.
- Infisical `spec.dataFrom[].find.path` matches the secret's path. Filters that previously matched names can return different results.
- A whole-Secret push through the Kubernetes provider replaces destination data and removes destination keys absent from the source.
- ExternalSecret rewrite rules have additional validation; previously accepted rules may be rejected when reapplied.
- Validation checks the generator type in `generatorRef` and the namespace in `secretRef`.
- v2.13.0 restricts which targets Secret templates can use through `external-secrets.io/v1beta1`.
- Replace deprecated ClusterExternalSecret `spec.namespaceSelector` and `spec.namespaces` with `spec.namespaceSelectors`.
- Deprecated Vault token-cache flags affect caching only when explicitly supplied in controller arguments.

External Secrets Operator supports only its current minor release. Upgrade one
minor at a time and check the tested Kubernetes version for each step.
Kubernetes support is guaranteed only for versions exercised by its test suite.
The references include the tested-version matrix and deprecation guarantees.

Helm charts, source-code imports, release artifacts, images, and signatures can
have breaking changes at any time, following the project's deprecation process.

## Target creation and metadata

`CreateOrMerge` creates a missing target Secret or merges managed keys into an
existing Secret while preserving unrelated keys.

With `CreatedOnce`, the first reconcile of each new ExternalSecret can overwrite
an existing target Secret. Deleting and recreating the ExternalSecret can
therefore regenerate credentials. Use the following settings to keep the Secret
on deletion and preserve its existing data on recreation:

```yaml
spec:
  refreshPolicy: CreatedOnce
  target:
    creationPolicy: Orphan
    immutable: true
```

By default, labels and annotations are copied from the ExternalSecret to its
target Secret. A target template supplies its own metadata; empty `labels` and
`annotations` maps under `spec.target.template.metadata` suppress the copy.
Target templates can also define finalizers for the generated Secret.

ExternalSecrets can synchronize to dynamic resource targets. The operator
propagates object metadata and owner references, and generic-target template
field paths preserve capitalization. Optional strategy fields stay unset when
omitted; set them explicitly if clients need them in the stored spec.

## Refresh policies, windows, and manual synchronization

Sync windows control periodic refreshes. An omitted `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.

Each window uses a five-field UTC cron schedule and a duration. Invalid schedules
count as inactive. The controller checks 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. For a single
ExternalSecret, update `force-sync` when its refresh policy supports manual refresh.

```sh
kubectl annotate ces my-ces external-secrets.io/force-sync="$(date +%s)" --overwrite
kubectl annotate es my-es force-sync="$(date +%s)" --overwrite
```

Go clients can use `esv1.AnnotationForceSync` when setting the force-sync annotation.
Failed reconciliations retry less aggressively and can take longer to retry.

## Store selection and namespace distribution

Use `spec.data[].sourceRef.storeRef` for a per-key store. When omitting the
top-level `spec.secretStoreRef`, supply a store reference for each entry.
`SecretStore.spec.refreshInterval` accepts duration strings such as `5m`.

A ClusterExternalSecret deploys a child in a namespace if any entry in
`spec.namespaceSelectors` matches. ClusterSecretStore `spec.conditions` restricts
use by namespace labels, exact names, or regular expressions; any match qualifies.

Check `status.failedNamespaces` and `status.provisionedNamespaces` for child
provisioning. Inspect each child ExternalSecret's `Ready` condition for Secret
synchronization errors. A SecretStore can report an unknown status.

For distribution from one upstream reader, sync into a source namespace with one
ExternalSecret. Point the Kubernetes provider's `spec.provider.kubernetes.remoteNamespace`
on the ClusterSecretStore at that namespace, grant its service account read access
there, and set each child's `dataFrom[].extract.key` through `spec.externalSecretSpec`.

## PushSecret sources, bulk pushes, and cleanup

Set exactly one of `selector.generatorRef` and `selector.secret`.
For inline or ConfigMap templates, map the rendered output key with
`spec.data[].match.secretKey`. Use `index` for source keys containing dashes.

The proposed `spec.dataTo` workflow pushes selected source Secret keys. Omit
`remoteKey` for one provider secret per selected key; set it to bundle values into
one JSON object. Each entry's `storeRef` must match a store in `spec.secretStoreRefs`.
`storeRef.kind` defaults to `SecretStore`; use `ClusterSecretStore` for a cluster store.

Templates run before expansion. Key conversion precedes regex matching and rewrites.
`conversionStrategy` defaults to `None`; `ReverseUnicode` decodes ExternalSecret
`Unicode` escapes. Rewrites run in order; a transform receives the current key in
`.value`. Bundle entries use converted keys as JSON properties, so omit `rewrite`
when setting `remoteKey`.

Explicit `spec.data` mappings win for the same original, unconverted source key.
Duplicate remote keys fail reconciliation and report conflicting sources. Invalid
patterns put the PushSecret in an error state. Zero matches log a warning while
the PushSecret stays `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.

Put ClusterPushSecret child configuration under `spec.pushSecretSpec`.
The parent's `spec.refreshTime` checks child existence; each child's
`spec.refreshInterval` controls provider push reconciliation. The parent's `Ready`
condition reports namespace provisioning; inspect child status for provider errors.

## Templates, generators, and provider details

Templates support custom delimiters, native typed values in value scope, slice
notation, and decoding from `templateFrom`. Use `hexdec` for hexadecimal decoding
and `certSANs` for certificate SAN extraction. Certificate-only PKCS#12 archives
are supported for certificate extraction. Some template functions enforce size
limits; the operator logs template bounds for diagnosing size-related failures.

`SSHKey` supports ECDSA pairs. Set `secretKeys` on a `Password` generator for multiple output keys;
starting in v2.12.0, Password generators can add fixed prefixes and suffixes.
UUID output is lowercase version 4. MFA token length and Grafana `SecondsToLive`
are optional. `ECRAuthorizationToken` supports custom endpoints and resolves
credentials through the AWS credential provider chain.

`VaultDynamicSecret` accepts empty responses with `allowEmptyResponse: true` and
supports query parameters for `GET`. `esoctl` renders template data and secrets
and bootstraps generators. The generator reference lists registry and service tokens.

Explicit AWS credentials no longer fall back to IMDS. Google Secret Manager can
omit `projectID` when it can be discovered from the GCP metadata server. The
Kubernetes provider can omit `auth` and uses system CA roots when no CA is configured.
Check the provider references for authentication, discovery, writes, and deletion
policy support; the feature matrix distinguishes these operations by provider.

The webhook provider does not support `spec.dataFrom[].find`; `GetAllSecrets`
returns an unsupported-operation error. Oversized webhook response bodies can
fail synchronization. Vault metadata lookups strip an already-present mount prefix
starting in v2.14.0, matching secret data reads.

## Helm installation, access, and availability

When disabling a `crds.create…` value, also disable the corresponding top-level
`process…` value. The ClusterSecretStore switch is `processClusterStore`.
When `webhook.create: false`, keep `crds.conversion.enabled: false` (the default).
For CRDs installed without `external-secrets.io/component`, set
`certController.enablePartialCache: false`.

`scopedRBAC: true` disables cluster-scoped controllers. An omitted
`scopedNamespace` defaults to the release namespace. Disabling
`processClusterExternalSecret` also removes ExternalSecret write permissions.
Check TokenRequest permissions when stores or generators need them; use
`rbac.serviceAccountTokenCreate: false` and selected Role/RoleBinding grants to restrict them.

With `leaderElect: true`, the lease name defaults to `external-secrets-controller`.
Lease duration, renewal deadline, and retry defaults are `15s`, `10s`, and `2s`;
the renewal deadline must be shorter than the lease duration. If
`rbac.leaderElection.create: false`, supply lease permissions separately when election is enabled.

The chart defaults to one replica per component and disabled disruption budgets.
With `webhook.failurePolicy: Fail`, webhook unavailability can block affected writes;
use multiple webhook replicas and a disruption budget to maintain admission availability.
Readiness can start the main health server without liveness; its address and port
still use `livenessProbe.spec.address` and `livenessProbe.spec.port`.

For RBAC-authenticated metrics, enable both `metrics.listen.secure.enabled` and
`metrics.listen.auth.enabled`; configure HTTPS scrapers with permitted credentials.
The default ServiceMonitor mode, `skipIfMissing`, omits it when its CRD is absent;
`failIfMissing` fails rendering, and `alwaysRender` skips the CRD check.

Component network policies are opt-in. Populate empty egress lists for DNS and the
Kubernetes API, and permit the core controller to reach its providers. With
restrictive ingress, allow TCP 10250 for the webhook; enabled metrics use TCP 8080,
and health probes use TCP 8082 for the controller or TCP 8081 for the other components.
The operations reference contains certificate, TLS, image verification, provenance,
and SPDX attestation instructions with their documented image identity.

Files in this skill

  • SKILL.md10.4 KB
  • coverage.json2.8 KB
  • references/api-and-reconciliation.md7.5 KB
  • references/cloud-and-kubernetes-providers.md6.4 KB
  • references/helm-operations-security.md10.4 KB
  • references/push-workflows.md7.6 KB
  • references/templates-generators-cli.md5.3 KB
  • references/vault-and-integration-providers.md6.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.