Fleet copies Secrets and ConfigMaps that a tenant cannot read to downstream clusters through Bundle downstreamResources
Description
Impact
A vulnerability exists in Fleet where Secrets and ConfigMaps listed in a Bundle's downstreamResources were copied to downstream clusters. Fleet did not check whether the tenant behind the Bundle may use them.
Fleet copies the Secrets and ConfigMaps listed in downstreamResources. It copies them from the Bundle's namespace on the management cluster to the deployment's target namespace. This happens on every downstream cluster the Bundle targets. The Fleet controller reads those objects with its own credentials. On affected versions, it copied any object in the namespace that the Bundle named.
A tenant might be able to create a Bundle, GitRepo, or HelmOp in a Fleet namespace without being able to read Secrets there. This issue enables the tenant to obtain the content of any Secret or ConfigMap in that namespace. The tenant achieves this by having the objects copied to a downstream cluster namespace where their own workloads run. The documented tenant setup grants tenants no access to Secrets in their namespace. However, the operator stores the tenant's Git, Helm, and OCI registry credentials there. The impact extends to the systems those credentials protect. The field can be set directly on a Bundle, in the fleet.yaml of a GitRepo, and on a HelmOp. Allowing tenants only GitRepo or HelmOp resources does not reduce exposure.
On versions before v0.16.2, v0.15.7, and v0.14.11, the copy was written to the downstream cluster with the Fleet agent's credentials. This behavior is covered separately by CVE-2026-88808.
Preconditions
- The issue affects multi-tenant installations. In these installations, tenants are separated by RBAC on the management cluster and by a Fleet
Policy. This policy setsrequireServiceAccountand pins their deployments to least privilege ServiceAccounts. In an operator-only installation, everyone who can create Fleet resources is trusted with the Fleet agent's privileges. Therefore, there is no boundary to cross. - Fleet v0.16 (Rancher v2.15) is affected in a default installation. On Fleet v0.14 and v0.15 (Rancher v2.13 and v2.14),
downstreamResourcesis behindEXPERIMENTAL_COPY_RESOURCES_DOWNSTREAM. This flag is disabled by default, so only installations that enabled it are affected. - Standalone Fleet and Fleet in Rancher are affected alike. Rancher adds no protection for this path.
Customers who run Fleet in a multi-tenant environment and cannot rule out exposure must review the copied Secrets and ConfigMaps on downstream clusters. These objects carry the label fleet.cattle.io/bundledeployment. This label names the Bundle deployment that wrote them. For example, run kubectl get secrets,configmaps -A -l fleet.cattle.io/bundledeployment. Delete copies that should not be there and rotate any exposed credentials. Upgrading does not remove copies made before the upgrade.
Patches
A new Policy field, allowedDownstreamResources, addresses this vulnerability. This field lists the Secrets and ConfigMaps that may be copied to downstream clusters. Each entry sets a kind (Secret or ConfigMap) and either a name or an anchored namePattern. Fleet combines the entries of all Policies in a namespace. In a namespace where a Policy sets requireServiceAccount: true, Fleet only copies matching objects. With no entries, it copies nothing. Fleet enforces a non-empty list even without requireServiceAccount. Namespaces without requireServiceAccount and without entries remain unchanged. This preserves the behavior of operator-only installations.
The check uses only the kind and the name and does not read the objects. Therefore, a refusal does not reveal whether an object exists. Fleet rechecks every Bundle in a namespace when a Policy is created, changed, or deleted. A refused Bundle reports "not ready" with a message naming the unlisted object. Its existing deployments and copies stay in place, but they are no longer updated.
After upgrading, Bundles referencing Secrets or ConfigMaps in downstreamResources are refused if the namespace Policy sets requireServiceAccount: true. They are refused until every referenced object is listed in allowedDownstreamResources. List an object only if its content may be visible to whoever deploys from that namespace. The field only exists once the fleet-crd chart is upgraded. With standalone Fleet, upgrade fleet-crd, add the entries, and then upgrade fleet. In Rancher, both charts are upgraded together. Add the entries directly after the upgrade. Until then, the affected Bundles are refused, but nothing deployed is removed.
On Fleet v0.15 and v0.14, the check only runs when EXPERIMENTAL_COPY_RESOURCES_DOWNSTREAM is enabled. Nothing is copied otherwise.
Patched versions of Fleet include releases v0.17.0, v0.16.4, v0.15.9, and v0.14.13.
Patched versions of Rancher include releases v2.16.0, v2.15.4, v2.14.8, and v2.13.12. Rancher v2.12 and earlier ship Fleet v0.13 or earlier and are unaffected.
Workarounds
Users who cannot upgrade immediately can reduce exposure with the following workarounds:
- On Rancher v2.13 and v2.14, and on standalone Fleet v0.14 and v0.15, leave
EXPERIMENTAL_COPY_RESOURCES_DOWNSTREAMunset or set to false. While disabled, Fleet copies nothing, which fully mitigates the issue on these versions. - On all affected releases, remove Secrets and ConfigMaps from namespaces where tenants create Fleet resources, unless the tenant is allowed to see them. Move other objects elsewhere and rotate any potentially exposed credentials.
- Alternatively, use an admission policy to reject Bundles that set
spec.downstreamResourcesorspec.targets[].downstreamResourcesin tenant namespaces. For example, use Kyverno or OPA Gatekeeper. Fleet creates the Bundles for GitRepos and HelmOps through the Kubernetes API. Therefore, such a policy covers those resources as well.
References
- rancher/fleet#6099 (main)
- rancher/fleet#6100 (release/v0.17)
- rancher/fleet#6101 (release/v0.16)
- rancher/fleet#6102 (release/v0.15)
- rancher/fleet#6103 (release/v0.14)
- CWE-862: Missing Authorization
- CWE-668: Exposure of Resource to Wrong Sphere
For more information
If you have any questions or comments about this advisory:
- Reach out to the SUSE Rancher Security team for security related inquiries.
- Open an issue in the Rancher repository.
- Verify our support matrix and product support life cycle.