Re:Is serverless insecure? Let's find out
by dmlittle on Saturday August 18, 2018 @07:15PM
(#17791392)
Not a security issue but you're appending the PATH with LAMBDA_TASK_ROOT in the handler which is causing it to be appended over and over again with each execution. You can modify the PATH outside of the handler function so it's only done once.
[ Parent
| on HN ]
Re:Is serverless insecure? Let's find out
by gthole on Saturday August 18, 2018 @08:41PM
(#17791781)
More code-review-as-feedback:
It's also probably wise to "return" the "context.done" callbacks in the try/catch so it doesn't double-callback, or otherwise get rid of that last TODO "context.done" call.