API
< Back to all clusters
[TECHNOLOGY] · United States · 2 sources

started · updated

Microsoft limits NuGet API keys to 30 days, expires older keys in November

Microsoft announced that, starting 17 August 2026, newly created NuGet.org API keys will be limited to a maximum of 30 days and the platform will no longer allow the 365‑day lifetime option. All API keys created before that date will be automatically invalidated on 1 November 2026. The change is intended to curb supply‑chain attacks that exploit long‑lived publishing credentials, a risk highlighted by the recent NX Console npm package compromise in which a stolen key enabled a malicious release that was activated 6,000 times within 36 minutes.

To replace static keys, Microsoft is urging publishers to adopt NuGet Trusted Publishing, which uses OpenID Connect identity tokens and policy checks instead of long‑lived secrets. The new flow is supported by GitHub Actions and GitLab, allowing CI/CD pipelines to obtain short‑lived tokens for package publishing. Microsoft said the 30‑day limit may be reduced further in the future as part of its broader effort to strengthen software‑supply‑chain security.

Entities

Microsoft Corporation · NX Console · NuGet Trusted Publishing · NuGet.org · OpenID Connect