OS for Secure Containers?
If I need to isolate containers, which is the best OS for containers when security is important: Bottle Rocket, Container Optimized OS or Flatcar and PhotonOS? And why is that? What features, for example, are they protected by?
6 comments
[ 3.5 ms ] story [ 11.6 ms ] threadA go unikernel deployed in this manner might have 5 files on the fs so you don't have a half-dozen interpreters or live off the land binary type stuff. Beware though that not all unikernels are built the same way and don't share the same security profiles as nanos.
At the end of the day though if security is a driving force containers are simply not built for that. Just the other day CVE-2024-45310 landed and a few weeks ago we had CVE-2024-42472 in flatpak (a continuation of the bubblewrap stuff).
People are probably going to jump in here and mention gvisor and firecracker. Note that firecracker is really a machine monitor replacement and most payloads are still running a linux guest (although nanos can work here). Gvisor does deal with the security issue well enough but at the cost of performance if you don't have access to hw virtualization.