Lesson 13 of 13 · 3 min read
Container and Kubernetes Security Across the Workload Lifecycle
In this lesson
TL;DR: Container security follows an artifact into a configured workload. Verify the image and its origin, enforce deployment constraints, bound identity and network access, then observe the running workload and its control coverage.
Before you read
Pick an answer before you read further. The lesson below explains it, and guessing first, right or wrong, helps the explanation stay with you.
1An image has no known vulnerabilities but runs with host access and broad cloud credentials. Is image scanning enough?
The image is only one input
An image packages filesystem content and metadata. A running container also receives a kernel, mounts, credentials, network policy and a deployment configuration. A scan of the image can identify known vulnerable components, embedded secrets or suspicious files within its coverage. It cannot establish what authority the orchestrator grants later.
For Kubernetes, include the API server, admission path, node, workload service account and registry in the trust model. A contributor able to change deployment configuration may increase privilege even when the image digest stays unchanged. A stolen workload credential may reach cloud data without requiring a container escape.
Controls by lifecycle stage
At build time, use reviewed inputs, inventory the final artifact and attach verifiable provenance. At admission, require the intended image identity and deployment constraints. At runtime, restrict privilege, mounts and identities, and use supported network enforcement. Observe the control-plane audit trail and relevant workload events.
Admission prevents disallowed new objects when the policy applies. It does not retroactively repair every existing pod. A namespace exemption or a fail-open policy can change the result. NetworkPolicy requires a supporting network implementation, and ingress restrictions alone do not constrain every egress path. Name the actual enforcement component.
Build
Inventory and provenance
Admission
Image and pod policy
Workload
Identity and isolation
Runtime
Events and drift
Boundary checks
Existing workloads
- Admission changes do not automatically repair them.
Ephemeral identities
- Keep pod UID and image digest with events.
Build
Inventory and provenance
A worked deployment review
A fictional retrieval worker uses a scanned image but mounts a host directory for convenience. Its service account also reads unrelated secrets. Remove the host dependency where practical, constrain the service account and verify that the application can still read its intended documents. The scan result did not become false; it was simply evidence about a different part of the system.
During incident review, preserve pod UID, namespace, node, image digest and relevant identity relationships before the workload disappears. A pod name or IP can be reused. A later event must not be attributed to the earlier workload without a reliable join. Short-lived workloads make event export and inventory history particularly important.
Products and lineage, checked November 2026
Sysdig describes workload threat detection, including Falco-based runtime analysis. Aqua container security covers image findings and lifecycle controls. Red Hat Advanced Cluster Security architecture documents central and secured-cluster components associated with the StackRox technology lineage. Check the supported release and component responsibilities before deploying.
The evaluation question is whether a product can trace an image finding to the affected pod and show the actual enforcement policy. Also test unavailable registry metadata, an unenrolled cluster and a sensor that starts late. Those cases reveal what the platform means by covered.
Close the loop
A fixed image needs rollout across all affected workloads, including scheduled jobs and dormant deployment templates. Confirm that old digests cannot return through a normal rollback without an explicit decision. Keep the exception narrow and time bounded.
Use Kubernetes admission review and image pipeline design for the corresponding interview exercises.
Check yourself
Say or write your answer first, then reveal. Explaining it from memory, in your own words, is the skill an interviewer is checking.
1Why preserve a pod UID?
2What remains after changing admission policy?