Skip to content

[BUG] IMDS token endpoint timeout was changed from 3s to 1s without consulting the IMDS IdentityProvider plugin owners #31452

Closed
@isaacbanner

Description

@isaacbanner

Library name and version

Azure.Identity 1.7.0

Describe the bug

At some point over the last two years, the IMDS token acquisition flow was updated to the current model used by ImdsManagedIdentitySource and, as a part of this new model, the token acquisition timeout was updated to 1 second, as configured in DefaultAzureCredentialFactory (see InitialImdsConnectionTimeout on line 105).

This is in direct contrast to the three-second timeout that the Managed Identity team previously updated this sdk to observe back in 2020 (see AzureVmImdsProbeTimeoutInSeconds). As far as we're aware, the MI/IMDS team were not involved in the conversation to change this timeout and now we're receiving tickets from partners complaining that these calls are timing out and failing to acquire a token.

Expected behavior

The timeout for calls to the IMDS token endpoint should be three seconds.

Actual behavior

The timeout for calls to the IMDS token is one second.

Reproduction Steps

N/A

Environment

Azure VM/VMSS

Metadata

Metadata

Assignees

Labels

Azure.IdentityClientThis issue is related to a non-management packagecustomer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions