Skip to main content

Set it

$BOAT_API_BASE is https://boat.dev/api/v1. Get $ENV_ID from GET /environments. In the API, "network": null removes the policy.

Which policy applies

boat network get <id> shows which one applies: source is sandbox, environment or default.
  • When you set one side on a sandbox, the sandbox gets a policy of its own. It then stops following its environment.
  • To follow the environment again, run boat network set <id> environment.
  • --no-env and safe for third parties do not change the policy. The sandbox still follows its environment.

Roll out a change

A saved change applies to sandboxes that start after it. To move the others, upgrade:
A sandbox that cannot take the policy stays as it is. The answer counts it in failed and gives the cause in failures. Read Errors.

Organization environments

Add --org <org> to the commands, or ?org=<org> in the API.
While the environment sets a policy, a member cannot give a sandbox another policy. boat answers 403 network_policy_managed. The same rule applies to a move to another environment, and to a new sandbox from a saved snapshot. One move is allowed: to an environment of the same organization that sets a policy.
An organization cannot force its members to use one environment. To keep members out of an environment, limit who can use it.