Skip to content

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

chore: remove `Feature3rdPartyAuth` (#4564)

boojack8f31cebccf08
diff --git a/backend/legacyapi/plan.go b/backend/legacyapi/plan.go
index 13bf51f8c7..2764e1bca8 100644
--- a/backend/legacyapi/plan.go
+++ b/backend/legacyapi/plan.go
@@ -50,10 +50,6 @@ type FeatureType string
const (
// Admin & Security.
- // Feature3rdPartyAuth allows user to authenticate (login).
- //
- // Currently, we only support GitLab EE/CE auth.
- Feature3rdPartyAuth FeatureType = "bb.feature.3rd-party-auth"
// FeatureSSO allows user to manage SSO provider and authenticate (login) with SSO.
FeatureSSO FeatureType = "bb.feature.sso"
// FeatureRBAC enables RBAC.
@@ -160,8 +156,6 @@ const (
func (e FeatureType) Name() string {
switch e {
// Admin & Security
- case Feature3rdPartyAuth:
- return "3rd party auth"
case FeatureSSO:
return "SSO"
case FeatureRBAC:
@@ -240,10 +234,9 @@ func (e FeatureType) minimumSupportedPlan() PlanType {
// plan in [FREE, TEAM, Enterprise].
var FeatureMatrix = map[FeatureType][3]bool{
// Admin & Security
- Feature3rdPartyAuth: {false, true, true},
- FeatureSSO: {false, false, true},
- FeatureRBAC: {false, true, true},
- FeatureWatermark: {false, false, true},
+ FeatureSSO: {false, false, true},
+ FeatureRBAC: {false, true, true},
+ FeatureWatermark: {false, false, true},
// Branding
FeatureBranding: {false, false, true},
// Change Workflow
diff --git a/frontend/src/components/ProjectMemberPanel.vue b/frontend/src/components/ProjectMemberPanel.vue
index fedb4f4fa5..1ee19f7f21 100644
--- a/frontend/src/components/ProjectMemberPanel.vue
+++ b/frontend/src/components/ProjectMemberPanel.vue
@@ -83,11 +83,6 @@
</div>
<ProjectMemberTable :project="project" />
</div>
- <FeatureModal
- v-if="state.showFeatureModal"
- :feature="'bb.feature.3rd-party-auth'"
- @cancel="state.showFeatureModal = false"
- />
</template>
<script lang="ts">
@@ -119,7 +114,6 @@ interface LocalState {
error: string;
showModal: boolean;
previewMember: boolean;
- showFeatureModal: boolean;
}
export default defineComponent({
@@ -143,11 +137,8 @@ export default defineComponent({
error: "",
showModal: false,
previewMember: false,
- showFeatureModal: false,
});
- const has3rdPartyAuthFeature = featureToRef("bb.feature.3rd-party-auth");
-
const hasRBACFeature = featureToRef("bb.feature.rbac");
const allowAddMember = computed(() => {
@@ -246,7 +237,6 @@ export default defineComponent({
clearValidationError,
hasValidMember,
addMember,
- has3rdPartyAuthFeature,
};
},
});
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json
index d37c1cb91f..3c418d31d3 100644
--- a/frontend/src/locales/en-US.json
+++ b/frontend/src/locales/en-US.json
@@ -833,7 +833,6 @@
"demo-note": "Please use demo account to sign in",
"gitlab": "Login with GitLab",
"github": "Login with GitHub",
- "3rd-party-auth-demo": "Third-party authentication is disabled in Demo mode",
"gitlab-oauth": "Reach to your Admin to enable GitLab login",
"sign-in-with-idp": "Sign in with {idp}"
},
@@ -1666,11 +1665,6 @@
"title": "Schema drift",
"desc": "@:{'subscription.upgrade'} to unlock schema drift auto-detection."
},
- "bb-feature-3rd-party-auth": {
- "title": "3rd party authentication & authorization",
- "desc": "Bytebase supports 3rd-party authentication & authorization based on your VCS configuration.",
- "login": "@:{'subscription.upgrade'} to unlock this feature"
- },
"bb-feature-branding": {
"title": "Branding",
"desc": "Customize the logo."
diff --git a/frontend/src/locales/subscription/en-US.json b/frontend/src/locales/subscription/en-US.json
index 8993528902..392143438f 100644
--- a/frontend/src/locales/subscription/en-US.json
+++ b/frontend/src/locales/subscription/en-US.json
@@ -120,7 +120,6 @@
"terraform-provider": "Terraform Provider",
"rbac": "RBAC (Owner, DBA, Developer role)",
"watermark": "Watermark",
- "3rd-party-auth": "Login with GitLab account",
"sync-members-from-vcs": "Sync project membership from the linked GitLab project",
"dba-workflow": "DBA workflow",
"dba-workflow-tooltip": "Only allow DBA and Owner to create or transfer database",
diff --git a/frontend/src/locales/subscription/zh-CN.json b/frontend/src/locales/subscription/zh-CN.json
index 16da8543f0..1d55287503 100644
--- a/frontend/src/locales/subscription/zh-CN.json
+++ b/frontend/src/locales/subscription/zh-CN.json
@@ -120,7 +120,6 @@
"terraform-provider": "Terraform Provider",
"rbac": "RBAC 权限管理",
"watermark": "水印设置",
- "3rd-party-auth": "通过 GitLab 登录",
"sync-members-from-vcs": "从 GitLab 同步成员信息",
"dba-workflow": "DBA 工作流",
"dba-workflow-tooltip": "仅允许 DBA 和所有者创建或者转移数据库",
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index 988d7dfe2e..fce4bb27e8 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -833,7 +833,6 @@
"demo-note": "请使用 demo 账号登录",
"gitlab": "通过 GitLab 登录",
"github": "通过 GitHub 登录",
- "3rd-party-auth-demo": "演示模式不支持第三方账号登录",
"gitlab-oauth": "您可联系管理员开启 GitLab 登录",
"sign-in-with-idp": "通过 {idp} 登录"
},
@@ -1667,11 +1666,6 @@
"title": "Schema 偏差",
"desc": "@:{'subscription.upgrade'}来解锁 schema 偏差异常的自动检测。"
},
- "bb-feature-3rd-party-auth": {
- "title": "第三方认证 & 授权",
- "desc": "Bytebase 可根据您配置的 VCS 来支持相应的第三方认证 & 授权。",
- "login": "请@:{'subscription.upgrade'}来开启该功能"
- },
"bb-feature-branding": {
"title": "自定义品牌信息",
"desc": "定制 Logo"
diff --git a/frontend/src/types/plan.ts b/frontend/src/types/plan.ts
index 9b9e2f6d99..b3ceabb8b8 100644
--- a/frontend/src/types/plan.ts
+++ b/frontend/src/types/plan.ts
@@ -4,7 +4,6 @@ import planData from "./plan.yaml";
// Check api/plan.go to understand what each feature means.
export type FeatureType =
// Admin & Security
- | "bb.feature.3rd-party-auth"
| "bb.feature.sso"
| "bb.feature.rbac"
| "bb.feature.watermark"
diff --git a/frontend/src/types/plan.yaml b/frontend/src/types/plan.yaml
index b7bee3d360..4be95e6f20 100644
--- a/frontend/src/types/plan.yaml
+++ b/frontend/src/types/plan.yaml
@@ -29,7 +29,6 @@ categoryList:
- activity-log
- terraform-provider
- rbac
- - 3rd-party-auth
- sync-members-from-vcs
- dba-workflow
- environment-tier
@@ -143,7 +142,6 @@ planList:
- type: activity-log
- type: terraform-provider
- type: rbac
- - type: 3rd-party-auth
- type: sync-members-from-vcs
mainFeatureList:
- email-support
@@ -207,7 +205,6 @@ planList:
- type: terraform-provider
- type: rbac
- type: watermark
- - type: 3rd-party-auth
- type: sync-members-from-vcs
- type: dba-workflow
tooltip: dba-workflow-tooltip
diff --git a/frontend/src/views/SettingWorkspaceVCS.vue b/frontend/src/views/SettingWorkspaceVCS.vue
index 425b2da64e..55e100dd2d 100644
--- a/frontend/src/views/SettingWorkspaceVCS.vue
+++ b/frontend/src/views/SettingWorkspaceVCS.vue
@@ -16,14 +16,6 @@
</button>
</div>
<div class="pt-4 border-t">
- <FeatureAttention
- v-if="!has3rdPartyLoginFeature && vcsList.length > 0"
- custom-class="mb-5"
- feature="bb.feature.3rd-party-auth"
- :description="
- $t('subscription.features.bb-feature-3rd-party-auth.desc')
- "
- />
<div v-if="vcsList.length > 0" class="space-y-6">
<template v-for="(vcs, index) in vcsList" :key="index">
<VCSCard :vcs="vcs" />
@@ -41,7 +33,7 @@ import { reactive, computed, watchEffect, defineComponent } from "vue";
import { useRouter } from "vue-router";
import VCSCard from "../components/VCSCard.vue";
import VCSSetupWizard from "../components/VCSSetupWizard.vue";
-import { featureToRef, useVCSStore } from "@/store";
+import { useVCSStore } from "@/store";
// eslint-disable-next-line @typescript-eslint/no-empty-interface
interface LocalState {}
@@ -73,13 +65,10 @@ export default defineComponent({
});
};
- const has3rdPartyLoginFeature = featureToRef("bb.feature.3rd-party-auth");
-
return {
state,
vcsList,
addVCSProvider,
- has3rdPartyLoginFeature,
};
},
});
diff --git a/frontend/src/views/auth/Signin.vue b/frontend/src/views/auth/Signin.vue
index 7a78907a07..9f900774b6 100644
--- a/frontend/src/views/auth/Signin.vue
+++ b/frontend/src/views/auth/Signin.vue
@@ -14,7 +14,7 @@
<button
type="button"
class="btn-normal flex justify-center w-full h-10 mb-2 tooltip-wrapper"
- :disabled="!has3rdPartyLoginFeature"
+ :disabled="!hasSSOFeature"
@click="trySigninWithOAuth(authProvider)"
>
<img
@@ -30,12 +30,6 @@
: authProvider.name
}}
</span>
- <span v-if="isDemo" class="tooltip">{{
- $t("auth.sign-in.3rd-party-auth-demo")
- }}</span>
- <span v-else-if="!has3rdPartyLoginFeature" class="tooltip">{{
- $t("subscription.features.bb-feature-3rd-party-auth.login")
- }}</span>
</button>
</template>
@@ -185,16 +179,8 @@
</span>
</button>
</template>
-
- <span v-if="isDemo" class="tooltip">{{
- $t("auth.sign-in.3rd-party-auth-demo")
- }}</span>
- <span v-else-if="!has3rdPartyLoginFeature" class="tooltip">{{
- $t("subscription.features.bb-feature-3rd-party-auth.login")
- }}</span>
</div>
</div>
-
<AuthFooter />
</template>
@@ -408,5 +394,4 @@ const trySigninWithIdentityProvider = (identityProvider: IdentityProvider) => {
};
const hasSSOFeature = featureToRef("bb.feature.sso");
-const has3rdPartyLoginFeature = featureToRef("bb.feature.3rd-party-auth");
</script>