Run as a high-UID user
To avoid conflicts with the host's user table it's recommended to run as a high UID user.
Risk Level: Low
Cloud Entity: Pods
CloudGuard Rule ID: D9.K8S.AC.11
Covered by Spectral: No
Category: Compute
GSL LOGIC
KubernetesPod should have (spec.containers contain-all [ securityContext.runAsUser>=10000 ] or (spec.securityContext.runAsUser>=10000 and not spec.containers contain-any [ securityContext.runAsUser<10000])) and (spec.initContainers isEmpty() or ((spec.securityContext.runAsUser>=10000 and not spec.initContainers contain-any [ securityContext.runAsUser<10000]) or spec.initContainers contain-all [ securityContext.runAsUser>=10000]))
REMEDIATION
Pods
Pods are the smallest deployable units of computing that can be created and managed in Kubernetes.A Pod is a group of one or more containers (such as Docker containers), with shared storage/network, and a specification for how to run the containers.
Compliance Frameworks
- Container Admission Control
Updated about 1 year ago