News for hackers. Stuff that matters.
Re:How to allow users to execute code on my SaaS product ser... by usgroup on Saturday July 30, 2022 @08:13AM (#32286187)
I ran a little app that required arbitrary latex execution and I think a similar set up would apply:

1. Run code in docker container.

2. Within container run code as unprivileged user.

3. SELinux harden container.

4. Don’t run container as admin if you don’t have to.

5 Specify CPU and memory allowance per container. Run container for make T time.

6. Use a queue to govern how containers are spun up.

7. Don’t reuse containers.

8. Dependent on language, configure compiler/interpreter to disallow risky features.

There are no comments on this comment yet.