Claus Ibsen created CAMEL-27721:
-----------------------------------
Summary: 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
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)