In Settings > Risk Center, you can define different risk levels for each operation types (DML, DDL, Create Database, Request Query, Request Export) with custom rules.
Once an operation matches the risk conditions, it will be assigned to the corresponding risk level you’ve defined. If an operation matches more than one risk levels, the highest level will be used.
Custom Approval is mostly used by UI workflow. If you use GitOps workflow, we recommend you to configure approval in the PR/MR process.
You can configure different custom approval flows for each operation types and risk levels.
SQL review returns the associated risk level for the checked SQL statement. Bytebase GitHub action can also surface the risk level under a PR.
Click Add rule to create a new risk rule.
Name the rule so that you may know what it cares about. Select the operation type of rule. The Risk can be defined as High, Moderate or Low.
Configure the condition of the rule. You may use a combination of conditions and condition groups.
A template is a system preset example of useful conditions that might be frequently used.
Click View to view the detailed condition template. And click Load to load the template into your rule.
In Settings > Risk Center, you can define different risk levels for each operation types (DML, DDL, Create Database, Request Query, Request Export) with custom rules.
Once an operation matches the risk conditions, it will be assigned to the corresponding risk level you’ve defined. If an operation matches more than one risk levels, the highest level will be used.
Custom Approval is mostly used by UI workflow. If you use GitOps workflow, we recommend you to configure approval in the PR/MR process.
You can configure different custom approval flows for each operation types and risk levels.
SQL review returns the associated risk level for the checked SQL statement. Bytebase GitHub action can also surface the risk level under a PR.
Click Add rule to create a new risk rule.
Name the rule so that you may know what it cares about. Select the operation type of rule. The Risk can be defined as High, Moderate or Low.
Configure the condition of the rule. You may use a combination of conditions and condition groups.
A template is a system preset example of useful conditions that might be frequently used.
Click View to view the detailed condition template. And click Load to load the template into your rule.