[
https://issues.apache.org/jira/browse/CAMEL-27724?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Work on CAMEL-27724 started by Claus Ibsen.
-------------------------------------------
> camel-grpc - a TLS consumer without trustCertCollectionResource accepts
> client certificates of any CA in the JVM trust store
> ----------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-27724
> URL: https://issues.apache.org/jira/browse/CAMEL-27724
> Project: Camel
> Issue Type: Bug
> Components: camel-grpc
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Major
> Fix For: 4.24.0
>
>
> With {{negotiationType=TLS}}, {{GrpcConsumer.initializeServer()}} builds the
> server {{SslContext}} with
> {{SslContextBuilder.forServer(...).clientAuth(ClientAuth.REQUIRE)}}, and
> calls {{trustManager(...)}} only when {{trustCertCollectionResource}} is set.
> Without that option, Netty checks the client certificates against the default
> trust store of the JVM ({{cacerts}}, or {{javax.net.ssl.trustStore}}). So the
> consumer accepts a client certificate issued by any CA in that store, for
> example any public CA, while the route looks like it accepts only its own
> clients. The option description and the docs only explain what the producer
> does when the option is not set.
> h3. Proposed change
> * The consumer fails at startup with a clear message when
> {{negotiationType=TLS}} has no {{trustCertCollectionResource}}: the option
> names the CA certificates whose client certificates the consumer accepts.
> * The option description and the TLS table of grpc-component.adoc say what
> the consumer does with it.
> * Upgrade guide entry, as TLS consumers without the option now fail to start.
> _Claude Code on behalf of Claus Ibsen_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)