Skip to content

Commit

Permalink
Add link to reference docs for GCP metadata service
Browse files Browse the repository at this point in the history
  • Loading branch information
djc committed Apr 16, 2024
1 parent 8848f66 commit ab8cd5e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/default_service_account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ pub(crate) struct MetadataServiceAccount {
}

impl MetadataServiceAccount {
// https://cloud.google.com/compute/docs/metadata/predefined-metadata-keys
const DEFAULT_PROJECT_ID_GCP_URI: &'static str =
"http://metadata.google.internal/computeMetadata/v1/project/project-id";
const DEFAULT_TOKEN_GCP_URI: &'static str = "http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/token";
Expand Down

0 comments on commit ab8cd5e

Please sign in to comment.