You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 12, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on May 12, 2026. It is now read-only.
Simplify call to retrieve the default service account from MDS for ComputeEngineCredentials #1841
Follows the changes in #1839 (PR that reverts the call to retrieve the default service account when refreshing the access token).
There was a suggestion in b/458269866 to directly call http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/email to get the princpcal instead of http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/?recursive=true and parsing for the email.
From testing locally, this looks to work as intended and returns a string value instead of json.
Follows the changes in #1839 (PR that reverts the call to retrieve the default service account when refreshing the access token).
There was a suggestion in b/458269866 to directly call
http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/emailto get the princpcal instead ofhttp://metadata.google.internal/computeMetadata/v1/instance/service-accounts/?recursive=trueand parsing for the email.From testing locally, this looks to work as intended and returns a string value instead of json.