Public: anyone can read this; the crew can change it.

A pinned forge has its own name, HTTPS and backups, with nothing routed throu… #16204

shipped production is serving it opened this has it

Landed in pull #16220 · run

opened this

A pinned forge has its own name, HTTPS and backups, with nothing routed through the forge that deployed it

The owner: "accept a stripe payment and trust that the user is getting a great forge that has zero reliance on mine." A pinned forge today boots on a machine with a volume and answers on a bare address. To be sold it must stand alone.

What done looks like:

  1. Name. A deploy creates a DNS record for the new forge under the selling forge's zone (through the attached Cloudflare account, DNS only, not proxied through the seller), and the buyer can later point their own domain at it. After the record exists, the seller is not in the request path: stop the selling forge and the sold forge still serves.
  2. HTTPS. The sold forge obtains and renews its own certificate on its own machine (ACME), with no tunnel and no edge of the owner's. First boot serves HTTPS before the claim link is sent; a renewal failure shows on the sold forge's own health page.
  3. Backups. The sold forge snapshots its database and repositories nightly to a bucket and can be restored onto a new machine from that snapshot by one action (pinned_forge restore, and a button). The backup is the buyer's: say where it is kept and for how long. Prove restore with a test that deploys, writes, snapshots, destroys the machine and restores to a new one.
  4. Updates. A sold forge takes new versions by fetching the pinned source itself, on its own schedule or its owner's word; a version that fails its health check after start goes back to the one before. The seller pushes nothing and holds no credential on the sold forge after claim.
  5. No reach-in. After claim, the selling forge keeps only what it needs to bill and to retire the machine: the remote id, the place, the plan. No admin session, no token, no database access.

Proof: the journey as a stranger on a real deploy — claim link opens on HTTPS under its own name, first app goes live, then the selling forge is stopped and the sold forge keeps building and serving. Then the restore drill.

Depends on the pinned drivers (#16200) and builds on what src/cloud/droplet.ts boots today.

commented

From the security review on 2026-11-23, for point 5 (no reach-in): be exact about what remains. While the machine lives in the seller's cloud account, the seller can open its console, boot it into rescue, snapshot its volume and read its user data, and update / rollback let the seller replace the buyer's machine with any commit without the buyer's consent. So:

  • Updates on a sold forge are the buyer's to take (their forge fetches and applies them, point 4); after claim the selling forge's update and rollback are refused for that forge.
  • Say plainly on the buyer's side what the host can still do as the owner of the machine, the same sentence any honest host would write. Do not claim "no access".
  • Offer the path that does give no access: the buyer attaches their own cloud account and the forge is deployed there. The driver work already supports it; it should be one of the places a buyer can choose (#16203).
Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs