Re:Katakate: Dozens of VMs per node for safe code exec: K8s+...
by mentalgear on Tuesday October 21, 2025 @12:22PM
(#45657697)
I would really like to see a good local sandboxing solution in this space, something that is truly local-first. This is especially important since many coding models / agentic builders will eventually become lightweight enough to run them on-device instead of having to buy tokens and share user data with big LLM cloud providers.
[ Parent
| on HN ]
Re:Katakate: Dozens of VMs per node for safe code exec: K8s+...
by dloss on Tuesday October 21, 2025 @01:00PM
(#45658204)
Anthropic recently released a sandboxing tool based on bubblewrap (Linux, quite lightweight) and sandbox-exec (macOS).
https://github.com/anthropic-experimental/sandbox-runtime
I wonder if nsjails or gVisor may be useful as well. Here's a more comprehensive list of sandboxing solutions: https://github.com/restyler/awesome-sandbox
Re:Katakate: Dozens of VMs per node for safe code exec: K8s+...
by gbxk on Tuesday October 21, 2025 @01:20PM
(#45658509)
wow that's super new! Thanks for that, will look deeply into it and compare
Re:Katakate: Dozens of VMs per node for safe code exec: K8s+...
by elric on Tuesday October 21, 2025 @02:19PM
(#45659517)
Are there any such solutions that can adequately protect against side-channel attacks (à la rowhammer, meltdown, spectre, ...)? I mean protecting local file access and network access is pretty easy, but side-channels and VM escaping attacks seem like a bigger concern.
Re:Katakate: Dozens of VMs per node for safe code exec: K8s+...
by gbxk on Tuesday October 21, 2025 @02:25PM
(#45659610)
That's an interesting direction! TEE support would be relatively straightforward with current stack (and it's on my roadmap), so that could be a first step forward.
Re:Katakate: Dozens of VMs per node for safe code exec: K8s+...
by ATechGuy on Tuesday October 21, 2025 @02:34PM
(#45659728)
Side-channel attacks apply to multi-tenant cloud environments, not local.
Re:Katakate: Dozens of VMs per node for safe code exec: K8s+...
by elric on Tuesday October 21, 2025 @03:03PM
(#45660139)
That seems like a naive take. If any of your local VMs are internet connected and are compromised, side channel attacks could be used to exfiltrate data from other VMs or the host.
Re:Katakate: Dozens of VMs per node for safe code exec: K8s+...
by ATechGuy on Tuesday October 21, 2025 @03:32PM
(#45660552)
Then why only apply to VMs, why not apps?
Re:Katakate: Dozens of VMs per node for safe code exec: K8s+...
by gbxk on Tuesday October 21, 2025 @01:19PM
(#45658498)
(sorry I didn't reply in-thread, I'm new to HN, re-posting response here:)
Exactly! The main local requirement is to have hardware virtualization available (e.g. /dev/kvm) but that should be fine on your local linux machine. Won't work in cloud machines or on Mac ARM in current form but maybe if I extend
Re:Katakate: Dozens of VMs per node for safe code exec: K8s+...
by ofrzeta on Tuesday October 21, 2025 @01:21PM
(#45658539)
There are some providers that offer KVM nested virtualization, I think Google Cloud, Digital Ocean ... any others?
Re:Katakate: Dozens of VMs per node for safe code exec: K8s+...
by gbxk on Tuesday October 21, 2025 @01:27PM
(#45658639)
True! GCP does. I haven't tested it yet. I didn't know D.O does. If anyone knows others, I'm interested too!
Re:Katakate: Dozens of VMs per node for safe code exec: K8s+...
by eyberg on Tuesday October 21, 2025 @05:23PM
(#45661910)
We (NanoVMs) can run (both unikernel and normal linux) virtualized workloads on plain old ec2 instances (eg: t2.small).
Re:Katakate: Dozens of VMs per node for safe code exec: K8s+...
by gbxk on Wednesday October 22, 2025 @05:20AM
(#45666616)
Interesting, thanks for sharing!
Re:Katakate: Dozens of VMs per node for safe code exec: K8s+...
by mkagenius on Tuesday October 21, 2025 @04:21PM
(#45661176)
> something that is truly local-first
Hey, we built coderunner[1] exactly for this purpose. It's completely local. We use apple containers for this (which are 1:1 mapped to a lightweight VM).
1. Coderunner - https://github.com/instavm/coderunner
Re:Katakate: Dozens of VMs per node for safe code exec: K8s+...
by gbxk on Wednesday October 22, 2025 @05:35AM
(#45666715)
Very cool! Apple containers run on Apple ARM so it's complimentary to my stack which doesn't support ARM yet (but soon will when extending to Qemu which supports ARM). Thanks for sharing!
Re:Katakate: Dozens of VMs per node for safe code exec: K8s+...
by _false on Tuesday October 21, 2025 @06:23PM
(#45662480)
What about this: https://github.com/apple/container
Re:Katakate: Dozens of VMs per node for safe code exec: K8s+...
by gbxk on Wednesday October 22, 2025 @05:19AM
(#45666610)
Very cool one. That's dedicated to Apple ARM which I don't currently support so the two are complimentary. Apple containers shares some primitives with Kata. I'll investigate if it's possible to use Apple containers as a VMM inside Kata, or creating an Apple Containers runtime class in Kubernetes. If either is possible, we could then potentially use Apple containers as a backend in Katakate. I need more time to study that.
Re:Katakate: Dozens of VMs per node for safe code exec: K8s+...
by sshine on Tuesday October 21, 2025 @06:23PM
(#45662484)
https://rstrict.cloud/ is a CLI built in Rust on top of the Landlock API for the Linux kernel.
It lets you narrow the permission scope of an executable using simple command line wrappers.
Re:Katakate: Dozens of VMs per node for safe code exec: K8s+...
by gbxk on Wednesday October 22, 2025 @05:20AM
(#45666618)
Thanks, will study that one too!
Re:Katakate: Dozens of VMs per node for safe code exec: K8s+...
by kernc on Wednesday October 22, 2025 @04:45AM
(#45666374)
Local-first (on Lunix), POSIX shell: https://github.com/sandbox-utils/sandbox-run