Right now all action code that is run, has access to the host's node environment -- which is the developer's machine.
This includes the filesystem, running processes, etc. This will not be representative of a true serverless system which we are simulating.
Explore code isolation via the node vm module: https://nodejs.org/docs/latest-v18.x/api/vm.html
Take note that if the code to run uses require we will need to pass in the require loader, which may or may not be secure. In general this should not be a problem since we webpack the code.
Right now all action code that is run, has access to the host's node environment -- which is the developer's machine. This includes the filesystem, running processes, etc. This will not be representative of a true serverless system which we are simulating.
Explore code isolation via the node
vm
module: https://nodejs.org/docs/latest-v18.x/api/vm.html Take note that if the code to run usesrequire
we will need to pass in therequire
loader, which may or may not be secure. In general this should not be a problem since we webpack the code.Related: