Skip to content

Commit

Permalink
feat: allow non default service account in DirectPath (#2312)
Browse files Browse the repository at this point in the history
Copying over from: https://togithub.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://togithub.com/googleapis/java-spanner/pull/2635.
  • Loading branch information
meeral-k authored Aug 22, 2024
1 parent d1b0acf commit 09d0f23
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,11 @@ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProvi
if (isDirectpathEnabled) {
// Attempts direct access to CBT service over gRPC to improve throughput,
// whether the attempt is allowed is totally controlled by service owner.
grpcTransportProviderBuilder.setAttemptDirectPathXds().setAttemptDirectPath(true);
grpcTransportProviderBuilder
.setAttemptDirectPathXds()
.setAttemptDirectPath(true)
// Allow using non-default service account in DirectPath.
.setAllowNonDefaultServiceAccount(true);
}
return grpcTransportProviderBuilder
.setChannelPoolSettings(
Expand Down

0 comments on commit 09d0f23

Please sign in to comment.