Repository navigation
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
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. |
This was referenced Nov 24, 2026
This branch has not been deployed
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.
Scope
This draft implements the private, outbound-only laptop bridge for four named Fleet reads: queue status, broker health, laptop health, and bounded diagnostics. Desktop Commander/native Codex remains the fallback. There is no shell, arbitrary filesystem access, generic proxy, or credential capture.
The selected source transport is no-WARP HTTPS to the fixed proposed hostname
laptop-bridge-staging.security.cab, protected by Cloudflare Access service authentication and independent Ed25519 request signatures. Worker code requires Cloudflare’s directly authenticatedctx.access.audto match the configured audience and validates the RS256 Access JWT against the exact issuer, claim audience, hostname, JWKS, signature and time claims. The signedcommon_nameselects one unrevoked principal;x-bridge-principalmust name that same principal before forwarding. It does not rely on the originalCF-Access-Client-Idrequest header. Access/cookie/authorization headers are removed before the Durable Object. The hostname, DNS ownership, Access app/policy, and real Node caller/device route are not verified or deployed.Fixed staging lifecycle and gates
The bridge uses one declared
cloudflare.config.tslifecycle and pinnedcf@1.0.0-rc.1. The manual first-deploy template remains atpm-stack/private-laptop-bridge/private-laptop-bridge-staging-bootstrap.workflow.yml.disabled, outside.github/workflows, so it is not registered. It requires an owner-created metadata-only Worker and pinned immutableCF_BRIDGE_WORKER_ID; absent targets and same-name/different-ID takeovers fail closed. It does not grant account-wide Worker creation to Actions. The existing release workflow now checks the exact existing protectedcloudflare-stagingenvironment in a no-secret job before environment assignment.The dormant first-deploy path uses
bridge-init: it requires full zone/route inventory, separate Worker and Gateway-rule read identities, an empty deployment/namespace/domain state, disabled worker.dev/previews, exact Worker identity, and absence of any Gateway Forward association. Its postflight requires the disabled source-tagged version and SQLite namespace while verifying zero custom domains and reverse domain references. It does not attach a hostname. The separate routedbridgemode requires protected Access issuer/audience and a later independent Access/domain review. The private owner proof requires the exact Access app, service-token-only policy, no browser/bypass/non-service allow paths, exactly two approved client IDs, and token expirations within one hour. It contains no Client Secrets.The first deployment template now uses only declarative
cf deploy --mode bridge-init --prebuilt --provision, which renders no domain and blank Access issuer/audience. The exactcf --provisionbehavior on a precreated Worker and the Individual Workers Editor permission required for SQLite initialization have not been independently verified. The workflow is dormant and must remain so until verified. A later hostname attachment path is still not implemented.Required protected
cloudflare-stagingconfigurationCF_BRIDGE_WORKER_ID,CF_BRIDGE_BOOTSTRAP_APPROVED_SHA,CF_BRIDGE_ACCESS_ISSUER, andCF_BRIDGE_ACCESS_AUDIENCE.CF_BRIDGE_RELEASE_REVIEWER_IDS(typed User/Team IDs); the pre-assignment guard cannot consume environment-scoped variables.CF_BRIDGE_ACCOUNT_ID,CF_BRIDGE_ZONE_IDS,CF_BRIDGE_READ_TOKEN,CF_BRIDGE_GATEWAY_READ_TOKEN,CF_BRIDGE_API_TOKEN(Individual Workers Editor scoped to this Worker), andCF_BRIDGE_OWNER_PROOF_JSON.The environment must already exist, require an independent reviewer, disallow self-review/admin bypass, and allow only
main. The current checkout does not verify those settings, hostname ownership, Access policy, account zone inventory, or the provider’s first-deploy behavior. Keep the workflow dormant.Verification status by exact source head
7f7c2e9317d3ce8e3e44d252f2434d5c6398b526. Exact-head, GitHub-hosted Fleet run 45155722958 asserted this checkout, Nodev24.22.0, ran lockednpm ci --ignore-scripts --no-audit --no-fund, thennpm test: 140 passed, 0 failed. No Cloudflare credentials or provider write command were present.cf@1.0.0-rc.1bridge-initbuild pluscf deploy --mode bridge-init --prebuilt --dry-runsucceeded on GitHub-hosted run 45151334369, at sourcebe7bba58affd20e94ec0ee0ba6bdd4693e18c8c2. That code-only dry-run had no Cloudflare credentials and printed--dry-run: exiting now; it validated the disabled SQLite/no-domain Build Output, not live account state. No config or build assets have changed since that dry-run.CF_BRIDGE_WORKER_ID; the owner proof must be no more than 15 minutes old and expire within 15 minutes. Worker Domain IDs are validated as UUID or 32-hex IDs, distinct from the 32-hex Worker/zone IDs. The pilot request schema/example are review-only, cannot setenabled:true, require per-principal token expiry no later than the 60-minute window and all three kill conditions, and are not consumed by the Worker or a workflow.node --check, JSON parsing, andgit diff --checkpassed locally. The test suite and build were not run locally.actionlinthas not been run or claimed.Remaining acceptance gates
The bridge is not deployed or replacement-ready. Owner-side verification is still needed for the exact
security.cabhostname and Access app; an immutable precreated Worker ID and protected environment; thecf --provision/Individual Workers Editor provider contract; short-lived Access tokens and public-key principals; and real, separate Node contexts on the approved Aster runtime and Drew’s non-root AMD laptop. Synthetic Workerd tests do not prove Access-edge reachability or direct queue freshness. Keep Desktop Commander/native Codex fallback until Aster can complete authenticated, fresh read-only Fleet operations end to end on AMD and denial behavior is verified.See ACCESS-STAGING.md, STAGING.md, and VERIFICATION.md.