Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

fix: auth fetch token from default endpoint#1779

Merged
harkamaljot merged 1 commit intomainfrom
default-token-mds
Jun 3, 2025
Merged

fix: auth fetch token from default endpoint#1779
harkamaljot merged 1 commit intomainfrom
default-token-mds

Conversation

@harkamaljot
Copy link
Copy Markdown
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 and sai-sunder-s June 3, 2025 21:53
@harkamaljot harkamaljot enabled auto-merge (squash) June 3, 2025 21:57
@sai-sunder-s
Copy link
Copy Markdown
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants