Skip to content

feat(processor): filter http v2 events by destination message types - #7538

Merged
shekhar-rudder merged 4 commits into
masterfrom
harness/INT-7453-feat-processor-filter-http-v2-e-370626df
Oct 30, 2026
Merged

shekhar-rudder merged 4 commits into
masterfrom
harness/INT-7453-feat-processor-filter-http-v2-e-370626df

Conversation

@rudder-devbox

@rudder-devbox rudder-devbox Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Description

Add per-destination supported-message-type filtering for HTTP v2 without altering HTTP v1, definition-level restrictions, or hybrid-mode behavior. Unsupported types retain the existing filtered-event reason and reporting code. For operator rollout, HTTP worker batches default to 20 jobs and queries to 10,000; destination-specific overrides are available, but worker distribution and the 5-second flush timer can produce smaller requests.

Linear Ticket

INT-7453

Security

  • The code changed/added as part of this pull request won't create any security issues with how the software is being used.

Validation

  • GOMAXPROCS=2 go test -p=1 -count=1 ./processor/eventfilter — passed.
  • GOMAXPROCS=2 go test -p=1 -count=1 -run 'TestHTTPV2SupportedMessageTypes|TestStaticFunctionTests|TestEventFilterReasonReporting' ./processor — passed.
  • GOMAXPROCS=2 go build -p=1 ./processor/... ./router/... — passed.
  • git diff --check and gofmt -l on changed files — clean.
  • Simplify pass fixed a repeated message-type lookup and duplicate HTTP v2 eligibility check.

⚠️ Known Issues

  • go test -count=1 ./router/... failed in unrelated router suites: DB-backed router test lost its database connection; marketo-bulk-upload permission test failed under root; customdestinationmanager AWS client setup failed. Router source was not changed.
  • Broad processor/router tests and make fmt/make lint did not complete within available time; focused checks and build passed.

⚠️ Auto-review unresolved

Adversarial self-review surfaced findings that were not auto-fixed. Each carries its disposition — please evaluate before merging.

  • medium: HTTP v2 customer message-type filtering is skipped when transformation is disabled — processor/processor.go:4170 — not auto-fixed (iteration budget exhausted)
  • medium: Customer-only message-type filtering bypasses hybrid-mode checks — processor/processor.go:4173 — not auto-fixed (iteration budget exhausted)

🔭 Live preview

Resumable while this task is open.

@rudder-devbox

rudder-devbox Bot commented Oct 27, 2026

Copy link
Copy Markdown
Contributor Author

👋 I'm rudder-devbox. I opened this PR from task INT-7453.

Mention @devbox or @rudder-devbox and I'll act on it — on a top-level PR comment,
in a review summary, or on an inline comment on the diff. Without a mention I won't see it.

@rudder-devbox

rudder-devbox Bot commented Oct 27, 2026

Copy link
Copy Markdown
Contributor Author

I could not fix this run with a source change. The only failing test was warehouse tunnelling TestConnect: connect_test.go:41 received API error (500): error from registry: retry-after: 208.616µs, allowed: 44000/minute while starting its Docker-backed PostgreSQL resource. The All job then failed because that package job failed (590 tests ran, one failure). This is a container-registry rate limit outside the changed processor code.

I confirmed the branch is synced and clean. Focused processor checks passed: go test -count=1 ./processor/eventfilter and the targeted HTTP v2 processor tests both exited 0. No code was changed or pushed; the warehouse job needs a retry when the registry accepts pulls.

Drop the speculative []string config case (backend config is JSON-decoded),
replace the AllowMessageType forwarding wrapper with an exported
CheckMessageType, and trim comments made stale by the extraction. INT-7453.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@codecov

codecov Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.71%. Comparing base (902160f) to head (d7bdbc2).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7538      +/-   ##
==========================================
+ Coverage   84.70%   84.71%   +0.01%     
==========================================
  Files         631      631              
  Lines       62941    62950       +9     
==========================================
+ Hits        53317    53331      +14     
+ Misses       9621     9616       -5     
  Partials        3        3              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

shekhar-rudder and others added 2 commits October 28, 2026 21:10
…MessageTypes

Apply the HTTP v2 destination-level supportedMessageTypes list as an
extra skip in GetSupportedMessageTypes, alongside the existing
identify/enableServerSideIdentify narrowing. Events now go through the
existing per-destination cache and AllowEventToDestTransformation, so
the hybrid-mode filter applies to them too, and the separate block in
ConvertToFilteredTransformerResponse and the CheckMessageType split are
removed. INT-7453.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…nations

The HTTP v2 definition has no definition-level supportedMessageTypes, so
narrowing only inside the definition branch ignored the destination list
entirely. Use the destination's own list when the definition has none,
and drop the HTTP v2 gate: no other destination defines this key in its
config. INT-7453.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@rudder-devbox

rudder-devbox Bot commented Oct 28, 2026

Copy link
Copy Markdown
Contributor Author

I couldn’t fix these builds from the repository. Both arm64 jobs stopped at go mod download before compilation: the OSS image received HTTP/2 INTERNAL_ERROR from proxy.golang.org for [email protected] and grpc-gateway/[email protected]; the suppression backup image received the same error for several modules, including k8s.io/[email protected]. This branch changes only processor files, with no Go module or Docker build inputs changed. The builds need a retry when the module downloads succeed. I made no repository changes.

@shekhar-rudder
shekhar-rudder marked this pull request as ready for review October 28, 2026 16:14
Copilot AI balanced review requested due to automatic review settings October 28, 2026 16:14

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The allowlist incorrectly restricts non-HTTP-v2 destinations and is bypassed for HTTP v2 when transformation is disabled, causing compatibility regressions and unsupported events to be forwarded.

2 open issues
What changed in this PR

This PR adds destination-configured message-type filtering to the processor, intended for HTTP v2 while preserving existing filtered-event reporting.

Changes:

  • Reads destination-level allowlists and intersects them with definition-level restrictions when present.
  • Treats empty lists as blocking all types and malformed values as imposing no additional filter.
  • Adds tests for configuration parsing, filtering, and reporting.
File Description
processor/​processor_test.go Tests destination allowlists, definition intersections, and filtered-event reporting.
processor/​eventfilter/​eventfilter.go Adds destination-level allowlist parsing and supported-type filtering.
processor/​eventfilter/​eventfilter_test.go Tests valid, empty, missing, and malformed allowlists.

Review effort: Balanced

// GetSupportedMessageTypes returns the supported message types for the given event, based on configuration.
// If no relevant configuration is found, returns false
func GetSupportedMessageTypes(destination *backendconfig.DestinationT) ([]string, bool) {
destinationTypes, filterByDestination := destinationSupportedMessageTypes(destination)
Comment on lines +62 to +63
// No definition-level list (e.g. HTTP v2): the destination's own list is the filter.
return destinationTypes, filterByDestination
@shekhar-rudder
shekhar-rudder merged commit 58fd176 into master Oct 30, 2026
101 of 110 checks passed
@shekhar-rudder
shekhar-rudder deleted the harness/INT-7453-feat-processor-filter-http-v2-e-370626df branch October 30, 2026 13:48
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants