Re:Is serverless insecure? Let's find out
by kyberias on Sunday August 19, 2018 @08:48AM
(#17794086)
How can a lambda be a shell? I thought they were meant to be safe functions for compute.
[ Parent
| on HN ]
Re:Is serverless insecure? Let's find out
by mcintyre1994 on Sunday August 19, 2018 @09:50AM
(#17794299)
They are just functions - but Node lets you run external scripts. The relevant bit of source (you can view it all with cat index.js) is:
``` const result = childProcess.execSync(event.body.command).toString(); console.log(result); var response = {result: result}; context.done(null, response); ```
So it's not really a shell itself, but every time you send a command on the website it runs it, returns you the response, and the website adds that response to its shell GUI.
Re:Is serverless insecure? Let's find out
by o_____________o on Sunday August 19, 2018 @09:49AM
(#17794297)
Probably just running exec(input) in whatever language the lambda is in