Skip to main content
An environment is the template a sandbox starts from. It sets the image, the resource limits, what the sandbox can reach on the network, and who may run code in it. Admins with Manage Sandboxes manage environments under Settings → Sandbox → Environments. The Environments tab listing each environment's image, network, resources and grants BOW creates one environment for you, named Default: Python with common data packages, no network, and marked as the default. It is granted to no one until you choose who may use it.

Create an environment

Select New environment. The New environment form A change to an environment applies to sandboxes created after it. A sandbox that already exists keeps the limits and network policy it was created with; when the image or the setup script changed, it is marked Old setup in the list of sandboxes until it is deleted and created again.

Network policy

Under every policy, internal hosts and private addresses stay out of reach unless the environment lists them under Internal networks. See Network and security.
Start with No network or Allowed domains only. Code in a sandbox with Full internet can send whatever the agent passed into it to any site.

Ask before a run

The question appears in the chat with the code that would run, and Allow and Deny. A run nobody answers within four minutes does not happen. Deleting a sandbox always asks first, whatever this is set to.

Scripts

Use the setup script for what every sandbox needs, such as pip install -r /data/requirements.txt. Each script’s output is in the sandbox’s timeline. If the setup or start script fails three times in a row, BOW refuses new sandboxes from that environment and shows the last error on its row. Change a script or the image and save, and it is tried again.

Volumes

Select Mount a volume to mount a compute’s volume in every sandbox of the environment. For each mount you choose the Volume, the Path in the sandbox, and:
  • Read-only: code can read the volume but not change it.
  • Who sees what is written: Each report gets its own folder, so a sandbox sees only what its own report wrote, or Shared by every sandbox.
With Shared by every sandbox, every sandbox of the environment can read and change what the others wrote, across reports and people. Use it only for data everyone who may use the environment is allowed to see.
Sandboxes of an environment with volumes run only on a compute that has all of them.

Who may use it

Under Who may use it, pick the roles, groups and people who can run code in the environment. A person needs both the Use Agent Sandbox permission and a grant on at least one enabled environment before an agent is offered a sandbox for them. Grant an environment that has internet access, internal networks or shared volumes only to the people who may reach those systems and see that data.

Which environment a report gets

A report’s sandbox is created from, in order:
  1. The environment the agent chose for the run, if the person may use it.
  2. The Default environment set under Settings → Sandbox → Settings.
  3. The environment marked Default environment.
  4. The only environment the person may use, when there is exactly one.
Only environments the person has been granted, and that are enabled, are considered. If none of these applies, the agent is told which environments it can choose from. Once a report has a sandbox, it stays on that environment. To move a report to another environment, delete its sandbox; the next run creates a new one.

Delete an environment

Deleting an environment stops reports from starting sandboxes from it. If sandboxes created from it still exist, you can delete them together with the environment. Anything in them is lost, except the files already saved to their reports.