Enable sandboxing by default #3

Closed
opened 2024-07-04 18:52:45 +00:00 by iexos · 0 comments
Owner

Grist python formula execution seems to be pretty permissive and doesn't seem to be contained at all. This could be problematic if people share documents in anonymous edit mode. I suggest we should sandbox by default.

See here: https://support.getgrist.com/self-managed/#how-do-i-sandbox-documents

There are two sandboxing options with GRIST_SANDBOX_FLAVOR:

  • gvisor should be faster, but it didn't work out of the box for me
  • pyodite is slower, but works for me well

I suggest enabling pyodite by default as it should work everywhere. It may be slow, but at least doesn't expose unwary operators to security risks. Any thoughts?

Grist python formula execution seems to be pretty permissive and doesn't seem to be contained at all. This could be problematic if people share documents in anonymous edit mode. I suggest we should sandbox by default. See here: https://support.getgrist.com/self-managed/#how-do-i-sandbox-documents There are two sandboxing options with `GRIST_SANDBOX_FLAVOR`: * `gvisor` should be faster, but it didn't work out of the box for me * `pyodite` is slower, but works for me well I suggest enabling `pyodite` by default as it should work everywhere. It may be slow, but at least doesn't expose unwary operators to security risks. Any thoughts?
iexos closed this issue 2024-07-15 15:38:48 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: coop-cloud/grist#3
No description provided.