mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-08 14:04:31 +08:00
1.8 KiB
1.8 KiB
Deploy permissions
Deploy permissions allow you to control who can deploy apps to your deployment groups.
Configuration
Enable deployment restrictions
To enable deploy permissions for a deployment group:
- Log in to Livebook Teams
- Navigate to the Deployments panel
- Click Edit of the deployment group where you want to configure deploy permissions
- Click Deploy permissions in the sidebar
- Toggle Restrict deployment access to enable the feature
Once enabled, only explicitly authorized users and organization tokens will be able to deploy apps to this deployment group.
Add user permissions
To authorize individual users for deployment:
- In the Users section, click Add user
- Select the user from your organization members
- Click Authorize users to grant them deployment permissions
Add organization token permissions
Organization tokens are commonly used for CI/CD pipelines and automated deployments. To authorize an organization token:
- In the Org tokens section, click Add org token
- Select the organization token you want to authorize
- Click Authorize org tokens to grant them deployment permissions
Use cases
Allow deployment only via CI/CD pipeline
Set up automated deployments while restricting manual deployments:
- Create an organization token for your CI/CD system
- Enable Restrict deployment access for a deployment group
- Add only the CI/CD organization token to Org tokens
- Remove or limit user-level deployment permissions
Deployment permissions per environment
Use different deployment permission policies across environments:
- Staging deployment group: Allow developers to directly deploy apps from their Livebooks for rapid iteration
- Production deployment group: Restrict deployments only to a CI/CD org token