Skip to content

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

chore: simple features (#16453)

Danny Xu30f073f9a22a
diff --git a/backend/base/plan.go b/backend/base/plan.go
index 41c1e311da..f2bca8ba6d 100644
--- a/backend/base/plan.go
+++ b/backend/base/plan.go
@@ -320,17 +320,9 @@ var FeatureMatrix = map[FeatureType][3]bool{
// InstanceLimitFeature is the map for instance feature. Only allowed to access these feature for activate instance.
var InstanceLimitFeature = map[FeatureType]bool{
- // Security
- FeatureExternalSecretManager: true,
- // Change Workflow
- FeatureSchemaDrift: true,
- FeatureEncryptedSecrets: true,
- // Database management
- FeatureReadReplicaConnection: true,
- FeatureCustomInstanceSynchronization: true,
- FeatureSyncSchemaAllVersions: true,
- // Policy Control
- FeatureSensitiveData: true,
+ FeatureEncryptedSecrets: true,
+ FeatureReadReplicaConnection: true,
+ FeatureSensitiveData: true,
}
// Feature returns whether a particular feature is available in a particular plan.
diff --git a/backend/enterprise/api/plan.yaml b/backend/enterprise/api/plan.yaml
index 65da22863e..a202b0ae83 100644
--- a/backend/enterprise/api/plan.yaml
+++ b/backend/enterprise/api/plan.yaml
@@ -1,293 +1,13 @@
-categoryList:
- - type: change-management
- featureList:
- - user-count
- - instance-count
- - state-based-change
- - migration-based-change
- - sql-check
- - changelog
- - terraform-provider
- - schedule-change
- - rollout-policy
- - sync-schema
- - custom-approval
- - database-group
- - batch-change
- - issue-advanced-search
- - password-restriction
- - directory-sync
- - type: sql-editor
- featureList:
- - auto-complete
- - schema-editor
- - schema-diagram
- - export
- - admin-mode
- - saved-sql-script
- - read-replica
- - batch-query
- - type: collaboration
- featureList:
- - ui-based-sql-review
- - shared-sql-script
- - gitops-workflow
- - webhook-integration
- - type: data-security-and-governance
- featureList:
- - rbac
- - archiving
- - sso
- - 2fa
- - ssh-tunnel
- - dba-workflow
- - environment-tier
- - sensitive-data
- - data-access-control
- - watermark
- - audit-log
- - disallow-signup
- - anomaly-detection
- - announcement-banner
- - external-secret-manager
- - type: bespoke
- featureList:
- - support
- - branding-logo
- - roadmap
- - contract
planList:
- type: 0
title: free
- trialDays: 0
- unitPrice: 0
- trialPrice: 0
- freeSeatCount: 20
- freeInstanceCount: 10
maximumInstanceCount: 10
maximumSeatCount: 20
- pricePerSeatPerMonth: 0
- pricePerInstancePerMonth: 0
- featureList:
- # Change Management
- - type: user-count
- content: user-maximum-20
- - type: instance-count
- content: instance-maximum-10
- - type: state-based-change
- - type: migration-based-change
- - type: sql-check
- - type: batch-change
- content: batch-change-basic
- tooltip: batch-change-basic-tooltip
- - type: changelog
- - type: sync-schema
- content: sync-schema-basic
- tooltip: sync-schema-basic-tooltip
- - type: terraform-provider
- - type: rollout-policy
- content: rollout-policy-basic
- tooltip: rollout-policy-basic-tooltip
- - type: issue-advanced-search
- content: issue-advanced-search-basic
- tooltip: issue-advanced-search-basic-tooltip
- # SQL Editor
- - type: auto-complete
- - type: schema-editor
- - type: schema-diagram
- - type: export
- - type: admin-mode
- - type: saved-sql-script
- # Collaboration
- - type: ui-based-sql-review
- - type: gitops-workflow
- content: gitops-workflow-basic
- tooltip: gitops-workflow-basic-tooltip
- - type: webhook-integration
- content: webhook-integration-basic
- tooltip: webhook-integration-basic-tooltip
- # Data Security and Governance
- - type: archiving
- - type: anomaly-detection
- content: anomaly-detection-basic
- tooltip: anomaly-detection-basic-tooltip
- - type: rbac
- # Bespoke
- - type: support
- content: support-community
- mainFeatureList:
- - community-support
- - review-workflow
- - gitops
- - rbac
- - batch-change-multi-environment
- - sql-editor
- - webhook-integration
- type: 1
title: team
- trialDays: 0
- unitPrice: 0
- trialPrice: 0
- freeSeatCount: 0
- freeInstanceCount: 10
maximumInstanceCount: 10
maximumSeatCount: 20
- pricePerSeatPerMonth: 20
- pricePerInstancePerMonth: 0
- featureList:
- # Change Management
- - type: user-count
- content: user-maximum-20
- - type: instance-count
- content: instance-maximum-10
- tooltip: instance-maximum-10-tooltip
- - type: state-based-change
- - type: migration-based-change
- - type: sql-check
- - type: batch-change
- content: batch-change-basic
- tooltip: batch-change-basic-tooltip
- - type: changelog
- - type: sync-schema
- content: sync-schema-advanced
- tooltip: sync-schema-advanced-tooltip
- - type: terraform-provider
- - type: schedule-change
- - type: database-group
- - type: rollout-policy
- content: rollout-policy-advanced
- tooltip: rollout-policy-advanced-tooltip
- - type: issue-advanced-search
- content: issue-advanced-search-advanced
- # SQL Editor
- - type: auto-complete
- - type: schema-editor
- - type: schema-diagram
- - type: export
- - type: admin-mode
- - type: saved-sql-script
- - type: batch-query
- # Collaboration
- - type: ui-based-sql-review
- - type: shared-sql-script
- - type: gitops-workflow
- content: gitops-workflow-advanced
- tooltip: gitops-workflow-advanced-tooltip
- - type: webhook-integration
- content: webhook-integration-basic
- tooltip: webhook-integration-basic-tooltip
- # Data Security and Governance
- - type: archiving
- - type: anomaly-detection
- content: anomaly-detection-basic
- tooltip: anomaly-detection-basic-tooltip
- - type: rbac
- - type: sso
- content: sso-basic
- tooltip: sso-basic-tooltip
- - type: disallow-signup
- # Bespoke
- - type: support
- content: support-email
- mainFeatureList:
- - email-support
- - everything-in-free-plan
- - sql-check-anomaly-detection
- - online-schema-migration
- type: 2
title: enterprise
- trialDays: 14
- unitPrice: 0
- trialPrice: 0
- freeSeatCount: -1
- freeInstanceCount: 0
maximumInstanceCount: -1
- maximumSeatCount: -1
- pricePerSeatPerMonth: 0
- pricePerInstancePerMonth: 300
- featureList:
- # Change Management
- - type: user-count
- content: user-unlimited
- - type: instance-count
- content: instance-unlimited
- tooltip: instance-unlimited-tooltip
- - type: state-based-change
- - type: migration-based-change
- - type: sql-check
- - type: batch-change
- content: batch-change-advanced
- tooltip: batch-change-advanced-tooltip
- - type: changelog
- - type: sync-schema
- content: sync-schema-advanced
- tooltip: sync-schema-advanced-tooltip
- - type: terraform-provider
- - type: schedule-change
- - type: database-group
- - type: rollout-policy
- content: rollout-policy-advanced
- tooltip: rollout-policy-advanced-tooltip
- - type: custom-approval
- - type: issue-advanced-search
- content: issue-advanced-search-advanced
- - type: password-restriction
- - type: directory-sync
- # SQL Editor
- - type: auto-complete
- - type: schema-editor
- - type: schema-diagram
- - type: export
- - type: admin-mode
- - type: read-replica
- - type: saved-sql-script
- - type: batch-query
- # Collaboration
- - type: ui-based-sql-review
- - type: shared-sql-script
- - type: gitops-workflow
- content: gitops-workflow-advanced
- tooltip: gitops-workflow-advanced-tooltip
- - type: webhook-integration
- content: webhook-integration-advanced
- tooltip: webhook-integration-advanced-tooltip
- # Data Security and Governance
- - type: archiving
- - type: anomaly-detection
- content: anomaly-detection-advanced
- tooltip: anomaly-detection-advanced-tooltip
- - type: rbac
- - type: sso
- content: sso-advanced
- tooltip: sso-advanced-tooltip
- - type: 2fa
- - type: ssh-tunnel
- - type: dba-workflow
- tooltip: dba-workflow-tooltip
- - type: environment-tier
- - type: sensitive-data
- - type: data-access-control
- - type: watermark
- - type: audit-log
- - type: disallow-signup
- - type: announcement-banner
- - type: external-secret-manager
- - type: domain-restriction
- # Bespoke
- - type: support
- content: support-sla
- - type: branding-logo
- - type: roadmap
- - type: contract
- mainFeatureList:
- - sla
- - everything-in-team-plan
- - sso
- - batch-change-multi-tenancy
- - custom-approval
- - dba-workflow
- - environment-tier
- - sensitive-data
- - data-access-control
- - roadmap
- - custom-contract
+ maximumSeatCount: -1
\ No newline at end of file
diff --git a/frontend/src/types/plan.ts b/frontend/src/types/plan.ts
index 68e1566987..caf2ad0821 100644
--- a/frontend/src/types/plan.ts
+++ b/frontend/src/types/plan.ts
@@ -55,17 +55,9 @@ export type FeatureType =
| "bb.feature.user-count";
export const instanceLimitFeature = new Set<FeatureType>([
- // Change Workflow
- "bb.feature.schema-drift",
"bb.feature.encrypted-secrets",
- // Database Management
"bb.feature.read-replica-connection",
- "bb.feature.custom-instance-synchronization",
- "bb.feature.sync-schema-all-versions",
- "bb.feature.database-grouping",
- // Policy Control
"bb.feature.sensitive-data",
- "bb.feature.rollout-policy",
]);
export const planTypeToString = (planType: PlanType): string => {
@@ -81,28 +73,16 @@ export const planTypeToString = (planType: PlanType): string => {
}
};
-interface PlanFeature {
- type: string;
- content?: string;
- tooltip?: string;
-}
-
export interface Plan {
- // Plan meta data
type: PlanType;
- trialDays: number;
- trialPrice: number;
- unitPrice: number;
- pricePerSeatPerMonth: number;
- pricePerInstancePerMonth: number;
+ title: string;
maximumSeatCount: number;
maximumInstanceCount: number;
- // Plan desc and feature
- title: string;
- featureList: PlanFeature[];
}
-export const PLANS: Plan[] = planData.planList.map((raw: Plan) => ({
- ...raw,
+export const PLANS: Plan[] = planData.planList.map((raw: any) => ({
type: planTypeFromJSON(raw.type + 1),
+ title: raw.title,
+ maximumSeatCount: raw.maximumSeatCount,
+ maximumInstanceCount: raw.maximumInstanceCount,
}));