Repository navigation
docs: correct the Workers Routes permission claim - #440
Merged
Merged
Conversation
The Trap 2 note said zone access was not a concern here, reasoning that CLOUDFLARE_API_TOKEN already provisions custom domains on osc.earth. That reasoning does not transfer: Pages custom domains, zone DNS and Zone:Workers Routes:Edit are three separate grants, and the token holds the first two but not the third. The first deploy after #438 merged proved it. sync-cors now fails on every push touching this directory, and the production route has never been registered, so widget.osc.earth/osa still answers 522. Records what actually happened, including that pre-registering a route by hand does not make the job pass, since wrangler fails reconciling a route that already matches.
neuromechanist
added a commit
that referenced
this pull request
Sep 22, 2026
Brings the widget-hostname work (#437, #438, #440, #441) and the release hardening (#443) onto the epic branch. Two conflicts, both real rather than textual. workers/osa-worker/index.js: phase 1 matched its routes against the raw url.pathname, which predates develop's host-gated stripMountPrefix. Left as merged, every phase 1 route would have 404'd on widget.osc.earth while ordinary chat worked, so the two-run continuation would have been broken on the mounted host only. Both communityAction and communityChatResume now match the stripped pathname; the named ROUTE_PATTERNS constants from phase 1 are kept. workers/osa-worker/test-routing.js: both branches created this file independently. Develop's version drives the real exported fetch handler, phase 1's asserted against the regex constants in isolation. Kept develop's, because a test that matches a pattern by hand cannot catch a route wired to the wrong variable, which is exactly the bug above. Phase 1's resume coverage is re-added in that style, driving the real handler prefixed and unprefixed. The workflow conflicts were duplicate steps; develop already runs the routing test in the same job. Tested: 102 routing, 10 mounted-hosts, 13 endpoint, ruff clean, 2483 pytest passed. Note that a fresh worktree resolves Python 3.14, where langfuse's pydantic.v1 usage fails at collection; pin 3.12 to match CI.
3 tasks done
neuromechanist
added a commit
that referenced
this pull request
Sep 30, 2026
The file had sections for 0.8.10, 0.8.12, 0.8.14 and 0.8.15 only. The three missing releases are written from the pull requests between their tags (0.8.13: #438, #440, #441, #443; 0.8.11: #418; 0.8.9: #351 to #355 and #359 and #367), so the last seven releases are now all present. Tested: docs only; each entry checked against its pull request's body.
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.
Corrects a comment in
workers/osa-worker/wrangler.tomlthat I introduced in #438 and that the first deploy after that merge proved false.What it said
The Trap 2 note concluded that zone access was not a concern here, on the reasoning that
secrets.CLOUDFLARE_API_TOKENalready provisions custom domains onosc.earthfor the status and branch deployments.What is actually true
That reasoning does not transfer. Pages custom domains, zone DNS records and
Zone:Workers Routes:Editare three separate grants, and the token holds the first two but not the third.Run 35687023452, the first
Sync Worker CORSafter #438 merged:Two details worth recording, both non-obvious:
develop-widget.osc.earth/osaworks.This is documentation only
No behavior changes. The underlying permission gap is tracked as #439 and needs a token change, which is not something a pull request can carry.
Closes nothing. Related: #437, #438, #439.