Repository navigation
fix: replay destinations not using the config corresponding to their connected source type - #7307
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7307 +/- ##
==========================================
- Coverage 79.81% 79.32% -0.49%
==========================================
Files 604 604
Lines 67687 67729 +42
==========================================
- Hits 54022 53724 -298
- Misses 10482 10837 +355
+ Partials 3183 3168 -15 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
A destination connected to several sources appears once per source, and each copy carries a different config: the control plane filters it against the keys the destination definition declares for that source's type. ApplyReplaySources read the destination out of DestinationsMap, which is keyed by id alone and last write wins, so a replay destination inherited an arbitrary copy - one filtered for an unrelated source type. Resolve the instance by the replay source's own source type instead, falling back to the first source type in ascending order when the destination sits under no source of that type, which a replay does not require. 🔒 Scanned for secrets using gitleaks 8.30.1
148b7a1 to
f9ea990
Compare
| originalDestinations[replayDestination.OriginalDestinationID], | ||
| sourceTypeOf(source.SourceDefinition.Name, source.SourceDefinition.Category), | ||
| ) | ||
| if !ok { |
There was a problem hiding this comment.
By this, we will only be able to do replay for a destination connected to the same source type. If in a replay a destination is connected to an android source type and originally it is connected to ios sourceType we won't be able to replay
There was a problem hiding this comment.
destinationForSourceType falls back to the first destination config (lexicographically sorted by sourceType).
The only scenario where ok will be false is when the destination doesn't exist at all in the config (for any sourceType). In such case the behavior remains similar to the previous one, the destination is not added.
🤖 I have created a release *beep* *boop* --- ## [1.85.0-rc.1](v1.84.0...v1.85.0-rc.1) (2026-08-31) ### Features * backend config v2 resolver with stub mapper ([#7275](#7275)) ([267b973](267b973)) * **warehouse:** clickhouse v2 connection and schema ([#7301](#7301)) ([2eb1fa6](2eb1fa6)) * **warehouse:** clickhouse v2 ddl operations ([#7302](#7302)) ([f2887c5](f2887c5)) * **warehouse:** clickhouse v2 loading ([#7303](#7303)) ([3e48618](3e48618)) * **warehouse:** enable the clickhouse v2 driver behind a flag ([#7311](#7311)) ([3ce1da5](3ce1da5)) ### Bug Fixes * race conditions while counting initial pending events can cause wrong counting ([#7292](#7292)) ([3efa718](3efa718)) * replay destinations not using the config corresponding to their connected source type ([#7307](#7307)) ([ee7aa93](ee7aa93)) * **router:** abort router-transform on proactive invalid_grant instead of retrying (INT-6779) ([#7175](#7175)) ([4d7348d](4d7348d)) * tracking plan merged config is cached without its event type ([#7314](#7314)) ([624dd5c](624dd5c)) ### Miscellaneous * setattr/delattr hardening ([#7291](#7291)) ([2855af4](2855af4)) * sync release v1.84.0 to main branch ([#7306](#7306)) ([fa102b7](fa102b7)) * webhook reasons ([#7294](#7294)) ([c298d59](c298d59)) --- 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.85.0](v1.84.0...v1.85.0) (2026-08-31) ### Features * backend config v2 resolver with stub mapper ([#7275](#7275)) ([267b973](267b973)) * **warehouse:** clickhouse v2 connection and schema ([#7301](#7301)) ([2eb1fa6](2eb1fa6)) * **warehouse:** clickhouse v2 ddl operations ([#7302](#7302)) ([f2887c5](f2887c5)) * **warehouse:** clickhouse v2 loading ([#7303](#7303)) ([3e48618](3e48618)) * **warehouse:** enable the clickhouse v2 driver behind a flag ([#7311](#7311)) ([3ce1da5](3ce1da5)) ### Bug Fixes * race conditions while counting initial pending events can cause wrong counting ([#7292](#7292)) ([3efa718](3efa718)) * replay destinations not using the config corresponding to their connected source type ([#7307](#7307)) ([ee7aa93](ee7aa93)) * **router:** abort router-transform on proactive invalid_grant instead of retrying (INT-6779) ([#7175](#7175)) ([4d7348d](4d7348d)) * tracking plan merged config is cached without its event type ([#7314](#7314)) ([624dd5c](624dd5c)) ### Miscellaneous * setattr/delattr hardening ([#7291](#7291)) ([2855af4](2855af4)) * sync release v1.84.0 to main branch ([#7306](#7306)) ([fa102b7](fa102b7)) * webhook reasons ([#7294](#7294)) ([c298d59](c298d59)) --- 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
A destination connected to several sources appears once per source, and those copies are not interchangeable: the control plane filters a destination's config against the keys its definition declares for the connected source's type.
ApplyReplaySourcesread it out ofConfigT.DestinationsMap(), keyed by id alone and last-write-wins, so a replay destination inherited an arbitrary copy - quite possibly one filtered for an unrelated source type. In the sampled namespace a Snowflake destination sits on 19 sources: the 18 cloud/webhook ones carryconnectionMode, the single iOS one does not.Found while writing the v2 mapper (PIPE-3279), whose fixture comparison against a captured v1 response failed ~1 run in 3 on unchanged input.
Key decisions
Linear Ticket
resolves PIPE-3320
Security