Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

feat: define custom approval feature (#5091)

Liu Ji79e9b4fc0377
diff --git a/backend/legacyapi/plan.go b/backend/legacyapi/plan.go
index c3ca9e2b2a..b2739a2bff 100644
--- a/backend/legacyapi/plan.go
+++ b/backend/legacyapi/plan.go
@@ -155,6 +155,10 @@ const (
FeatureSensitiveData FeatureType = "bb.feature.sensitive-data"
// FeatureAccessControl allows user to config the access control.
FeatureAccessControl FeatureType = "bb.feature.access-control"
+ // FeatureCustomApproval enables custom risk level definition and custom
+ // approval chain definition.
+ FeatureCustomApproval FeatureType = "bb.feature.custom-approval"
+
// FeaturePluginOpenAI enables AI features powered by OpenAI.
FeaturePluginOpenAI FeatureType = "bb.feature.plugin.openai"
)
@@ -220,6 +224,9 @@ func (e FeatureType) Name() string {
return "Sensitive data"
case FeatureAccessControl:
return "Access Control"
+ case FeatureCustomApproval:
+ return "Custom Approval"
+ // Plugins
case FeaturePluginOpenAI:
return "OpenAI"
}
@@ -278,6 +285,7 @@ var FeatureMatrix = map[FeatureType][3]bool{
FeatureEnvironmentTierPolicy: {false, false, true},
FeatureSensitiveData: {false, false, true},
FeatureAccessControl: {false, false, true},
+ FeatureCustomApproval: {false, false, true},
// Plugins
FeaturePluginOpenAI: {false, false, true},
}
diff --git a/frontend/src/types/plan.ts b/frontend/src/types/plan.ts
index 7752991787..1cb53d5316 100644
--- a/frontend/src/types/plan.ts
+++ b/frontend/src/types/plan.ts
@@ -35,6 +35,7 @@ export type FeatureType =
| "bb.feature.environment-tier-policy"
| "bb.feature.sensitive-data"
| "bb.feature.access-control"
+ | "bb.feature.custom-approval"
// Plugins
| "bb.feature.plugin.openai";