This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch camel-3.11.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-3.11.x by this push:
     new e1071b9  Revert "CAMEL-16883: Enable authentication in GKE via 
workload identity. (#5987)"
e1071b9 is described below

commit e1071b9e06fe5da98dc2eed6800c5b4e9809c82c
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Thu Aug 26 06:59:59 2021 +0200

    Revert "CAMEL-16883: Enable authentication in GKE via workload identity. 
(#5987)"
    
    This reverts commit ad96f009b75e637618c969652303332442bdf59f.
---
 .../catalog/docs/google-pubsub-component.adoc      |  16 ++--
 .../pubsub/GooglePubsubComponentConfigurer.java    |   3 -
 .../pubsub/GooglePubsubEndpointConfigurer.java     |   3 -
 .../pubsub/GooglePubsubEndpointUriFactory.java     |   3 +-
 .../component/google/pubsub/google-pubsub.json     |   6 +-
 .../src/main/docs/google-pubsub-component.adoc     |  16 ++--
 .../google/pubsub/GooglePubsubComponent.java       |  70 +++++++-------
 .../google/pubsub/GooglePubsubConsumer.java        |   5 +-
 .../google/pubsub/GooglePubsubEndpoint.java        |  14 +--
 .../google/pubsub/GooglePubsubProducer.java        |   2 +-
 .../component/google/pubsub/PubsubTestSupport.java |   1 -
 .../dsl/GooglePubsubComponentBuilderFactory.java   |  17 ----
 .../dsl/GooglePubsubEndpointBuilderFactory.java    | 106 +--------------------
 .../ROOT/pages/google-pubsub-component.adoc        |  16 ++--
 14 files changed, 62 insertions(+), 216 deletions(-)

diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/google-pubsub-component.adoc
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/google-pubsub-component.adoc
index 47320ca..f2fafb7 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/google-pubsub-component.adoc
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/google-pubsub-component.adoc
@@ -44,16 +44,15 @@ Destination Name can be either a topic or a subscription 
name.
 == Options
 
 // component options: START
-The Google Pubsub component supports 9 options, which are listed below.
+The Google Pubsub component supports 8 options, which are listed below.
 
 
 
 [width="100%",cols="2,5,^1,2",options="header"]
 |===
 | Name | Description | Default | Type
-| *authenticate* (common) | Use Credentials when interacting with PubSub 
service (no authentication is required when using emulator). | true | boolean
 | *endpoint* (common) | Endpoint to use with local Pub/Sub emulator. |  | 
String
-| *serviceAccountKey* (common) | The Service account key that can be used as 
credentials for the PubSub publisher/subscriber. It can be loaded by default 
from classpath, but you can prefix with classpath:, file:, or http: to load the 
resource from different systems. |  | String
+| *serviceAccountKey* (common) | *Required* The Service account key that can 
be used as credentials for the PubSub publisher/subscriber. It can be loaded by 
default from classpath, but you can prefix with classpath:, file:, or http: to 
load the resource from different systems. |  | String
 | *bridgeErrorHandler* (consumer) | Allows for bridging the consumer to the 
Camel routing Error Handler, which mean any exceptions occurred while the 
consumer is trying to pickup incoming messages, or the likes, will now be 
processed as a message and handled by the routing Error Handler. By default the 
consumer will use the org.apache.camel.spi.ExceptionHandler to deal with 
exceptions, that will be logged at WARN or ERROR level and ignored. | false | 
boolean
 | *lazyStartProducer* (producer) | 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 producer may otherwise fail during 
starting and cause the route to fail being started. By deferring this startup 
to be lazy then the startup failure can be handled during routing messages via 
Camel's routing error handlers. Beware that when the first message is processed 
then creating and [...]
 | *publisherCacheSize* (producer) | Maximum number of producers to cache. This 
could be increased if you have producers for lots of different topics. |  | int
@@ -83,18 +82,17 @@ with the following path and query parameters:
 |===
 
 
-=== Query Parameters (14 parameters):
+=== Query Parameters (13 parameters):
 
 
 [width="100%",cols="2,5,^1,2",options="header"]
 |===
 | Name | Description | Default | Type
 | *ackMode* (common) | AUTO = exchange gets ack'ed/nack'ed on completion. NONE 
= downstream process has to ack/nack explicitly. There are 2 enums and the 
value can be one of: AUTO, NONE | AUTO | AckMode
-| *authenticate* (common) | Use Credentials when interacting with PubSub 
service (no authentication is required when using emulator). | true | boolean
 | *concurrentConsumers* (common) | The number of parallel streams consuming 
from the subscription | 1 | Integer
 | *loggerId* (common) | Logger ID to use when a match to the parent route 
required |  | String
 | *maxMessagesPerPoll* (common) | The max number of messages to receive from 
the server in a single API call | 1 | Integer
-| *serviceAccountKey* (common) | The Service account key that can be used as 
credentials for the PubSub publisher/subscriber. It can be loaded by default 
from classpath, but you can prefix with classpath:, file:, or http: to load the 
resource from different systems. |  | String
+| *serviceAccountKey* (common) | *Required* The Service account key that can 
be used as credentials for the PubSub publisher/subscriber. It can be loaded by 
default from classpath, but you can prefix with classpath:, file:, or http: to 
load the resource from different systems. |  | String
 | *synchronousPull* (common) | Synchronously pull batches of messages | false 
| boolean
 | *bridgeErrorHandler* (consumer) | Allows for bridging the consumer to the 
Camel routing Error Handler, which mean any exceptions occurred while the 
consumer is trying to pickup incoming messages, or the likes, will now be 
processed as a message and handled by the routing Error Handler. By default the 
consumer will use the org.apache.camel.spi.ExceptionHandler to deal with 
exceptions, that will be logged at WARN or ERROR level and ignored. | false | 
boolean
 | *exceptionHandler* (consumer) | To let the consumer use a custom 
ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this 
option is not in use. By default the consumer will deal with exceptions, that 
will be logged at WARN or ERROR level and ignored. |  | ExceptionHandler
@@ -155,7 +153,7 @@ To enable this set set the options messageOrderingEnabled 
to true, and the pubsu
 When producing messages set the message header 
`GooglePubsubConstants.ORDERING_KEY` . This will be set as the PubSub 
orderingKey for the message.
 
 More information in https://cloud.google.com/pubsub/docs/ordering[Ordering 
messages].
-
+ 
 Once exchange has been delivered to PubSub the PubSub Message ID will be 
assigned to
 the header `GooglePubsubConstants.MESSAGE_ID`.
 
@@ -186,9 +184,7 @@ It is up for the route to convert/unmarshall the contents.
 
 == Authentication Configuration
 
-By default this component aquires credentials using 
`GoogleCredentials.getApplicationDefault()`.
-This behavior can be disabled by setting _authenticate_ option to `false`, in 
which case requests to Google API will be made without authentication details. 
This is only desirable when developing against an emulator.
-This behavior can be altered by supplying a path to a service account key file.
+The location of the default credentials file is configurable via the 
serviceAccountKey parameter.
 
 == Rollback and Redelivery
 
diff --git 
a/components/camel-google/camel-google-pubsub/src/generated/java/org/apache/camel/component/google/pubsub/GooglePubsubComponentConfigurer.java
 
b/components/camel-google/camel-google-pubsub/src/generated/java/org/apache/camel/component/google/pubsub/GooglePubsubComponentConfigurer.java
index e2b37f5..ad90ef3 100644
--- 
a/components/camel-google/camel-google-pubsub/src/generated/java/org/apache/camel/component/google/pubsub/GooglePubsubComponentConfigurer.java
+++ 
b/components/camel-google/camel-google-pubsub/src/generated/java/org/apache/camel/component/google/pubsub/GooglePubsubComponentConfigurer.java
@@ -21,7 +21,6 @@ public class GooglePubsubComponentConfigurer extends 
PropertyConfigurerSupport i
     public boolean configure(CamelContext camelContext, Object obj, String 
name, Object value, boolean ignoreCase) {
         GooglePubsubComponent target = (GooglePubsubComponent) obj;
         switch (ignoreCase ? name.toLowerCase() : name) {
-        case "authenticate": target.setAuthenticate(property(camelContext, 
boolean.class, value)); return true;
         case "autowiredenabled":
         case "autowiredEnabled": 
target.setAutowiredEnabled(property(camelContext, boolean.class, value)); 
return true;
         case "bridgeerrorhandler":
@@ -44,7 +43,6 @@ public class GooglePubsubComponentConfigurer extends 
PropertyConfigurerSupport i
     @Override
     public Class<?> getOptionType(String name, boolean ignoreCase) {
         switch (ignoreCase ? name.toLowerCase() : name) {
-        case "authenticate": return boolean.class;
         case "autowiredenabled":
         case "autowiredEnabled": return boolean.class;
         case "bridgeerrorhandler":
@@ -68,7 +66,6 @@ public class GooglePubsubComponentConfigurer extends 
PropertyConfigurerSupport i
     public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
         GooglePubsubComponent target = (GooglePubsubComponent) obj;
         switch (ignoreCase ? name.toLowerCase() : name) {
-        case "authenticate": return target.isAuthenticate();
         case "autowiredenabled":
         case "autowiredEnabled": return target.isAutowiredEnabled();
         case "bridgeerrorhandler":
diff --git 
a/components/camel-google/camel-google-pubsub/src/generated/java/org/apache/camel/component/google/pubsub/GooglePubsubEndpointConfigurer.java
 
b/components/camel-google/camel-google-pubsub/src/generated/java/org/apache/camel/component/google/pubsub/GooglePubsubEndpointConfigurer.java
index 0e8211c..b794579 100644
--- 
a/components/camel-google/camel-google-pubsub/src/generated/java/org/apache/camel/component/google/pubsub/GooglePubsubEndpointConfigurer.java
+++ 
b/components/camel-google/camel-google-pubsub/src/generated/java/org/apache/camel/component/google/pubsub/GooglePubsubEndpointConfigurer.java
@@ -23,7 +23,6 @@ public class GooglePubsubEndpointConfigurer extends 
PropertyConfigurerSupport im
         switch (ignoreCase ? name.toLowerCase() : name) {
         case "ackmode":
         case "ackMode": target.setAckMode(property(camelContext, 
org.apache.camel.component.google.pubsub.GooglePubsubConstants.AckMode.class, 
value)); return true;
-        case "authenticate": target.setAuthenticate(property(camelContext, 
boolean.class, value)); return true;
         case "bridgeerrorhandler":
         case "bridgeErrorHandler": 
target.setBridgeErrorHandler(property(camelContext, boolean.class, value)); 
return true;
         case "concurrentconsumers":
@@ -61,7 +60,6 @@ public class GooglePubsubEndpointConfigurer extends 
PropertyConfigurerSupport im
         switch (ignoreCase ? name.toLowerCase() : name) {
         case "ackmode":
         case "ackMode": return 
org.apache.camel.component.google.pubsub.GooglePubsubConstants.AckMode.class;
-        case "authenticate": return boolean.class;
         case "bridgeerrorhandler":
         case "bridgeErrorHandler": return boolean.class;
         case "concurrentconsumers":
@@ -95,7 +93,6 @@ public class GooglePubsubEndpointConfigurer extends 
PropertyConfigurerSupport im
         switch (ignoreCase ? name.toLowerCase() : name) {
         case "ackmode":
         case "ackMode": return target.getAckMode();
-        case "authenticate": return target.isAuthenticate();
         case "bridgeerrorhandler":
         case "bridgeErrorHandler": return target.isBridgeErrorHandler();
         case "concurrentconsumers":
diff --git 
a/components/camel-google/camel-google-pubsub/src/generated/java/org/apache/camel/component/google/pubsub/GooglePubsubEndpointUriFactory.java
 
b/components/camel-google/camel-google-pubsub/src/generated/java/org/apache/camel/component/google/pubsub/GooglePubsubEndpointUriFactory.java
index f1656c3..dcee6c6 100644
--- 
a/components/camel-google/camel-google-pubsub/src/generated/java/org/apache/camel/component/google/pubsub/GooglePubsubEndpointUriFactory.java
+++ 
b/components/camel-google/camel-google-pubsub/src/generated/java/org/apache/camel/component/google/pubsub/GooglePubsubEndpointUriFactory.java
@@ -20,9 +20,8 @@ public class GooglePubsubEndpointUriFactory extends 
org.apache.camel.support.com
     private static final Set<String> PROPERTY_NAMES;
     private static final Set<String> SECRET_PROPERTY_NAMES;
     static {
-        Set<String> props = new HashSet<>(16);
+        Set<String> props = new HashSet<>(15);
         props.add("serviceAccountKey");
-        props.add("authenticate");
         props.add("exchangePattern");
         props.add("serializer");
         props.add("synchronousPull");
diff --git 
a/components/camel-google/camel-google-pubsub/src/generated/resources/org/apache/camel/component/google/pubsub/google-pubsub.json
 
b/components/camel-google/camel-google-pubsub/src/generated/resources/org/apache/camel/component/google/pubsub/google-pubsub.json
index 1d31e89..5974f48 100644
--- 
a/components/camel-google/camel-google-pubsub/src/generated/resources/org/apache/camel/component/google/pubsub/google-pubsub.json
+++ 
b/components/camel-google/camel-google-pubsub/src/generated/resources/org/apache/camel/component/google/pubsub/google-pubsub.json
@@ -22,9 +22,8 @@
     "lenientProperties": false
   },
   "componentProperties": {
-    "authenticate": { "kind": "property", "displayName": "Authenticate", 
"group": "common", "label": "common", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "autowired": false, "secret": 
false, "defaultValue": true, "description": "Use Credentials when interacting 
with PubSub service (no authentication is required when using emulator)." },
     "endpoint": { "kind": "property", "displayName": "Endpoint", "group": 
"common", "label": "common", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "Endpoint to use with local Pub\/Sub emulator." },
-    "serviceAccountKey": { "kind": "property", "displayName": "Service Account 
Key", "group": "common", "label": "common", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "description": "The Service account key that can be 
used as credentials for the PubSub publisher\/subscriber. It can be loaded by 
default from classpath, but you can prefix with classpath:, file:, or http: to 
load the resource from different  [...]
+    "serviceAccountKey": { "kind": "property", "displayName": "Service Account 
Key", "group": "common", "label": "common", "required": true, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "The Service account key that can be used as 
credentials for the PubSub publisher\/subscriber. It can be loaded by default 
from classpath, but you can prefix with classpath:, file:, or http: to load the 
resource from different s [...]
     "bridgeErrorHandler": { "kind": "property", "displayName": "Bridge Error 
Handler", "group": "consumer", "label": "consumer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "description": "Allows for bridging the 
consumer to the Camel routing Error Handler, which mean any exceptions occurred 
while the consumer is trying to pickup incoming messages, or the likes, will 
now be processed as a me [...]
     "lazyStartProducer": { "kind": "property", "displayName": "Lazy Start 
Producer", "group": "producer", "label": "producer", "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 producer 
may otherwise fail during star [...]
     "publisherCacheSize": { "kind": "property", "displayName": "Publisher 
Cache Size", "group": "producer", "label": "producer", "required": false, 
"type": "integer", "javaType": "int", "deprecated": false, "autowired": false, 
"secret": false, "description": "Maximum number of producers to cache. This 
could be increased if you have producers for lots of different topics." },
@@ -36,11 +35,10 @@
     "projectId": { "kind": "path", "displayName": "Project Id", "group": 
"common", "label": "common", "required": true, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": 
false, "secret": false, "description": "The Google Cloud PubSub Project Id" },
     "destinationName": { "kind": "path", "displayName": "Destination Name", 
"group": "common", "label": "common", "required": true, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", 
"autowired": false, "secret": false, "description": "The Destination Name. For 
the consumer this will be the subscription name, while for the producer this 
will be the topic name." },
     "ackMode": { "kind": "parameter", "displayName": "Ack Mode", "group": 
"common", "label": "", "required": false, "type": "object", "javaType": 
"org.apache.camel.component.google.pubsub.GooglePubsubConstants.AckMode", 
"enum": [ "AUTO", "NONE" ], "deprecated": false, "autowired": false, "secret": 
false, "defaultValue": "AUTO", "description": "AUTO = exchange gets 
ack'ed\/nack'ed on completion. NONE = downstream process has to ack\/nack 
explicitly" },
-    "authenticate": { "kind": "parameter", "displayName": "Authenticate", 
"group": "common", "label": "common", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "autowired": false, "secret": 
false, "defaultValue": true, "description": "Use Credentials when interacting 
with PubSub service (no authentication is required when using emulator)." },
     "concurrentConsumers": { "kind": "parameter", "displayName": "Concurrent 
Consumers", "group": "common", "label": "", "required": false, "type": 
"integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": "1", "description": "The number of 
parallel streams consuming from the subscription" },
     "loggerId": { "kind": "parameter", "displayName": "Logger Id", "group": 
"common", "label": "", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "Logger ID to use when a match to the parent route required" },
     "maxMessagesPerPoll": { "kind": "parameter", "displayName": "Max Messages 
Per Poll", "group": "common", "label": "", "required": false, "type": 
"integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": "1", "description": "The max number of 
messages to receive from the server in a single API call" },
-    "serviceAccountKey": { "kind": "parameter", "displayName": "Service 
Account Key", "group": "common", "label": "common", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "description": "The Service account key that can be 
used as credentials for the PubSub publisher\/subscriber. It can be loaded by 
default from classpath, but you can prefix with classpath:, file:, or http: to 
load the resource from different [...]
+    "serviceAccountKey": { "kind": "parameter", "displayName": "Service 
Account Key", "group": "common", "label": "common", "required": true, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, 
"deprecationNote": "", "autowired": false, "secret": false, "description": "The 
Service account key that can be used as credentials for the PubSub 
publisher\/subscriber. It can be loaded by default from classpath, but you can 
prefix with classpath:, file:, or http: to load the r [...]
     "synchronousPull": { "kind": "parameter", "displayName": "Synchronous 
Pull", "group": "common", "label": "", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "autowired": false, "secret": 
false, "defaultValue": false, "description": "Synchronously pull batches of 
messages" },
     "bridgeErrorHandler": { "kind": "parameter", "displayName": "Bridge Error 
Handler", "group": "consumer", "label": "consumer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "description": "Allows for bridging the 
consumer to the Camel routing Error Handler, which mean any exceptions occurred 
while the consumer is trying to pickup incoming messages, or the likes, will 
now be processed as a m [...]
     "exceptionHandler": { "kind": "parameter", "displayName": "Exception 
Handler", "group": "consumer (advanced)", "label": "consumer,advanced", 
"required": false, "type": "object", "javaType": 
"org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.", 
"deprecated": false, "autowired": false, "secret": false, "description": "To 
let the consumer use a custom ExceptionHandler. Notice if the option 
bridgeErrorHandler is enabled then this option is not in use. By default the 
con [...]
diff --git 
a/components/camel-google/camel-google-pubsub/src/main/docs/google-pubsub-component.adoc
 
b/components/camel-google/camel-google-pubsub/src/main/docs/google-pubsub-component.adoc
index 47320ca..f2fafb7 100644
--- 
a/components/camel-google/camel-google-pubsub/src/main/docs/google-pubsub-component.adoc
+++ 
b/components/camel-google/camel-google-pubsub/src/main/docs/google-pubsub-component.adoc
@@ -44,16 +44,15 @@ Destination Name can be either a topic or a subscription 
name.
 == Options
 
 // component options: START
-The Google Pubsub component supports 9 options, which are listed below.
+The Google Pubsub component supports 8 options, which are listed below.
 
 
 
 [width="100%",cols="2,5,^1,2",options="header"]
 |===
 | Name | Description | Default | Type
-| *authenticate* (common) | Use Credentials when interacting with PubSub 
service (no authentication is required when using emulator). | true | boolean
 | *endpoint* (common) | Endpoint to use with local Pub/Sub emulator. |  | 
String
-| *serviceAccountKey* (common) | The Service account key that can be used as 
credentials for the PubSub publisher/subscriber. It can be loaded by default 
from classpath, but you can prefix with classpath:, file:, or http: to load the 
resource from different systems. |  | String
+| *serviceAccountKey* (common) | *Required* The Service account key that can 
be used as credentials for the PubSub publisher/subscriber. It can be loaded by 
default from classpath, but you can prefix with classpath:, file:, or http: to 
load the resource from different systems. |  | String
 | *bridgeErrorHandler* (consumer) | Allows for bridging the consumer to the 
Camel routing Error Handler, which mean any exceptions occurred while the 
consumer is trying to pickup incoming messages, or the likes, will now be 
processed as a message and handled by the routing Error Handler. By default the 
consumer will use the org.apache.camel.spi.ExceptionHandler to deal with 
exceptions, that will be logged at WARN or ERROR level and ignored. | false | 
boolean
 | *lazyStartProducer* (producer) | 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 producer may otherwise fail during 
starting and cause the route to fail being started. By deferring this startup 
to be lazy then the startup failure can be handled during routing messages via 
Camel's routing error handlers. Beware that when the first message is processed 
then creating and [...]
 | *publisherCacheSize* (producer) | Maximum number of producers to cache. This 
could be increased if you have producers for lots of different topics. |  | int
@@ -83,18 +82,17 @@ with the following path and query parameters:
 |===
 
 
-=== Query Parameters (14 parameters):
+=== Query Parameters (13 parameters):
 
 
 [width="100%",cols="2,5,^1,2",options="header"]
 |===
 | Name | Description | Default | Type
 | *ackMode* (common) | AUTO = exchange gets ack'ed/nack'ed on completion. NONE 
= downstream process has to ack/nack explicitly. There are 2 enums and the 
value can be one of: AUTO, NONE | AUTO | AckMode
-| *authenticate* (common) | Use Credentials when interacting with PubSub 
service (no authentication is required when using emulator). | true | boolean
 | *concurrentConsumers* (common) | The number of parallel streams consuming 
from the subscription | 1 | Integer
 | *loggerId* (common) | Logger ID to use when a match to the parent route 
required |  | String
 | *maxMessagesPerPoll* (common) | The max number of messages to receive from 
the server in a single API call | 1 | Integer
-| *serviceAccountKey* (common) | The Service account key that can be used as 
credentials for the PubSub publisher/subscriber. It can be loaded by default 
from classpath, but you can prefix with classpath:, file:, or http: to load the 
resource from different systems. |  | String
+| *serviceAccountKey* (common) | *Required* The Service account key that can 
be used as credentials for the PubSub publisher/subscriber. It can be loaded by 
default from classpath, but you can prefix with classpath:, file:, or http: to 
load the resource from different systems. |  | String
 | *synchronousPull* (common) | Synchronously pull batches of messages | false 
| boolean
 | *bridgeErrorHandler* (consumer) | Allows for bridging the consumer to the 
Camel routing Error Handler, which mean any exceptions occurred while the 
consumer is trying to pickup incoming messages, or the likes, will now be 
processed as a message and handled by the routing Error Handler. By default the 
consumer will use the org.apache.camel.spi.ExceptionHandler to deal with 
exceptions, that will be logged at WARN or ERROR level and ignored. | false | 
boolean
 | *exceptionHandler* (consumer) | To let the consumer use a custom 
ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this 
option is not in use. By default the consumer will deal with exceptions, that 
will be logged at WARN or ERROR level and ignored. |  | ExceptionHandler
@@ -155,7 +153,7 @@ To enable this set set the options messageOrderingEnabled 
to true, and the pubsu
 When producing messages set the message header 
`GooglePubsubConstants.ORDERING_KEY` . This will be set as the PubSub 
orderingKey for the message.
 
 More information in https://cloud.google.com/pubsub/docs/ordering[Ordering 
messages].
-
+ 
 Once exchange has been delivered to PubSub the PubSub Message ID will be 
assigned to
 the header `GooglePubsubConstants.MESSAGE_ID`.
 
@@ -186,9 +184,7 @@ It is up for the route to convert/unmarshall the contents.
 
 == Authentication Configuration
 
-By default this component aquires credentials using 
`GoogleCredentials.getApplicationDefault()`.
-This behavior can be disabled by setting _authenticate_ option to `false`, in 
which case requests to Google API will be made without authentication details. 
This is only desirable when developing against an emulator.
-This behavior can be altered by supplying a path to a service account key file.
+The location of the default credentials file is configurable via the 
serviceAccountKey parameter.
 
 == Rollback and Redelivery
 
diff --git 
a/components/camel-google/camel-google-pubsub/src/main/java/org/apache/camel/component/google/pubsub/GooglePubsubComponent.java
 
b/components/camel-google/camel-google-pubsub/src/main/java/org/apache/camel/component/google/pubsub/GooglePubsubComponent.java
index 83b7732..bcc7c32 100644
--- 
a/components/camel-google/camel-google-pubsub/src/main/java/org/apache/camel/component/google/pubsub/GooglePubsubComponent.java
+++ 
b/components/camel-google/camel-google-pubsub/src/main/java/org/apache/camel/component/google/pubsub/GooglePubsubComponent.java
@@ -17,6 +17,7 @@
 package org.apache.camel.component.google.pubsub;
 
 import java.io.IOException;
+import java.io.InputStream;
 import java.util.Map;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.TimeUnit;
@@ -27,7 +28,6 @@ import com.google.api.gax.core.NoCredentialsProvider;
 import com.google.api.gax.grpc.GrpcTransportChannel;
 import com.google.api.gax.rpc.FixedTransportChannelProvider;
 import com.google.api.gax.rpc.TransportChannelProvider;
-import com.google.auth.oauth2.GoogleCredentials;
 import com.google.auth.oauth2.ServiceAccountCredentials;
 import com.google.cloud.pubsub.v1.MessageReceiver;
 import com.google.cloud.pubsub.v1.Publisher;
@@ -62,13 +62,9 @@ public class GooglePubsubComponent extends DefaultComponent {
     private String endpoint;
 
     @Metadata(label = "common",
-              description = "Use Credentials when interacting with PubSub 
service (no authentication is required when using emulator).",
-              defaultValue = "true")
-    private boolean authenticate = true;
-
-    @Metadata(label = "common",
               description = "The Service account key that can be used as 
credentials for the PubSub publisher/subscriber. It can be loaded by default 
from "
-                            + " classpath, but you can prefix with classpath:, 
file:, or http: to load the resource from different systems.")
+                            + " classpath, but you can prefix with classpath:, 
file:, or http: to load the resource from different systems.",
+              required = true)
     private String serviceAccountKey;
 
     @Metadata(
@@ -122,7 +118,6 @@ public class GooglePubsubComponent extends DefaultComponent 
{
         pubsubEndpoint.setProjectId(parts[0]);
         pubsubEndpoint.setDestinationName(parts[1]);
         pubsubEndpoint.setServiceAccountKey(serviceAccountKey);
-        pubsubEndpoint.setAuthenticate(authenticate);
 
         setProperties(pubsubEndpoint, parameters);
 
@@ -136,12 +131,12 @@ public class GooglePubsubComponent extends 
DefaultComponent {
         super.doShutdown();
     }
 
-    public Publisher getPublisher(String topicName, GooglePubsubEndpoint 
googlePubsubEndpoint)
+    public Publisher getPublisher(String topicName, GooglePubsubEndpoint 
googlePubsubEndpoint, String serviceAccountKey)
             throws ExecutionException {
-        return cachedPublishers.get(topicName, () -> buildPublisher(topicName, 
googlePubsubEndpoint));
+        return cachedPublishers.get(topicName, () -> buildPublisher(topicName, 
googlePubsubEndpoint, serviceAccountKey));
     }
 
-    private Publisher buildPublisher(String topicName, GooglePubsubEndpoint 
googlePubsubEndpoint)
+    private Publisher buildPublisher(String topicName, GooglePubsubEndpoint 
googlePubsubEndpoint, String serviceAccountKey)
             throws IOException {
         Publisher.Builder builder = Publisher.newBuilder(topicName);
         if (StringHelper.trimToNull(endpoint) != null) {
@@ -150,7 +145,15 @@ public class GooglePubsubComponent extends 
DefaultComponent {
                     = 
FixedTransportChannelProvider.create(GrpcTransportChannel.create(channel));
             builder.setChannelProvider(channelProvider);
         }
-        
builder.setCredentialsProvider(getCredentialsProvider(googlePubsubEndpoint));
+        CredentialsProvider credentialsProvider;
+        if (ObjectHelper.isEmpty(serviceAccountKey)) {
+            credentialsProvider = NoCredentialsProvider.create();
+        } else {
+            InputStream serviceAccountFile
+                    = 
ResourceHelper.resolveMandatoryResourceAsInputStream(getCamelContext(), 
serviceAccountKey);
+            credentialsProvider = 
FixedCredentialsProvider.create(ServiceAccountCredentials.fromStream(serviceAccountFile));
+        }
+        builder.setCredentialsProvider(credentialsProvider);
         if (StringHelper.trimToNull(googlePubsubEndpoint.getPubsubEndpoint()) 
!= null) {
             builder.setEndpoint(googlePubsubEndpoint.getPubsubEndpoint());
         }
@@ -164,8 +167,7 @@ public class GooglePubsubComponent extends DefaultComponent 
{
         return builder.build();
     }
 
-    public Subscriber getSubscriber(
-            String subscriptionName, MessageReceiver messageReceiver, 
GooglePubsubEndpoint googlePubsubEndpoint)
+    public Subscriber getSubscriber(String subscriptionName, MessageReceiver 
messageReceiver, String serviceAccountKey)
             throws IOException {
         Subscriber.Builder builder = Subscriber.newBuilder(subscriptionName, 
messageReceiver);
         if (StringHelper.trimToNull(endpoint) != null) {
@@ -174,11 +176,19 @@ public class GooglePubsubComponent extends 
DefaultComponent {
                     = 
FixedTransportChannelProvider.create(GrpcTransportChannel.create(channel));
             builder.setChannelProvider(channelProvider);
         }
-        
builder.setCredentialsProvider(getCredentialsProvider(googlePubsubEndpoint));
+        CredentialsProvider credentialsProvider;
+        if (ObjectHelper.isEmpty(serviceAccountKey)) {
+            credentialsProvider = NoCredentialsProvider.create();
+        } else {
+            InputStream serviceAccountFile
+                    = 
ResourceHelper.resolveMandatoryResourceAsInputStream(getCamelContext(), 
serviceAccountKey);
+            credentialsProvider = 
FixedCredentialsProvider.create(ServiceAccountCredentials.fromStream(serviceAccountFile));
+        }
+        builder.setCredentialsProvider(credentialsProvider);
         return builder.build();
     }
 
-    public SubscriberStub getSubscriberStub(GooglePubsubEndpoint 
googlePubsubEndpoint) throws IOException {
+    public SubscriberStub getSubscriberStub(String serviceAccountKey) throws 
IOException {
         SubscriberStubSettings.Builder builder = 
SubscriberStubSettings.newBuilder().setTransportChannelProvider(
                 
SubscriberStubSettings.defaultGrpcTransportProviderBuilder().build());
 
@@ -188,22 +198,16 @@ public class GooglePubsubComponent extends 
DefaultComponent {
                     = 
FixedTransportChannelProvider.create(GrpcTransportChannel.create(channel));
             builder.setTransportChannelProvider(channelProvider);
         }
-        
builder.setCredentialsProvider(getCredentialsProvider(googlePubsubEndpoint));
-        return builder.build().createStub();
-    }
-
-    private CredentialsProvider getCredentialsProvider(GooglePubsubEndpoint 
endpoint) throws IOException {
         CredentialsProvider credentialsProvider;
-
-        if (endpoint.isAuthenticate()) {
-            credentialsProvider = 
FixedCredentialsProvider.create(ObjectHelper.isEmpty(endpoint.getServiceAccountKey())
-                    ? GoogleCredentials.getApplicationDefault() : 
ServiceAccountCredentials.fromStream(ResourceHelper
-                            
.resolveMandatoryResourceAsInputStream(getCamelContext(), 
endpoint.getServiceAccountKey())));
-        } else {
+        if (ObjectHelper.isEmpty(serviceAccountKey)) {
             credentialsProvider = NoCredentialsProvider.create();
+        } else {
+            InputStream serviceAccountFile
+                    = 
ResourceHelper.resolveMandatoryResourceAsInputStream(getCamelContext(), 
serviceAccountKey);
+            credentialsProvider = 
FixedCredentialsProvider.create(ServiceAccountCredentials.fromStream(serviceAccountFile));
         }
-
-        return credentialsProvider;
+        builder.setCredentialsProvider(credentialsProvider);
+        return builder.build().createStub();
     }
 
     public String getEndpoint() {
@@ -238,14 +242,6 @@ public class GooglePubsubComponent extends 
DefaultComponent {
         this.publisherTerminationTimeout = publisherTerminationTimeout;
     }
 
-    public boolean isAuthenticate() {
-        return authenticate;
-    }
-
-    public void setAuthenticate(boolean authenticate) {
-        this.authenticate = authenticate;
-    }
-
     public String getServiceAccountKey() {
         return serviceAccountKey;
     }
diff --git 
a/components/camel-google/camel-google-pubsub/src/main/java/org/apache/camel/component/google/pubsub/GooglePubsubConsumer.java
 
b/components/camel-google/camel-google-pubsub/src/main/java/org/apache/camel/component/google/pubsub/GooglePubsubConsumer.java
index b4aa82b..69f183b 100644
--- 
a/components/camel-google/camel-google-pubsub/src/main/java/org/apache/camel/component/google/pubsub/GooglePubsubConsumer.java
+++ 
b/components/camel-google/camel-google-pubsub/src/main/java/org/apache/camel/component/google/pubsub/GooglePubsubConsumer.java
@@ -126,7 +126,8 @@ public class GooglePubsubConsumer extends DefaultConsumer {
             while (isRunAllowed() && !isSuspendingOrSuspended()) {
                 MessageReceiver messageReceiver = new 
CamelMessageReceiver(GooglePubsubConsumer.this, endpoint, processor);
 
-                Subscriber subscriber = 
endpoint.getComponent().getSubscriber(subscriptionName, messageReceiver, 
endpoint);
+                Subscriber subscriber = 
endpoint.getComponent().getSubscriber(subscriptionName, messageReceiver,
+                        endpoint.getServiceAccountKey());
                 try {
                     subscribers.add(subscriber);
                     subscriber.startAsync().awaitRunning();
@@ -142,7 +143,7 @@ public class GooglePubsubConsumer extends DefaultConsumer {
 
         private void synchronousPull(String subscriptionName) {
             while (isRunAllowed() && !isSuspendingOrSuspended()) {
-                try (SubscriberStub subscriber = 
endpoint.getComponent().getSubscriberStub(endpoint)) {
+                try (SubscriberStub subscriber = 
endpoint.getComponent().getSubscriberStub(endpoint.getServiceAccountKey())) {
 
                     PullRequest pullRequest = PullRequest.newBuilder()
                             .setMaxMessages(endpoint.getMaxMessagesPerPoll())
diff --git 
a/components/camel-google/camel-google-pubsub/src/main/java/org/apache/camel/component/google/pubsub/GooglePubsubEndpoint.java
 
b/components/camel-google/camel-google-pubsub/src/main/java/org/apache/camel/component/google/pubsub/GooglePubsubEndpoint.java
index f063b77..183fb52 100644
--- 
a/components/camel-google/camel-google-pubsub/src/main/java/org/apache/camel/component/google/pubsub/GooglePubsubEndpoint.java
+++ 
b/components/camel-google/camel-google-pubsub/src/main/java/org/apache/camel/component/google/pubsub/GooglePubsubEndpoint.java
@@ -55,14 +55,10 @@ public class GooglePubsubEndpoint extends DefaultEndpoint {
     @Metadata(required = true)
     private String destinationName;
 
-    @UriParam(label = "common", name = "authenticate",
-              description = "Use Credentials when interacting with PubSub 
service (no authentication is required when using emulator).",
-              defaultValue = "true")
-    private boolean authenticate = true;
-
     @UriParam(label = "common",
               description = "The Service account key that can be used as 
credentials for the PubSub publisher/subscriber. It can be loaded by default 
from "
                             + " classpath, but you can prefix with classpath:, 
file:, or http: to load the resource from different systems.")
+    @Metadata(required = true)
     private String serviceAccountKey;
 
     @UriParam(name = "loggerId", description = "Logger ID to use when a match 
to the parent route required")
@@ -171,14 +167,6 @@ public class GooglePubsubEndpoint extends DefaultEndpoint {
         this.loggerId = loggerId;
     }
 
-    public boolean isAuthenticate() {
-        return authenticate;
-    }
-
-    public void setAuthenticate(boolean authenticate) {
-        this.authenticate = authenticate;
-    }
-
     public String getServiceAccountKey() {
         return serviceAccountKey;
     }
diff --git 
a/components/camel-google/camel-google-pubsub/src/main/java/org/apache/camel/component/google/pubsub/GooglePubsubProducer.java
 
b/components/camel-google/camel-google-pubsub/src/main/java/org/apache/camel/component/google/pubsub/GooglePubsubProducer.java
index 63489e4..7cb038f 100644
--- 
a/components/camel-google/camel-google-pubsub/src/main/java/org/apache/camel/component/google/pubsub/GooglePubsubProducer.java
+++ 
b/components/camel-google/camel-google-pubsub/src/main/java/org/apache/camel/component/google/pubsub/GooglePubsubProducer.java
@@ -84,7 +84,7 @@ public class GooglePubsubProducer extends DefaultProducer {
         GooglePubsubEndpoint endpoint = (GooglePubsubEndpoint) getEndpoint();
         String topicName = String.format("projects/%s/topics/%s", 
endpoint.getProjectId(), endpoint.getDestinationName());
 
-        Publisher publisher = endpoint.getComponent().getPublisher(topicName, 
endpoint);
+        Publisher publisher = endpoint.getComponent().getPublisher(topicName, 
endpoint, endpoint.getServiceAccountKey());
 
         Object body = exchange.getIn().getBody();
         ByteString byteString;
diff --git 
a/components/camel-google/camel-google-pubsub/src/test/java/org/apache/camel/component/google/pubsub/PubsubTestSupport.java
 
b/components/camel-google/camel-google-pubsub/src/test/java/org/apache/camel/component/google/pubsub/PubsubTestSupport.java
index 041aaae..5489449 100644
--- 
a/components/camel-google/camel-google-pubsub/src/test/java/org/apache/camel/component/google/pubsub/PubsubTestSupport.java
+++ 
b/components/camel-google/camel-google-pubsub/src/test/java/org/apache/camel/component/google/pubsub/PubsubTestSupport.java
@@ -69,7 +69,6 @@ public class PubsubTestSupport extends CamelTestSupport {
 
         GooglePubsubComponent component = new GooglePubsubComponent();
         component.setEndpoint(service.getServiceAddress());
-        component.setAuthenticate(false);
 
         context.addComponent("google-pubsub", component);
         context.getPropertiesComponent().setLocation("ref:prop");
diff --git 
a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/GooglePubsubComponentBuilderFactory.java
 
b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/GooglePubsubComponentBuilderFactory.java
index 9f3b79b..0020696 100644
--- 
a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/GooglePubsubComponentBuilderFactory.java
+++ 
b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/GooglePubsubComponentBuilderFactory.java
@@ -51,22 +51,6 @@ public interface GooglePubsubComponentBuilderFactory {
             extends
                 ComponentBuilder<GooglePubsubComponent> {
         /**
-         * Use Credentials when interacting with PubSub service (no
-         * authentication is required when using emulator).
-         * 
-         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
-         * 
-         * Default: true
-         * Group: common
-         * 
-         * @param authenticate the value to set
-         * @return the dsl builder
-         */
-        default GooglePubsubComponentBuilder authenticate(boolean 
authenticate) {
-            doSetProperty("authenticate", authenticate);
-            return this;
-        }
-        /**
          * Endpoint to use with local Pub/Sub emulator.
          * 
          * The option is a: &lt;code&gt;java.lang.String&lt;/code&gt; type.
@@ -228,7 +212,6 @@ public interface GooglePubsubComponentBuilderFactory {
                 String name,
                 Object value) {
             switch (name) {
-            case "authenticate": ((GooglePubsubComponent) 
component).setAuthenticate((boolean) value); return true;
             case "endpoint": ((GooglePubsubComponent) 
component).setEndpoint((java.lang.String) value); return true;
             case "serviceAccountKey": ((GooglePubsubComponent) 
component).setServiceAccountKey((java.lang.String) value); return true;
             case "bridgeErrorHandler": ((GooglePubsubComponent) 
component).setBridgeErrorHandler((boolean) value); return true;
diff --git 
a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GooglePubsubEndpointBuilderFactory.java
 
b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GooglePubsubEndpointBuilderFactory.java
index 598d891..fd0dacf 100644
--- 
a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GooglePubsubEndpointBuilderFactory.java
+++ 
b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GooglePubsubEndpointBuilderFactory.java
@@ -76,41 +76,6 @@ public interface GooglePubsubEndpointBuilderFactory {
             return this;
         }
         /**
-         * Use Credentials when interacting with PubSub service (no
-         * authentication is required when using emulator).
-         * 
-         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
-         * 
-         * Default: true
-         * Group: common
-         * 
-         * @param authenticate the value to set
-         * @return the dsl builder
-         */
-        default GooglePubsubEndpointConsumerBuilder authenticate(
-                boolean authenticate) {
-            doSetProperty("authenticate", authenticate);
-            return this;
-        }
-        /**
-         * Use Credentials when interacting with PubSub service (no
-         * authentication is required when using emulator).
-         * 
-         * The option will be converted to a &lt;code&gt;boolean&lt;/code&gt;
-         * type.
-         * 
-         * Default: true
-         * Group: common
-         * 
-         * @param authenticate the value to set
-         * @return the dsl builder
-         */
-        default GooglePubsubEndpointConsumerBuilder authenticate(
-                String authenticate) {
-            doSetProperty("authenticate", authenticate);
-            return this;
-        }
-        /**
          * The number of parallel streams consuming from the subscription.
          * 
          * The option is a: &lt;code&gt;java.lang.Integer&lt;/code&gt; type.
@@ -200,6 +165,7 @@ public interface GooglePubsubEndpointBuilderFactory {
          * 
          * The option is a: &lt;code&gt;java.lang.String&lt;/code&gt; type.
          * 
+         * Required: true
          * Group: common
          * 
          * @param serviceAccountKey the value to set
@@ -415,41 +381,6 @@ public interface GooglePubsubEndpointBuilderFactory {
             return this;
         }
         /**
-         * Use Credentials when interacting with PubSub service (no
-         * authentication is required when using emulator).
-         * 
-         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
-         * 
-         * Default: true
-         * Group: common
-         * 
-         * @param authenticate the value to set
-         * @return the dsl builder
-         */
-        default GooglePubsubEndpointProducerBuilder authenticate(
-                boolean authenticate) {
-            doSetProperty("authenticate", authenticate);
-            return this;
-        }
-        /**
-         * Use Credentials when interacting with PubSub service (no
-         * authentication is required when using emulator).
-         * 
-         * The option will be converted to a &lt;code&gt;boolean&lt;/code&gt;
-         * type.
-         * 
-         * Default: true
-         * Group: common
-         * 
-         * @param authenticate the value to set
-         * @return the dsl builder
-         */
-        default GooglePubsubEndpointProducerBuilder authenticate(
-                String authenticate) {
-            doSetProperty("authenticate", authenticate);
-            return this;
-        }
-        /**
          * The number of parallel streams consuming from the subscription.
          * 
          * The option is a: &lt;code&gt;java.lang.Integer&lt;/code&gt; type.
@@ -539,6 +470,7 @@ public interface GooglePubsubEndpointBuilderFactory {
          * 
          * The option is a: &lt;code&gt;java.lang.String&lt;/code&gt; type.
          * 
+         * Required: true
          * Group: common
          * 
          * @param serviceAccountKey the value to set
@@ -773,39 +705,6 @@ public interface GooglePubsubEndpointBuilderFactory {
             return this;
         }
         /**
-         * Use Credentials when interacting with PubSub service (no
-         * authentication is required when using emulator).
-         * 
-         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
-         * 
-         * Default: true
-         * Group: common
-         * 
-         * @param authenticate the value to set
-         * @return the dsl builder
-         */
-        default GooglePubsubEndpointBuilder authenticate(boolean authenticate) 
{
-            doSetProperty("authenticate", authenticate);
-            return this;
-        }
-        /**
-         * Use Credentials when interacting with PubSub service (no
-         * authentication is required when using emulator).
-         * 
-         * The option will be converted to a &lt;code&gt;boolean&lt;/code&gt;
-         * type.
-         * 
-         * Default: true
-         * Group: common
-         * 
-         * @param authenticate the value to set
-         * @return the dsl builder
-         */
-        default GooglePubsubEndpointBuilder authenticate(String authenticate) {
-            doSetProperty("authenticate", authenticate);
-            return this;
-        }
-        /**
          * The number of parallel streams consuming from the subscription.
          * 
          * The option is a: &lt;code&gt;java.lang.Integer&lt;/code&gt; type.
@@ -895,6 +794,7 @@ public interface GooglePubsubEndpointBuilderFactory {
          * 
          * The option is a: &lt;code&gt;java.lang.String&lt;/code&gt; type.
          * 
+         * Required: true
          * Group: common
          * 
          * @param serviceAccountKey the value to set
diff --git a/docs/components/modules/ROOT/pages/google-pubsub-component.adoc 
b/docs/components/modules/ROOT/pages/google-pubsub-component.adoc
index 9382c30..52d4a11 100644
--- a/docs/components/modules/ROOT/pages/google-pubsub-component.adoc
+++ b/docs/components/modules/ROOT/pages/google-pubsub-component.adoc
@@ -46,16 +46,15 @@ Destination Name can be either a topic or a subscription 
name.
 == Options
 
 // component options: START
-The Google Pubsub component supports 9 options, which are listed below.
+The Google Pubsub component supports 8 options, which are listed below.
 
 
 
 [width="100%",cols="2,5,^1,2",options="header"]
 |===
 | Name | Description | Default | Type
-| *authenticate* (common) | Use Credentials when interacting with PubSub 
service (no authentication is required when using emulator). | true | boolean
 | *endpoint* (common) | Endpoint to use with local Pub/Sub emulator. |  | 
String
-| *serviceAccountKey* (common) | The Service account key that can be used as 
credentials for the PubSub publisher/subscriber. It can be loaded by default 
from classpath, but you can prefix with classpath:, file:, or http: to load the 
resource from different systems. |  | String
+| *serviceAccountKey* (common) | *Required* The Service account key that can 
be used as credentials for the PubSub publisher/subscriber. It can be loaded by 
default from classpath, but you can prefix with classpath:, file:, or http: to 
load the resource from different systems. |  | String
 | *bridgeErrorHandler* (consumer) | Allows for bridging the consumer to the 
Camel routing Error Handler, which mean any exceptions occurred while the 
consumer is trying to pickup incoming messages, or the likes, will now be 
processed as a message and handled by the routing Error Handler. By default the 
consumer will use the org.apache.camel.spi.ExceptionHandler to deal with 
exceptions, that will be logged at WARN or ERROR level and ignored. | false | 
boolean
 | *lazyStartProducer* (producer) | 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 producer may otherwise fail during 
starting and cause the route to fail being started. By deferring this startup 
to be lazy then the startup failure can be handled during routing messages via 
Camel's routing error handlers. Beware that when the first message is processed 
then creating and [...]
 | *publisherCacheSize* (producer) | Maximum number of producers to cache. This 
could be increased if you have producers for lots of different topics. |  | int
@@ -85,18 +84,17 @@ with the following path and query parameters:
 |===
 
 
-=== Query Parameters (14 parameters):
+=== Query Parameters (13 parameters):
 
 
 [width="100%",cols="2,5,^1,2",options="header"]
 |===
 | Name | Description | Default | Type
 | *ackMode* (common) | AUTO = exchange gets ack'ed/nack'ed on completion. NONE 
= downstream process has to ack/nack explicitly. There are 2 enums and the 
value can be one of: AUTO, NONE | AUTO | AckMode
-| *authenticate* (common) | Use Credentials when interacting with PubSub 
service (no authentication is required when using emulator). | true | boolean
 | *concurrentConsumers* (common) | The number of parallel streams consuming 
from the subscription | 1 | Integer
 | *loggerId* (common) | Logger ID to use when a match to the parent route 
required |  | String
 | *maxMessagesPerPoll* (common) | The max number of messages to receive from 
the server in a single API call | 1 | Integer
-| *serviceAccountKey* (common) | The Service account key that can be used as 
credentials for the PubSub publisher/subscriber. It can be loaded by default 
from classpath, but you can prefix with classpath:, file:, or http: to load the 
resource from different systems. |  | String
+| *serviceAccountKey* (common) | *Required* The Service account key that can 
be used as credentials for the PubSub publisher/subscriber. It can be loaded by 
default from classpath, but you can prefix with classpath:, file:, or http: to 
load the resource from different systems. |  | String
 | *synchronousPull* (common) | Synchronously pull batches of messages | false 
| boolean
 | *bridgeErrorHandler* (consumer) | Allows for bridging the consumer to the 
Camel routing Error Handler, which mean any exceptions occurred while the 
consumer is trying to pickup incoming messages, or the likes, will now be 
processed as a message and handled by the routing Error Handler. By default the 
consumer will use the org.apache.camel.spi.ExceptionHandler to deal with 
exceptions, that will be logged at WARN or ERROR level and ignored. | false | 
boolean
 | *exceptionHandler* (consumer) | To let the consumer use a custom 
ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this 
option is not in use. By default the consumer will deal with exceptions, that 
will be logged at WARN or ERROR level and ignored. |  | ExceptionHandler
@@ -157,7 +155,7 @@ To enable this set set the options messageOrderingEnabled 
to true, and the pubsu
 When producing messages set the message header 
`GooglePubsubConstants.ORDERING_KEY` . This will be set as the PubSub 
orderingKey for the message.
 
 More information in https://cloud.google.com/pubsub/docs/ordering[Ordering 
messages].
-
+ 
 Once exchange has been delivered to PubSub the PubSub Message ID will be 
assigned to
 the header `GooglePubsubConstants.MESSAGE_ID`.
 
@@ -188,9 +186,7 @@ It is up for the route to convert/unmarshall the contents.
 
 == Authentication Configuration
 
-By default this component aquires credentials using 
`GoogleCredentials.getApplicationDefault()`.
-This behavior can be disabled by setting _authenticate_ option to `false`, in 
which case requests to Google API will be made without authentication details. 
This is only desirable when developing against an emulator.
-This behavior can be altered by supplying a path to a service account key file.
+The location of the default credentials file is configurable via the 
serviceAccountKey parameter.
 
 == Rollback and Redelivery
 

Reply via email to