Re:Hacker deleted all of NewsBlur’s Mongo data and is now ho...
by bushbaba on Thursday June 24, 2021 @12:13AM
(#27613911)
I’m kind of shocked this is even deemed acceptable architecture. You’d think docker wouldn’t even touch iptables unless explicitly told to.
[ Parent
| on HN ]
Re:Hacker deleted all of NewsBlur’s Mongo data and is now ho...
by qbasic_forever on Thursday June 24, 2021 @12:17AM
(#27613938)
It's how they can make containers feel like isolated little subnets without resorting to vxlan or other kernel-level stuff. It's a great development experience and I'd be sad to see it go. But.... it really needs to proactively detect and warn users. The issue has been known for many years. A quick little check and error out on startup if you're running on Ubuntu or have ufw enabled would probably save 99% of the pain people have had with it over the years.
Re:Hacker deleted all of NewsBlur’s Mongo data and is now ho...
by 1337shadow on Thursday June 24, 2021 @03:01AM
(#27614691)
It works fine when users create docker networks for their containers to communicate, which docker-compose does by default, instead of publishing ports on 0.0.0.0 like yolo
Re:Hacker deleted all of NewsBlur’s Mongo data and is now ho...
by AtNightWeCode on Thursday June 24, 2021 @12:52AM
(#27614094)
I would say that this is the expected behavior. Also, I don't think one should rely on firewalls in this way.
Re:Hacker deleted all of NewsBlur’s Mongo data and is now ho...
by Shank on Thursday June 24, 2021 @01:01AM
(#27614125)
Relying on firewalls to do what firewalls do and have done and continue to do seems perfectly acceptable. Yes, your database should have authentication enabled too, but expecting ports to not be unexpectedly open is the entire point of firewalls.
Re:Hacker deleted all of NewsBlur’s Mongo data and is now ho...
by AtNightWeCode on Thursday June 24, 2021 @03:00AM
(#27614689)
Kind of what I said. Firewalls are for blocking unwanted traffic. It should not be used as a replacement for other security measures. "unexpectedly open", well, there I simply disagree.
Re:Hacker deleted all of NewsBlur’s Mongo data and is now ho...
by Aeolun on Thursday June 24, 2021 @07:41AM
(#27616206)
So if you have a firewall set to block everything, and you run a docker container that listens to your global IP, you expect it to magic your firewall for you?
Re:Hacker deleted all of NewsBlur’s Mongo data and is now ho...
by AtNightWeCode on Thursday June 24, 2021 @09:02AM
(#27616828)
Yes. I would assume that any service platform or services for that matter may have open ports as default and that you should place it in a private network with a proxy in front of it.