3 ms·
This describes what I am currently missing the most in the node ecosystem. Deno is a good approach but it will take some time to see how adoption goes. I would
by tmerse 6y ago
This describes what I am currently missing the most in the node ecosystem. Deno is a good approach but it will take some time to see how adoption goes.
I would prefer some fine grained capability-based solution. Approaches similar to this have often been articulated [1].
Many of my concerns are best described here [2]. There even was an article from someone who would have been able to overtake many high profile npm accounts with very little effort some time ago (cannot find it anymore).
With tighter snyk integration into npm and the acquisition of npm through ms one could argue that security bar may have risen/will rise but I (speaking as a js/ts dev) am still sceptical.
I haven't really looked to deep into stuff like selinux/apparmor/firejail [3] maybe someone can give an opinion on this. I'd wish for something that would be codeified on package level to make review easier and give me some peace of mind.
For now my plan is to dockerize most of my projects and it's dependencies. It should give a little more protection against malicious postinstall scripts.
Unfortunately, I depend more and more on npm modules outside of projects (coc-vim comes to mind/for others it may be vscode etc.).
[1] https://medium.com/hackernoon/npm-package-permissions-an-idea-441a02902d9b https://medium.com/hackernoon/npm-package-permissions-an-ide... (2018)
[2] https://medium.com/hackernoon/im-harvesting-credit-card-numbers-and-passwords-from-your-site-here-s-how-9a8cb347c5b5 https://medium.com/hackernoon/im-harvesting-credit-card-numb... (2018)
[3] https://github.com/netblue30/firejail/blob/master/README.md https://github.com/netblue30/firejail/blob/master/README.md