4 ms·
The docker issue and original HN thread have countless instances of folks who have hit and been hacked by the exact same issue. There is clearly a major proble
by qbasic_forever 5y ago
The docker issue and original HN thread have countless instances of folks who have hit and been hacked by the exact same issue. There is clearly a major problem with the docker documentation, usage, etc. that is causing people to continually be taken by surprise with its iptables behavior.
The blame game doesn't help solve the real problem that people are unknowingly putting services directly on the public internet when they think they are secured by a firewall. With how many millions of people use docker every day IMHO the severity of this issue is far too great to ignore. A simple mitigation to fail and warn a user when it appears they might be hitting this issue (i.e. before docker run changes iptables config, give a quick look to see if it looks like it's already configured for the most common ufw or other setup) would stop this from happening for 99% of cases.
- kortex 5y agoI consider myself pretty docker savvy. I had no idea about this footgun, and my brain is full of all kinds of docker minutiae. Everyone knows docker runs as root, and therefore be careful using it, just as you would sudo. It seems this is a major fail in docs. I kinda get why it's the default, but it needs to be made way better known that by default -p punches a hole through ufw.
- sneak 5y agoIf anything here has a bug it's the mongo container image that launches without requiring authentication, not docker. You're confusing the proximate cause for the root cause.