Repository navigation
feat(router): mask live events destination credentials - #7460
shekhar-rudder merged 16 commits into
Conversation
|
👋 I'm rudder-devbox. I opened this PR from a Linear ticket. Mention |
|
CI failed because the PR had accidentally committed 11,874 files under I removed the tracked cache (it remains recoverable from the prior commit), added |
|
Knowledge distillation completed |
|
This ARM64 Docker build failure is transient infrastructure, not a source/build defect. The log shows BuildKit reached Dockerfile line 25 ( Compilation never started, and there is no workspace change that can correct an upstream HTTP/2 reset. I made no code change for this target; it requires a fresh CI attempt. The newer branch push already triggers a new run natively. |
|
This failure is transient container-registry infrastructure, not a test or source defect. The |
- return malformed secret-path entries as SecretPathsMaskAllMalformed instead of an any-typed side channel - parse secretPaths from the first features unmarshal; drop the pointer-to-map and per-lookup slice clones - drop redundant payload copies (sjson/maskAll already allocate) and the unreachable key re-marshal error path in maskAll - collapse maskListedPaths fallbacks and replace splitPath with a terminal ".#" check - consolidate maskedDeliveryStatus metric emission - tests: use the no-op features service, share an enableEventDelivery helper, drop a test that only exercised jsonrs Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…x-processor-mask-live-events-f8948e2b
gjson.ParseBytes converts the payload to a string (a full copy); restore the allocation-free first-byte check. Drop a redundant Exists() check in setMasked and document the read-only, mask-all contract of SecretPaths. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…b' of https://github.com/rudderlabs/rudder-server into harness/RUD-3249-fix-processor-mask-live-events-f8948e2b
|
Knowledge distillation completed |
|
Knowledge distillation completed |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7460 +/- ##
==========================================
- Coverage 84.51% 84.47% -0.05%
==========================================
Files 624 625 +1
Lines 62396 62508 +112
==========================================
+ Hits 52733 52801 +68
- Misses 9660 9704 +44
Partials 3 3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Knowledge distillation completed |
|
Knowledge distillation completed |
|
Knowledge distillation completed |
|
Knowledge distillation completed |
- inline targetsEndpoint, appendPathSegment and secretPathsFor; share one err and a maskedJSON constant in router/masking.go - keep SecretPaths in its own field group so the existing featuresPayload block isn't realigned - table-drive the SecretPaths and router masking tests, recording counters with memstats instead of a hand-rolled fake Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…by name Restore the router-level (nil, true) case dropped in the table rewrite and collect masking counters via memstats GetByName, so an unexpected reason fails the assertion. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
This is a transient external module-proxy failure, not a repository build defect. The suppression-backup ARM64 image reached Dockerfile line 14 ( The downloads failed before Go compilation began, so there is no source error to fix in the workspace. I made no code change; this build requires a fresh CI attempt. |
|
Knowledge distillation completed |
Masking only ever writes the masked value, so an unchanged payload means no listed path matched. Compare once in maskDeliveryPayload instead of threading a per-path applied count through both helpers, and pick the reason in a single switch. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
This is an external module-proxy transport failure, not an enterprise/race build defect. The ARM64 image completed base-image setup and reached Dockerfile line 25 ( Source compilation never began, so no workspace change can fix this run. I made no code change; the failed image job requires a fresh CI attempt. |
🤖 I have created a release *beep* *boop* --- ## [1.90.0-rc.1](v1.89.0...v1.90.0-rc.1) (2026-10-12) ### Features * **processor:** add source_out reporting metric ([#7435](#7435)) ([909fba9](909fba9)) * **processor:** allow disabling event schemas v2 per source ([#7429](#7429)) ([a8c12b2](a8c12b2)) * **processor:** report dest_transformer diff rows for multiplexing destination transformations ([#7446](#7446)) ([cd95c32](cd95c32)) * **processor:** report dest_transformer succeeded for destinations without a destination transformation ([#7445](#7445)) ([21f7e41](21f7e41)) * **processor:** report user_transformer succeeded for destinations without a user transformation ([#7440](#7440)) ([f424257](f424257)) * **router:** mask live events destination credentials ([#7460](#7460)) ([5fa5fe2](5fa5fe2)) * **warehouse:** add Microsoft Fabric destination ([#7441](#7441)) ([74940c2](74940c2)) ### Bug Fixes * **batchrouter:** do not abort warehouse jobs on a zero failure timestamp ([#7426](#7426)) ([506f6d5](506f6d5)) * **batchrouter:** recover snowpipe streaming channels for tables dropped externally ([#7434](#7434)) ([93cd81d](93cd81d)) * **destination:** encode Lytics bulk upload URL values ([#7433](#7433)) ([08e6937](08e6937)) * **destination:** retry bqstream transport failures ([#7464](#7464)) ([cd3dc3e](cd3dc3e)) * **warehouse:** cap deltalake validation schema describes ([#7444](#7444)) ([d119779](d119779)) * **warehouse:** keep snowflake copy credentials out of logs ([#7442](#7442)) ([f91747b](f91747b)) * **warehouse:** set explicit lineSep for deltalake csv copy ([#7455](#7455)) ([cc22d18](cc22d18)) ### Miscellaneous * migrate self-hosted arm64 docker build runners to gha-runner-scale-set ([#7425](#7425)) ([5cdffde](5cdffde)) * **processor:** retire the destination-filter reorder, dedup and gw_ingested reporting flags ([#7450](#7450)) ([1040511](1040511)) * pull openapi-generator through the ECR pull-through cache ([#7449](#7449)) ([6e9f920](6e9f920)) --- 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.90.0](v1.89.0...v1.90.0) (2026-10-12) ### Features * **processor:** add source_out reporting metric ([#7435](#7435)) ([909fba9](909fba9)) * **processor:** allow disabling event schemas v2 per source ([#7429](#7429)) ([a8c12b2](a8c12b2)) * **processor:** report dest_transformer diff rows for multiplexing destination transformations ([#7446](#7446)) ([cd95c32](cd95c32)) * **processor:** report dest_transformer succeeded for destinations without a destination transformation ([#7445](#7445)) ([21f7e41](21f7e41)) * **processor:** report user_transformer succeeded for destinations without a user transformation ([#7440](#7440)) ([f424257](f424257)) * **router:** mask live events destination credentials ([#7460](#7460)) ([5fa5fe2](5fa5fe2)) * **warehouse:** add Microsoft Fabric destination ([#7441](#7441)) ([74940c2](74940c2)) ### Bug Fixes * **batchrouter:** do not abort warehouse jobs on a zero failure timestamp ([#7426](#7426)) ([506f6d5](506f6d5)) * **batchrouter:** recover snowpipe streaming channels for tables dropped externally ([#7434](#7434)) ([93cd81d](93cd81d)) * **destination:** encode Lytics bulk upload URL values ([#7433](#7433)) ([08e6937](08e6937)) * **destination:** retry bqstream transport failures ([#7464](#7464)) ([cd3dc3e](cd3dc3e)) * **warehouse:** cap deltalake validation schema describes ([#7444](#7444)) ([d119779](d119779)) * **warehouse:** keep snowflake copy credentials out of logs ([#7442](#7442)) ([f91747b](f91747b)) * **warehouse:** set explicit lineSep for deltalake csv copy ([#7455](#7455)) ([cc22d18](cc22d18)) ### Miscellaneous * migrate self-hosted arm64 docker build runners to gha-runner-scale-set ([#7425](#7425)) ([5cdffde](5cdffde)) * **processor:** retire the destination-filter reorder, dedup and gw_ingested reporting flags ([#7450](#7450)) ([1040511](1040511)) * pull openapi-generator through the ECR pull-through cache ([#7449](#7449)) ([6e9f920](6e9f920)) --- 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 destination credentials in transformer-built router Live Events delivery payloads using the transformer
/features.secretPathsmanifest.This change:
endpoint;router.sendDestinationResponseToConfigBackend, immediately before the destination debugger handoff;Router.disableEventDeliveryUploadMaskingdefaults totruefor staged rollout. Set it tofalseto enforce masking; it can be toggled without restart and supports destination-specific router overrides.Validation:
go test -count=1 ./router -run 'TestSendDestinationResponseMasksLiveEventsPayload|TestRouter' -ginkgo.focus='Delivery payload masking'— passedgo test -count=1 ./services/transformer/... ./services/debugger/destination/... ./regulation-worker/internal/service/...— passedgo test -run '^$' ./app/apphandlers/... ./router— passedgo build ./...— passed0 issuesgit diff --check— passedLinear Ticket
RUD-3249
Security
The branch history contains a transient in-checkout Go module cache from an earlier development commit. It is absent from the final tree, but this PR must be squash-merged so those files do not enter
masterhistory.