Repository navigation
docs(deploy): the Cloudflare token is two tokens, and the first staging deploys settled most of what the page listed as unverified - #189
Merged
Conversation
…ng deploys settled most of what the page listed as unverified
deploy.md was written before any environment had been deployed. The live runs of 2026-11-15 (43676097831 second attempt, 43758233044,
43763466550, 43763954773) settled or contradicted several statements:
- the Cloudflare token: it is a different token in the two copies of an environment. `staging` and `production` hold Workers Editor
(the picker's Workers role at its Editor level) + Queues Write, which updates the Worker and attaches the queue consumer but cannot
create one; the two `-do-lifecycle` copies hold Workers Admin + Queues Write. Neither has a zone permission, yet both pass Cloudflare's
permission check for a Custom Domain write, so the domain is protected by review, not by the token; the picker cannot scope a Workers
permission to one Worker. The old text said "Workers Scripts > Edit, and most likely Queues", "no zone permission", unverified;
- the rotation entry no longer says one token in all four environments;
- the opening paragraph said no environment had been deployed: it now says what staging has done, including the first attempt's failure
and its cause (a token with only Workers read permissions);
- a bundle made by a run on `main` no longer counts as the previous release, so the first deploy after a version deployed from `main`
always takes the manual gate;
- a wrong THRUST_HYPERDRIVE_ID fails the deploy with Cloudflare's code 10157 and leaves the previous version serving (a row in the table
of how a run ends);
- "What the first staging deploy settles" is split into what was settled and what has not been shown (web-file retention over two
real releases, and the rollback drill).
Docs only. The rollback-drill sentence ("No drill has been run yet") is still true and is unchanged.
Refs: #49
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Closed
6 tasks
aRustyDev
marked this pull request as ready for review
November 15, 2026 23:38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
docs/src/architecture/deploy.mdwas written before any environment had been deployed. This brings it in line with what the live staging runs of 2026-11-15 showed. Docs only.Refs: #49(it does not close it: see "Still open" below).The runs
d16dbd6deferred correctly, thendeploy-dofailed atassets-upload-session: the token held only Workers read permissions (the same call gave 403 before the owner added the write permission, and 200 after)9b0550ae), no smoke (first deploy)rc/manual-*branch ata767aadf: deferred to the manual gate (the previous bundle came from a run onmain), approved, deployed, smoke and its control passedTHRUST_HYPERDRIVE_ID: failed at the version upload with Cloudflare's code 10157, the previous version untouchedWhat changes in the page
[unverified]" and "no zone permission", and the rotation entry said one token in all four environments. It is two tokens:stagingandproductionhold Workers Editor (the picker's Workers role at its Editor level) + Queues Write, which updates the Worker and attaches the queue consumer but cannot create a Worker; the two-do-lifecyclecopies hold Workers Admin + Queues Write. Neither has a zone permission, yet both pass Cloudflare's permission check for a Custom Domain write (the Custom Domain API is filed under Workers Scripts), so the domain is protected by review, not by the token. The picker cannot scope a Workers permission to one Worker. The infrastructure repository's runbook has the full table and how each token was measured (ApiraTech/infrastructure#1023).rc/*branch or av*tag counts, so the first deploy after a version deployed frommainalways takes the manual gate (run 43758233044 did).verify-caagainst a real Origin CA certificate, the wrong-id failure and its control) and what has not been shown.CLOUDFLARE_API_TOKEN.Still open (unchanged by this PR)
deploy.ymlruns "on push tomain"; since feat(deploy): deploy staging from the rc/* release candidate, production from a v* tag #185 staging deploys fromrc/*andmainnever deploys, so that wording is stale. That is the owner's to reword.Verification
docs/and the workflows).depsjob's guard scripts, each run on its own:check-deps,check-topology(+ self-test),check-plane-500(+ self-test),check-acceptance-list(+ self-test),check-placement,check-contract-counts --self-test,render-wrangler --self-testandlint-workflowondeploy.ymland the deploy action: all exit 0.🤖 Generated with Claude Code