Repository navigation
Open
Description
What
Serve production and any number of other targets (vX.Y.Z release candidates, the alias staging, dev-* pull-request
builds) from one hostname, thrust.sow.foo. A small edge Worker, thrust-edge, decides per request which target answers:
production unless the request carries a valid opt-in and Cloudflare Flagship allows that target for that kind of principal.
thrust-staging.sow.foo goes away.
How (decided 2026-11-15, plan in .agents/plans/ once PR A lands)
- Production stays the ordinary
thrustWorker, reached from the edge by a service binding. It has no route of its own,
andworkers_devandpreview_urlsare off. - Every other target is a Worker Preview of
thrust(wrangler preview --name <target>), reached from the edge over its
Preview URL with an Access service token. Access on the Previews admits only that token, so the edge cannot be bypassed.
Version overrides are not used: a deployment holds at most two versions. - Opt-in is explicit:
/_edge/opt-in?target=…is the only path behind Cloudflare Access (who may opt in is the Access
policy, in the infrastructure repository), and the edge sets a signed pin cookie. - Flagship holds a global kill switch (
routing), aliases (alias-staging,alias-prod) and onetarget-<name>flag
per live target, whose rules come from.github/deploy/flagship/policy.json. The app is made by OpenTofu; every flag is
made, changed and deleted by CI. No email address is ever written into this repository. - Data profiles per target:
shared(production's data; release targets) orisolated(its own schema, role,
Hyperdrive config and bucket onthrust-pg-dev;dev-*targets). - Migrations on shared data: a ledger (each file applied once); only the newest shared target migrates, behind a
reviewer;NNNN_contract_*.sqlfiles run only in the production deploy, and only when no older shared target is live.
Stages
- Spike on the live account (Preview reachability from the edge, Access on Previews,
RoomDobyscript_namefrom a
Preview, workers-rs and Flagship,wrangler previewin CI, WebSockets, thrust behind another Host) - PR A: the ADR and dated updates to ADR-0110, 0092, 0090, 0008, 0042, 0061
- PR B: the migration ledger and the contract rule
- PR C:
crates/thrust-edge - PR D: Flagship as code
- PR E: release targets on Previews; production deploy behind the edge
- PR F:
dev-*targets (chore(infra): per-PR schema sweep owner and CI wiring for preview environments #57) - Infrastructure issues (production prerequisites, edge domain, Access apps, Flagship app, retire staging)
- Cut-over and drills
Metadata
Metadata
Assignees
Labels
No labels
Activity
Merge origin/main into feat/migration-ledger
docs(adr): one hostname for every target, routed by an edge Worker ov…
feat(migrate): apply each migration once, recorded in a ledger, and r…
test: name every pinned regression regression_, so one filterset find…
Merge origin/main into feat/thrust-edge
feat(edge): route the shared hostname to production or to an opted-in…
fix(release): give a crate added since the last release a first-relea…
feat(deploy): make every Flagship routing flag from a policy in the r…
fix(compat-plane): name the configured public address in /api/instanc…
feat(deploy): derive a shared Preview target's configuration from pro…
feat(deploy): smoke a target through the edge: opt in as CI, then che…
feat(deploy): deploy a target as a Worker Preview and prove it throug…
feat(deploy): defer a shared target that brings migrations to a revie…
feat(deploy): deploy a release candidate as a target, behind THRUST_T…
feat(edge): say which build of the edge answered, and carry the edge …
feat(deploy): deploy the edge from a release's bundle, prove it on th…
Merge origin/main into feat/edge-workflow (#294 and #295 squashed ont…
feat(deploy): deploy the edge after production, behind THRUST_EDGE_EN…
feat(infra): declare the edge's Flagship app and Access applications …
fix(flagship): take any 2xx as a write done, since the live API answe…
fix(release): start release.yml on the tagger's tag, not on every cra…