10 comments

  • aditi805 10 hours ago
    Would love to get a read on how you are solving the Network security aspect of running sandboxes on the execution layer. Based on my experience so far, firecracker and gVisor could still leave your systems vulnerable and it takes a network engineer / SRE to set it up properly.
    • mnafees 1 hour ago
      We do not intend to solve all problems around running sandboxes. Brickie provides a clear pathway to a sandbox platform that you can host in your own Kubernetes cluster. There still needs to be some care around how the cluster's attack surface is tightened with NetworkPolicies and such.
  • ShintaroHara 1 day ago
    That sounds good! Should I think of this as the addition of state saving and the ability to retry actions to the agent-sandbox?
    • mnafees 1 hour ago
      Brickie is indeed built on top of agent-sandbox. And as you already note, it extends its capability with filesystem snapshots, durability via Hatchet tasks including its replay mechanism, but also mTLS communication between the provider and all sandbox pods. The SDK also has built in support for OTel. The idea is to use Hatchet as the application orchestrator for spawning sandboxes and Kubernetes via agent-sandbox as the sandbox infra orchestrator.
  • christianbasile 1 day ago
    this is a very interresting concept; the first time i am reading about snapshots and, in brickie's case, persistent filesystem snapshots - very cool.
    • abelanger 1 day ago
      Thanks! Many sandbox providers support snapshots through various mechanisms: filesystem snapshots and even full memory. The snapshot mechanism here is very simple, it just streams tars to S3, though we've been playing around a lot with OverlayFS which will likely be the next iteration.
  • d1algo12 1 day ago
    is this useful to run ai agents in their own sandbox?
    • abelanger 1 day ago
      You can use it for that, yes. Note this is designed more for people building agent products who want to add a sandbox to their agent, not for developers running coding agents remotely.

      Generally the two approaches to agents with sandboxes are to run your agent "inside the sandbox," where the entire agent process runs in the sandbox, or "outside the sandbox" where the agent uses the sandbox as tool calls. We usually recommend the latter though both are possible.

  • pratikgcet1985 1 day ago
    Very interesting!
  • vivzkestrel 1 day ago
    - what is the difference between e2b, daytona, modal, firecracker vm, docker and your sandbox

    - i want to run untrusted code inside ec2 submitted by users

    - what are my options?

    • mnafees 1 hour ago
      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.

    • aditi805 1 day ago
      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!

  • dasterhq 23 hours ago
    [flagged]
  • sinoziqi 1 day ago
    [flagged]
  • ticktockten 1 day ago
    [flagged]
  • Shura58 1 day ago
    [flagged]