Skip to content

Improve kubelogin Latest‑Version Retrieval to Handle GitHub API Rate Limits #33541

@AbhinavKU

Description

@AbhinavKU

Summary
kubelogin version retrieval in the Azure CLI is failing when GitHub’s public API rate limit (60 requests per IP) is reached. When this happens, the installation failed instead of trying alternative stable endpoints.

Requested Enhancement
Add fallback logic so that if the public GitHub API rate limit is hit and kubelogin version retrieval fails due to rate limiting or other errors, the it should also try the alternative endpoints.

Current GitHub latest release API : https://api.github.com/repos/Azure/kubelogin/releases/latest
Fallback Direct version file download: https://github.com/Azure/kubelogin/releases/latest/download/kubelogin-version.txt

curl -fsSL https://github.com/Azure/kubelogin/releases/latest/download/kubelogin-version.txt

Reference

Why This Matters

  • GitHub’s unauthenticated API limit of 60 requests per IP is frequently hit in CI/CD environments.
  • This causes kubelogin acquisition to fail even though alternative endpoints are available.
  • Adding fallback URLs will make Azure CLI authentication flows more reliable and resilient.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Service AttentionThis issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions