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

   ## Summary
   
   Extends the defense-in-depth deserialization filtering pattern applied in 
CAMEL-23297 (camel-netty), CAMEL-23319 (camel-mina) and CAMEL-23321 
(camel-jms/sjms/amqp) to the HTTP transports.
   
   - `NettyHttpHelper.deserializeJavaObjectFromStream` and 
`VertxHttpHelper.deserializeJavaObjectFromStream` now apply an 
`ObjectInputFilter` on the `ObjectInputStream` used when reading 
`application/x-java-serialized-object` payloads.
   - Filter resolution priority (matching the other components):
     - configured pattern
     - JVM `-Djdk.serialFilter`
     - default `java.**;javax.**;org.apache.camel.**;!*`
   - Configured pattern is exposed as a new endpoint option 
`deserializationFilter` on `NettyHttpConfiguration` (camel-netty-http) and 
`VertxHttpConfiguration` (camel-vertx-http), wired through `NettyHttpProducer` 
and `DefaultVertxHttpBinding`.
   
   Link: https://issues.apache.org/jira/browse/CAMEL-23324
   
   ## Test plan
   
   - [x] Added `NettyHttpHelperDeserializationFilterTest` (4 tests) covering 
default allowlist accept/reject and configured override behavior
   - [x] Added `VertxHttpHelperDeserializationFilterTest` (4 tests) mirroring 
the above
   - [x] Full `mvn verify` passes for both modules (camel-netty-http: 245 
tests, camel-vertx-http: 88 tests)
   - [x] Full `mvn clean install -DskipTests` passes from project root
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to