Skip to content

Commit 2afdbbc

Browse files
committed
comment on why we use MTLS endpoint with S2A.
1 parent 7e36d1a commit 2afdbbc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gax-java/gax-grpc/src/main/java/com/google/api/gax/grpc/InstantiatingGrpcChannelProvider.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,7 @@ private ManagedChannel createSingleChannel() throws IOException {
690690
channelCredentials =
691691
CompositeChannelCredentials.create(channelCredentials, mtlsS2ACallCredentials);
692692
}
693+
// Connect to the MTLS endpoint when using S2A because S2A is used to perform an MTLS handshake.
693694
builder = Grpc.newChannelBuilder(mtlsEndpoint, channelCredentials);
694695
} else {
695696
// Use default if we cannot initialize channel credentials via DCA or S2A.

0 commit comments

Comments
 (0)