News for hackers. Stuff that matters.
Re:Dockerfile Security Best Practices by creztoe on Thursday October 15, 2020 @07:28AM (#24787395)
Do not pass sensitive data to docker build via --build-arg. When you access this with "ARG" you will log the information in the docker history, visible to all. Use "--secret" or use the ARG in an intermediate build stage which doesn't have it's history preserved, then copy any necessary files form the intermediate image to your file image manually.

A perfect example of this would be passing your NPM_TOKEN to install company scope packages.

There are no comments on this comment yet.