Repository navigation
fix(router): mask multi-request delivery payloads - #7476
shekhar-rudder merged 15 commits into
Conversation
# Description Syncing release v1.90.0 to main branch **WARNING: Do NOT rewrite git history and ALWAYS use a "Merge Commit" for merging!** **↓↓ Please review and edit commit overrides before merging ↓↓** BEGIN_COMMIT_OVERRIDE END_COMMIT_OVERRIDE
|
👋 I'm rudder-devbox. I opened this PR from a Linear ticket. Mention |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## release/1.90.x #7476 +/- ##
==================================================
- Coverage 85.06% 84.52% -0.55%
==================================================
Files 625 625
Lines 62514 62525 +11
==================================================
- Hits 53178 52848 -330
- Misses 9333 9674 +341
Partials 3 3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Collapse maskListedPathsWithResult back into a single maskListedPaths and drop the threaded "path found" bool: an empty array returns its original bytes, so the existing bytes.Equal listed_noop check keeps working. Share one maskedFallback value, merge the invalid/scalar branches, and walk arrays with ForEach into a pre-sized buffer. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
The lint log showed a single failure: Staticcheck Pushed commit: 384ac31 |
|
Knowledge distillation completed |
shekhar-rudder
left a comment
There was a problem hiding this comment.
@rudder-devbox please remove the unnecessary code flagged inline.
|
Knowledge distillation completed |
c4ffdee to
6d70eef
Compare
Collapse maskListedPathsWithResult back into a single maskListedPaths and drop the threaded "path found" bool: an empty array returns its original bytes, so the existing bytes.Equal listed_noop check keeps working. Share one maskedFallback value, merge the invalid/scalar branches, and walk arrays with ForEach into a pre-sized buffer. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
6d70eef to
bbd773b
Compare
…9b' of https://github.com/rudderlabs/rudder-server into harness/INT-7357-fix-router-mask-multi-request-d-3450799b
|
Knowledge distillation completed |
|
The logs show a transient CI infrastructure failure, not a failure caused by this PR. The PR changes only |
Skip rebuilding an array when no element was masked, so the original bytes come back and bytes.Equal reports listed_noop regardless of the whitespace between elements; this also covers the empty array. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
The Unit log showed I increased the test timeout to 100 ms, preserving the timeout behavior while giving transaction setup scheduler headroom. The failing test passed 20 consecutive runs, the full Pushed commit: f382169 |
|
Knowledge distillation completed |
🤖 I have created a release *beep* *boop* --- ## [1.90.1](v1.90.0...v1.90.1) (2026-10-14) ### Bug Fixes * **router:** mask multi-request delivery payloads ([#7476](#7476)) ([955580f](955580f)) --- 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>
…b63c1aba51d Resolve router/masking.go conflict between multi-request delivery masking (#7476) and the shared maskSecrets refactor for reporting sample events (#7497): keep the shared helpers, mask request arrays per element on the delivery path only, and keep the object fallback Live Events can parse. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Description Syncing patch release v1.90.1 to main branch **↓↓ Please review and edit commit overrides before merging ↓↓** BEGIN_COMMIT_OVERRIDE fix(router): mask multi-request delivery payloads (#7476) END_COMMIT_OVERRIDE --------- Co-authored-by: rudder-devbox[bot] <278693763+rudder-devbox[bot]@users.noreply.github.com> Co-authored-by: tech-infra-rudderstack <[email protected]> Co-authored-by: Shashank Shekhar <[email protected]> Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]> Co-authored-by: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com>
🤖 I have created a release *beep* *boop* --- ## [1.91.0-rc.2](v1.90.0...v1.91.0-rc.2) (2026-10-20) ### Features * **jobsdb:** pending events gauge for the gw jobsdb ([#7447](#7447)) ([fc539c4](fc539c4)) * **processor:** report event_filter drops per reason and stop its succeeded rows ([#7454](#7454)) ([5caff53](5caff53)) ### Bug Fixes * **destination:** authenticate marketo bulk uploads with bearer token ([#7510](#7510)) ([3eaffad](3eaffad)) * **processor:** exclude dropped jobs from tracked users and activation records ([#7485](#7485)) ([526602c](526602c)) * **router:** enable live events payload masking by default ([#7500](#7500)) ([8b5c22d](8b5c22d)) * **router:** mask multi-request delivery payloads ([#7476](#7476)) ([f65572e](f65572e)) * **router:** mask reporting sample event secrets ([#7497](#7497)) ([833d694](833d694)) * **router:** report destination status for v1 proxy deliveries in transformer_outgoing_request_count ([#7482](#7482)) ([bba1c21](bba1c21)) ### Miscellaneous * bump sqlconnect-go to v1.34.0 ([#7479](#7479)) ([71e8cfa](71e8cfa)) * stop setting in_reported_by on report rows ([#7458](#7458)) ([814d149](814d149)) * sync release v1.90.0 to main branch ([#7475](#7475)) ([d05fcbb](d05fcbb)) * **tooling:** move rudder-server test MinIO to Silo ([#7469](#7469)) ([935bf59](935bf59)) --- 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>
🤖 I have created a release *beep* *boop* --- ## [1.91.0](v1.90.0...v1.91.0) (2026-10-20) ### Features * **jobsdb:** pending events gauge for the gw jobsdb ([#7447](#7447)) ([fc539c4](fc539c4)) * **processor:** report event_filter drops per reason and stop its succeeded rows ([#7454](#7454)) ([5caff53](5caff53)) ### Bug Fixes * **destination:** authenticate marketo bulk uploads with bearer token ([#7510](#7510)) ([3eaffad](3eaffad)) * **processor:** exclude dropped jobs from tracked users and activation records ([#7485](#7485)) ([526602c](526602c)) * **router:** enable live events payload masking by default ([#7500](#7500)) ([8b5c22d](8b5c22d)) * **router:** mask multi-request delivery payloads ([#7476](#7476)) ([f65572e](f65572e)) * **router:** mask reporting sample event secrets ([#7497](#7497)) ([833d694](833d694)) * **router:** report destination status for v1 proxy deliveries in transformer_outgoing_request_count ([#7482](#7482)) ([bba1c21](bba1c21)) ### Miscellaneous * bump sqlconnect-go to v1.34.0 ([#7479](#7479)) ([71e8cfa](71e8cfa)) * stop setting in_reported_by on report rows ([#7458](#7458)) ([814d149](814d149)) * sync release v1.90.0 to main branch ([#7475](#7475)) ([d05fcbb](d05fcbb)) * **tooling:** move rudder-server test MinIO to Silo ([#7469](#7469)) ([935bf59](935bf59)) --- 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>
Description
Mask router-transform multi-request delivery payloads without leaking destination credentials.
The current implementation masks valid request-array elements independently, wraps the result under
{"maskedRequests":[...]}, and emits{"masked":"******"}for malformed JSON, scalars, mixed arrays, and masking failures. Per-request endpoints remain visible and listed secrets are replaced with******. Array metrics reportlistedonly when a listed value was replaced; empty and no-match arrays reportlisted_noop.Linear Ticket
INT-7357
Security
Validation
make fmt— passedok github.com/rudderlabs/rudder-server/router)make lint— golangci-lint passed with 0 issuesgit diff --check— passedrudder-control-planeshowsEventDeliveryStatusController.parseEventaccepts top-level arrays: arrays are truthy objects and there is noArray.isArrayrejection. The currentmaskedRequestswrapper and its object-only parser rationale therefore contradict the verified downstream contract and the requested array-preserving behavior. This must be corrected before merge.make test package=routerreached the unrelated Docker-backedTestEventOrderGuarantee/pickup_with_eventOrderKeyThreshold_disabledtest, which timed out while the transformer reportedcontrol plane not reachable. The focused router masking tests pass.make lintsecurity tail reports 38 existing gitleaks findings from the repository commit; no changed file is reported by the Go lint checks.Adversarial self-review surfaced findings that were not auto-fixed. Each carries its disposition — please evaluate before merging.
router/masking.go:102— not auto-fixed (iteration budget exhausted)