diff --git a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/EnhancedBigtableStubSettings.java b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/EnhancedBigtableStubSettings.java index cffd9c85df..eb68404bb3 100644 --- a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/EnhancedBigtableStubSettings.java +++ b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/EnhancedBigtableStubSettings.java @@ -329,7 +329,9 @@ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProvi Duration.ofSeconds(10)) // wait this long before considering the connection dead // Attempts direct access to CBT service over gRPC to improve throughput, // whether the attempt is allowed is totally controlled by service owner. - .setAttemptDirectPath(true); + .setAttemptDirectPath(true) + // Allow using non-default service account in DirectPath. + .setAllowNonDefaultServiceAccount(true); } @SuppressWarnings("WeakerAccess")