# Flux 2.9: CLI Plugins, SSA Ignore Rules and OIDC Webhooks

> A close reading of the Flux 2.9 release: the CLI plugin system, server-side apply ignore rules, post-quantum age keys for SOPS, OIDC webhook Receivers and the upgrade traps.

URL: https://www.matthewswong.com/en/blog/flux-2-9-cli-plugins-gitops-features/

- Author: Matthews Wong (https://www.matthewswong.com/en/about/)
- Published: 2026-10-17
- Updated: 2026-10-17
- Category: DevOps

> **Key takeaway:** Flux 2.9, announced on 30 June 2026, makes the flux CLI extensible through plugins such as Mirror and Schema, adds server-side apply ignore rules so an autoscaler can own replicas, decrypts post-quantum age keys in SOPS, and lets webhook Receivers verify OIDC tokens instead of shared secrets. Check the Helm post-render default before upgrading.

The Flux 2.9 announcement lists more than a dozen changes, and the headline one is easy to misread. A plugin system sounds like convenience. It is closer to a change in where GitOps tooling lives: validation, registry mirroring and operator debugging move out of ad hoc scripts and into the same binary you already run in CI.

I have not run 2.9 in production, so this is not a field report. It is a close reading of the announcement, the RFC behind the plugin system, the Kustomization and Receiver reference pages and the plugin READMEs, with every flag below taken from those pages. Where a source is silent, I say so instead of filling the gap.

## The plugin system is a kubectl-style contract, with checksums

RFC-0013 models flux plugins on kubectl plugins: an executable named with the prefix flux- becomes a subcommand, so flux-operator is run as flux operator. The RFC says built-in commands win over plugins, nothing is scanned except one directory, and no plugin binary is executed during discovery, so a plugin cannot slow down flux commands that do not use it. Plugins are versioned independently of the CLI.

The install path is the part worth reading closely. The catalog lives in the fluxcd/plugins repository as YAML manifests with a per-platform download URL and a checksum. flux plugin install downloads to a temporary file, verifies the SHA-256 checksum, extracts only the declared binary, writes it with mode 0755 and records an install receipt beside it. The announcement recommends pinning by immutable digest for CI and production, and it names three plugins: Mirror, Schema and an Operator plugin maintained by ControlPlane.

One discrepancy to know about: the announcement says binaries land in a fluxcd/plugins folder under the home directory, while the RFC specifies ~/.fluxcd/plugins with a FLUXCD_PLUGINS override. I would trust the RFC and confirm with flux plugin list, which prints each plugin's path.

## Flux Schema turns manifest validation into a CI step

The Schema plugin validates Kubernetes YAML against JSON Schema and CEL rules, and its README says it reuses the API server's evaluation semantics for x-kubernetes-validations. Its built-in default catalog covers Kubernetes, OpenShift, Gateway API, Flux, Flagger and Flux Operator CRDs, and an ecosystem catalog adds schemas for other CNCF projects. That means a pull request can fail on a bad HelmRelease or Kustomization before a controller ever sees it.

The README ships a minimal workflow, reproduced below, and a Docker image that carries the default catalog at /catalog/latest so validation also works in an air-gapped runner. I pinned nothing in the workflow because I copied the README; in production I would replace main with a tag or commit, for the same reason the announcement pins plugins by digest.

The README is brief on writing your own CEL rules and points elsewhere for that, so I am not claiming how custom rules are authored. What it does document is flux schema discover, which catalogs the Flux and Kubernetes resources in a GitOps repository, and flux schema extract crd, which builds a catalog from your own CRDs.

## Flux Mirror takes the upstream registry out of the reconcile path

Mirror copies Helm charts, OCI artifacts and container images from one registry to another from a declarative config. The README frames the goal as feeding an internal registry so clusters never pull from upstream at reconcile time, and as a way to move charts off HTTP/S HelmRepository sources onto OCI. Re-runs only copy missing or drifted tags, and drift is reported through its own exit code.

Filtering for artifacts is a four-step pipeline of regex, semver, sort and top-N. Authentication covers Docker config and credential helpers, cloud workload identity for ECR, ACR and GAR, and several bearer sources. Signature verification is opt-in and checks keyless signatures on the source artifact before copying, with an optional minimum signature age.

The trade-off is that a mirror is infrastructure you now operate. If the sync job stops, your internal registry silently falls behind upstream, and a security fix upstream does not reach the cluster. Run flux mirror sync on a schedule and alert on its exit code rather than treating the first successful run as done.

## SSA ignore rules let another controller own a field

Before 2.9, an autoscaler and Flux fighting over spec.replicas was a classic GitOps annoyance. Kustomization now has spec.ignore, a list of rules with required JSON Pointer paths and an optional target selector. The reference page says ignored fields are excluded from drift detection and correction, and it describes two strategies: strip, which removes the field from the apply payload when another server-side apply manager owns it, and adopt, which copies the in-cluster value into the payload when Flux is the only apply manager.

The target accepts regular expressions for group, version, kind, name and namespace, plus label and annotation selectors. In paths, a slash inside a key must be written as ~1, which matters for annotation names. The example below is mine, built from those documented fields; it ignores replicas on every Deployment and one external-dns annotation on a single Service.

Two sentences from the reference page deserve to be read twice. Omitting target makes the rule match every object the Kustomization manages, and changes to ignored fields alone do not trigger a reconciliation. Both are correct behaviour, and both will surprise someone who expected a manual edit to be corrected at the next interval.

> An ignore rule without a target applies to every object in the Kustomization. If you meant only Deployments, write kind: Deployment. A rule that is broader than you intended hides drift on fields you still want Git to own, and nothing will report it.

## OIDC Receivers remove the shared webhook secret

A generic Receiver has always been protected by a token. The new generic-oidc type verifies an OIDC ID token sent as an Authorization Bearer header instead, so CI holds no stored secret. The controller matches the token's iss claim to a configured provider, checks signature, expiry and audience (default notification-controller), then evaluates your CEL validations. Every one must be true or the request is rejected and the failing message is returned.

What the caller presents

A Receiver token, a shared secret

An OIDC ID token from the CI provider

Secret stored in CI

Yes, the token

No, and spec.secretRef is rejected for this type

What authorises the request

Knowing the token

Valid signature, expiry, audience and every CEL validation true

Per-resource filter variables

res and req

res, req and claims

The same release adds per-resource filtering: each entry in spec.resources can carry a CEL filter, and it stacks with the top-level resourceFilter, so a resource is reconciled only when both return true. There is also a new flux trigger receiver command that sends the request for you, with --type generic-oidc and --oidc-provider github or forgejo. On GitHub the job needs the id-token write permission.

The reference page is blunt about the risk: a valid signature does not authorise anything by itself. Public issuers such as GitHub Actions hand tokens to any workflow on the platform, so your validations must pin identity claims such as repository_owner and repository. Event filtering through spec.events is not supported for this type, and an invalid CEL expression marks the Receiver Stalled with reason InvalidCELExpression and rejects every request.

## Post-quantum age keys and secret-less Vault in the decrypt path

The release notes list SOPS decryption with the Age post-quantum cipher for Kustomization, and give no more detail: no SOPS or age version numbers. For the key side, the age README says hybrid post-quantum keys are generated with age-keygen -pq, are built into age v1.3.0 and later, start with AGE-SECRET-KEY-PQ-1 for the identity and age1pq1 for the recipient, and that recipients are about 2000 characters long.

On the Flux side nothing changes in shape: the Kustomization decryption block still names provider sops and a Secret, and an age identity goes in a key whose name ends in .agekey. What I could not confirm from the pages I read is which SOPS release you need to encrypt with a post-quantum recipient, because the SOPS README is silent on it. Test encrypt and decrypt in a scratch repository before you commit the first real secret.

The second secrets change is Workload Identity for OpenBao and HashiCorp Vault. The reference page explains that kustomize-controller exchanges its ServiceAccount token for a short-lived Vault token through a JWT-backed auth method, enabled with the --sops-vault-configmap flag. That ConfigMap doubles as an allowlist of Vault addresses, the token audience is the Vault address, and the Vault role is derived as namespace_name from the ServiceAccount. It also requires the ObjectLevelWorkloadIdentity feature gate when you use serviceAccountName.

> A static sops.vault-token takes priority over Kubernetes auth, which in turn beats the global VAULT_TOKEN environment variable. When you migrate to Workload Identity, delete the old token Secret, or the controller will keep using it.

## What breaks when you upgrade, and what does not

The announcement has a short list of changes that can fail a reconcile after upgrade. They are all knowable in advance, which is why I would put them in a pre-flight checklist rather than discover them from a stalled Kustomization.

Helm post-render default moves from nohooks to combined

Chart hooks are now included in post-rendering, which can change rendered output

Set nohooks explicitly on HelmReleases that depend on the old behaviour

image and notification v1beta2 APIs removed from the CRDs

Manifests still on those versions can no longer be applied

Run flux migrate to move resources to the stable APIs first

GCR Receivers require email and audience in the referenced Secret

GCR Receivers now need those fields, so existing ones can stop working until the Secret is updated (CVE-2026-40109)

Add both fields to the Secret before the controller rolls

Supported Kubernetes is 1.34, 1.35 and 1.36

Older clusters are outside the supported matrix; Flux 2.6 is end of life

Compare your server version with the minimums 1.34.1, 1.35.0 and 1.36.0

The plugin system itself carries limits the RFC lists for v1beta1: checksums are SHA-256 only with Cosign and SLSA deferred, no plugin dependencies or version ranges, no automatic update checks and no authentication for private catalogs. Flag names can also differ between Flux and a plugin, the RFC's own example being --context against --kube-context. None of this is a reason to avoid plugins, but it is a reason to pin digests and treat plugin updates as a reviewed change.

The 2.8 release belongs in the same conversation. It made Helm v4 behaviour, with server-side apply and kstatus health checks, the default for new HelmReleases while existing ones keep client-side apply until you opt in, and its UseHelm3Defaults feature gate restores the previous defaults. If you are jumping from before 2.8, read both announcements and the upgrade procedure discussion the 2.9 post links to.

## What to do on Monday

Do these in order. Steps one and two protect the upgrade, step three changes nothing in the cluster, and steps four and five are the real adoption work.

1. Find resources on removed API versions and run flux migrate against them before touching the controllers.
2. Set the Helm post-render strategy explicitly on any HelmRelease whose chart ships hooks, then upgrade and compare rendered output.
3. Add flux schema validate to a pull request workflow in report-only mode, and read what it flags in your repository for a week.
4. Replace one HPA-versus-Git conflict with a targeted spec.ignore rule, with kind set, and confirm the field is no longer reverted.
5. Move one webhook from a token to generic-oidc with pinned repository claims, then delete the stored secret from CI.

Steps one and two are the ones that prevent an incident. Steps three to five are improvements you can take at your own pace, and each can be reverted by deleting a file or a field.

Flux 2.9 is best read as a set of small boundaries redrawn: the CLI can grow without the core growing, Flux can leave a field to someone else, and a webhook can trust an identity instead of a string. Pin what you install, scope every rule with a target or a claim, and read the post-render default before you upgrade.

## Sources and further reading

- Flux blog: Announcing Flux 2.9 GA
- Flux RFC-0013: CLI plugin system
- Flux docs: Kustomization reference, drift ignore rules and decryption
- Flux docs: Receivers, generic-oidc and per-resource filtering
- Flux docs: flux trigger receiver
- GitHub: fluxcd/flux-schema README
- GitHub: fluxcd/flux-mirror README
- GitHub: FiloSottile/age README, post-quantum keys
- Flux blog: Announcing Flux 2.8 GA
- GitHub: Flux v2.9.0 release notes

## Source links

- https://fluxcd.io/blog/2026/06/flux-v2.9.0/
- https://github.com/fluxcd/flux2/blob/main/rfcs/0013-cli-plugin-system/README.md
- https://fluxcd.io/flux/components/kustomize/kustomizations/
- https://fluxcd.io/flux/components/notification/receivers/
- https://fluxcd.io/flux/cmd/flux_trigger_receiver/
- https://github.com/fluxcd/flux-schema
- https://github.com/fluxcd/flux-mirror
- https://github.com/FiloSottile/age
- https://fluxcd.io/blog/2026/02/flux-v2.8.0/
- https://github.com/fluxcd/flux2/releases/tag/v2.9.0

## FAQ

### What is new in Flux 2.9?

Flux 2.9, announced on 30 June 2026, adds a CLI plugin system (RFC-0013) with Mirror and Schema plugins, server-side apply ignore rules on Kustomization, SOPS decryption with the Age post-quantum cipher, and OIDC-secured webhook Receivers. It also changes the default Helm post-render strategy and removes two v1beta2 APIs.

### How do I install a Flux CLI plugin?

Run flux plugin install followed by the plugin name, for example flux plugin install schema. The CLI downloads the binary, verifies its SHA-256 checksum against the catalog and registers it as a flux subcommand. For CI and production, pin a version or an immutable digest instead of taking the latest.

### How do I stop Flux from reverting replicas managed by an HPA?

Add a spec.ignore rule to the Kustomization with the JSON Pointer path /spec/replicas and a target such as kind: Deployment. Always set the target, because a rule without one matches every object the Kustomization manages. Changes to ignored fields alone do not trigger a reconciliation.

### How does the generic-oidc Receiver authenticate a webhook?

The caller sends an OIDC ID token as a Bearer header. notification-controller matches the issuer, checks the signature, expiry and audience, then evaluates your CEL validations, all of which must be true. Because public issuers such as GitHub Actions issue tokens to any workflow, validations must pin claims like repository_owner and repository.

### What should I check before upgrading to Flux 2.9?

Migrate resources off the removed image and notification v1beta2 APIs with flux migrate, and set the Helm post-render strategy to nohooks explicitly if you depend on the old default of nohooks versus the new combined. Update GCR Receiver Secrets with email and audience fields. Confirm your Kubernetes version is 1.34, 1.35 or 1.36.

---

- HTML version: https://www.matthewswong.com/en/blog/flux-2-9-cli-plugins-gitops-features/
- Bahasa Indonesia: https://www.matthewswong.com/id/blog/flux-2-9-cli-plugins-gitops-features/
- Site index for agents: https://www.matthewswong.com/llms.txt
- Sitemap: https://www.matthewswong.com/sitemap.xml
- API description (OpenAPI): https://www.matthewswong.com/openapi.json
