Skip to main content

Menu

LEVEL 0
0/5 XP
HomeAboutTopicsPricingMy VaultStats

Categories

πŸ€– Artificial Intelligence
☁️ Cloud and Infrastructure
πŸ’Ύ Data and Databases
πŸ’Ό Professional Skills
🎯 Programming and Development
πŸ”’ Security and Networking
πŸ“š Specialized Topics
HomeAboutTopicsPricingMy VaultStats
LEVEL 0
0/5 XP
GitHub
Β© 2026 CheatGridβ„’. All rights reserved.
Privacy PolicyTerms of UseAboutContact

Pod Security Standards and Kubernetes Security Hardening Cheat Sheet

Pod Security Standards and Kubernetes Security Hardening Cheat Sheet

Back to Containers Orchestration
Updated 2026-05-22
Next Topic: Tekton Kubernetes-Native CI-CD Cheat Sheet

Kubernetes security hardening is the practice of systematically reducing the attack surface of containerized workloads and cluster infrastructure by applying layered controls β€” from pod-level security contexts up to control plane configuration and supply chain integrity. The introduction of Pod Security Standards (PSS) and the Pod Security Admission (PSA) controller in Kubernetes v1.25 replaced the deprecated PodSecurityPolicy, giving operators a built-in, namespace-scoped enforcement framework with three well-defined profiles. The key mental model is defense-in-depth: no single control is sufficient; effective cluster security combines pod restrictions, RBAC, network policy, audit logging, runtime detection, and ongoing CVE response into overlapping layers.

What This Cheat Sheet Covers

This topic spans 16 focused tables and 101 indexed concepts. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.

Table 1: Pod Security Standards β€” Three ProfilesTable 2: Pod Security Admission (PSA) β€” Modes and LabelsTable 3: securityContext Fields β€” Pod and Container LevelTable 4: Seccomp ProfilesTable 5: AppArmor and SELinux IntegrationTable 6: RBAC β€” Least Privilege PatternsTable 7: ServiceAccount Token SecurityTable 8: NetworkPolicy Default-Deny PatternsTable 9: Secret Encryption at RestTable 10: Audit Logging and PolicyTable 11: Control Plane HardeningTable 12: CIS Benchmark and Scanning ToolsTable 13: Validating Admission Policy (CEL-based)Table 14: mTLS via Service MeshTable 15: Common Attack Paths and MitigationsTable 16: PodSecurityPolicy Migration (Legacy)

Table 1: Pod Security Standards β€” Three Profiles

Pod Security Standards define three cumulative security profiles that range from fully permissive to highly restrictive. Every Kubernetes cluster has a built-in implementation through the Pod Security Admission controller, making these the foundational building block of workload security.

ProfileExampleDescription
Privileged
pod-security.kubernetes.io/enforce: privileged
β€’ Entirely unrestricted policy
β€’ allows all privilege escalation paths
β€’ Intended only for trusted system- and infrastructure-level workloads (e.g., CNI plugins, node agents).
Baseline
pod-security.kubernetes.io/enforce: baseline
β€’ Minimally restrictive
β€’ prevents known privilege escalation vectors (host namespaces, privileged containers, dangerous capabilities, HostPath volumes, unsafe sysctls) while allowing default pod configurations for most application workloads

More in Containers Orchestration

  • Open Policy Agent (OPA) and Gatekeeper Cheat Sheet
  • Tekton Kubernetes-Native CI-CD Cheat Sheet
  • Argo Rollouts and Progressive Delivery Cheat Sheet
  • Container Debugging & Troubleshooting Cheat Sheet
  • Container Storage and Persistent Volumes Cheat Sheet
  • Helm Cheat Sheet
View all 38 topics in Containers Orchestration