Use scoped token for request authz (#15779)

fix: use scoped token for request authz (#15779) (#15801)
Use scoped token for request authz (#15779)c2eab0-fix-use-scoped-token-for-request-authz-cve-2026-41323fixuse scoped token request authz 15779

Committed by JimBugwadia

commit message
fix: use scoped token for request authz (#15779) (#15801)

Cherry-pick of kyverno/kyverno#15779 to release-1.16.
 
Projects a dedicated ServiceAccount token with a Kyverno-specific audience
(kyverno-svc.kyverno.io) for outbound APICall requests. This prevents leaked
tokens from being replayed against the Kubernetes API server.
 
Changes:
- pkg/engine/apicall/executor.go: getToken() reads from the scoped token at
  /var/run/secrets/kyverno/apicall/token; logs at V(2) with error on failure
- Helm chart templates (admission, background, cleanup, reports controllers):
  add apicall-token projected volume + mount with configurable audience/expiry
- charts/kyverno/values.yaml: add apiCallToken.audience and
  apiCallToken.expirationSeconds values (defaults: kyverno-svc.kyverno.io / 3600)
- charts/kyverno/README.md + README.md.gotmpl: document the new values
 
Signed-off-by: Jim Bugwadia <[email protected]>
Co-authored-by: Claude Sonnet 4.6 <[email protected]>

Editor assessment

This commit patches CVE-2026-41323. The subject says what changed and `use scoped token for request authz` conveys the mechanism, with two PR references marking this as a cherry-pick. The body supplies the essential motivation in one sentence: a dedicated service-account token with a Kyverno-specific audience stops leaked tokens from being replayed against the API server. A change list then names the executor path, the projected-volume mounts for four controllers, the new Helm values with defaults, and the documentation updates. It is accurate and easy to follow, though the list leans toward what rather than why, the double PR references add clutter, and nothing tells operators whether existing charts must be adjusted.

Browse categories

More fix examples · Back to search