Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> It's just so damn easy, especially if you use `FROM python:3` instead of `FROM python:3.6.2`. It auto-updates every time you deploy.

There's an issue with that. You're trusting whoever builds the python:3 image to actually update it and be secure.

There are a couple high CVEs in python:3 image, including a 10:

https://security-tracker.debian.org/tracker/CVE-2017-17458

https://security-tracker.debian.org/tracker/CVE-2017-17499

Then there are a bunch of other medium and low CVE, mostly from imagemagick, which is kind of a shame to include if you really don't need it. Same goes for that 10 for mercurial if that's useless to your project too.

You are best off receiving a base image from a trusted source, eg, if your organization maintains a set, or there is some distribution you trust who provides just the OS. Grab the most minimal set, then add your application on top of that. Make sure you go through a check to ensure you're not adding any insecurities yourself.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: