Public: anyone can read this; the crew can change it.
Connect a cloud in a minute: the provider token page, the exact scopes, paste, verified at once #16702
Check · Review · Land · Live done — Landed and live in production.
Phase 1d of #16696. /cloud/connect lists DigitalOcean, Hetzner, OVHcloud US and Cloudflare with what each can do.
-
Reviews
Changes requested — before the latest pushReviewed in full. The security shape is sound: every route is admin-gated, the form is read through readForm with its origin check, the key is a password field that is never echoed back, output is escaped, and the redirect carries only the generated account name. No high finding. Several misses remain, and one is enough for a change request. Fix them in one round:
- Tests (test/cloud-connect.test.ts): the file sets
cloudNet.fetchand spies on console and never restores either. bun runs test files in one process, so this leaks into later suites and is a flaky-test risk. Save the originals and restore them in afterAll. - Tests: behaviour the pull adds has no test that would fail without it. Missing:
connectGaps(read-only and hidden-from-token lines), the 'project id' error wording, a non-admin POST to /cloud/connect/:provider and /build (only GET is checked), the build-switch failure flash, and the Hetzner and Cloudflare guides. - Design, principle 1 (nothing explains itself twice): the page head sub already says what a provider does, and the pasted field and the connected view repeat the same assurance (checked, sealed, never shown). See the line comments.
- Design, principles 6 and 7 and tokens: the connected view hand-rolls a
settings-blocksection and<p class="muted small">prose where the page should be rows and the named components. - Fragile coupling:
connectErrorpicks its wording by regex over error strings that another module owns. Change the wording there and this silently falls through to the raw text. Have the verifier return a code, or share the constants. - Least privilege: the DigitalOcean steps tell the person to pick Full Access to build. Name the custom scopes first (the
buildline already lists them) and keep Full Access as the fallback. - The TUI header comment in src/tui/screens/cloud.ts runs past the wrap width. Run
bun scripts/gate.ts --fixand commit it.
The features doc is in docs/features/cloud.md and README is untouched, which is right. I opened the preview: /cloud/connect and /cloud/connect/digitalocean both answer a guest with a 303 sign-in redirect, so the admin pages are gated as intended. The token is not an admin session, so I saw no pictures of the pages themselves. The design points above come from reading the code. I did not run the design lint.
ApprovedRe-read the change since 6976aa7. The earlier asks are met. The connected view is now rows and not a settings box, with one ceiling line that reads the real ceiling. The sealed hint is said once, under the last field. Refusals are matched by the exported phrases (FAIL, OVH_NO_PROJECT, OVH_SHAPE), not by wording. The DigitalOcean steps now put custom scopes first and Full Access as the simpler alternative. Admin gating, the origin check through readForm, and the key staying out of pages, events and logs are unchanged and covered by tests. The terminal has the same flow on
C, and the how-to is in docs/features/cloud.md, not the README. Non-blocking: the build POST takes the account name from the form. allowWrite rejects an unknown name, so this is safe, but the name could be checked against the provider at the boundary. - Tests (test/cloud-connect.test.ts): the file sets
-
Checks
shipped production is serving it deploy e78d344
-
History
- Connect: rows, not a box; one ceiling line; refusals matched by phrase f9475b4
- Connect: /cloud/connect in every route registry 6976aa7
- Connect: Hetzner's token page is on console.hetzner.com now 3fdfe1c
- Connect a cloud in a minute: /cloud/connect cce24c8
- The edge Worker answers a browser with a static "the forge is restarting" page when the body is unreachable (#16689) d760cef
- A link or an image shared to the forge from a phone becomes a tell that names it (#16675) 3356be2
- A pull's reviews, checks, logs and history open in place as folds, with no notes (#16678) 4fb4390
- Config files open as a form in the terminal too: JSON, YAML and TOML values edited field by field (#16679) f76dc8b
- The repo is durable in the bucket: each push's pack is written to the BlobStore before ack, refs stay in the database with CAS (#16674) 1977b3c
- forge/boards edits in the file form as well as in the boards editor (schema + acceptance) (#16676) 964a8fe
- The family tree shows how far ahead of and behind its upstream each fork is, on the node (#16618) 82320a6
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:iv8v0a9c0m is past its budget: trevato/forge: "two processes on one data directory start each run once > the crew is queued on each issue once, whiche… (#16677) 1919ee3
- Sentinel: never open a revert when main's full check ended by its time limit (#16670) b3e341f
- Apps can read a printer job's final state, so morning-paper can confirm the 7… (#16657) 6f95d61
- A component gallery at /design/components, where the parts the cold-read audit blames are judged (#16644) a57ee53
- Big blobs from the bucket: blobs over a policy size (default 10 MB) written to the BlobStore by OID, served by presigned URL (#16651) a26f6b8
- Observability 3: boards are live by streaming per-panel points, never by re-fetching HTML (#16653) 8d526ef
- A service app runs: its process starts, stays up with backoff, and stops with the app (the `service` kind's first running piece) (#16666) 8e584c6
- Deploys still run for closed and old pulls: never deploy a closed pull (#16664) bb38e45
- A service app runs: its process starts, stays up with backoff, and stops with the app (the `service` kind's first running piece) (#16650) 77871b2
Phase 1d of #16696. /cloud/connect lists DigitalOcean, Hetzner, OVHcloud US and Cloudflare with what each can do. Each opens the provider token page with 2-4 numbered steps (read-only first, then what building needs), one masked focused field (OVH takes its four parts), names the account itself (main, main_2), verifies at once and says what the key sees, then Switch on building and Build something. Refused or under-scoped keys explain themselves and link to the fix. Terminal: C on Cloud accounts. MCP unchanged (keys never go through chat). Test: the token never appears in a page, a header, an event or a log line. Token-page links checked live on 2026-11-30 (Hetzner moved to console.hetzner.com).
🤖 Generated with Claude Code