Do not generally permit privileged containers

Pod Security Policy objects define a set of conditions that a pod must run with in order to be accepted into the system, as well as defaults for their related fields.

Risk Level: High
Cloud Entity: Pods
CloudGuard Rule ID: D9.K8S.AC.12
Covered by Spectral: No
Category: Compute

GSL LOGIC

KubernetesPod should not have spec.containers contain-any [ securityContext.privileged=true ] or spec.initContainers contain-any [ securityContext.privileged=true ]

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
  • Container Admission Control 1.0