You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Implement the rest of ADR 0021: one machine for the control plane and applications #377
The rest of accepted ADR 0021, so that one machine runs the control plane and applications. Done so far: the agent's loopback connect address (#353); capacity and isolation are #352 (#373, #374).
Remaining parts, one pull request each:
The control plane's route in the agent. The installer writes the control plane's DNS name and loopback address into the agent's configuration. The agent applies the route through Caddy's admin API at start, before and independently of enrollment, with a fixed id outside the sk-route- prefix, checks it at every reconcile interval and puts it back when missing or different. UpsertRoute and RemoveRoute cannot touch it, and the agent refuses a route for that name.
No application on the control plane's name. The control plane refuses a domain equal to the host of API_PUBLIC_URL.
Operator commands.node main.js organization create and node main.js server join-token, server-only, audited with the system as actor (ADR 0020). The token goes to the agent's token file without being printed.
The Compose profile without Caddy. HTTP published on 127.0.0.1 only, a fixed subnet, TRUST_PROXY set to its gateway, PostgreSQL and the API in shipkeep-controlplane.slice with oom_score_adj -900.
The installer's single-machine form. The question (default yes), the first organization, the join token, the agent and its Caddy installed and enrolled over loopback, the agent settings of feat(agent): reservation facts and the workloads slice (ADR 0021, part of #352) #373, the three slices (MemoryMax, MemoryLow, CPU weight), the checks (cgroup v2 with memory_recursiveprot, Docker's systemd driver, at least 2 CPUs and 3 GiB).
Those of the ADR: no forged client address, the control plane's route survives Caddy restarts and config loss, loopback enrollment keeps the checks, capacity, and a real machine. The last one needs the test VM (#200).
feat(agent): the control plane's route on the machine that hosts it (ADR 0021, part of #377) #378: the agent keeps the control plane's routes first in the server's Caddy: HTTPS to 127.0.0.1:3000 and an HTTP redirect. They are applied at start, independent of enrollment, re-checked every reconcile interval, and repaired in one Caddy write. Applications cannot claim that name, wildcards included.
Activity
feat(api): operator commands for the single-machine installer (part of …
feat(api): refuse the control plane's own name as an application doma…
feat(agent): the control plane's route on the machine that hosts it (…
feat(deploy): the control plane on a single machine, Compose side (pa…
feat(deploy): the installers' single-machine form (part of #377) (#382)
samuelmbabhazi commentedon Nov 20, 2026
Status: code complete, merged in #378, #379, #380, #381 and #382.
127.0.0.1:3000and an HTTP redirect. They are applied at start, independent of enrollment, re-checked every reconcile interval, and repaired in one Caddy write. Applications cannot claim that name, wildcards included.domain_reserved).organization create,server join-token(never to a terminal) andserver ca-fingerprint.compose.single-machine.yml: loopback-only HTTP, no Compose Caddy, the control plane slice and OOM protection, andTRUST_PROXYlimited to the fixed gateway.--resume yes, idempotently at every step;Checked end to end on a fresh Ubuntu 24.04 container:
X-Forwarded-Forthat is not trusted;What remains is the acceptance on a real VM with a public name and certificate (#200).
docs(plan): the single-machine installation is merged, only its real-…