Skip to main content
The sandbox is a separate service that runs every plug Collabase did not write. It uses a locked-down process per call and has no route to your database or other internal services. It needs a few kernel features on the host.

What the host needs

  • Docker Compose installs get the sandbox with the installer. The installer loads its AppArmor profile collabase-sandbox on hosts that use AppArmor.
  • The AppArmor rule userns needs AppArmor 4. On older versions the profile cannot be loaded.
  • Hosts without AppArmor need unprivileged user namespaces enabled in the kernel.

If the profile cannot be loaded

The sandbox still starts and reports degraded. Collabase plugs keep working and third-party plugs are off. You have two choices:
  1. Update the host so that AppArmor 4 is available, then run the installer or updater again.
  2. As a fallback, set kernel.apparmor_restrict_unprivileged_userns=0 in /etc/sysctl.d/60-collabase-sandbox.conf and apply it. This opens user namespaces for every process on the host, so prefer the first choice.

The image and the licence check

The sandbox image installs the plugs that come with Collabase while it is built. A plug that depends on other packages, such as the S3 plug, gets them installed without running their install scripts. Each package is checked against the licences Collabase may ship. A plug with a package outside that list stops the build, so such a plug never reaches your instance. Plugs you install later are checked the same way when they are installed or uploaded. The sandbox limits the memory of a plug process to 512 MB. Set SANDBOX_MEMORY_MB on the sandbox, between 64 and 8192, to change it. A run that goes over ends as Out of memory.

Check that it works

On a Docker host run this from the install folder:
The answer says ok when plugs can run and degraded when the isolation is missing.

Docker Swarm

Swarm cannot set the profiles a service needs, so the sandbox runs outside the stack on its own node. Run bash deployment/swarm/sandbox-node.sh on a node after the stack is deployed. It creates the shared secret, loads the profile, pulls the image and starts the container. Run it on more than one node to add capacity, and load the profile on each.

Kubernetes

The Helm chart includes the sandbox. Enable it in the values and make sure the nodes can load the profile. A network policy keeps the sandbox away from the database and other services.
Last modified on November 5, 2026