Repository navigation
test(fleet-hosted): bridge-door service-token round-trip with no RP issuer (#14951) - #17041
Merged
developing-today-fleet[bot] merged 2 commits intoNov 30, 2026
Conversation
…ssuer (#14951) New test/bridge-service-token-roundtrip.test.ts: pins the #14978/CF-2b auth route for the bridge door — a bridge-scoped opaque service token over the tenancy directory alone (no RP issuer configured) round-trips send/agents/messages through the binding as service:pm-stack; JWT-shaped callers fail closed 503 auth_not_configured; route scope refuses in both directions; inactive token 403 service_token_inactive; unknown token 401 invalid_token. Refs #14951 (lane 1937-J).
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
developing-today-fleet
Bot
deleted the
archer/1937j-14951-bridge-service-token-tests
branch
November 30, 2026 02:04
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.
Refs #14951 (CF-11) — the code-side regression slice named on that issue 2026-11-27 (lane code-g's correction), claimed by Archer lane 1937-J (claim: #14951 (comment)).
What
After #14978 / PR #15551, an opaque service token is validated against the tenancy directory alone, so the hosted bridge door's live round trip (#14951's remaining acceptance leg) runs on a bridge-scoped service token in a deployment with no RP issuer configured. That path had no test:
test/bridge.test.tscovers only the RP-signed JWT caller, while the queue door got its pin intest/queue-service-token-roundtrip.test.ts(#14942).New
test/bridge-service-token-roundtrip.test.ts(7 tests, oracle = the #14951 slice record + design §4.1/§4.8):rp_configured=false,service_auth_configured=true(via the public /health document);service:pm-stackwith the PM credential, no RP issuer anywhere;auth_not_configured, bridge never reached;service_token_route_scope, bridge never reached;service_token_route_scope(scope enforced in both directions);service_token_inactive;invalid_token.package.json: the new file joins the packagetestscript list, like the queue round-trip before it.Scope / non-goals
Tests only — no source change. #14951 stays open: its remaining leg is the live deploy/config + hosted round-trip recording on the production Worker (a live production operation, not this PR).
Verification
fleet-command run 46338141060 (developing-today/fleet, against this branch at head 227ab62):
node --experimental-transform-types --test test/bridge-service-token-roundtrip.test.ts test/bridge.test.tsunder nix-provided Node 24 — 14 tests, 14 pass, 0 fail (all 7 new tests executed by name in the log; the 7 pre-existing bridge tests still green). First dispatch (run 46337612725) failed before any test executed: the standard fleet build image has nonodebinary — environment only, superseded by the nix-shell dispatch above. Full diff read by the lane before merge.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.