summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
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
```