DevBlogs
Read post

Strengthening NuGet Supply Chain Security: Reducing API Key Lifetime

NuGet.org is reducing API key maximum lifetime to 30 days starting August 17, 2026, with all keys created before that date expiring on November 1, 2026. The change is motivated by supply chain attacks where long-lived credentials were stolen and used to publish malicious packages. The recommended alternative is NuGet Trusted Publishing, which uses OIDC to issue short-lived, automatically expiring credentials without requiring stored secrets in CI/CD systems. For those who must continue using API keys, best practices include narrowing package scope, never committing keys to source control, and planning rotation workflows.

    #security#authentication#nuget
Aug 03•4m read time•From devblogs.microsoft.com
Post cover image
Table of contents
Why are we making this change? Copy linkAPI Key Reduction Plan Copy linkRecommended: Move to Trusted Publishing Copy linkIf you continue using API keys Copy linkTake action now Copy link
115 Impressions
DevBlogs's image
DevBlogs

DevBlogs is a curated collection of articles and blog posts from developers and tech enthusiasts wor...

1.1K Followers

•

5.1K Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard