pycam icon indicating copy to clipboard operation
pycam copied to clipboard

Python sandbox for public servers

Open sumpfralle opened this issue 9 years ago • 3 comments

The server mode allows execution of arbitrary python code, thus it could be harmful for providers of public PyCAM servers. A kind of sandbox would be helpful. Maybe one of the following projects could be useful:

  • http://pypi.python.org/pypi/apipkg
  • http://pypi.python.org/pypi/RestrictedPython/
  • http://code.google.com/intl/de/appengine/docs/python/runtime.html

sumpfralle avatar Feb 23 '17 23:02 sumpfralle

Are public servers a good idea at all?

njh avatar Feb 24 '17 09:02 njh

Probably not. I just wanted to conserve the thought.

sumpfralle avatar Feb 24 '17 10:02 sumpfralle

There is a PyPy version that offers sandboxing: https://pypy.org/download.html#other-versions https://bitbucket.org/pypy/pypy/downloads/pypy-1.8-sandbox-linux64.tar.bz2

valeriob01 avatar Mar 08 '17 12:03 valeriob01