What do you do about Dockerfile `ADD https://...` with no checksum?
IntermediateScenarioSecurity and scanning
Answer
Situation read → Unverified remote content.
What I'd do →
ADD --checksum=sha256:9f86d0... https://example.com/tool.tar.gz /tmp/
or curl and sha256sum -c. Prefer package managers with signature verification.
Why → Prevents tampering and silent upstream changes.
Interview tip → Same principle for go install or pip install from unpinned sources.
More on Security and scanning
A scan reports 300 CVEs in your base image. How do you triage?IntermediateAdd vulnerability scanning to CI so critical findings block the merge.BeginnerWhy is mounting `/var/run/docker.sock` into a container dangerous?IntermediateA developer asks for `--privileged`. What do you do?IntermediateHarden a container run command for a stateless web API.IntermediateA pentester got root inside a container. How bad is it?Advanced