New ask Hacker News story: Ask HN: API to run Python code, what can go wrong?
Ask HN: API to run Python code, what can go wrong?
2 by nathanganser | 3 comments on Hacker News.
As a little weekend project, I'm trying to build an API to run python code and wondering what might go wrong. Specifically, is there any way of building such a service that is safe from being hacked? My guess is that letting users input code that will be ran is never save, but I'd love some input on this. The API can be tested here: https://ift.tt/5KI0Quj ... and here is the code: https://ift.tt/MUkBizL For context, I'm thinking about building an app that needs to run user-inputted python code, and since I could not find a service that makes this easy, I just built an MVP of it.
2 by nathanganser | 3 comments on Hacker News.
As a little weekend project, I'm trying to build an API to run python code and wondering what might go wrong. Specifically, is there any way of building such a service that is safe from being hacked? My guess is that letting users input code that will be ran is never save, but I'd love some input on this. The API can be tested here: https://ift.tt/5KI0Quj ... and here is the code: https://ift.tt/MUkBizL For context, I'm thinking about building an app that needs to run user-inputted python code, and since I could not find a service that makes this easy, I just built an MVP of it.
Comments
Post a Comment