Why it matters
A PersistentVolume can be a hostPath, so creating one is a way to mount the node's filesystem.
How to fix it
Leave PersistentVolume creation to the provisioner and to cluster administrators.
What TrustIvan reads
Read through the Kubernetes API with the read-only role TrustIvan's install creates.
Benchmark controls
- CIS Kubernetes Benchmark 1.9.0, control
5.1.9: Access to create PersistentVolumes is minimised
Control numbers are the published ones; the titles are TrustIvan's own short descriptions. The benchmarks belong to their publishers, who do not endorse TrustIvan.
Related checks
- Role can exec into or attach to pods
KubernetesSeverity: Medium
k8s.rbac.pod-exec - Role can read Secrets
KubernetesSeverity: Medium
k8s.rbac.secrets-read - Role can create pods
KubernetesSeverity: Medium
k8s.rbac.pod-create - Role can mint service-account tokens
KubernetesSeverity: Medium
k8s.rbac.token-create - Role can use the nodes/proxy subresource
KubernetesSeverity: Medium
k8s.rbac.node-proxy - Role can change admission webhooks
KubernetesSeverity: Medium
k8s.rbac.webhook-config
Terms: KSPM (Kubernetes security posture management), Kubernetes RBAC, NSA/CISA Kubernetes Hardening Guidance, CIS Benchmarks
All Kubernetes posture checks · The whole catalogue · How this works in TrustIvan · Documentation