UNCLASSIFIED - NO CUI

Skip to content

Mitigate automountServiceAccountToken findings

Justen Mehl requested to merge harden-automounting into main

General MR

Summary

Relates #27

This MR includes a default value modification in kyverno-reporter/chart/values.yaml to disable API token auto-mounting for the kyverno-reporter ServiceAccount.

This essentially means that Pods leveraging the kyverno-reporter ServiceAccount, by default, will not have access to their Kubernetes API token (previously mounted at /var/run/secrets/kubernetes.io/serviceaccount/token).

Since this package deals with the Kubernetes API heavily - the kyverno-reporter Pod overrides this behavior at the Pod spec-level here. As such, a Kyverno policy exception will be made for this Pod.

My manual testing of the package according to DEVELOPMENT_MAINTENANCE.md has shown no loss of functionality - but if the codeowners are aware of any potential breakage, please let me know!

This is in support of epic &146.

Edited by Justen Mehl

Merge request reports