@@ -106,11 +106,11 @@ public final class InstantiatingGrpcChannelProvider implements TransportChannelP
106
106
// The public portion of the mTLS MDS root certificate is stored for performing
107
107
// cert verification when establishing an mTLS connection with the MDS. See
108
108
// https://cloud.google.com/compute/docs/metadata/overview#https-mds-root-certs
109
- private static final String MTLS_MDS_ROOT = "/run/google-mds-mtls/root.crt" ;
109
+ private static final String MTLS_MDS_ROOT_PATH = "/run/google-mds-mtls/root.crt" ;
110
110
// The mTLS MDS credentials are formatted as the concatenation of a PEM-encoded certificate chain
111
111
// followed by a PEM-encoded private key. See
112
112
// https://cloud.google.com/compute/docs/metadata/overview#https-mds-client-certs
113
- private static final String MTLS_MDS_CERT_CHAIN_AND_KEY = "/run/google-mds-mtls/client.key" ;
113
+ private static final String MTLS_MDS_CERT_CHAIN_AND_KEY_PATH = "/run/google-mds-mtls/client.key" ;
114
114
115
115
static final long DIRECT_PATH_KEEP_ALIVE_TIME_SECONDS = 3600 ;
116
116
static final long DIRECT_PATH_KEEP_ALIVE_TIMEOUT_SECONDS = 20 ;
@@ -502,8 +502,8 @@ ChannelCredentials createS2ASecuredChannelCredentials() {
502
502
// Currently, MTLS to MDS is only available on GCE. See:
503
503
// https://cloud.google.com/compute/docs/metadata/overview#https-mds
504
504
// Try to load MTLS-MDS creds.
505
- File rootFile = new File (MTLS_MDS_ROOT );
506
- File certKeyFile = new File (MTLS_MDS_CERT_CHAIN_AND_KEY );
505
+ File rootFile = new File (MTLS_MDS_ROOT_PATH );
506
+ File certKeyFile = new File (MTLS_MDS_CERT_CHAIN_AND_KEY_PATH );
507
507
if (rootFile .isFile () && certKeyFile .isFile ()) {
508
508
// Try to connect to S2A using mTLS.
509
509
ChannelCredentials mtlsToS2AChannelCredentials = null ;
0 commit comments