Container Security Fundamentals
Cheat sheet · https://pcornel.dk/topic.php?topic=5035
Answer
Container security fundamentals cover the whole lifecycle: trusted and scanned images, secure registries, least-privilege runtime settings, network policies, secrets handling and a patched host and orchestrator.
Remember
- Secure the image, registry, runtime, orchestrator and host.
- Secrets do not belong in images.
- Patch by rebuilding images.
First checks
- Pod Security Admission levels per namespace — baseline/restricted
trivy k8s --report summary cluster— cluster scankubectl auth can-i --list --as=system:serviceaccount:<ns>:<sa>— SA permissions
Verify in this order
supply chain → admission → runtime → monitoring
Where it usually breaks
First mismatch in platform/workload identity → desired configuration → management/control plane → runtime enforcement → telemetry → workload/resource outcome; preserve identity/policy/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5035