▲ | junon 4 days ago | ||||||||||||||||||||||||||||||||||
Being able to sign releases would help, too. I would happily have that enabled since I'm always publishing from one place. | |||||||||||||||||||||||||||||||||||
▲ | Yoric 4 days ago | parent | next [-] | ||||||||||||||||||||||||||||||||||
Wouldn't they have been able to change your key if they had compromised your entire npm account? Also, junon.support++ – big thanks for being clear about all this. | |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
▲ | OptionOfT 4 days ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||
Provenance can be added to NPM https://docs.npmjs.com/generating-provenance-statements So if the hacker did an npm publish from local it would show up. | |||||||||||||||||||||||||||||||||||
▲ | josephg 3 days ago | parent | prev [-] | ||||||||||||||||||||||||||||||||||
Yeah; I wish provenance was more widely used. I think about this a lot for mobile apps. If you take an opensource iOS app like signal, you can read the source code on github. But there's actually no guarantee that the code on github corresponds in any way to the app I download from the app store. With nodejs packages, I can open up node_modules and read the code. But packages get a chance to run arbitrary code on your computer after installation. By the time you can read the source code, it may be too late. |