Skip to content

Conversation

harkamaljot
Copy link
Contributor

@harkamaljot harkamaljot commented Jun 3, 2025

Fetch the token using "default" service account email. For other purposes, the call is still available for customers. As sometimes if a customer has overridden the principal to something else then this call fails. Therefore, to avoid such cases fetching the token using "default" endpoint. The reason this change works is because mds is associated with only 1 service account, so we do not need to provide an email address for fetching the token.

@harkamaljot harkamaljot requested review from a team as code owners June 3, 2025 21:53
@harkamaljot harkamaljot requested a review from sai-sunder-s June 3, 2025 21:56
@harkamaljot harkamaljot enabled auto-merge (squash) June 3, 2025 21:57
@sai-sunder-s
Copy link
Contributor

Can you push this change to gce vm which has a non-default SA attached to it and verify the change works?

@harkamaljot harkamaljot disabled auto-merge June 3, 2025 22:21
@harkamaljot harkamaljot merged commit 88891cc into main Jun 3, 2025
16 checks passed
@harkamaljot harkamaljot deleted the default-token-mds branch June 3, 2025 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants