Repository navigation
Add isolated private smoke version upload - #12767
Merged
Merged
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 54 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Base automatically changed from
private-laptop-smoke-bootstrap-20261123
to
main
November 23, 2026 01:55
…upload-20261123 # Conflicts: # .github/workflows/private-laptop-bridge-smoke-init.yml # pm-stack/private-laptop-bridge/bootstrap-smoke.mjs # pm-stack/private-laptop-bridge/bootstrap-smoke.test.mjs
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.
Stack and scope
This draft was reconciled onto current
main(ce26128d5cb1329b8acdd8d32f4ad69208b5af34) after bootstrap-only PR #12742 merged. It adds the separate manual smoke-version upload workflow and only the receipt-producing bootstrap deltas and minimal smoke build assets required for provenance; it does not add a duplicate initializer.The workflow runs only from the fixed repository and
main, checks out exactly the dispatch SHA, accepts only the numeric init run ID, and uses the receipt from that exact successful init workflow attempt. It builds the standalone stateless smoke Worker with the pinnedcf@1.0.0-rc.1andwrangler@4.166.0. It uploads only one immutable version withcf workers versions create; it has no deploy, traffic, route, domain, preview-setting, Gateway, or Durable Object operation.When
mainadvances after initialization, the uploader uses GitHub's compare API to require that the init run SHA is an ancestor of the upload SHA. It then checks GitHub blob SHAs for the fixed initializer and upload workflows, bootstrap and receipt producer/consumer code and tests, and pinned package metadata. Unrelated main commits are permitted; changes to these compatibility inputs fail closed until initialization is repeated from a compatible main state.Provider readback and least privilege
id,resources,metadata,number) does not include annotations, so the code does not require or infer provenance from it.Protected setup required after #12742 lands
Configure
cloudflare-smoke-uploadas a protectedmain-only environment with independent required reviewers. Keep these values environment-scoped:CF_SMOKE_UPLOAD_ACCOUNT_IDCF_SMOKE_UPLOAD_EXPECTED_ZONE_IDS(the verified complete account-zone inventory)CF_SMOKE_UPLOAD_API_TOKEN(Individual Workers Editor limited toprivate-laptop-bridge-smoke)CF_SMOKE_UPLOAD_READ_TOKEN(Workers Metadata Read-only plus account-wide Zone Read for route inventory)The upload and read tokens must be distinct. No environment, secret, Cloudflare resource, setting, workflow dispatch, or traffic state was accessed or changed. The real Durable Object bridge remains out of scope.
Verification
node --test --test-reporter=spec pm-stack/private-laptop-bridge/bootstrap-smoke.test.mjs pm-stack/private-laptop-bridge/smoke-upload.test.mjs— 41/41 passed, including the different legacy/Beta list shapes and exact UUID/provenance checks.cf build, effective Build Output validation, target-override guard, andcf workers versions create --prebuilt --dry-runpassed offline.git diff --checkpassed.actionlintwas unavailable in this workspace; the AMD Desktop Commander check was blocked by its monthly usage limit. No hosted check is reported for this branch; no workflow was dispatched.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.