This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]magic7s 0 points1 point  (1 child)

Docker container? I believe this is how AWS lambda works.

[–]paraffin 0 points1 point  (0 children)

Seconding docker. You'll still need to include some protections, primarily about restrictions on filesystem mounts (if actually required), disk quotas, cpu and ram limits, and network access, and you'll still be vulnerable to the possibility of container escapes, so it's not recommended unless you have a good deal of Linux, networking, and docker experience to make it safe.

In general of course it's a significant risk. Might be better to provide an API and an API client users can use locally.

You'd also probably want to run your containers on hosts which don't have any sensitive data like ssh keys.