This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new ba25a1cfaa2a CAMEL-27721: camel-grpc - authenticationType=GOOGLE on a
consumer accepts all calls (#31042)
ba25a1cfaa2a is described below
commit ba25a1cfaa2a45f7ef5b560b48a530e92539a4e8
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Nov 27 20:38:30 2026 +0100
CAMEL-27721: camel-grpc - authenticationType=GOOGLE on a consumer accepts
all calls (#31042)
GOOGLE makes the producer send the OAuth2 access tokens of a Google service
account, and the consumer never checked them, so a consumer with
authenticationType=GOOGLE accepted every call. Such a consumer now fails to
start with a clear message. Documented in the option, the component docs and
the upgrade guide.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Claus Ibsen <[email protected]>
---
.../org/apache/camel/catalog/components/grpc.json | 2 +-
.../apache/camel/catalog/docs/grpc-component.adoc | 4 +--
.../org/apache/camel/component/grpc/grpc.json | 2 +-
.../camel-grpc/src/main/docs/grpc-component.adoc | 4 +--
.../apache/camel/component/grpc/GrpcAuthType.java | 3 +-
.../camel/component/grpc/GrpcConfiguration.java | 3 +-
.../apache/camel/component/grpc/GrpcConsumer.java | 7 ++++
.../grpc/GrpcConsumerConfigurationTest.java | 10 ++++++
.../ROOT/pages/camel-4x-upgrade-guide-4_24.adoc | 6 ++++
.../endpoint/dsl/GrpcEndpointBuilderFactory.java | 42 ++++++++++++----------
10 files changed, 57 insertions(+), 26 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/grpc.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/grpc.json
index b3a2a5589e16..68e6d9a180c5 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/grpc.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/grpc.json
@@ -76,7 +76,7 @@
"userAgent": { "index": 32, "kind": "parameter", "displayName": "User
Agent", "group": "producer", "label": "producer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.grpc.GrpcConfiguration", "configurationField":
"configuration", "description": "The user agent that the producer sends to the
server. gRPC Java adds its own user agent after this value." },
"lazyStartProducer": { "index": 33, "kind": "parameter", "displayName":
"Lazy Start Producer", "group": "producer (advanced)", "label":
"producer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Whether the producer should be started
lazy (on the first message). By starting lazy you can use this to allow
CamelContext and routes to startup in situations where a produ [...]
"synchronous": { "index": 34, "kind": "parameter", "displayName":
"Synchronous", "group": "advanced", "label": "advanced", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.grpc.GrpcConfiguration", "configurationField":
"configuration", "description": "Whether to process synchronously. The producer
then calls the method with a blocking stub and [...]
- "authenticationType": { "index": 35, "kind": "parameter", "displayName":
"Authentication Type", "group": "security", "label": "security", "required":
false, "type": "enum", "javaType":
"org.apache.camel.component.grpc.GrpcAuthType", "enum": [ "NONE", "GOOGLE",
"JWT" ], "deprecated": false, "autowired": false, "secret": false,
"defaultValue": "NONE", "configurationClass":
"org.apache.camel.component.grpc.GrpcConfiguration", "configurationField":
"configuration", "description": "The au [...]
+ "authenticationType": { "index": 35, "kind": "parameter", "displayName":
"Authentication Type", "group": "security", "label": "security", "required":
false, "type": "enum", "javaType":
"org.apache.camel.component.grpc.GrpcAuthType", "enum": [ "NONE", "GOOGLE",
"JWT" ], "deprecated": false, "autowired": false, "secret": false,
"defaultValue": "NONE", "configurationClass":
"org.apache.camel.component.grpc.GrpcConfiguration", "configurationField":
"configuration", "description": "The au [...]
"jwtAlgorithm": { "index": 36, "kind": "parameter", "displayName": "Jwt
Algorithm", "group": "security", "label": "security", "required": false,
"type": "enum", "javaType":
"org.apache.camel.component.grpc.auth.jwt.JwtAlgorithm", "enum": [ "HMAC256",
"HMAC384", "HMAC512" ], "deprecated": false, "autowired": false, "secret":
false, "defaultValue": "HMAC256", "configurationClass":
"org.apache.camel.component.grpc.GrpcConfiguration", "configurationField":
"configuration", "description": [...]
"jwtIssuer": { "index": 37, "kind": "parameter", "displayName": "Jwt
Issuer", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.grpc.GrpcConfiguration", "configurationField":
"configuration", "description": "The issuer (iss claim) of the JSON Web Token.
The producer puts it in the token, and the consumer accepts only [...]
"jwtSecret": { "index": 38, "kind": "parameter", "displayName": "Jwt
Secret", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.grpc.GrpcConfiguration", "configurationField":
"configuration", "description": "The secret key of the HMAC algorithm that
signs the JSON Web Token on the producer and ver [...]
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/grpc-component.adoc
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/grpc-component.adoc
index 9912f0bb304d..b4dfb1ab833d 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/grpc-component.adoc
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/grpc-component.adoc
@@ -50,7 +50,7 @@ include::partial$component-endpoint-headers.adoc[]
The following https://grpc.io/docs/guides/auth.html[authentication] mechanisms
are built-in to gRPC and available in this component:
* *SSL/TLS:* gRPC has SSL/TLS integration and promotes the use of SSL/TLS to
authenticate the server, and to encrypt all the data exchanged between the
client and the server. Optional mechanisms are available for clients to provide
certificates for mutual authentication.
-* *Token-based authentication with Google:* gRPC provides a generic mechanism
to attach metadata-based credentials to requests and responses. Additional
support for acquiring access tokens while accessing Google APIs through gRPC is
provided. In general, this mechanism must be used as well as SSL/TLS on the
channel.
+* *Token-based authentication with Google:* gRPC provides a generic mechanism
to attach metadata-based credentials to requests and responses. Additional
support for acquiring access tokens while accessing Google APIs through gRPC is
provided. In general, this mechanism must be used as well as SSL/TLS on the
channel. This mechanism is supported only on the producer: a consumer with
`authenticationType=GOOGLE` fails to start, as the consumer has no check of
these tokens. To authenticate th [...]
To enable these features, the following component properties combinations must
be configured:
@@ -62,7 +62,7 @@ To enable these features, the following component properties
combinations must b
|||keyResource||Required on a consumer. Optional on a producer: only for
mutual TLS, together with keyCertChainResource
|||keyPassword||Optional
|||trustCertCollectionResource||Optional. When not set, a producer verifies
the server with the default trust store of the JVM
-|2|*Token-based authentication with Google
API*|authenticationType|GOOGLE|Required
+|2|*Token-based authentication with Google API* (producer
only)|authenticationType|GOOGLE|Required
|||negotiationType|TLS|Required
|||serviceAccountResource||Required
|3|*Custom JSON Web Token implementation
authentication*|authenticationType|JWT|Required
diff --git
a/components/camel-grpc/src/generated/resources/META-INF/org/apache/camel/component/grpc/grpc.json
b/components/camel-grpc/src/generated/resources/META-INF/org/apache/camel/component/grpc/grpc.json
index b3a2a5589e16..68e6d9a180c5 100644
---
a/components/camel-grpc/src/generated/resources/META-INF/org/apache/camel/component/grpc/grpc.json
+++
b/components/camel-grpc/src/generated/resources/META-INF/org/apache/camel/component/grpc/grpc.json
@@ -76,7 +76,7 @@
"userAgent": { "index": 32, "kind": "parameter", "displayName": "User
Agent", "group": "producer", "label": "producer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.grpc.GrpcConfiguration", "configurationField":
"configuration", "description": "The user agent that the producer sends to the
server. gRPC Java adds its own user agent after this value." },
"lazyStartProducer": { "index": 33, "kind": "parameter", "displayName":
"Lazy Start Producer", "group": "producer (advanced)", "label":
"producer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Whether the producer should be started
lazy (on the first message). By starting lazy you can use this to allow
CamelContext and routes to startup in situations where a produ [...]
"synchronous": { "index": 34, "kind": "parameter", "displayName":
"Synchronous", "group": "advanced", "label": "advanced", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.grpc.GrpcConfiguration", "configurationField":
"configuration", "description": "Whether to process synchronously. The producer
then calls the method with a blocking stub and [...]
- "authenticationType": { "index": 35, "kind": "parameter", "displayName":
"Authentication Type", "group": "security", "label": "security", "required":
false, "type": "enum", "javaType":
"org.apache.camel.component.grpc.GrpcAuthType", "enum": [ "NONE", "GOOGLE",
"JWT" ], "deprecated": false, "autowired": false, "secret": false,
"defaultValue": "NONE", "configurationClass":
"org.apache.camel.component.grpc.GrpcConfiguration", "configurationField":
"configuration", "description": "The au [...]
+ "authenticationType": { "index": 35, "kind": "parameter", "displayName":
"Authentication Type", "group": "security", "label": "security", "required":
false, "type": "enum", "javaType":
"org.apache.camel.component.grpc.GrpcAuthType", "enum": [ "NONE", "GOOGLE",
"JWT" ], "deprecated": false, "autowired": false, "secret": false,
"defaultValue": "NONE", "configurationClass":
"org.apache.camel.component.grpc.GrpcConfiguration", "configurationField":
"configuration", "description": "The au [...]
"jwtAlgorithm": { "index": 36, "kind": "parameter", "displayName": "Jwt
Algorithm", "group": "security", "label": "security", "required": false,
"type": "enum", "javaType":
"org.apache.camel.component.grpc.auth.jwt.JwtAlgorithm", "enum": [ "HMAC256",
"HMAC384", "HMAC512" ], "deprecated": false, "autowired": false, "secret":
false, "defaultValue": "HMAC256", "configurationClass":
"org.apache.camel.component.grpc.GrpcConfiguration", "configurationField":
"configuration", "description": [...]
"jwtIssuer": { "index": 37, "kind": "parameter", "displayName": "Jwt
Issuer", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.grpc.GrpcConfiguration", "configurationField":
"configuration", "description": "The issuer (iss claim) of the JSON Web Token.
The producer puts it in the token, and the consumer accepts only [...]
"jwtSecret": { "index": 38, "kind": "parameter", "displayName": "Jwt
Secret", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.grpc.GrpcConfiguration", "configurationField":
"configuration", "description": "The secret key of the HMAC algorithm that
signs the JSON Web Token on the producer and ver [...]
diff --git a/components/camel-grpc/src/main/docs/grpc-component.adoc
b/components/camel-grpc/src/main/docs/grpc-component.adoc
index 9912f0bb304d..b4dfb1ab833d 100644
--- a/components/camel-grpc/src/main/docs/grpc-component.adoc
+++ b/components/camel-grpc/src/main/docs/grpc-component.adoc
@@ -50,7 +50,7 @@ include::partial$component-endpoint-headers.adoc[]
The following https://grpc.io/docs/guides/auth.html[authentication] mechanisms
are built-in to gRPC and available in this component:
* *SSL/TLS:* gRPC has SSL/TLS integration and promotes the use of SSL/TLS to
authenticate the server, and to encrypt all the data exchanged between the
client and the server. Optional mechanisms are available for clients to provide
certificates for mutual authentication.
-* *Token-based authentication with Google:* gRPC provides a generic mechanism
to attach metadata-based credentials to requests and responses. Additional
support for acquiring access tokens while accessing Google APIs through gRPC is
provided. In general, this mechanism must be used as well as SSL/TLS on the
channel.
+* *Token-based authentication with Google:* gRPC provides a generic mechanism
to attach metadata-based credentials to requests and responses. Additional
support for acquiring access tokens while accessing Google APIs through gRPC is
provided. In general, this mechanism must be used as well as SSL/TLS on the
channel. This mechanism is supported only on the producer: a consumer with
`authenticationType=GOOGLE` fails to start, as the consumer has no check of
these tokens. To authenticate th [...]
To enable these features, the following component properties combinations must
be configured:
@@ -62,7 +62,7 @@ To enable these features, the following component properties
combinations must b
|||keyResource||Required on a consumer. Optional on a producer: only for
mutual TLS, together with keyCertChainResource
|||keyPassword||Optional
|||trustCertCollectionResource||Optional. When not set, a producer verifies
the server with the default trust store of the JVM
-|2|*Token-based authentication with Google
API*|authenticationType|GOOGLE|Required
+|2|*Token-based authentication with Google API* (producer
only)|authenticationType|GOOGLE|Required
|||negotiationType|TLS|Required
|||serviceAccountResource||Required
|3|*Custom JSON Web Token implementation
authentication*|authenticationType|JWT|Required
diff --git
a/components/camel-grpc/src/main/java/org/apache/camel/component/grpc/GrpcAuthType.java
b/components/camel-grpc/src/main/java/org/apache/camel/component/grpc/GrpcAuthType.java
index c6b134809d90..f963189ba994 100644
---
a/components/camel-grpc/src/main/java/org/apache/camel/component/grpc/GrpcAuthType.java
+++
b/components/camel-grpc/src/main/java/org/apache/camel/component/grpc/GrpcAuthType.java
@@ -26,7 +26,8 @@ public enum GrpcAuthType {
NONE,
/**
- * Google OAuth2 token auth. Valid for producer interacting with Google
public services with gRPC support only
+ * Google OAuth2 token auth. Supported only on the producer, for calling
Google services with gRPC support. A
+ * consumer with this type fails to start
*/
GOOGLE,
diff --git
a/components/camel-grpc/src/main/java/org/apache/camel/component/grpc/GrpcConfiguration.java
b/components/camel-grpc/src/main/java/org/apache/camel/component/grpc/GrpcConfiguration.java
index f2fd034e19ae..09619f1ee358 100644
---
a/components/camel-grpc/src/main/java/org/apache/camel/component/grpc/GrpcConfiguration.java
+++
b/components/camel-grpc/src/main/java/org/apache/camel/component/grpc/GrpcConfiguration.java
@@ -66,7 +66,8 @@ public class GrpcConfiguration {
@UriParam(label = "security", defaultValue = "NONE", enums =
"NONE,GOOGLE,JWT",
description = "The authentication of the calls, in addition to
the transport security. GOOGLE makes the producer"
+ " send the OAuth2 access tokens of the Google
service account in serviceAccountResource, and requires"
- + " negotiationType TLS. JWT makes the producer
send a JSON Web Token signed with jwtSecret, and the"
+ + " negotiationType TLS. GOOGLE is supported only
on the producer: a consumer with GOOGLE fails to"
+ + " start. JWT makes the producer send a JSON Web
Token signed with jwtSecret, and the"
+ " consumer accept only calls with a valid
token.")
private GrpcAuthType authenticationType = GrpcAuthType.NONE;
diff --git
a/components/camel-grpc/src/main/java/org/apache/camel/component/grpc/GrpcConsumer.java
b/components/camel-grpc/src/main/java/org/apache/camel/component/grpc/GrpcConsumer.java
index 252ca9a74305..6433081755bc 100644
---
a/components/camel-grpc/src/main/java/org/apache/camel/component/grpc/GrpcConsumer.java
+++
b/components/camel-grpc/src/main/java/org/apache/camel/component/grpc/GrpcConsumer.java
@@ -116,6 +116,13 @@ public class GrpcConsumer extends DefaultConsumer {
"Consumer strategy AGGREGATION and
routeControlledStreamObserver are not compatible. Set the consumer strategy to
PROPAGATION or DELEGATION");
}
+ if (configuration.getAuthenticationType() == GrpcAuthType.GOOGLE) {
+ // GOOGLE makes the client send the OAuth2 tokens of a service
account; there is no server side check of them
+ throw new IllegalArgumentException(
+ "authenticationType GOOGLE is supported only on the
producer. Use authenticationType JWT, or mutual TLS"
+ + " (negotiationType TLS), to
authenticate the clients of a consumer");
+ }
+
if (configuration.getNegotiationType() == NegotiationType.TLS) {
ObjectHelper.notNull(configuration.getKeyCertChainResource(),
"keyCertChainResource");
ObjectHelper.notNull(configuration.getKeyResource(),
"keyResource");
diff --git
a/components/camel-grpc/src/test/java/org/apache/camel/component/grpc/GrpcConsumerConfigurationTest.java
b/components/camel-grpc/src/test/java/org/apache/camel/component/grpc/GrpcConsumerConfigurationTest.java
index 170d022eecb0..40cf0dd0c901 100644
---
a/components/camel-grpc/src/test/java/org/apache/camel/component/grpc/GrpcConsumerConfigurationTest.java
+++
b/components/camel-grpc/src/test/java/org/apache/camel/component/grpc/GrpcConsumerConfigurationTest.java
@@ -22,6 +22,7 @@ import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertInstanceOf;
import static org.junit.jupiter.api.Assertions.assertThrows;
+import static org.junit.jupiter.api.Assertions.assertTrue;
class GrpcConsumerConfigurationTest extends CamelTestSupport {
@Test
@@ -69,4 +70,13 @@ class GrpcConsumerConfigurationTest extends CamelTestSupport
{
"grpc:localhost:8080/org.apache.camel.component.grpc.PingPong?maxRstFramesPerWindow=100"));
assertInstanceOf(IllegalArgumentException.class, exception.getCause());
}
+
+ @Test
+ void googleAuthenticationOnConsumerFailsToStart() {
+ FailedToCreateConsumerException exception =
assertThrows(FailedToCreateConsumerException.class,
+ () -> consumer.receive(
+
"grpc:localhost:0/org.apache.camel.component.grpc.PingPong?authenticationType=GOOGLE",
5000));
+ IllegalArgumentException cause =
assertInstanceOf(IllegalArgumentException.class, exception.getCause());
+ assertTrue(cause.getMessage().contains("supported only on the
producer"), cause.getMessage());
+ }
}
diff --git
a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc
b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc
index fda7934ee743..aa6f6fb83029 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc
@@ -12605,6 +12605,12 @@ With `mimeType` `PAGEABLE`, `PRINTABLE` or
`RENDERABLE_IMAGE`, the producer now
`java.awt.print.Pageable`, `java.awt.print.Printable` or
`java.awt.image.renderable.RenderableImage`, as these doc
flavors need, instead of a stream. With `sendToPrinter=false`, the body is
still written to a file as bytes.
+=== camel-grpc - a consumer with authenticationType GOOGLE fails to start
+
+A `grpc` consumer with `authenticationType=GOOGLE` now fails to start with an
`IllegalArgumentException`. GOOGLE makes
+the producer send the OAuth2 access tokens of a Google service account; the
consumer never checked them, so such a
+consumer accepted every call. To authenticate the clients of a consumer, use
`authenticationType=JWT` or mutual TLS
+(`negotiationType=TLS`), or remove the option to keep accepting all calls as
before.
=== camel-rest-postman - the served collection masks more credentials
The collection served on `apiContextPath` now also masks, with `+***+`, the
values of credential headers (such as
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GrpcEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GrpcEndpointBuilderFactory.java
index 09e7bbf76932..0e4269185ae4 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GrpcEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GrpcEndpointBuilderFactory.java
@@ -750,9 +750,10 @@ public interface GrpcEndpointBuilderFactory {
* The authentication of the calls, in addition to the transport
* security. GOOGLE makes the producer send the OAuth2 access tokens of
* the Google service account in serviceAccountResource, and requires
- * negotiationType TLS. JWT makes the producer send a JSON Web Token
- * signed with jwtSecret, and the consumer accept only calls with a
- * valid token.
+ * negotiationType TLS. GOOGLE is supported only on the producer: a
+ * consumer with GOOGLE fails to start. JWT makes the producer send a
+ * JSON Web Token signed with jwtSecret, and the consumer accept only
+ * calls with a valid token.
*
* The option is a:
* <code>org.apache.camel.component.grpc.GrpcAuthType</code> type.
@@ -771,9 +772,10 @@ public interface GrpcEndpointBuilderFactory {
* The authentication of the calls, in addition to the transport
* security. GOOGLE makes the producer send the OAuth2 access tokens of
* the Google service account in serviceAccountResource, and requires
- * negotiationType TLS. JWT makes the producer send a JSON Web Token
- * signed with jwtSecret, and the consumer accept only calls with a
- * valid token.
+ * negotiationType TLS. GOOGLE is supported only on the producer: a
+ * consumer with GOOGLE fails to start. JWT makes the producer send a
+ * JSON Web Token signed with jwtSecret, and the consumer accept only
+ * calls with a valid token.
*
* The option will be converted to a
* <code>org.apache.camel.component.grpc.GrpcAuthType</code> type.
@@ -1521,9 +1523,10 @@ public interface GrpcEndpointBuilderFactory {
* The authentication of the calls, in addition to the transport
* security. GOOGLE makes the producer send the OAuth2 access tokens of
* the Google service account in serviceAccountResource, and requires
- * negotiationType TLS. JWT makes the producer send a JSON Web Token
- * signed with jwtSecret, and the consumer accept only calls with a
- * valid token.
+ * negotiationType TLS. GOOGLE is supported only on the producer: a
+ * consumer with GOOGLE fails to start. JWT makes the producer send a
+ * JSON Web Token signed with jwtSecret, and the consumer accept only
+ * calls with a valid token.
*
* The option is a:
* <code>org.apache.camel.component.grpc.GrpcAuthType</code> type.
@@ -1542,9 +1545,10 @@ public interface GrpcEndpointBuilderFactory {
* The authentication of the calls, in addition to the transport
* security. GOOGLE makes the producer send the OAuth2 access tokens of
* the Google service account in serviceAccountResource, and requires
- * negotiationType TLS. JWT makes the producer send a JSON Web Token
- * signed with jwtSecret, and the consumer accept only calls with a
- * valid token.
+ * negotiationType TLS. GOOGLE is supported only on the producer: a
+ * consumer with GOOGLE fails to start. JWT makes the producer send a
+ * JSON Web Token signed with jwtSecret, and the consumer accept only
+ * calls with a valid token.
*
* The option will be converted to a
* <code>org.apache.camel.component.grpc.GrpcAuthType</code> type.
@@ -2025,9 +2029,10 @@ public interface GrpcEndpointBuilderFactory {
* The authentication of the calls, in addition to the transport
* security. GOOGLE makes the producer send the OAuth2 access tokens of
* the Google service account in serviceAccountResource, and requires
- * negotiationType TLS. JWT makes the producer send a JSON Web Token
- * signed with jwtSecret, and the consumer accept only calls with a
- * valid token.
+ * negotiationType TLS. GOOGLE is supported only on the producer: a
+ * consumer with GOOGLE fails to start. JWT makes the producer send a
+ * JSON Web Token signed with jwtSecret, and the consumer accept only
+ * calls with a valid token.
*
* The option is a:
* <code>org.apache.camel.component.grpc.GrpcAuthType</code> type.
@@ -2046,9 +2051,10 @@ public interface GrpcEndpointBuilderFactory {
* The authentication of the calls, in addition to the transport
* security. GOOGLE makes the producer send the OAuth2 access tokens of
* the Google service account in serviceAccountResource, and requires
- * negotiationType TLS. JWT makes the producer send a JSON Web Token
- * signed with jwtSecret, and the consumer accept only calls with a
- * valid token.
+ * negotiationType TLS. GOOGLE is supported only on the producer: a
+ * consumer with GOOGLE fails to start. JWT makes the producer send a
+ * JSON Web Token signed with jwtSecret, and the consumer accept only
+ * calls with a valid token.
*
* The option will be converted to a
* <code>org.apache.camel.component.grpc.GrpcAuthType</code> type.