[
https://issues.apache.org/jira/browse/CAMEL-27721?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18152232#comment-18152232
]
Claus Ibsen commented on CAMEL-27721:
-------------------------------------
Merged in https://github.com/apache/camel/pull/31042 as
https://github.com/apache/camel/commit/ba25a1cfaa2a45f7ef5b560b48a530e92539a4e8,
fixed in 4.24.0.
_Claude Code on behalf of Claus Ibsen_
> camel-grpc - authenticationType=GOOGLE on a consumer accepts all calls
> ----------------------------------------------------------------------
>
> Key: CAMEL-27721
> URL: https://issues.apache.org/jira/browse/CAMEL-27721
> Project: Camel
> Issue Type: Bug
> Components: camel-grpc
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 4.24.0
>
>
> A gRPC consumer configured with {{authenticationType=GOOGLE}} starts and
> accepts every call without any check or warning.
> {{GrpcConsumer.initializeServer()}} only handles {{authenticationType=JWT}}
> (it adds the {{JwtServerInterceptor}}). GOOGLE is a client mechanism: the
> producer sends the OAuth2 access tokens of the Google service account in
> {{serviceAccountResource}}. There is nothing on the server side that checks
> such tokens, so the option is ignored on a consumer, while the route looks
> like it requires authentication.
> h3. Proposed change
> * The consumer fails at startup with a clear message
> ({{IllegalArgumentException}}) when {{authenticationType=GOOGLE}}: GOOGLE
> authentication is supported only on the producer.
> * The option description and the component docs say that GOOGLE is
> producer-only.
> * Upgrade guide entry, as such routes now fail to start.
> _Claude Code on behalf of Claus Ibsen_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)