-
Notifications
You must be signed in to change notification settings - Fork 524
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The Dockerfiles created by the extension are insecure #1766
Comments
Thanks @itamarst for your feedback, we will look into these concerns. |
Thanks for your helpful feedback! Our team discussed your suggestions and I wanted to let you know that our next release of the VS Code Docker extension will include an update to scaffold a Dockerfile that will run the container as a non-root user. In the future, we would ask you to first share security concerns with us privately to prevent exploitations. In reference to updating system packages in the Dockerfile we scaffold, we do not plan to make that change. The reason is because we want to have reproducible builds. If a project is left untouched for some amount of time, a build that worked with one set of dependencies may become incompatible when every dependency is updated. Thanks for your support and use of our product, |
Thanks for fixing the root issue. Re system packages—while reproducibility is a useful goal, not doing security updates doesn't actually improve reproducibility in a particularly meaningful way.
So basically you're not doing security updates in a misguided attempt to be reproducible, while ignoring the two places that actually make for non-reproducible builds:
|
Thank you again for the feedback! We have opened issue #1877 to change the base Python image to use 3.8-slim-buster. Our extension will generate requirements.txt file if it is not already present. In that file we refer to specific version of the application direct dependencies (Flask, Django and gunicorn), and provide a comment that tells the user how to pin all dependencies using We appreciate your help with improving VS Code Docker extension. |
They shouldn't run as root (https://pythonspeed.com/articles/root-capabilities-docker-security/).
They should update system packages to get the latest security updates (
RUN apt-get update && apt-get -y upgrade
).The text was updated successfully, but these errors were encountered: