Skip to content

test(fleet-hosted): bridge-door service-token round-trip with no RP issuer (#14951) - #17041

Merged
developing-today-fleet[bot] merged 2 commits into
mainfrom
archer/1937j-14951-bridge-service-token-tests
Nov 30, 2026
Merged

developing-today-fleet[bot] merged 2 commits into
mainfrom
archer/1937j-14951-bridge-service-token-tests

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

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.ts covers only the RP-signed JWT caller, while the queue door got its pin in test/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):

  • deployment premise: tenancy configured, rp_configured=false, service_auth_configured=true (via the public /health document);
  • the bridge-scoped token round-trips send/agents/messages through the binding as service:pm-stack with the PM credential, no RP issuer anywhere;
  • JWT-shaped caller → 503 auth_not_configured, bridge never reached;
  • queue-scoped token on the bridge door → 403 service_token_route_scope, bridge never reached;
  • bridge-scoped token on the queue door → 403 service_token_route_scope (scope enforced in both directions);
  • inactive bridge token → 403 service_token_inactive;
  • unknown opaque token → 401 invalid_token.

package.json: the new file joins the package test script 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.ts under 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 no node binary — 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-bot with what you need.

…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).
@coderabbitai

coderabbitai Bot commented Nov 30, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2cd89383-5a41-4d75-b8f4-82fe7157dfd5

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@developing-today-fleet
developing-today-fleet Bot merged commit 54db098 into main Nov 30, 2026
2 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the archer/1937j-14951-bridge-service-token-tests branch November 30, 2026 02:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants