Hacker News new | ask | show | jobs
by kd913 13 days ago
Or just use it in a podman quadlet?

stable-alpine-slim docker iamge is only 14MB?

1 comments

Alpine recently had https://sshhole.com/

Not saying that thie image is affected (I don't know), but small footprint does not guarantee security either. It can hit systems of any complexity these days.

Small footprint inherently means less code to audit.

Containers by default enforce some level of restrictions and a sandbox around it all.

If someone does break alpine, nginx, they would still need to get out of the container sandbox?

nginx when hosed gives full access to the system.

Depends on what type of continers.

As a Redhat container developer (IIRC) put it a long time ago: Containers do not contain.

Especially with docker everything running as host root opens new problems. Rootless containers as podman are more complex, so more code again. And user namespaces had their own vulnerabilities.

No simple answer to security...

That was in 2014/15 in regards to docker, I think rootless podman with enforced capability reduction and tuned apparmor or selinux is a tad different now.
Sure, it's way more secure as long the security mechnisms work as designed and are used correctly.

But in the grandcrandparent the argument was that small gives reduced attack surface. SELinux and friends don't qualify for small and simple.

Not trying to say you should not use it. But I will not be surprised when a fatal vulnerability or SELinux misconfiguration gets revealed somewhere...