Repository navigation
fix(router): mask reporting sample event secrets - #7497
shekhar-rudder merged 5 commits into
Conversation
|
👋 I'm rudder-devbox. I opened this PR from a Linear ticket. Mention |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7497 +/- ##
==========================================
+ Coverage 84.54% 84.99% +0.45%
==========================================
Files 632 632
Lines 62839 62857 +18
==========================================
+ Hits 53128 53427 +299
+ Misses 9708 9427 -281
Partials 3 3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Move reporting sample masking from the three worker call sites to commitStatusList, so only the sample actually kept per status key is masked instead of every job. Drop maskMode: maskSecrets now applies what it can and reports why, and maskDeliveryPayload owns its fail-closed fallback. Remove duplicated tests and share maskingCounts. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Drop the applied flag from applyPaths: a failed path never contributes its write, so master's bytes.Equal check still identifies listed_noop. Restore the errPathNotMasked sentinel to keep the diff to what the task needs. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
CI failed in the “Correct generated files” job because I committed the formatter’s output and pushed it after integrating the latest remote branch update. |
|
Knowledge distillation completed |
|
This run tested The failure was already fixed and pushed in the next commit on the PR branch. That commit contains exactly the formatter-produced deletion, and the branch was validated with |
|
@rudder-devbox Resolve merge conflicts |
…x-router-mask-reporting-sampl-a45e7de1 # Conflicts: # router/handle_lifecycle.go
|
Resolved the merge conflict by merging the latest |
|
Knowledge distillation completed |
…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]>
🤖 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 transformer-declared destination secret paths before router payloads become reporting sample events. The behavior is controlled by the new default-off
Router.<DEST_TYPE>.enableReportingSampleEventMasking/Router.enableReportingSampleEventMaskingsetting.Reporting masking is path-scoped and intentionally skips mask-all fallback so samples remain useful for error triage. Existing live-event masking keeps its fail-closed behavior and metric reason labels. A new
router_reporting_sample_event_maskingcounter records outcomes by destination type and reason.Validation:
go test -count 1 ./router -run 'Test(Router|SendDestinationResponseMasksLiveEventsPayload|MaskReportingSampleEvent|MaskSecretsModeDivergence|MaskSecretsPreTransformEventNoop|PostStatusOnResponseQStoreDeliveredWithWarningPayload)$'— passedgo build ./...— passedgo run github.com/golangci/golangci-lint/v2/cmd/[email protected] run ./router— passed with 0 issuesrudder-serveris SHA-pinned and not source-verifiable in the local stackLinear Ticket
INT-7412
Security