[backport camel-4.18.x] CAMEL-23588: camel-undertow - filter the legacy websocket.* exchange-header prefix#23992
Merged
oscerd merged 1 commit intoJun 12, 2026
Conversation
…filter the legacy websocket.* exchange-header prefix Backport to camel-4.18.x of the main-branch change (d5a717d). Adds the legacy websocket.* prefix to the undertow HeaderFilterStrategy in/out filters (in addition to Camel* / camel* / org.apache.camel.*) and documents it in the 4.18 upgrade guide, alongside the CAMEL-23532 vertx-websocket / atmosphere-websocket / iggy family.
davsclaus
approved these changes
Jun 12, 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 to
camel-4.18.xof CAMEL-23588 (main commitd5a717dd0f8).What
UndertowHeaderFilterStrategynow also filters the legacywebsocket.*Exchange-header prefix (in addition to theCamel*/camel*/org.apache.camel.*prefixes it already filtered), in both the inbound (wire -> exchange) and outbound (exchange -> wire) directions. This follows the dedicated-filter-strategy shape used by CAMEL-23532 forcamel-vertx-websocket/camel-atmosphere-websocket/camel-iggy, which were already backported to this branch.The
UndertowConstantsstring values are unchanged (they are part of the component's externally-visible API contract), so routes referencing them within an undertow route continue to work unchanged. As documented, theHeaderFilterStrategygoverns only the transport boundary and is defence-in-depth; route authors handling untrusted inbound traffic should still stripwebsocket.*headers explicitly.Changes
UndertowHeaderFilterStrategy: addwebsocket.to the in/out filter prefixes (identical to main).camel-4x-upgrade-guide-4_18.adoc: add thecamel-undertow"potential breaking change" entry, grouped with the existing websocket family.The matching entry will be synced to the
4_18upgrade guide onmainin a separate doc-sync PR, per the upgrade-guide policy.Claude Code on behalf of Andrea Cosentino