summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authoraur-build <aur-build@localhost>2026-11-19 15:57:39 +0000
committeraur-build <aur-build@localhost>2026-11-19 15:57:39 +0000
commit94c318f13264bb3c00a9f3057ba2e1aafb57c9e4 (patch)
treee3d9176822921a78402248d461c11ff652a1b0f8 /README.md
parent8dcdce879b51b19603d8163d8a9bfb5f61ff1558 (diff)
downloadaur-build-94c318f13264bb3c00a9f3057ba2e1aafb57c9e4.tar.gz
aur-build-94c318f13264bb3c00a9f3057ba2e1aafb57c9e4.zip
sandbox: the kata lease path publishes a real package, and the config says what it means
The end-to-end claim of the seam, tested as one thing: `plain-make` detected, approved, built and published through `KataBackend` + `LocalAgentProvisioner` — a real `sandbox-agent` process, a real nonce-matched rendezvous, real frames — with a VM being the only thing this host cannot provide. The index ends up serving the package, the agent's output reaches the same log the SSE tail reads, and the shim saw exactly one `makepkg`. Documented where the project records such things: the enum and the refusal of an unwired kind, the shared listener and the shared Kata backend, and the `shared_workspace` assertion as a guard rather than a fix — the workspace sync is still the unimplemented thing it was, and the config now says so at startup instead of letting `makepkg` discover it. Also reaped two unreaped `sandbox-agent` children in the remote tests, which was the last clippy warning in the tree; `--all-targets` is now silent.
Diffstat (limited to 'README.md')
-rw-r--r--README.md33
1 files changed, 33 insertions, 0 deletions
diff --git a/README.md b/README.md
index c68d0e3..4d75386 100644
--- a/README.md
+++ b/README.md
@@ -41,6 +41,39 @@ aur-build packages # what the index is serving
process. The CLI and the UI drive the same code paths, so anything the web
interface can do, an operator can do from a shell at 3am.
+## Where builds run
+
+One `sandbox` object in `config.json` says where untrusted recipe code executes.
+It names exactly one kind, and a kind that is missing a field it needs — or a
+kind that does not exist — is a startup error, not a fallback:
+
+```jsonc
+{ "sandbox": { "kind": "loopback" } } // the default: subprocesses of this process
+
+{ "sandbox": { "kind": "remote", // sandboxes dial in; you boot them
+ "listen": "0.0.0.0:8787", "token": "…",
+ "shared_workspace": true } }
+
+{ "sandbox": { "kind": "agent-sandbox", // Kata VMs, provisioned per lease by the cluster
+ "api": "https://k8s:6443", "namespace": "builds", "bearer": "…",
+ "image": "aur-build-sandbox:latest",
+ "listen": "0.0.0.0:8787", "token": "…",
+ "shared_workspace": true } }
+```
+
+`loopback` is the default and needs nothing, which is what keeps a fresh
+`init` working with no configuration at all — and it is honest about what it is:
+the sandbox is the hub's own user, with no isolation. `remote` and
+`agent-sandbox` differ only in who boots the sandbox: an operator, or the
+cluster from an agent-sandbox CR whose `activeDeadlineSeconds` is the lease TTL,
+so the orchestrator enforces the deadline even if the hub dies.
+
+`shared_workspace` is required (explicitly, `true`) by both remote kinds. The
+build workspace is not shipped to the sandbox yet — `Run` frames carry a
+hub-side working directory — so a remote build only works where the staging
+directory is visible at the same path on both sides. Asserting it is what stops
+`"remote"` from silently meaning "on the hub".
+
## Layout
```