davsclaus opened a new pull request, #31042: URL: https://github.com/apache/camel/pull/31042
JIRA: https://issues.apache.org/jira/browse/CAMEL-27721 ## What was wrong `authenticationType=GOOGLE` is a client mechanism: the producer sends the OAuth2 access tokens of the Google service account in `serviceAccountResource`. `GrpcConsumer.initializeServer()` only handles `JWT`, so a consumer with `authenticationType=GOOGLE` started and accepted every call, without any check or warning. ## What changed - `GrpcConsumer.initializeServer()` fails with an `IllegalArgumentException` when `authenticationType=GOOGLE`: GOOGLE authentication is supported only on the producer; use JWT or mutual TLS to authenticate the clients of a consumer. - The `authenticationType` option description, the `GrpcAuthType.GOOGLE` javadoc and the component docs say that GOOGLE is producer-only. - The TLS setup of the consumer is unchanged. ## Tests - `GrpcConsumerConfigurationTest.googleAuthenticationOnConsumerFailsToStart`: the consumer fails to start with the message. It fails without the fix (no exception, the consumer starts). - All 91 tests of the module pass. ## Docs and generated files - Upgrade guide 4.24: `camel-grpc - a consumer with authenticationType GOOGLE fails to start`. - Regenerated the component JSON (and the catalog copy), the catalog copy of the doc, and the endpoint DSL. _Claude Code on behalf of Claus Ibsen_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
