Repository navigation
Conversation
rudder-server sends X-Rudder-Workspace-Id on /customTransform to a per-workspace pyt and on /test and /testRun from forwardTest, retries included, so a pyt pod can refuse a request for another workspace with 421. The AST ops and rudder-transformer get no header.
fracasula
force-pushed
the
feature/pipe-3589-06b-rudder-server-send-the-workspace-id-when-forwarding
branch
from
October 29, 2026 17:42
562beae to
04cd7ac
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #7551 +/- ##
==========================================
- Coverage 84.70% 84.69% -0.02%
==========================================
Files 631 631
Lines 62941 62945 +4
==========================================
- Hits 53317 53312 -5
- Misses 9621 9630 +9
Partials 3 3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
fracasula
marked this pull request as ready for review
October 30, 2026 09:56
mihir20
approved these changes
Oct 30, 2026
ktgowtham
approved these changes
Oct 30, 2026
fracasula
deleted the
feature/pipe-3589-06b-rudder-server-send-the-workspace-id-when-forwarding
branch
October 30, 2026 14:29
This was referenced Nov 9, 2026
Closed
Merged
atzoum
pushed a commit
that referenced
this pull request
Nov 9, 2026
🤖 I have created a release *beep* *boop* --- ## [1.93.0-rc.1](v1.92.0...v1.93.0-rc.1) (2026-11-09) ### Features * **destination:** recognize machine_oauth accounts as oauth ([#7549](#7549)) ([f51e4ca](f51e4ca)) * incremental definitions on the v2 namespace config ([#7487](#7487)) ([ce51e38](ce51e38)) * **processor:** add flag to abort python transformations on deployments that do not offer them ([#7571](#7571)) ([ca85eb2](ca85eb2)) * **processor:** filter http v2 events by destination message types ([#7538](#7538)) ([58fd176](58fd176)) * **processor:** send the workspace id to per-workspace pyt pods ([#7551](#7551)) ([ea33835](ea33835)) * **warehouse:** add maxcompute destination ([#7568](#7568)) ([a64bfd9](a64bfd9)) ### Bug Fixes * **batchrouter:** abort bq stream all events jobs on terminal auth failures ([#7548](#7548)) ([6b7e023](6b7e023)) * bump andybalholm/brotli to v1.2.7 [SEC-759] ([#7525](#7525)) ([6dfe468](6dfe468)) * bump rudder-go-kit to v0.84.3 ([#7547](#7547)) ([355054a](355054a)) * **core:** schema forwarder panics on shutdown ([#7519](#7519)) ([dd61cfc](dd61cfc)) * database connections hang when context is cancelled during a copy ([#7578](#7578)) ([8dae6e3](8dae6e3)) * **jobsdb:** compaction missing pairs after one that doesn't fit ([#7574](#7574)) ([573271b](573271b)) * **jobsdb:** multiconsumer recovery misses a consumer's executing status after another consumer's later status ([#7554](#7554)) ([69b43e0](69b43e0)) * **jobsdb:** old jobs not expiring for every consumer ([#7573](#7573)) ([366f114](366f114)) * **jobsdb:** pickups stalling on status tables with skewed stats ([#7572](#7572)) ([318446f](318446f)) * **jobsdb:** unionjobsdb functions pick the first datasets by table name ([#7558](#7558)) ([e94d6c5](e94d6c5)) * **router:** event order test only counts drained jobs of the last dataset ([#7552](#7552)) ([b0a097a](b0a097a)) * **router:** mask secrets in array-shaped reporting samples ([#7536](#7536)) ([902160f](902160f)) * **warehouse:** hot-reload degraded workspaces without aborting restored uploads ([#7564](#7564)) ([cb98598](cb98598)) * **warehouse:** match deltalake columns case-insensitively ([#7563](#7563)) ([a7d30d7](a7d30d7)) * **warehouse:** migrate snowflake to gosnowflake v2.3.0 ([#7542](#7542)) ([cc09426](cc09426)) * **warehouse:** skip job-creation error log on router shutdown ([#7567](#7567)) ([895367e](895367e)) ### Miscellaneous * **deps:** bump github.com/go-jose/go-jose/v4 from 4.1.4 to 4.1.6 ([#7545](#7545)) ([35ee952](35ee952)) * export only the +Inf bucket for limiter timers ([#7570](#7570)) ([4429472](4429472)) * **router:** add drainReason label to pipeline_processed_events ([#7561](#7561)) ([af0aef8](af0aef8)) * sync release v1.92.0 to main branch ([#7534](#7534)) ([9ab165d](9ab165d)) * **warehouse:** bump sqlconnect-go to v1.37.1 ([#7575](#7575)) ([acdad67](acdad67)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com>
atzoum
pushed a commit
that referenced
this pull request
Nov 10, 2026
🤖 I have created a release *beep* *boop* --- ## [1.93.0](v1.92.0...v1.93.0) (2026-11-09) ### Features * **destination:** recognize machine_oauth accounts as oauth ([#7549](#7549)) ([f51e4ca](f51e4ca)) * incremental definitions on the v2 namespace config ([#7487](#7487)) ([ce51e38](ce51e38)) * **processor:** add flag to abort python transformations on deployments that do not offer them ([#7571](#7571)) ([ca85eb2](ca85eb2)) * **processor:** filter http v2 events by destination message types ([#7538](#7538)) ([58fd176](58fd176)) * **processor:** send the workspace id to per-workspace pyt pods ([#7551](#7551)) ([ea33835](ea33835)) * **warehouse:** add maxcompute destination ([#7568](#7568)) ([a64bfd9](a64bfd9)) ### Bug Fixes * **batchrouter:** abort bq stream all events jobs on terminal auth failures ([#7548](#7548)) ([6b7e023](6b7e023)) * bump andybalholm/brotli to v1.2.7 [SEC-759] ([#7525](#7525)) ([6dfe468](6dfe468)) * bump rudder-go-kit to v0.84.3 ([#7547](#7547)) ([355054a](355054a)) * **core:** schema forwarder panics on shutdown ([#7519](#7519)) ([dd61cfc](dd61cfc)) * database connections hang when context is cancelled during a copy ([#7578](#7578)) ([8dae6e3](8dae6e3)) * **jobsdb:** compaction missing pairs after one that doesn't fit ([#7574](#7574)) ([573271b](573271b)) * **jobsdb:** multiconsumer recovery misses a consumer's executing status after another consumer's later status ([#7554](#7554)) ([69b43e0](69b43e0)) * **jobsdb:** old jobs not expiring for every consumer ([#7573](#7573)) ([366f114](366f114)) * **jobsdb:** pickups stalling on status tables with skewed stats ([#7572](#7572)) ([318446f](318446f)) * **jobsdb:** unionjobsdb functions pick the first datasets by table name ([#7558](#7558)) ([e94d6c5](e94d6c5)) * **router:** event order test only counts drained jobs of the last dataset ([#7552](#7552)) ([b0a097a](b0a097a)) * **router:** mask secrets in array-shaped reporting samples ([#7536](#7536)) ([902160f](902160f)) * **warehouse:** hot-reload degraded workspaces without aborting restored uploads ([#7564](#7564)) ([cb98598](cb98598)) * **warehouse:** match deltalake columns case-insensitively ([#7563](#7563)) ([a7d30d7](a7d30d7)) * **warehouse:** migrate snowflake to gosnowflake v2.3.0 ([#7542](#7542)) ([cc09426](cc09426)) * **warehouse:** skip job-creation error log on router shutdown ([#7567](#7567)) ([895367e](895367e)) ### Miscellaneous * **deps:** bump github.com/go-jose/go-jose/v4 from 4.1.4 to 4.1.6 ([#7545](#7545)) ([35ee952](35ee952)) * export only the +Inf bucket for limiter timers ([#7570](#7570)) ([4429472](4429472)) * **router:** add drainReason label to pipeline_processed_events ([#7561](#7561)) ([af0aef8](af0aef8)) * sync release v1.92.0 to main branch ([#7534](#7534)) ([9ab165d](9ab165d)) * **warehouse:** bump sqlconnect-go to v1.37.1 ([#7575](#7575)) ([acdad67](acdad67)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com>
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.
Description
Traffic and test pyt pods each serve one workspace, and pyt checks the workspace of every request it serves for one. rudder-server knows it, so it now sends it in
X-Rudder-Workspace-Id(transformerclient.HeaderWorkspaceID) on every request to a traffic or test pod, retries included:/customTransformon the event path, when the batch goes to the workspace's per-workspace pyt (doPost, whenisPerWorkspacePyT). Batches for rudder-transformer (JS) get no header: it serves every workspace./testand/testRunfromforwardTest, on the run's ephemeral test pod and on arouteToProductionworkspace's traffic pod. The ID isForwardRequest.WorkspaceId, whichForwardvalidates. Test metadata is written by the user, so the header is the only workspace pyt can go by there./test-library,/extract-libs): the pyt-ast pods are shared.pyt compares the header with its
WORKSPACE_IDand refuses a request without it, or for another workspace, with 421, which rudder-server already handles by resetting the target's client and retrying. That check lands in https://github.com/rudderlabs/rudder-pytransformer/pull/148, so this release has to be live on every rudder-server that calls pyt before that PR merges. DMT gets the same change for its/customTransformcalls in https://github.com/rudderlabs/device-mode-transformation-server/pull/144.Tests
TestUserTransformURLRoutingpins the header on a Python batch to the per-workspace pyt and its absence on JS batches.TestMisdirectedEventPathpins it on every chunk, on the first attempt and on the retry after a 421 client reset, and its absence on a request to rudder-transformer.TestWorkspaceHeaderOnEventPathpins it on every attempt of a cold-start retry, and sends a mixed-case workspace id as given while the URL lowercases it.TestForwardTestpins it on/testand/testRun, its absence on the AST ops, and, for bothTestandTestRun, every attempt of a cold-start retry.TestMisdirectedForwardTestpins it on the retry after a 421 client reset, for both.TestForwardProductionRouteSendsWorkspaceHeaderrunsForwardwith the real client and checks the production pod receives the header, case included, for test and testRun. The cpservice route test also pins the forwarded workspace on that route.Header.Setfails its tests.Linear Ticket
https://linear.app/rudderstack/issue/PIPE-3589/06b-rudder-server-send-the-workspace-id-to-traffic-and-test-pods
Security