Skip to content

Commit 2958fb4

Browse files
committed
document mtls mds.
1 parent 1ff7a92 commit 2958fb4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

+4-2
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,12 @@ public final class InstantiatingGrpcChannelProvider implements TransportChannelP
104104
static final String DIRECT_PATH_ENV_ENABLE_XDS = "GOOGLE_CLOUD_ENABLE_DIRECT_PATH_XDS";
105105

106106
// The public portion of the mTLS MDS root certificate is stored for performing
107-
// cert verification when establishing an mTLS connection with the MDS.
107+
// cert verification when establishing an mTLS connection with the MDS. See
108+
// https://cloud.google.com/compute/docs/metadata/overview#https-mds-root-certs
108109
private static final String MTLS_MDS_ROOT = "/run/google-mds-mtls/root.crt";
109110
// The mTLS MDS credentials are formatted as the concatenation of a PEM-encoded certificate chain
110-
// followed by a PEM-encoded private key.
111+
// followed by a PEM-encoded private key. See
112+
// https://cloud.google.com/compute/docs/metadata/overview#https-mds-client-certs
111113
private static final String MTLS_MDS_CERT_CHAIN_AND_KEY = "/run/google-mds-mtls/client.key";
112114

113115
static final long DIRECT_PATH_KEEP_ALIVE_TIME_SECONDS = 3600;

0 commit comments

Comments
 (0)