You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Self-approval**: By default, users cannot approve their own changes. [Enable self-approval](/change-database/settings#self-approval) only if your process allows it
80
-
-**Rollout Policy**: Define whether approved changes deploy automatically or require manual trigger via [rollout policy](/change-database/environment-policy/rollout-policy/)
80
+
-**Rollout Policy**: Configure rollout requirements and permissions via [rollout policy](/change-database/environment-policy/rollout-policy/), including:
81
+
- Whether issue approval is required before rollout
82
+
- How plan checks should be enforced (block on errors only, errors and warnings, or allow rollout regardless)
83
+
- Whether changes deploy automatically or require manual trigger
Copy file name to clipboardExpand all lines: mintlify/change-database/environment-policy/rollout-policy.mdx
+29-4Lines changed: 29 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,27 +9,52 @@ title: Rollout Permissions
9
9
horizontal
10
10
/>
11
11
12
-
Configure who can deploy database changes in your environment through rollout permissions. You can choose between role-based deployment by authorized users or automatic deployment when all checks pass.
12
+
Configure who can deploy database changes and what conditions must be met before rollout can proceed in each environment.
13
13
14
14
## Role-based rollout
15
15
16
16
### Default roles with permissions
17
17
18
18
Users with the `bb.taskRuns.create` permission can perform rollouts. The following roles have this permission by default:
19
+
19
20
- Workspace Admin
20
-
- Workspace DBA
21
+
- Workspace DBA
21
22
- Project Releaser
22
23
23
24
### Environment-specific roles
24
25
25
26
If you want to use different roles to perform rollouts in different environments, you can specify environment-specific roles in the Environment policy settings. This allows you to control who can deploy changes to specific environments, such as having different teams responsible for staging versus production deployments.
26
27
28
+
## Configurable rollout requirements
29
+
30
+
Configure what conditions must be met before changes can be rolled out in each environment:
31
+
32
+
### Require issue approval
33
+
34
+
Ensures all changes are reviewed and approved before deployment to production environments. When enabled, issues must receive approval before rollout can proceed.
35
+
36
+
**Default**: Enabled
37
+
38
+
### Plan check enforcement
39
+
40
+
Controls how rollout behaves based on plan check results, including SQL Review policy violations and other validations:
41
+
42
+
-**Block on errors only** (default): Rollout is blocked if checks return errors, but warnings still allow rollout
43
+
-**Block on errors and warnings**: Rollout is blocked if checks return either errors or warnings
44
+
-**Allow rollout regardless**: Rollout can proceed even if checks return errors or warnings
45
+
46
+
**Default**: Block on errors only
47
+
48
+
<Note>
49
+
Plan checks include [SQL Review policy](/sql-review/review-policy) violations and other automated validations configured for your environment.
50
+
</Note>
27
51
28
52
## Automatic rollout
29
53
30
-
Enable automatic deployment when all checks pass by selecting the `automatic` option. Failed checks will block automatic rollout:
54
+
Enable automatic deployment when all checks pass by selecting the `automatic` option. This will automatically deploy changes when:
If there are any warnings or errors, as long as you check **Rollout anyway**, you can still schedule the time.
36
+
If there are any warnings or errors, your ability to proceed depends on the [Plan Check Enforcement](/change-database/environment-policy/rollout-policy#plan-check-enforcement) settings configured for the environment:
37
+
38
+
-**Block on errors only**: You can proceed if there are only warnings
39
+
-**Block on errors and warnings**: You must resolve all errors and warnings before scheduling
40
+
-**Allow rollout regardless**: You can proceed even with errors or warnings
0 commit comments