https://wasmer.io/python/python
Run it locally and see that filesystem access and network are completely sandboxed by default! :)
wasmer run python/pythonhttps://wasmer.io/python/python
Run it locally and see that filesystem access and network are completely sandboxed by default! :)
wasmer run python/pythonI know Docker is not 100% watertight, but it’s very unlikely a normal user encounters trojaned Python code that tries to break out from a container.
The run-time penalty for using WebAssembly for Python is pretty severe at the moment, at least what I have tried.
* It's scary enough to be hit one time. It's no fun to have one's all passwords, accounts and keys stolen, and sometimes have files encrypted with a ransom demand on top of that.
* Ideally we'd like to have a secure-by-default world, where the mere act of installing a dependency or running a helper script doesn't compromise your whole system. We're almost there with our phones, we just need to rethink our desktops too.
Of course I don't say you should use containers/sandboxes. It's a tradeoff everyone has to make, but there are many reasons some people (me included) prefer to sandbox everything as much as reasonably possible.
That's kind of the [functional context] approach I take with: https://github.com/matrixApi/encapsule
This is not true for mobile operating systems like Android and iOS where processes cannot know about other processes or access file system.
That's why Linux offers other, more powerful mechanisms for sandboxing such as namespaces, which are the backbone of containers.
500: INTERNAL_SERVER_ERROR
Code: FUNCTION_INVOCATION_FAILED
ID: arn1::tpcjw-1696548167206-a333e98b1ba8Any chain is as strong as its weakest link.
A sandboxed solution is at least as strong as the sandbox.