Pod Security Standards: Baseline vs Restricted (v1.35 to v1.37)
Complete control-by-control reference checked by McKube Manifest X-Ray, including exact Pod Security Admission behaviour and Windows exemptions.
Baseline Controls (Blocks Known Privilege Escalations)
| Rule | Control | Blocked Fields |
|---|---|---|
PSS-B-01 | HostProcess (Windows) | securityContext.windowsOptions.hostProcess: true |
KUBE-SEC-001 | Privileged Containers | securityContext.privileged: true (containers, initContainers, ephemeralContainers) |
KUBE-SEC-002 | Host Namespaces | hostNetwork, hostPID, hostIPC: true |
PSS-B-04 | Host Ports | Any ports[].hostPort > 0 |
KUBE-SEC-003 | HostPath Volumes | Any volumes[].hostPath |
PSS-B-06 | Capabilities (Linux) | Any capability outside the Baseline allowlist (checked after stripping CAP_ prefix) |
PSS-B-07 | AppArmor | appArmorProfile.type other than RuntimeDefault / Localhost |
PSS-B-08 | SELinux | Custom user, role, or non-container type (e.g. spc_t) |
PSS-B-09 | /proc Mount Type | procMount other than Default (blocks Unmasked) |
PSS-B-10 | Seccomp | Explicit seccompProfile.type: Unconfined at pod or container level |
PSS-B-11 | Sysctls | Any sysctl outside the Kubernetes safe allowlist |
PSS-B-12 | Host Probes (v1.34+) | httpGet.host or tcpSocket.host set on any probe |
Restricted Controls (Hardened Best Practice)
| Rule | Control | Requirement |
|---|---|---|
PSS-R-01 | Volume Types | Only configMap, csi, downwardAPI, emptyDir, ephemeral, persistentVolumeClaim, projected, secret, image |
KUBE-SEC-006 | Privilege Escalation | allowPrivilegeEscalation: false on every Linux container (exempt on Windows) |
KUBE-SEC-007 | Capabilities | capabilities.drop: ["ALL"]; only optional add is NET_BIND_SERVICE (exempt on Windows) |
KUBE-SEC-004 | Running as Non-Root | runAsNonRoot: true; pod-level false fails even if containers set true; runAsUser: 0 forbidden |
KUBE-SEC-008 | Seccomp Profile | Effective seccompProfile.type must be RuntimeDefault or Localhost (exempt on Windows) |