diff options
| author | aur-build <aur-build@localhost> | 2026-11-19 15:45:38 +0000 |
|---|---|---|
| committer | aur-build <aur-build@localhost> | 2026-11-19 15:45:38 +0000 |
| commit | 8dcdce879b51b19603d8163d8a9bfb5f61ff1558 (patch) | |
| tree | 57ba7dee86414eaf24de114a1df8209149e7b5bd /DESIGN.md | |
| parent | ec80c312b80ba51271fff0548c6d1e293d373455 (diff) | |
| download | aur-build-8dcdce879b51b19603d8163d8a9bfb5f61ff1558.tar.gz aur-build-8dcdce879b51b19603d8163d8a9bfb5f61ff1558.zip | |
sandbox: agent-sandbox is a backend now, and nerdctl is gone
`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.
Diffstat (limited to 'DESIGN.md')
| -rw-r--r-- | DESIGN.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |
