impress icon indicating copy to clipboard operation
impress copied to clipboard

Extend sandbox for configuration with `db`, `domain` and maybe `bus` namespaces and limit `process` API access

Open georgolden opened this issue 1 year ago • 0 comments

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

  1. Limit process API access to just env
  2. Extend context within the application sandbox or some particular namespaces

@tshemsedinov please edit

Alternatives

No response

Additional context

No response

georgolden avatar Aug 11 '22 17:08 georgolden