Shorter validity of API keys for package publication is intended to strengthen NuGet's security. It affects both existing and new keys.
NuGet API key expiration 2026: Microsoft caps new NuGet.org API keys at 30 days starting August 17, forcing all existing keys ...
Microsoft will limit new NuGet API keys to 30 days from August 17, 2026, as it strengthens software supply-chain security.