Profile applicability: Level 1
SecurityContexts allow configuration of Kubernetes resource security settings.
Audit
Run the following command and verify the each pod and container has an applied SecurityContext:
kubectl get pods --all-namespaces
Remediation
Follow the Kubernetes documentation and apply SecurityContexts to your Pods. For a
suggested list of SecurityContexts, refer to the CIS Security Benchmark for Docker
Containers.