How permissions work
Each drive can have up to 3 permission rules. A permission rule contains:
Permissions are evaluated with OR logic: the first matching rule grants access. Within a single rule, all specified labels must match (AND logic).
Label matching
Workload labels are automatically injected into the workload’s identity token at creation time. These include infrastructure labels (likeblaxel-workspace, blaxel-type, blaxel-name) and any user-defined labels set on the resource’s metadata.
To add user-defined labels to a sandbox, set them in labels when creating the resource:
Create a drive with permissions
Update permissions on an existing drive
Permissions can be modified on a drive that is already in use. Updated permissions apply to new mount requests. Existing mounts are not affected until remounted.permissions to an empty array.
Permission patterns
Restrict to a single team
Only sandboxes withteam: "data-science" can mount the drive:
TypeScript
AND logic (multiple labels in one rule)
The workload must have bothteam: "backend" AND env: "production" to match:
TypeScript
OR logic (multiple rules)
Eitherteam: "backend" OR team: "ml" can access the drive:
TypeScript
Read-only access for some teams
The backend team gets full access, the frontend team can only read:TypeScript
Path scoping
Restrict a workload to a specific subfolder within the drive:TypeScript
/reports when it mounts the drive.
Behavior summary
Agent Drive overview
Create, mount, and manage drives.
Sandboxes overview
Learn about sandbox lifecycle and configuration.
