Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: move disallow-signup feature to enterprise plan (#5882)
ecmadaoe2316ad385b9
diff --git a/backend/legacyapi/plan.go b/backend/legacyapi/plan.goindex cd6ee665fa..02ede311fb 100644--- a/backend/legacyapi/plan.go+++ b/backend/legacyapi/plan.go@@ -54,6 +54,8 @@ const (FeatureSSO FeatureType = "bb.feature.sso"// Feature2FA allows user to manage 2FA provider and authenticate (login) with 2FA.Feature2FA FeatureType = "bb.feature.2fa"+ // FeatureDisallowSignup allows user to change the disallow signup flag.+ FeatureDisallowSignup FeatureType = "bb.feature.disallow-signup"// FeatureRBAC enables RBAC.//// - Workspace level RBAC@@ -181,6 +183,8 @@ func (e FeatureType) Name() string {return "SSO"case Feature2FA:return "2FA"+ case FeatureDisallowSignup:+ return "Disallow singup"case FeatureRBAC:return "RBAC"case FeatureWatermark:@@ -269,12 +273,13 @@ func (e FeatureType) minimumSupportedPlan() PlanType {// plan in [FREE, TEAM, Enterprise].var FeatureMatrix = map[FeatureType][3]bool{// Admin & Security- FeatureSSO: {false, false, true},- Feature2FA: {false, false, true},- FeatureRBAC: {true, true, true},- FeatureWatermark: {false, false, true},- FeatureAuditLog: {false, false, true},- FeatureCustomRole: {false, false, true},+ FeatureSSO: {false, false, true},+ Feature2FA: {false, false, true},+ FeatureDisallowSignup: {false, false, true},+ FeatureRBAC: {true, true, true},+ FeatureWatermark: {false, false, true},+ FeatureAuditLog: {false, false, true},+ FeatureCustomRole: {false, false, true},// BrandingFeatureBranding: {false, false, true},// Change Workflowdiff --git a/frontend/src/components/GeneralSetting/SecuritySetting.vue b/frontend/src/components/GeneralSetting/SecuritySetting.vueindex 665bbb8131..1cb1212d2d 100644--- a/frontend/src/components/GeneralSetting/SecuritySetting.vue+++ b/frontend/src/components/GeneralSetting/SecuritySetting.vue@@ -50,6 +50,11 @@$t("settings.general.workspace.disallow-signup.enable")}}</span>+ <FeatureBadge+ feature="bb.feature.disallow-signup"+ class="text-accent"+ />+<spanv-if="!allowEdit"class="text-sm text-gray-400 -translate-y-2 tooltip"@@ -129,6 +134,7 @@ const { isSaaSMode } = storeToRefs(actuatorStore);const hasWatermarkFeature = featureToRef("bb.feature.branding");const watermarkSetting = useSettingByName("bb.workspace.watermark");const has2FAFeature = featureToRef("bb.feature.2fa");+const hasDisallowSignupFeature = featureToRef("bb.feature.disallow-signup");const allowEdit = computed((): boolean => {return hasWorkspacePermission(@@ -147,6 +153,10 @@ const require2FAEnabled = computed((): boolean => {});const handleDisallowSignupToggle = async (on: boolean) => {+ if (!hasDisallowSignupFeature.value) {+ state.featureNameForModal = "bb.feature.disallow-signup";+ return;+ }await settingStore.updateWorkspaceProfile({disallowSignup: on,});diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex e7af97936a..d3722699a8 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -1939,6 +1939,10 @@"bb-feature-encrypted-secrets": {"title": "Encrypted Secrets","desc": "Store your secrets of database and use them in your issue SQL scripts."+ },+ "bb-feature-disallow-signup": {+ "title": "Disable self-service signup",+ "desc": "Once disabled, users cannot self-service signup and can only be invited by the workspace owner."}}},diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.jsonindex 7078f00fea..16f77f4453 100644--- a/frontend/src/locales/es-ES.json+++ b/frontend/src/locales/es-ES.json@@ -1939,6 +1939,10 @@"bb-feature-encrypted-secrets": {"title": "Secretos Encriptados","desc": "Almacene sus secretos de base de datos y utilícelos en sus scripts de SQL de Incidencias."+ },+ "bb-feature-disallow-signup": {+ "title": "Deshabilitar el registro de autoservicio",+ "desc": "Una vez deshabilitados, los usuarios no pueden registrarse por sí mismos y solo pueden ser invitados por el propietario del espacio de trabajo."}}},diff --git a/frontend/src/locales/subscription/en-US.json b/frontend/src/locales/subscription/en-US.jsonindex 85a7976011..dcb00fa34f 100644--- a/frontend/src/locales/subscription/en-US.json+++ b/frontend/src/locales/subscription/en-US.json@@ -134,7 +134,8 @@"anomaly-detection-basic-tooltip": "Connection failure, missing backup","anomaly-detection-advanced": "Advanced","anomaly-detection-advanced-tooltip": "Basic + Schema drift detection",- "archiving": "Archiving"+ "archiving": "Archiving",+ "disallow-signup": "Disallow signup"}},"bespoke": {diff --git a/frontend/src/locales/subscription/es-ES.json b/frontend/src/locales/subscription/es-ES.jsonindex ebab7fbd39..25456b0589 100644--- a/frontend/src/locales/subscription/es-ES.json+++ b/frontend/src/locales/subscription/es-ES.json@@ -134,7 +134,8 @@"anomaly-detection-basic-tooltip": "Fallo de conexión, falta copia de seguridad","anomaly-detection-advanced": "Avanzado","anomaly-detection-advanced-tooltip": "Básico + Detección de desviación de esquema",- "archiving": "Archivado"+ "archiving": "Archivado",+ "disallow-signup": "Deshabilitar el registro de autoservicio"}},"bespoke": {diff --git a/frontend/src/locales/subscription/zh-CN.json b/frontend/src/locales/subscription/zh-CN.jsonindex 3ccfd18032..aba798a039 100644--- a/frontend/src/locales/subscription/zh-CN.json+++ b/frontend/src/locales/subscription/zh-CN.json@@ -134,7 +134,8 @@"anomaly-detection-basic-tooltip": "数据库连接异常、备份缺失","anomaly-detection-advanced": "高级","anomaly-detection-advanced-tooltip": "基础版功能 + Schema 偏差检测",- "archiving": "归档"+ "archiving": "归档",+ "disallow-signup": "禁用自助注册"}},"bespoke": {diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex 634b8fe28b..efe0b952f1 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -1936,6 +1936,10 @@"bb-feature-encrypted-secrets": {"title": "保密信息","desc": "存储数据库的保密信息,并在工单的 SQL 中使用它们。"+ },+ "bb-feature-disallow-signup": {+ "title": "禁用自助注册",+ "desc": "禁用之后,新用户将无法自助注册,只能通过管理员邀请来创建账户。"}},"feature-require-subscription": "{feature} 需要 {requiredPlan}。"diff --git a/frontend/src/types/plan.ts b/frontend/src/types/plan.tsindex 2525ddcbfc..b4842bd2a3 100644--- a/frontend/src/types/plan.ts+++ b/frontend/src/types/plan.ts@@ -13,6 +13,7 @@ export type FeatureType =| "bb.feature.sso"| "bb.feature.2fa"| "bb.feature.rbac"+ | "bb.feature.disallow-signup"| "bb.feature.watermark"| "bb.feature.audit-log"// Brandingdiff --git a/frontend/src/types/plan.yaml b/frontend/src/types/plan.yamlindex e7aa10f680..bbe914e9fc 100644--- a/frontend/src/types/plan.yaml+++ b/frontend/src/types/plan.yaml@@ -45,6 +45,7 @@ categoryList:- watermark- audit-log- anomaly-detection+ - disallow-signup- type: bespokefeatureList:- support@@ -260,6 +261,7 @@ planList:- type: database-access-control- type: watermark- type: audit-log+ - type: disallow-signup# Bespoke- type: supportcontent: support-sla