Introducing Firecracker, a New Virtualization Technology and Open Source Project for Running Multi-tenant Container Workloads
Related discussions:
Introducing Firecracker, a New Virtualization Technology and Open Source Project for Running Multi-tenant Container Workloads
Related discussions:
Pretty cool but I’m curious how the isolation in Firecracker compares to a properly deployed Docker or K8s system? K8s is already designed to isolate pods from one another and from the host. Is container security so poor that kernel isolation is needed, or is this overkill for most use cases?
Also thought this was interesting:
Can Firecracker be used with Kubernetes, Docker, or Kata containers today?
Not yet.
That means we’d have to package containers separately for Firecracker. That adds a little bit of extra inconvenience.
To my knowledge there are no in-the-wild container-escape exploits. However, should one come about then kernel level isolation (along side proper use of CPU Virtualization extensions) would make weaponizing the escape much harder. The exact thing a public cloud provider would care about.
There are a ton of ways to exploit access from containers unless they’re heavily restricted. If you’re running a multi-tenant system with it, e.g. public cloud infra, you would be very concerned with such a thing. Using more vm-like infrastructure means that you can use hardware features of the CPU and chipset for this separation, which is a lot more secure and trustworthy. If it’s just a single company running 20 web apps on one host from different dev teams, then the possibility of someone exploiting a container weakness is minimal and the impact small, but everyone has different priorities.
It’s also about reducing attack surface compared to a full Xen VM, within which Docker/k8s runs - a few years back there was a VM exploit attack targeting the QEMU virtual floppy drive.
Thanks I was trying to determine the use cases where this would be most needed. For internal or well-known code, it might not be needed even in multi-tenant use cases. For example, you might not need it for simple CRUD apps or APIs where there are a limited set of allowed operations. There always the chance of code injection, but it may not be worth the trade-off in efficiency if the chance of a break out is low. If you allow arbitrary or untrusted code execution, like in Lambda, I see the need for stronger isolation. It could also be a nice extra layer of security for systems handling sensitive data. Overall, it’s great to have a lighter weight option for hardware isolation than a traditional VM.
Exactly. Fingers crossed they make it compatible with docker images and we can use it interchangeably.
Does anyone think that this is a useful tool to use better emulation of the lambda environment for testing?