[ 
https://issues.apache.org/jira/browse/CAMEL-26546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18151755#comment-18151755
 ] 

Claus Ibsen commented on CAMEL-26546:
-------------------------------------

PR: https://github.com/apache/camel/pull/30891

* The Vert.x components (platform-http-vertx, vertx-http, vertx-websocket, 
vertx-mqtt) now apply the named groups, including the post-quantum preference: 
Vert.x 5.2 has a key exchange groups setting on its SSL options, so they need 
not be dropped. Vert.x has no setting for signature schemes, which get a WARN.
* camel-kafka(-share) and the camel-thrift producer cannot carry them and now 
log a WARN when they are configured (the lost automatic PQC preference is 
logged at DEBUG). Workaround: the jdk.tls.namedGroups and 
jdk.tls.client/server.SignatureSchemes system properties.
* New JsseParametersHelper in camel-api; camel-netty uses its PQC ordering 
instead of a private copy.
* The security guide no longer says the preference applies to all 
SSLContextParameters, and lists what each transport honours.

Follow-ups not in this PR: a Camel SslEngineFactory for Kafka 
(ssl.engine.factory.class) that uses the decorated SSLContext, and the thrift 
producer that also drops the key managers (no mutual TLS).

_Claude Code on behalf of davsclaus_

> the transports that map SSLContextParameters onto their own TLS stack 
> silently drop namedGroups and signatureSchemes
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-26546
>                 URL: https://issues.apache.org/jira/browse/CAMEL-26546
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-kafka, camel-platform-http, camel-vertx
>            Reporter: Andrea Cosentino
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 4.24.0
>
>
> Since CAMEL-23154 (4.19) {{SSLContextParameters}} auto-prefers the hybrid 
> post-quantum group {{X25519MLKEM768}}, and the security guide states this 
> applies to *all* {{SSLContextParameters}}. It does not.
> A component only gets the preference when it uses the decorated 
> {{SSLContext}} returned by {{createSSLContext()}}. The components that 
> instead read the key and trust material out of {{SSLContextParameters}} and 
> hand it to a native TLS stack keep the protocol and the cipher suites and 
> drop {{namedGroups}} and {{signatureSchemes}}, with no warning:
> * {{camel-kafka}}: 
> {{KafkaClientConfiguration.applySslConfigurationFromContext()}} maps 
> protocol, provider, cipher suites, enabled protocols and the two key stores. 
> Named groups and signature schemes never reach the Kafka client.
> * {{camel-vertx-common}}: {{VertxHelper.setupSSLOptions()}} forwards cipher 
> suites and protocols only. This covers {{camel-platform-http-vertx}} - the 
> embedded HTTP server used by camel-main and Camel JBang - plus 
> {{camel-vertx-http}} and {{camel-vertx-websocket}}.
> * {{camel-thrift}}: {{ThriftProducer}} and {{ThriftConsumer}} build 
> {{TSSLTransportParameters}} from the key store path and password and drop 
> everything else.
> {{camel-elasticsearch}}, {{camel-elasticsearch-rest-client}} and 
> {{camel-solr}} are *not* affected: they pass the decorated {{SSLContext}} 
> through.
> {{camel-netty}} works around the problem with its own copy of the ordering 
> logic, {{SSLEngineFactory.applyPqcNamedGroups()}}, so the same algorithm now 
> lives in two places and in neither of them reusable.
> Expected:
> * one shared helper in camel-api/camel-support, used by camel-netty and by 
> every transport that can apply it;
> * a transport that cannot express named groups must say so (warn once) 
> instead of dropping a configured value silently;
> * correct the "all SSLContextParameters" claim in {{security.adoc}} and state 
> per transport what is honoured.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to