Interview Prep/DevSecOps/Vulnerability Management and Incident Response

How do you patch vulnerabilities in running containers?

IntermediateConceptVulnerability Management and Incident Response
Answer

You do not patch in place. Containers are immutable: you rebuild the image on an updated base, rescan, and redeploy through the normal pipeline. apt-get upgrade inside a running pod is lost on restart and leaves the registry image still vulnerable.

To make this routine: pin base images by digest and let Renovate or Dependabot open PRs when the digest changes, rebuild images on a schedule even without code changes, and use continuous registry scanning to flag images running with newly published CVEs.

All DevSecOps questions Roadmap: Security in the pipeline

More on Vulnerability Management and Incident Response