| ▲ | andrewaylett an hour ago | |
Running arbitrary untrusted code safely is pretty easy nowadays, so long as the code is written in Javascript and you want to run it in a browser. It's only a little harder if the code is written in another language but targets WASM and browser APIs, or if you want to run your WASM inside of NodeJS, and there's even good support for running Python in a browser or Node. Once you get away from running in a JS environment or away from code that's written with the intention of running in a WASM sandbox, if you don't want to have to modify the code for your environment then you're going to start having problems. This looks like a good step for anyone wanting to run arbitrary Python outside of a browser environment. | ||
| ▲ | simonw 20 minutes ago | parent [-] | |
I've actually found it pretty hard in a browser as well - if you want to run untrusted code without it breaking your app or stealing cookies etc. I've been doing a bunch of work recently with iframe sandbox combined with CSP which appears to be a robust way to do this. | ||