← Übersicht Puppet / OpenVox

Helm chart: Kubernetes export with rbac.scope ClusterRole grants cluster-wide Secret create

GHSA-p7pm-55hm-m74j

Hoch · CVSS 8.0 Netzwerk · mit Login Fix verfügbar

Veröffentlicht
13.10.2026 13:10
Zuletzt geändert
13.10.2026
EPSS (30 Tage)
unbekannt
CVSS-Vektor
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H

Beschreibung

Originaltext der Quelle, nicht übersetzt.

Before commit `0044f8a751a8`, when Kubernetes export was enabled, the chart always granted `create` on Secrets and ConfigMaps. With `rbac.scope: ClusterRole` that grant was cluster-wide, and the chart rendered it without refusing. A compromise of the CA pod could then escalate to any ServiceAccount in the cluster. Found in an independent audit at `fb856f1` and re-checked against `main` at `145cb53`. ## Where Line numbers are as of `145cb53`, before the fix. - `charts/openvox-ca/templates/_helpers.tpl:799-801` granted `create` on `secrets` and `configmaps`. As the template comment says, `create` cannot be narrowed with `resourceNames`. - `_helpers.tpl:808-814` added unrestricted `patch` on both when the export targets could not be read from values (`existingConfigMap`, `args`, `--config`). - `templates/rbac.yaml:21-51` rendered the rules as a ClusterRole and ClusterRoleBinding when `rbac.scope: ClusterRole`. The CI fixture `ci/existing-config-values.yaml:31` used that scope. - The only response was a NOTES warning (`_helpers.tpl:891-905`), and it covered the `patch` grant only. `helm template`, Argo CD and Flux don't show NOTES. The chart did hard-`fail` the adjacent default-ServiceAccount case (`_helpers.tpl:633`). The audit tied this to unknown targets. The `create` half applied to every ClusterRole install, with or without known targets. ## Impact `create` on Secrets lets a principal create a `kubernetes.io/service-account-token` Secret annotated for any ServiceAccount in scope, which the token controller then fills in. Under a ClusterRole that includes `kube-system`. A code-execution or SSRF-to-API bug in the CA pod became cluster-admin-equivalent. Unrestricted `patch` also allowed overwriting arbitrary Secrets and ConfigMaps. Neither `docs/kubernetes-export.md` nor `docs/helm-chart.md` mentioned this. `values.yaml:310` said only "Prefer Role". ## Fix Fixed on `main` on 2026-10-13 in commit [`0044f8a751a80881bf5a0b978c57313aeaf2c7e8`](https://github.com/voxpupuli/openvox-ca/commit/0044f8a751a80881bf5a0b978c57313aeaf2c7e8) (PR #478, closes #473), Go module version `v0.0.0-20261013110456-0044f8a751a8`. The chart is released with the binaries, so the same commit fixes it. - `openvox-ca.validate` now fails the install when the chart would render the export RBAC as a ClusterRole, unless `kubernetesExport.rbac.allowClusterWideSecretCreate: true` is set. The message names the token-Secret escalation and points at `rbac.scope: Role` with each target namespace listed under `kubernetesExport.rbac.namespaces`. Only a real boolean `true` allows it, so a quoted `"false"` cannot slip through where schema validation is skipped. - When the cluster-wide grant is allowed, NOTES now warns about it as well as about the unnarrowed `patch` grant. The refusals, the warnings and `rbac.yaml` all read one helper, so they agree on when the export RBAC renders. - `docs/kubernetes-export.md` and `docs/helm-chart.md` now explain what `create` on Secrets allows, why `create` cannot be narrowed, and why nothing needs `ClusterRole`: a target either names its namespace or defaults to the release namespace, which the Role covers. - The ClusterRole CI fixture now sets the opt-in explicitly, and `chart:test` has reject and render cases for the refusal, the opt-in and the warning. With `rbac.create: false` the chart creates no export RBAC, so neither the scope nor the opt-in has any effect, and the Role or ClusterRole an operator binds themselves is theirs to scope. ## What to do If you install the chart with `kubernetesExport.enabled: true` and `kubernetesExport.rbac.scope: ClusterRole`, move to `rbac.scope: Role` and list each namespace you export into under `kubernetesExport.rbac.namespaces`. A chart built from `0044f8a751a8` (2026-10-13) or later refuses the ClusterRole scope until you either do that or set `allowClusterWideSecretCreate: true`. On earlier chart versions, `rbac.scope: Role` with the namespaces listed already confines the grant; nothing else is needed.

Betroffene Pakete im beobachteten Stack

Gogithub.com/voxpupuli/openvox-ca0.0.0-20261013110456-0044f8a751a8GHSA-p7pm-55hm-m74j

Empfohlene Prüfung

  1. Feststellen, ob und in welcher Version die betroffenen Pakete in Ihren Systemen, Images und Abhängigkeiten vorkommen.
  2. Wo eine Fix-Version genannt ist: aktualisieren. Wo nicht: Hersteller-Advisory und Referenzen auf Workarounds prüfen.
  3. Erreichbarkeit beachten: Der Angriffsweg (Netzwerk · mit Login) ist aus dem CVSS-Vektor abgeleitet.

Diese Seite sagt nichts darüber, ob Ihre Systeme betroffen sind. Das klärt erst eine Prüfung Ihrer Versionen.