CAMEL-24085: Apply header filter strategy to IronMQ message envelope headers (4.14.x backport)#24907
Merged
davsclaus merged 1 commit intoJul 19, 2026
Conversation
…headers (4.14.x backport) The IronMQ consumer deserializes a JSON envelope (a headers map and a body) and copied the embedded header entries onto the Camel message without applying a HeaderFilterStrategy. Route the envelope headers through a HeaderFilterStrategy so Camel* headers (matched case-insensitively) present in the sender-controlled envelope are filtered, consistent with the inbound header filtering performed by other consumers. Backport to camel-4.14.x: the strategy sets setInFilterStartsWith(CAMEL_FILTER_STARTS_WITH) explicitly, since DefaultHeaderFilterStrategy on this branch does not filter Camel* inbound by default. Test support uses junit5 on this branch. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Signed-off-by: Andrea Cosentino <ancosen@gmail.com>
gnodet
approved these changes
Jul 19, 2026
gnodet
left a comment
Contributor
There was a problem hiding this comment.
LGTM — clean backport of #24828 to camel-4.14.x.
The code is identical to the already-approved 4.18.x backport (#24905): same HEADER_FILTER_STRATEGY with explicit setInFilterStartsWith(CAMEL_FILTER_STARTS_WITH) (necessary since this branch predates CAMEL-23543), same applyFilterToExternalHeaders() guard in copyFrom(), same IronMQConsumerHeaderFilterTest covering the CVE-2025-27636 family vector.
No concerns. Consistent with the header-filtering pattern applied across consumers.
Claude Code on behalf of gnodet — AI-generated review
davsclaus
approved these changes
Jul 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #24828 (merged on main, CAMEL-24085) to
camel-4.14.x. Same branch adaptations as the 4.18.x backport #24905 (explicitsetInFilterStartsWith(CAMEL_FILTER_STARTS_WITH)since this branch predates CAMEL-23543, junit5 test support).IronMQConsumerHeaderFilterTestpasses on this branch. Module tests + full reactor build from the branch root: success, no stale generated files. The 4.14.9 upgrade-guide entry is added onmainvia the doc-sync PR.Claude Code on behalf of Andrea Cosentino (@oscerd).
🤖 Generated with Claude Code