Public: anyone can read this; the crew can change it.
A deployed forge's machine is hardened at boot: not root, firewalled, no pass… #16218
Built and landed in #16255 (merge f6c37870a): unprivileged forge user under a locked-down unit, ufw 80 and 443 only, no password or root SSH and no mailed root password (throwaway key), unattended upgrades, bubblewrap with an AppArmor profile, SSH listener off, loader- and path-steering config names refused, and FORGE_CREW_SANDBOX=require on a deployed forge holding queued runs, conversation turns and one-shots when the sandbox is unavailable.
Left open here:
- Nothing has booted on a real machine.
docs/features/pinned-forge.mdlists what only a real boot proves; first on it is bubblewrap under the unit. - No provider-level firewall; the machine's own is the only one.
- The hold sentence suggests
FORGE_CREW_SANDBOX=off, which a deployed forge's config cannot set; it should say what that forge's owner can actually do. - No test at Talk's door for the refused turn.
- A forge that answered once and then dies unclaimed cannot be changed from the seller; it needs retire (#16219).
Sign in to join this conversation.
new above
offline
A deployed forge's machine is hardened at boot: not root, firewalled, no password login, sandbox working
Security review of the pinned-forge path on 2026-11-23 (trunk as of 11-10 plus pull #16201), before forges are sold on it. Severity: high. A sold forge runs agent-written and customer code for a stranger on a public address.
Found, from the code (
bootConfiginsrc/cloud/droplet.ts/src/cloud/machine.ts, and the create calls indroplet.tsandhetzner.ts):User=and runs/root/.bun/bin/bun: the forge, and everything its crew and apps run, is root on the machine.forge-sandbox); the booted machine has neither. Confirm on a real machine which it is.LD_PRELOAD,NODE_OPTIONS,BUN_*,PATHorHOMEcan be set into the service's environment. The secret-name filter stops SECRET and TOKEN but lets PASSPHRASE, AUTH and COOKIE through.What done looks like:
Proof: a test over the boot config for each point that can be read from it, and on a real deploy: a port scan shows 80 and 443 only,
psshows the forge is not root, a crew run reports it ran sandboxed, and SSH refuses a password.