A deploy never makes two machines for one forge, a forge can be retired, and the boot runs only pinned code
Security and money review of the pinned-forge path on 2026-11-23 (trunk as of 11-10 plus pull #16201). Severity: medium. Each of these costs the owner money or trust once forges are sold.
Found, from the code:
Duplicate machines. A deploy may be retried when the row is failed with an empty remote. If the provider creates the server but the response is lost (the call times out at 20 s), the retry creates a second server and the first bills forever. Nothing looks the machine up by name or label before creating.
No retire. There is deploy, update, rollback and check, and no action that deletes the machine and its volume. A cancelled forge has no teardown.
Hetzner volume ids go through Number(volume); an empty string becomes 0. Validate ids as digits everywhere they reach a path, as the server id already is.
The address read back from the provider is kept if it is a well-formed IPv4, and checkPinned then probes it from the selling forge. Private, loopback, link-local and carrier-grade ranges pass. Refuse them.
Boot supply chain. Bun is installed by piping https://bun.sh/install into a root shell with a version and no checksum. VERSION accepts a tag, which the source host can move; only a 40-hex commit is a pin. SOURCE accepts any https host.
The source must be fetchable by a new machine with no credential. trevato/forge on forge.open-platform.sh answers 404 to an anonymous request, so check whether a deploy of the forge's own source can clone at all, and whether a sold forge's boot and later updates depend on the selling forge being up. They must not.
src/cloud/gate.ts hands a cloud token to a run when an app's cloud.json declares the vendor. Trace it and state on this issue whether the account used to sell forges can ever reach a crew run or a hosted forge. It must not: a selling account is for the forge's own deploys only.
What done looks like:
Create is idempotent: before creating, look for the machine and volume by their name or label, and adopt them. One forge, one machine, one volume, whatever fails in between.
retire on the tool, the route and the page: deletes the machine, and the volume only on a second explicit word or after a stated keep period, and records what was deleted. A check lists machines and volumes at the provider that carry the forge's label and belong to no row.
Deploys for sale take a 40-hex commit only, from a fixed list of source hosts the owner sets, and the Bun download is verified by checksum. The source is somewhere a new machine can reach without the selling forge.
Ids and addresses are validated as above.
The selling account cannot be handed to a run; a test proves it.
Proof: tests for a lost create response followed by a retry (one machine), retire, a private address refused, a tag refused for a sale, and the selling account refused to a run.
A deploy never makes two machines for one forge, a forge can be retired, and the boot runs only pinned code
Security and money review of the pinned-forge path on 2026-11-23 (trunk as of 11-10 plus pull #16201). Severity: medium. Each of these costs the owner money or trust once forges are sold.
Found, from the code:
failedwith an emptyremote. If the provider creates the server but the response is lost (the call times out at 20 s), the retry creates a second server and the first bills forever. Nothing looks the machine up by name or label before creating.Number(volume); an empty string becomes 0. Validate ids as digits everywhere they reach a path, as the server id already is.checkPinnedthen probes it from the selling forge. Private, loopback, link-local and carrier-grade ranges pass. Refuse them.https://bun.sh/installinto a root shell with a version and no checksum.VERSIONaccepts a tag, which the source host can move; only a 40-hex commit is a pin.SOURCEaccepts any https host.trevato/forgeon forge.open-platform.sh answers 404 to an anonymous request, so check whether a deploy of the forge's own source can clone at all, and whether a sold forge's boot and later updates depend on the selling forge being up. They must not.src/cloud/gate.tshands a cloud token to a run when an app'scloud.jsondeclares the vendor. Trace it and state on this issue whether the account used to sell forges can ever reach a crew run or a hosted forge. It must not: a selling account is for the forge's own deploys only.What done looks like:
retireon the tool, the route and the page: deletes the machine, and the volume only on a second explicit word or after a stated keep period, and records what was deleted. A check lists machines and volumes at the provider that carry the forge's label and belong to no row.Proof: tests for a lost create response followed by a retry (one machine), retire, a private address refused, a tag refused for a sale, and the selling account refused to a run.