Skip to content

fix(guard): keep the engine token out of requests forwarded to actors - #6005

Merged
abcxff merged 1 commit into
2.xfrom
fix-v2-strip-gateway-token
Nov 18, 2026
Merged

abcxff merged 1 commit into
2.xfrom
fix-v2-strip-gateway-token

Conversation

@abcxff

@abcxff abcxff commented Nov 18, 2026

Copy link
Copy Markdown
Contributor
  • The gateway no longer forwards the engine token to actor code. The x-rivet-token header and rivet_token.* WebSocket subprotocol entries are removed from the headers sent to an actor. Other headers, including Authorization, and other subprotocols are forwarded unchanged.
  • One shared helper, rivet_guard_core::utils::actor_forwarded_headers, now builds actor-bound headers for HTTP and WebSocket in pegboard-gateway, pegboard-gateway2 and pegboard-gateway3.
  • Unit tests cover the header stripping.
  • RivetKit never reads the engine token from incoming requests, so actors are unaffected.

@abcxff
abcxff merged commit 2d2de1d into 2.x Nov 18, 2026
12 of 13 checks passed
@abcxff
abcxff deleted the fix-v2-strip-gateway-token branch November 18, 2026 17:51
@github-actions

Copy link
Copy Markdown
Contributor

📟 Pip-Boy · 1072fd4

📦 Packages

Skipped: this PR doesn't change any published package.

🧹 Rust dependencies · cargo deny + cargo shear

check new in this PR fixed existing on base
advisories ✅ 0 0 45
licenses ✅ 0 0 0
sources ✅ 0 0 0
bans ✅ 0 0 0
unused ✅ 0 0 292

🦀 Binaries · publish Dockerfiles, --release

Base: main@3ddc9ef, the newest main commit with native builds before the merge base. Size changes merged to main since then show up here too.

artifact npm @latest base this PR Δ vs base
engine linux-x64-musl 65.7 MB 93.9 MB 94.8 MB +972.1 KB (+1.0%)
rivetkit-napi linux-x64-gnu 26.3 MB 44.1 MB 44.1 MB +47.2 KB (+0.1%)

⏱ Timing

job wall time slowest step
zizmor 13s checkout · 3s
changes 19s checkout · 14s
native · rivetkit-napi · linux-x64-gnu 5m42s Build with the publish Dockerfile · 5m25s
hygiene 1m03s checkout · 15s
native · engine · linux-x64-musl 13m03s Build with the publish Dockerfile · 12m46s
⏭ self-test — skipped
⏭ footprint — skipped
report 31s setup-node · 12s
🔭 Full CI trace for this commit

One OpenTelemetry trace of Rust CI, frontend, and Pip-Boy for 1072fd4: every job and step, with the sizes above attached. Run after CI finishes.

pnpm install --frozen-lockfile --filter 'pipboy...'
pnpm --filter pipboy pipboy trace --sha 1072fd46fb2bb8893a0d65ba37761865b5cab3fa

Add --otlp <url> to send it to any OTLP/HTTP collector.

Agent instruction: From a rivet-dev/rivet checkout, run the commands above, then read the trace file the last command prints. List the slowest jobs and steps and explain where CI time went.

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.

1 participant