3 ms·
> I want to explicitly give permission to a library, not to the process as a whole. (Since I don't want some errant library deep in my dependency tree to nuke m
by zozbot234 5y ago
> I want to explicitly give permission to a library, not to the process as a whole. (Since I don't want some errant library deep in my dependency tree to nuke my production databases.)
Doesn't Java have a SecurityManager feature that can do this? Perhaps we need a JS equivalent.
- jameshart 5y agoThe trouble with security manager is it’s only as good as it’s widespread support. If it worked, and was widely used, for example, nobody would have had to worry about the possibility of their logging library downloading code from an LDAP server and executing it.
- gorjusborg 5y agoAlso, the security manager is getting removed: https://openjdk.java.net/jeps/411 https://openjdk.java.net/jeps/411
- vbezhenar 5y agoSecurityManager was a bad idea. It might be useful to prevent accidental bound trespassing. But it turned out too flaky to serve as a security foundation. Basically nobody uses it for security.