Repository navigation
BL5: read the workers.dev subdomain from the Cloudflare connection - #7
Merged
Merged
Conversation
…text pack, SVG uploads closed
- Close a stored XSS: uploads accepted any image/*, SVG included, and
/api/blob served it from the app's own origin. Uploads are now raster
images only (PNG, JPEG, GIF, WebP, AVIF; media type without parameters,
case-insensitive), one list in lib/blob/content-types.ts shared by the
route and the uploader's accept/check. /api/blob answers every object
with `Content-Security-Policy: default-src 'none'; sandbox` beside
nosniff, and its comment no longer claims to authenticate. tests/web
(16 tests, was 11) and testing/e2e.test.sh assert both (risk BL-L).
- Remove kiox.yaml/kiox.lock and their two blueprint modules: nothing ran
the kiox pin (v2.15.0); every workflow pins orun through orun-action.
- Generate docs/{overview,architecture,runbook}.md for every component
from what it declares (tooling/catalog/gen-component-docs.py), and fail
Baseline CI when they drift (--check).
- Add ai/context/{current,decisions,open-risks}.md (this repository's own;
nothing places them).
- Close out BL4 (shipped, tagged baseline-v1), note the footer's Vercel
logo the page-copy section left out, and record BL5 (BL-6).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D8AmgTwmnp4M8mgmnS9aha
The generator now lays tables out the way prettier does (an app whose lint is `prettier --check` accepts the pages as written), lists the WIRING_* failure only for Workers that take wiring, and no longer claims a package holds no credentials. - Word the kiox exit criterion as it can be true: nothing outside this milestone's own record names kiox. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01D8AmgTwmnp4M8mgmnS9aha
The generator now reads `optionalSecretEnv` (listed as "(optional)") and secrets declared per environment under `subscribe.environments[]`, so a page no longer leaves out a secret its component declares. Its tables are laid out as prettier lays them out, the WIRING_* failure is listed only for Workers that take wiring, and a package is no longer said to hold no credentials. Every starter now carries the identical generator. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01D8AmgTwmnp4M8mgmnS9aha
- blueprint.yaml: the subdomain input declares `from: connection.cloudflare.workersSubdomain`; the console fills it from the connection the build is bound to (the one CLOUDFLARE_ACCOUNT_ID and the deploy tokens mint from) and renders no field for it - testing/manifest.test.sh: cirrus-baseline's check, byte for byte — a `connection.<provider>.<fact>` source is accepted only when spec.requires.integrations lists the provider (mutation-checked) - repo-blueprint.yaml, BOOTSTRAP.md, docs/phases/README.md: a hand-run build still passes --set subdomain - records: BL-7 joins BL5; status, plan, epic index, current.md and decisions.md say BL5 ships as baseline-v2 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01D8AmgTwmnp4M8mgmnS9aha
ruehowl
marked this pull request as ready for review
October 21, 2026 12:18
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.
Why
The console card's
subdomaininput was typed by hand, but it belongs to the Cloudflare account the same way its id does, and it has exactly one right answer. A wrong value only showed up after deploy, in the smoke checks and the verify URLs. cirrus-baseline reads it from the Cloudflare connection sincebaseline-v23(sourceplane/cirrus-baseline#30); this brings blob-starter in line.What changes
blueprint.yaml:subdomainnow declaresfrom: connection.cloudflare.workersSubdomain(key, label, pattern, help and example unchanged).CLOUDFLARE_ACCOUNT_IDand the deploy tokens are minted from.testing/manifest.test.sh: cirrus-baseline's check, byte for byte. It accepts the new source and requires the source's provider to be listed inspec.requires.integrations(this card lists[github, cloudflare]).BOOTSTRAP.md,docs/phases/README.md(the inputs list;01-product.mdhas no inputs table here) andrepo-blueprint.yaml's description say that only a hand-runorun newstill passes--set subdomain. The input and its default stay inrepo-blueprint.yaml.epic.yaml,tasks/BL-7.TaskContract.yaml). IMPLEMENTATION-STATUS, the epic README, the epics index, the plan,ai/context/current.mdanddecisions.mdrecord BL5 (BL5: the cirrus standard — no kiox, generated component docs, the context pack, SVG uploads closed #6 and this PR) asbaseline-v2.ai/context/open-risks.mdsaid BL-L (SVG uploads) was resolved "for products built from a later tag thanbaseline-v1". It now namesbaseline-v2.Nothing a product runs changes: no app, Terraform, test or tooling file is touched.
Verified locally
manifest,phases,coverage,rebrand,retouch,bootstrap-deferandwireall exit 0.gen-component-docs.py --checkexits 0 (3 components).orun new --blueprint repo-blueprint.yaml --statusexits 0, with01-productat 81 files.testing/leak.test.shexits 0: 81 files derived, and 74 shipped sources name no factory path.testing/placement.test.shexits 0. It places 81 tracked files, plans cloudflare-r2 → web, and--resumechanges nothing.orun task check BL-7reportscomplete yes. With--base origin/main, affects is ok.cloudflarefromspec.requires.integrations.manifest.test.shthen exits 1 with one finding:inputs[subdomain].from is 'connection.cloudflare.workersSubdomain' but spec.requires.integrations does not list cloudflare — there is no connection to read it from. With the file restored (byte-identical), it exits 0.Generated by Claude Code