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

A deployed forge needs no hostname and no DNS work: the forge names it and writes the record #16337

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

The owner, on selling forges: "i dont want a user to have to configure dns off the rip.

Notes

shipped production is serving it deploy 496afdb

opened this

The owner, on selling forges: "i dont want a user to have to configure dns off the rip. they should be able to pay and go." Until now a deploy asked for a full hostname and told the deployer to create an A record by hand, and again after every update, rollback or new claim link, because a replaced machine has a new address.

What changed

  • A forge setting names the domain for deployed forges (the Pinned forges page, b in the terminal, PATCH /api/v1/admin/settings {pinnedDomain}, the domain verb on pinned_forge). With it set, a deploy needs no hostname and is served on <name>.<domain>; a full hostname may still be given.
  • After provision, after every replace and on Check, the forge writes <host> A <address> itself through the first attached Cloudflare account that can edit the zone: DNS only (not proxied), TTL 60, found by name and updated, never a second record. Each call is recorded like the other cloud calls.
  • With no account that can edit the zone, it says the record is the deployer's to make, as before, in the deploy answer and on Check.
  • No wildcard records, no app subdomains, no reserved address, no DNS abstraction.

Tested Built by a subagent; run by me on Bun 1.4.2 on top of main (a5534688e): typecheck clean, 337 pass and 0 fail across the pinned, places, doors, replaces, delete-tier, schema, openapi-errors and first-admin files, including those that need a listening socket. Not proven: a real write to Cloudflare (the token's DNS-edit right is only shown by its first write), and that Check leaves "waiting for DNS" promptly after the record exists (negative caching).

🤖 Generated with Claude Code

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs