permission model
A Node.js feature, turned on with --permission, that blocks file system access, child processes, worker threads and native addons unless you allow them with flags such as --allow-fs-read.
In more detail
It limits what a compromised dependency could do inside your process. It is a safety net rather than a full sandbox, so keep running services with least privilege as well.
Related terms
- least privilege — Giving every program and person only the access they need, and nothing more.
- command-line flag — An option typed after a program's name to change how it runs, such as --watch in node --watch server.js.
Taught in
- Runtime Configuration: CLI Flags & Native --env-file — Node.js Internals & Backend Services