|
|
|
|
|
by kevinkassimo
2536 days ago
|
|
You turn all permissions on if you are actually using it as if it is Node for writing servers. But in the case when you are using a (potentially untrusted) code snippet to perform certain operations (like encode/decode base64 values), you do might want a sandbox.
(For the case of Node-like usage, we actually also have a basic implementation of whitelisted directories/files for certain permissions, though not perfect atm) We have also discussed about possibilities of implementing an in-memory file system. (Maybe we will also bring sessionStorage to Deno) Flags per module is slightly trickier, while whitelisting of certain feature is trivial to implement. Package signing is indeed a topic that Deno contributors need to discuss further and possibly finding a solution. |
|
I actually suggested a more granular, per-module approach to this during the Node Forward and IO.js debacle years ago: https://github.com/node-forward/discussions/issues/14
At the time it was deemed to difficult to implement in Node.js after the fact, which makes sense of course. But I'm disappointed that Deno didn't go for a more bolder, more secure approach. The current system seems pretty pointless.