aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/security/credentials
diff options
context:
space:
mode:
authorGravatar Chris Trimble <ctrimble@google.com>2017-01-11 18:05:08 -0800
committerGravatar Chris Trimble <trimbo@google.com>2017-04-11 09:47:19 -0700
commit108a109c02ae38d2253673edde592b17c54fb49c (patch)
treea74375160d1ef693badcddd66da8cf8169eef2c5 /src/core/lib/security/credentials
parent498e2b350aec3d358b3ec505fa800194778cd8e4 (diff)
Google Compute Metadata hostname fix
From within containers (or possibly other scenarios), the metadata hostname might not resolve on GCP. Setting this to the full path guarantees it will resolve.
Diffstat (limited to 'src/core/lib/security/credentials')
-rw-r--r--src/core/lib/security/credentials/credentials.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lib/security/credentials/credentials.h b/src/core/lib/security/credentials/credentials.h
index 510b79552a..89b8e3c0b3 100644
--- a/src/core/lib/security/credentials/credentials.h
+++ b/src/core/lib/security/credentials/credentials.h
@@ -71,7 +71,7 @@ typedef enum {
#define GRPC_SECURE_TOKEN_REFRESH_THRESHOLD_SECS 60
-#define GRPC_COMPUTE_ENGINE_METADATA_HOST "metadata"
+#define GRPC_COMPUTE_ENGINE_METADATA_HOST "metadata.google.internal"
#define GRPC_COMPUTE_ENGINE_METADATA_TOKEN_PATH \
"/computeMetadata/v1/instance/service-accounts/default/token"