|
|
|
|
|
by semi-extrinsic
705 days ago
|
|
I love Rye, especially with UV, and we are rolling it out where I work. Question: are there any plans to add sandboxing support to Rye or UV? I realize it is a big ask and that it might not be possible on all platforms. My dream scenario is that I can define a section in pyproject.toml that goes like [sandbox]
allowed_urls = [...]
allowed_dirs = [".",...]
and then "rye run" wraps the executed code in a sandbox which forbids the code to access anything outside those two whitelists. This would make me sleep so much better at night, as it solves 99% of my supply chain attack fears. And it's lightweight enough from the user side that it will actually be used. |
|