Skip to content
Back to Insights

Getting Ranched by Flux CD: Confused deputy vulnerabilities in Fleet vs Flux CD multi-tenancy

Header image
  • Flux CD
  • Vulnerabilities

Fleet is Rancher's built-in GitOps engine, enabled by default in every Rancher installation. It manages the deployment of Kubernetes workloads across fleets of downstream clusters, driven by user-defined GitRepo and Bundle resources.

Fleet’s multi-tenancy model is built around workspaces which ordinary Rancher users with the default user global role can create through the Rancher UI. This self-service workflow is intentional and documented. Each workspace maps to a namespace on the management cluster, where users can create Cluster objects to register downstream clusters for Fleet to manage.

The Vulnerability

For a Cluster object to be managed by Fleet, it must reference a kubeconfig secret.

Kubernetes secrets are namespaced, so regular users cannot read a secret in a system namespace. However, Fleet's agent management controller, running on the Rancher management cluster, has cluster-admin privileges, which allow it to read any namespace.

If a malicious user were able to correctly guess the name of a kubeconfig secret outside of their namespace, they could modify a Fleet Cluster object they control to reference that secret. Fleet would then use this kubeconfig secret to connect to the cluster and place it under the malicious user’s management, essentially granting them full control over a cluster they shouldn’t have access to.

This is a classic “confused deputy” problem where a low privilege component (the user's Cluster object) abuses its trust relationship (the Cluster object itself) to obtain permissions from a higher privilege component (Fleet's agent management controller).

There is one catch, though! You need to know the secret’s name, and the kubectl API won’t allow you to list secrets outside your namespace; hence the CVSS score of 9.4 with “Attack Complexity: Low”. However, as there are standard naming conventions for these kinds of secret files, an attacker would likely find the right one after a few tries.

Full details can be found in the GitHub Advisory: GHSA-qfmw-gw96-ffcr (opens in a new tab) and CVE link: CVE-2026-94290 (opens in a new tab).

Why Flux CD is Different

Flux CD approaches multi-tenancy and self-service very differently; each Kustomization or HelmRelease can specify a serviceAccountName. When Flux CD applies resources to a cluster, it impersonates that service account rather than acting under its own identity.

This small design decision effectively removes the possibility of a “confused deputy”; in a correctly configured Flux instance, Flux will never use a highly privileged account to perform Kubernetes operations. This does mean that you need to make more upfront investment in RBAC per tenant; however, you completely remove an entire class of vulnerability, compared to Rancher / Fleet, which have closed this CVE but may be vulnerable to more in the future.

This blog post is not written to single out Rancher or the Fleet team; building secure multi-tenant GitOps systems is genuinely hard, and the team responded quickly with patches across four release branches. It is to highlight that the security properties of your GitOps tooling are architectural, not just configurational. That distinction matters when you’re deciding what runs on your management cluster.

Get in touch (opens in a new tab) with the team to find out how we can help secure your Kubernetes estate and evaluate your GitOps security posture (opens in a new tab).

View all

Speak to an expert

Engage with world-leading AI and cloud security specialists