Skip to content

Fix custom IMDS endpoint path construction - #1060

Open
Gladwin Johnson (gladjohn) with Copilot wants to merge 2 commits into
devfrom
copilot/bugfix-azure-pod-identity-usage
Open

Fix custom IMDS endpoint path construction#1060
Gladwin Johnson (gladjohn) with Copilot wants to merge 2 commits into
devfrom
copilot/bugfix-azure-pod-identity-usage

Conversation

Copilot AI commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

AZURE_POD_IDENTITY_AUTHORITY_HOST produced IMDS URLs containing //metadata/..., causing resource-not-found responses.

  • Endpoint construction

    • Append the already-prefixed token path directly:
      builder.append(IMDS_TOKEN_PATH);
  • Regression coverage

    • Assert custom authority hosts produce /metadata/identity/oauth2/token without a double slash.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

Co-authored-by: gladjohn <90415114+gladjohn@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix usage of AZURE_POD_IDENTITY_AUTHORITY_HOST environment variable Fix custom IMDS endpoint path construction Aug 16, 2026
@gladjohn
Gladwin Johnson (gladjohn) marked this pull request as ready for review August 16, 2026 02:08
@gladjohn
Gladwin Johnson (gladjohn) requested a review from a team as a code owner August 16, 2026 02:08
@gladjohn

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] AZURE_POD_IDENTITY_AUTHORITY_HOST env not used correctly

2 participants