What are the three Pod Security Standards?
BeginnerConceptKubernetes Security
Answer
- Privileged: no restrictions. For system components such as CNI and storage drivers.
- Baseline: blocks known privilege escalations: privileged containers, hostNetwork/hostPID/hostIPC, hostPath, added dangerous capabilities, hostPort.
- Restricted: baseline plus hardening:
runAsNonRoot,allowPrivilegeEscalation: false, drop ALL capabilities, seccompRuntimeDefaultorLocalhost, limited volume types.
Our default is restricted for application namespaces, baseline only with a documented reason, privileged only for kube-system-style namespaces.
More on Kubernetes Security
What are the 4Cs of cloud native security?BeginnerWhat happens to a request between `kubectl apply` and etcd from a security point of view?IntermediateExplain Role, ClusterRole, RoleBinding and ClusterRoleBinding.BeginnerHow do you check what a user or service account is allowed to do?BeginnerWhich RBAC permissions are effectively cluster-admin in disguise?AdvancedHow do service account tokens work now, and what is `automountServiceAccountToken`?Intermediate