38 ms·
NPM does require 2FA to publish. I would love a workaround! Isn't it funny that even here on HN, misinformation is constantly being spread?
by floydnoel 1y ago
NPM does require 2FA to publish. I would love a workaround! Isn't it funny that even here on HN, misinformation is constantly being spread?
- cxr 1y agoNPM does not require two-factor authentication. If two-factor authentication is enabled for your account and you wish to disable it, this explains how to do that if allowed by your organization: <https://docs.npmjs.com/configuring-two-factor-authentication#disabling-2fa https://docs.npmjs.com/configuring-two-factor-authentication...>
- bakkoting 1y agoIt doesn't require 2FA in general, but it does for people with publish rights for popular packages, which covers most or all of the recent security incidents. https://github.blog/changelog/2022-11-01-high-impact-package-maintainers-now-require-2fa/ https://github.blog/changelog/2022-11-01-high-impact-package...
- olejorgenb 1y ago> The malware includes a self-propagation mechanism through the NpmModule.updatePackage function. This function queries the NPM registry API to fetch up to 20 packages owned by the maintainer, then force-publishes patches to these packages.
- yawaramin 1y agonpm offers 2FA but it doesn't really advertise that it has a phishing-resistant 2FA (security keys, aka passkeys, aka WebAuthn) available and just happily lets you go ahead and use a very phishable OTP if you want. I place much of the blame for publishers getting phished on npm.