Skip to content

Commit 09d0f23

Browse files
authoredAug 22, 2024
feat: allow non default service account in DirectPath (#2312)
Copying over from: https://github.com/googleapis/java-bigtable/pull/2012 Bigtable already sets the flag to allow non-default SA in DirectPath on the service side, we also need to set the option on the client side to make this feature work. Related Spanner PR: https://github.com/googleapis/java-spanner/pull/2635.
1 parent d1b0acf commit 09d0f23

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/EnhancedBigtableStubSettings.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,11 @@ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProvi
370370
if (isDirectpathEnabled) {
371371
// Attempts direct access to CBT service over gRPC to improve throughput,
372372
// whether the attempt is allowed is totally controlled by service owner.
373-
grpcTransportProviderBuilder.setAttemptDirectPathXds().setAttemptDirectPath(true);
373+
grpcTransportProviderBuilder
374+
.setAttemptDirectPathXds()
375+
.setAttemptDirectPath(true)
376+
// Allow using non-default service account in DirectPath.
377+
.setAllowNonDefaultServiceAccount(true);
374378
}
375379
return grpcTransportProviderBuilder
376380
.setChannelPoolSettings(

0 commit comments

Comments
 (0)