ramu11 opened a new pull request, #31121: URL: https://github.com/apache/camel/pull/31121
## Description This PR adds support for Camel `SSLContextParameters` in the `camel-kafka` and `camel-kafka-share` components. It allows Kafka clients to use the complete `SSLContext` created by Camel, including key and trust material, cipher suites, enabled protocols, named groups, signature schemes, and Camel's post-quantum named-group preference when supported by the JVM. ## Changes - Add `CamelSslEngineFactory` in `camel-kafka-common` to integrate Camel's SSL context with Kafka's `SslEngineFactory` SPI. - Configure Kafka and Kafka Share endpoints to use the custom SSL engine factory when `sslContextParameters` is configured. - Apply the SSL context created through `SSLContextParameters`, preserving Camel's TLS configuration and named-group handling. - When `sslContextParameters` is configured, ignore Kafka-specific `ssl.*` endpoint options and `additionalProperties` entries starting with `ssl.` to avoid conflicting SSL configurations. - Keep `sslEndpointAlgorithm` applicable for broker hostname verification. - Preserve Kafka's default SSL engine factory and existing Kafka `ssl.*` configuration behavior when `sslContextParameters` is not configured. - Update component metadata, generated DSL sources, component documentation, and the TLS configuration utilities documentation. ## Testing - Added and updated tests covering SSL engine factory configuration, SSL property precedence and filtering, and SSL context integration for Kafka and Kafka Share. - Added coverage for named groups, signature schemes, and post-quantum named-group preference where supported by the JVM. Verified with: ```bash mvn -pl components/camel-kafka-common,components/camel-kafka,components/camel-kafka-share -am verify ``` The documentation build also completed successfully. -- 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]
