Open
Description
Node.js Version
v22.8.0
NPM Version
10.8.2
Operating System
macos
Subsystem
Other
Description
Follow up of https://x.com/_rafaelgss/status/1879706390966804841
Would the permission API allow me to fine tune which imports are allowed in a nodejs process?
I want to run code that would only be allowed to import a certain list of npm packages but not read/import anything else from the file system.
For instance, I would allow arbitrary code to run and import lodash but I don't want it to be able to import the code I use to spawn the child process running the arbitrary code.
Minimal Reproduction
No response
Output
No response
Before You Submit
- I have looked for issues that already exist before submitting this
- My issue follows the guidelines in the README file, and follows the 'How to ask a good question' guide at https://stackoverflow.com/help/how-to-ask