Repository navigation
Decouple OSA from the personal Cloudflare account - #620
Merged
Merged
Conversation
Drop the hard-coded account_id from wrangler.toml and pass the org secret to both worker deploy steps, so moving accounts is a secret change (#619). Verified the secret is populated in CI (masked in the Pages deploy log).
PAGES_DEMO_HOST, PAGES_NOTEBOOK_HOST and PAGES_DASH_HOST default to today's names; a project created in another account gets a suffixed name (#619). YAML parses; behaviour unchanged while the variables are unset.
The demo redirect, widget endpoint and dashboard API base accept osa-demo-<suffix>.pages.dev / osa-dash-<suffix>.pages.dev and their branch previews (#619). test-endpoint-resolution.js: 17 passed.
test-routing.js uses a placeholder host; the health probe reads the legacy
host from LEGACY_WORKERS_DEV_HOST ("none" disables it once
nemarOrg/website#343 closes) (#619). test-routing.js: 147 passed.
Contributor
Dashboard Preview
This preview will be updated automatically when you push new commits. |
Contributor
Preview Deployment
This preview will be updated automatically when you push new commits. |
6 tasks done
Review fixes (#619): the account is no longer pinned in code, but the RATE_LIMITER_KV ids, the worker secrets (Infisical osc /osa/edge), the dashboard's CORS origin (CORS_ORIGINS, not a wider wildcard) and LEGACY_WORKERS_DEV_HOST are per-account steps, now in the deployment checklist. Tests: endpoint 17, routing 147, mounted-hosts 18 passed.
Contributor
|
Worker changes detected. After merging to Manual deployment (if needed): cd workers/osa-worker
wrangler deploy --env dev # for develop branch
wrangler deploy # for main branch |
The step now reads PAGES_NOTEBOOK_HOST from its env block, which the test ran without under set -u. Resolve each vars.X || 'default' to its default, as GitHub does with the variable unset, and check pages_target too. Tested: tests/test_scripts/test_build_notebook_site.py, 58 passed. Refs #619
2 of 12 tasks
This was referenced Nov 11, 2026
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.
Closes #619
Prepares the move of OSA's Cloudflare resources to the SCCN account. After this, the account is no longer pinned in code. A move still has per-account steps, now listed under "Moving to Another Cloudflare Account" in
.context/deployment-checklist.md:RATE_LIMITER_KVnamespace ids inwrangler.tomlosc,/osa/edgeLEGACY_WORKERS_DEV_HOSTChanges
wrangler.tomlno longer pinsaccount_id; both worker deploy steps passCLOUDFLARE_ACCOUNT_ID(org secret; confirmed populated, it is masked in the Pages deploy log).pages.devnames from repository variablesPAGES_DEMO_HOST,PAGES_NOTEBOOK_HOST,PAGES_DASH_HOST, defaulting to today's names. In another account a project whose name is taken gets<name>-<suffix>.pages.dev.pages.devnames and their branch previews.CORS_ORIGINSat move time, never a widerosa-dash-*.pages.devwildcard, which any Cloudflare user could claim. This is documented besidePAGES_DASH_HOST, in the dashboard, and in the checklist.test-routing.jsuses a placeholder workers.dev host;widget-route-health.ymlreads the legacy host fromLEGACY_WORKERS_DEV_HOST.Deliberate deviation
The legacy
workers.devprobe is kept, not removed: nemarOrg/website#343 is still open, so cached, SRI-pinned widget builds may still call that host. At move time, setLEGACY_WORKERS_DEV_HOSTto the new name, or tononeonce #343 closes.Not changed
The legacy
osa-demo.pages.deventries in the backend and worker CORS allowlists and the notebookframe-ancestorsstay; those hosts redirect to the custom domains.Testing
bun frontend/test-endpoint-resolution.js: 17 passed (new cases for suffixed names and look-alikes)bun workers/osa-worker/test-routing.js: 147 passedbun workers/osa-worker/test-mounted-hosts.js: 18 passedbun frontend/test-streaming.js: 135 passedwrangler.tomlparses as TOML; edited workflows parse as YAML (actionlint not available locally)Merging to develop triggers a dev worker deploy (
wrangler.tomlchanged); it should be a no-op apart from the account now coming from the secret.