Skip to main content
Start with the Runloop Quickstart to use the examples below.
Network Policies can be applied to Blueprints in two ways:
  1. Build-time policy: Restricts network access during the blueprint build process
  2. Runtime policy: Applies to all Devboxes created from the blueprint

Build-time Network Policy

Apply a network policy during the blueprint build to restrict what the build process can access. This is useful when your build commands need to download packages from specific registries.
The build-time network_policy_id only affects the build process. It does not affect Devboxes created from the blueprint.

Runtime Network Policy for Devboxes

To apply a network policy to all Devboxes created from the blueprint, set network_policy_id in launch_parameters:

Using Both Build and Runtime Policies

You can use different policies for build and runtime:
Devboxes can override the Blueprint’s runtime network policy by specifying a different network_policy_id at creation time.

Next Steps