-
Notifications
You must be signed in to change notification settings - Fork 9
Security
Running a competition requires security because you often will have to handle third-party code when running AI code from other people.
This section is dedicated to security suggestions and how to use secureMode
in dimensions to make it hard for malicious activity to occur.
To get secureMode
working, you will need to be working on a MacOS or Linux platform. Windows is not supported at the moment. There is only one requirement, which is to install Docker. See https://www.docker.com/get-started for how to get Docker setup. Docker is a containerization solution and effectively abstracts the containerized code away from the actual server resources.
If you are running Dimensions within Docker already, make sure to be starting the container by mounting /var/run/docker.sock
to the container. E.g., make sure to add -v /var/run/docker.sock:/var/run/docker.sock
to the arguments when using docker run
. This will allow Dimensions to run "Docker in Docker", allowing for scalable and simple templated backend setups with Docker.
On Google Cloud Compute Engines, if you are deploying from a container image, make sure to edit advanced container options and add a volume mount (of type Directory) and put in /var/run/docker.sock
as the Host Mount
and Host Path
and choose the Read/Write
mode.