Interview Prep/Docker/Security and scanning

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.

All Docker questions Roadmap: Docker & containers

More on Security and scanning