From 8dcdce879b51b19603d8163d8a9bfb5f61ff1558 Mon Sep 17 00:00:00 2001 From: aur-build Date: Thu, 19 Nov 2026 15:45:38 +0000 Subject: sandbox: agent-sandbox is a backend now, and nerdctl is gone MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `sandbox_backend` was a string and `backend_for` matched it with `_ => loopback`, so the documented Kata backend was unreachable from configuration: a hub told to use agent-sandbox would have quietly built untrusted PKGBUILDs as its own user. The kind now parses, validates, and produces a real `KataBackend` over `K8sSandboxProvisioner`, with the CR's `runtimeClass`, `activeDeadlineSeconds`, nonce, image and cluster coordinates all traced back to the config that produced them. Kata shares a *backend* per configuration rather than only a listener: it routes each dial-in by the nonce in its `Hello` into a map that belongs to it, so two backends on one address would each see half the dial-ins and neither could complete a rendezvous. The cache key is a digest of the distinguishing fields so the token and bearer are not copied into a second place. The containerd/`nerdctl` payload builder is deleted rather than left unused. It was a second deployment shape with no provisioner, no config path and no live tier — a builder that advertises a route the configuration refuses is worse than no builder, because someone will eventually assume the route exists. DESIGN.md now names one provisioning shape, which is the one that exists. --- DESIGN.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'DESIGN.md') diff --git a/DESIGN.md b/DESIGN.md index 4a26f63..6d64ff8 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -658,8 +658,8 @@ interface), and destroys it. Three bodies: which is already the shape of an expired lease (I5): the remote path adds no new failure vocabulary. * **kata** — ad-hoc, TTL-bounded sandboxes provisioned by an orchestrator - (agent-sandbox-style CR with `runtimeClass: kata` and `activeDeadlineSeconds`, - or `nerdctl` + containerd's kata runtime). `acquire` mints a rendezvous nonce, + (agent-sandbox-style CR with `runtimeClass: kata` and `activeDeadlineSeconds`). + `acquire` mints a rendezvous nonce, provisions, and leases only the dial-in whose hello carries the nonce back; a box that never dials in is a TTL expiry. A pool that cannot fit a lease is `PoolExhausted`: the build blocks on `sandbox-pool` using the same blocked -- cgit v1.2.3