I have found firecracker vms to be the most lightweight generally. e2b provides a good orchestration of these and you dont have to pay for idle sessions.
an untrusted code running on your VPC directly would never be safe anyway, and I'll probably just isolate that environment as the first safety step!
Hey, I am Nafees and I work on Brickie at Hatchet among other things.
The difference between Brickie and solutions like E2B and Daytona is, quite simply, being able to run sandboxes in your own Kubernetes cluster. Brickie implements all of the primitives like egress control, snapshotting, and warm pools like the hosted solutions out there. There's also the option to use any underlying runtime including Kata for microVMs, gVisor for user-space kernel isolation, as well as using EKS Nitro if you're already using it in your AWS deployments. The Docker driver that Brickie implements is intended for local testing only since it does not implement hard firewall guarantees. To be specific, we started with Docker sandboxes in the beginning but were not convinced of the maturity of its DX and the features we wanted from it.
If you are looking to run sandboxes in EC2 I'd recommend looking into the native tooling that was just launched by AWS for its Nitro Sandbox feature.
- i want to run untrusted code inside ec2 submitted by users
- what are my options?
Replies (2)
an untrusted code running on your VPC directly would never be safe anyway, and I'll probably just isolate that environment as the first safety step!
The difference between Brickie and solutions like E2B and Daytona is, quite simply, being able to run sandboxes in your own Kubernetes cluster. Brickie implements all of the primitives like egress control, snapshotting, and warm pools like the hosted solutions out there. There's also the option to use any underlying runtime including Kata for microVMs, gVisor for user-space kernel isolation, as well as using EKS Nitro if you're already using it in your AWS deployments. The Docker driver that Brickie implements is intended for local testing only since it does not implement hard firewall guarantees. To be specific, we started with Docker sandboxes in the beginning but were not convinced of the maturity of its DX and the features we wanted from it.
If you are looking to run sandboxes in EC2 I'd recommend looking into the native tooling that was just launched by AWS for its Nitro Sandbox feature.