You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "davsclaus (via GitHub)" <gi...@apache.org> on 2026/07/18 08:12:35 UTC

[PR] CAMEL-24158: Backport EventHubs HeaderFilterStrategy to 4.14.x [camel]

davsclaus opened a new pull request, #24887:
URL: https://github.com/apache/camel/pull/24887

   ## Summary
   
   _Claude Code on behalf of davsclaus_
   
   Backport of the EventHubs header filter strategy fix from PR #24884 to the `camel-4.14.x` maintenance branch (CVE-related).
   
   **Problem:** `EventHubsProducerOperations` copies ALL Camel exchange headers (including internal `Camel*` headers) into AMQP application properties via `eventData.getProperties().putAll(headers)`. This leaks Camel-internal headers to the Azure Event Hubs broker.
   
   **Fix:**
   - `EventHubsComponent` now extends `HeaderFilterStrategyComponent` instead of `DefaultComponent`, enabling the default `DefaultHeaderFilterStrategy` which filters out `Camel*` and `org.apache.camel.*` headers
   - Producer passes the `HeaderFilterStrategy` to `EventHubsProducerOperations`, which applies it before putting headers on `EventData`
   - Consumer only sets `PARTITION_KEY` header when the value is non-null (prevents null header from conflicting with `PARTITION_ID` on round-trip)
   
   ## Test plan
   
   - [x] `camel-azure-eventhubs` module builds and compiles
   - [x] Generated files (configurer, JSON metadata) regenerated
   - [x] IT test constructor calls updated for new 3-arg signature
   - [ ] CI green
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   
   Co-Authored-By: Claude Opus 4.6 <no...@anthropic.com>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-24158: Backport EventHubs HeaderFilterStrategy to 4.14.x [camel]

Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus merged PR #24887:
URL: https://github.com/apache/camel/pull/24887


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org