News for hackers. Stuff that matters.
Re:Ask HN: API to run Python code, what can go wrong? by karanbhangui on Saturday March 19, 2022 @10:10PM (#30739394)
You want to use some sort of sandbox or VM for this. Firecracker might fit your usecase: https://firecracker-microvm.github.io/
Re:Ask HN: API to run Python code, what can go wrong? by nathanganser on Saturday March 19, 2022 @10:13PM (#30739404)
Thanks for sharing! I'll dig into this! Seems perfect :)
Re:Ask HN: API to run Python code, what can go wrong? by karanbhangui on Saturday March 19, 2022 @10:14PM (#30739408)
no problem! check out this post: https://fly.io/blog/sandboxing-and-workload-isolation/ (fly.io uses firecracker)