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.
pull/9328/head
Chris Trimble 8 years ago committed by Chris Trimble
parent 498e2b350a
commit 108a109c02
  1. 2
      src/core/lib/security/credentials/credentials.h

@ -71,7 +71,7 @@ typedef enum {
#define GRPC_SECURE_TOKEN_REFRESH_THRESHOLD_SECS 60 #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 \ #define GRPC_COMPUTE_ENGINE_METADATA_TOKEN_PATH \
"/computeMetadata/v1/instance/service-accounts/default/token" "/computeMetadata/v1/instance/service-accounts/default/token"

Loading…
Cancel
Save