Skip to content

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

fix: add access control feature flag (#4520)

rebelice116ba95dff57
diff --git a/backend/legacyapi/plan.go b/backend/legacyapi/plan.go
index 327efc7b20..a2510b17a8 100644
--- a/backend/legacyapi/plan.go
+++ b/backend/legacyapi/plan.go
@@ -150,6 +150,8 @@ const (
FeatureEnvironmentTierPolicy FeatureType = "bb.feature.environment-tier-policy"
// FeatureSensitiveData allows user to annotate and protect sensitive data.
FeatureSensitiveData FeatureType = "bb.feature.sensitive-data"
+ // FeatureAccessControl allows user to config the access control.
+ FeatureAccessControl FeatureType = "bb.feature.access-control"
)
// Name returns a readable name of the feature.
@@ -207,6 +209,8 @@ func (e FeatureType) Name() string {
return "Environment tier"
case FeatureSensitiveData:
return "Sensitive data"
+ case FeatureAccessControl:
+ return "Access Control"
}
return ""
}
@@ -260,6 +264,7 @@ var FeatureMatrix = map[FeatureType][3]bool{
FeatureBackupPolicy: {false, true, true},
FeatureEnvironmentTierPolicy: {false, false, true},
FeatureSensitiveData: {false, false, true},
+ FeatureAccessControl: {false, false, true},
}
// Plan is the API message for a plan.