impress
impress copied to clipboard
Extend sandbox for configuration with `db`, `domain` and maybe `bus` namespaces and limit `process` API access
Describe the problem
https://github.com/metarhia/impress/blob/d31792cad01e2bf213b7fcf00bf57bbc2ae237e3/lib/worker.js#L31-L32
We have only process
injected into config sandbox
- we need to limit process API access only to process.env, because we don't really need other process API for config
- we may need other namespaces to be available for Logger configuration to inject writable destinations from application
Describe the solution
- Limit process API access to just env
- Extend context within the application sandbox or some particular namespaces
@tshemsedinov please edit
Alternatives
No response
Additional context
No response