runme
runme copied to clipboard
Collecting envs needs improvement
The current env detection is very naive:
- It uses
env > filefor the env snapshot before running the command and the same for the env snapshot after. - It does not work well if a command is interrupted or fails; consider using
trapinstead. - It dumps env on a disk; it would be much better to avoid that. Maybe use some IPC?
It dumps env on a disk; it would be much better to avoid that.
@sourishkrout @mxsdev If we don't know a simple and reliable way to avoid this at the moment, we can at least encrypt what is being dumped. An encryption key can be generated and stored in memory while a request is being processed. This should be fairly easy to implement and it will greatly improve the situation.