Skip to content

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

chore: support outbound ip list (#5443)

ecmadao41a6d34ed3a1
diff --git a/backend/server/server.go b/backend/server/server.go
index 1ca021565d..c091b07329 100644
--- a/backend/server/server.go
+++ b/backend/server/server.go
@@ -782,17 +782,15 @@ func (s *Server) getInitSetting(ctx context.Context, datastore *store.Store) (*w
}
workspaceProfilePayload := &storepb.WorkspaceProfileSetting{
- ExternalUrl: s.profile.ExternalURL,
- DisallowSignup: false,
+ ExternalUrl: s.profile.ExternalURL,
}
if workspaceProfileSetting != nil {
- payload := new(storepb.WorkspaceProfileSetting)
- if err := protojson.Unmarshal([]byte(workspaceProfileSetting.Value), payload); err != nil {
+ workspaceProfilePayload = new(storepb.WorkspaceProfileSetting)
+ if err := protojson.Unmarshal([]byte(workspaceProfileSetting.Value), workspaceProfilePayload); err != nil {
return nil, err
}
- workspaceProfilePayload.DisallowSignup = payload.DisallowSignup
- if s.profile.ExternalURL == "" {
- workspaceProfilePayload.ExternalUrl = payload.ExternalUrl
+ if s.profile.ExternalURL != "" {
+ workspaceProfilePayload.ExternalUrl = s.profile.ExternalURL
}
}
diff --git a/frontend/src/components/GeneralSetting/BrandingSetting.vue b/frontend/src/components/GeneralSetting/BrandingSetting.vue
index 306a1da160..ae75290f53 100644
--- a/frontend/src/components/GeneralSetting/BrandingSetting.vue
+++ b/frontend/src/components/GeneralSetting/BrandingSetting.vue
@@ -91,7 +91,7 @@
</template>
<script lang="ts" setup>
-import { computed, reactive } from "vue";
+import { computed, reactive, watchEffect } from "vue";
import { hasWorkspacePermission } from "@/utils";
import { useI18n } from "vue-i18n";
import {
@@ -132,7 +132,7 @@ const state = reactive<LocalState>({
showFeatureModal: false,
});
-settingStore.fetchSetting().then(() => {
+watchEffect(() => {
const brandingLogoSetting =
settingStore.getSettingByName("bb.branding.logo")!;
state.logoUrl = brandingLogoSetting.value;
@@ -175,7 +175,7 @@ const uploadLogo = async () => {
try {
const fileInBase64 = await convertFileToBase64(state.logoFile);
- const setting = await useSettingStore().updateSettingByName({
+ const setting = await settingStore.updateSettingByName({
name: "bb.branding.logo",
value: fileInBase64,
});
diff --git a/frontend/src/components/GeneralSetting/NetworkSetting.vue b/frontend/src/components/GeneralSetting/NetworkSetting.vue
index cdc5d819c5..2b2a5c8678 100644
--- a/frontend/src/components/GeneralSetting/NetworkSetting.vue
+++ b/frontend/src/components/GeneralSetting/NetworkSetting.vue
@@ -63,7 +63,6 @@ import { computed, reactive, watchEffect } from "vue";
import { pushNotification, useCurrentUser, useSettingStore } from "@/store";
import { hasWorkspacePermission } from "@/utils";
import { useI18n } from "vue-i18n";
-import { WorkspaceProfileSetting } from "@/types/proto/store/setting";
interface LocalState {
externalUrl: string;
@@ -104,14 +103,8 @@ const updateExternalUrl = async () => {
if (!allowSave.value) {
return;
}
-
- const payload: WorkspaceProfileSetting = {
- disallowSignup: settingStore.workspaceSetting?.disallowSignup ?? false,
+ await settingStore.updateWorkspaceProfile({
externalUrl: state.externalUrl,
- };
- await settingStore.updateSettingByName({
- name: "bb.workspace.profile",
- value: JSON.stringify(payload),
});
pushNotification({
module: "bytebase",
diff --git a/frontend/src/components/GeneralSetting/SecuritySetting.vue b/frontend/src/components/GeneralSetting/SecuritySetting.vue
index b2ce10b762..92e04d73e5 100644
--- a/frontend/src/components/GeneralSetting/SecuritySetting.vue
+++ b/frontend/src/components/GeneralSetting/SecuritySetting.vue
@@ -112,7 +112,6 @@ import {
import { BBCheckbox } from "@/bbkit";
import { hasWorkspacePermission } from "@/utils";
import { useI18n } from "vue-i18n";
-import { WorkspaceProfileSetting } from "@/types/proto/store/setting";
import { FeatureType } from "@/types";
import { UserType } from "@/types/proto/v1/auth_service";
@@ -148,15 +147,8 @@ const require2FAEnabled = computed((): boolean => {
});
const handleDisallowSignupToggle = async (on: boolean) => {
- const payload: WorkspaceProfileSetting = {
+ await settingStore.updateWorkspaceProfile({
disallowSignup: on,
- externalUrl: settingStore.workspaceSetting?.externalUrl ?? "",
- require2fa: settingStore.workspaceSetting?.require2fa ?? false,
- };
-
- await settingStore.updateSettingByName({
- name: "bb.workspace.profile",
- value: JSON.stringify(payload),
});
pushNotification({
module: "bytebase",
@@ -188,14 +180,8 @@ const handleRequire2FAToggle = async (on: boolean) => {
}
}
- const payload: WorkspaceProfileSetting = {
- disallowSignup: settingStore.workspaceSetting?.disallowSignup || false,
- externalUrl: settingStore.workspaceSetting?.externalUrl ?? "",
+ await settingStore.updateWorkspaceProfile({
require2fa: on,
- };
- await settingStore.updateSettingByName({
- name: "bb.workspace.profile",
- value: JSON.stringify(payload),
});
pushNotification({
module: "bytebase",
diff --git a/frontend/src/components/InstanceForm.vue b/frontend/src/components/InstanceForm.vue
index 5c96074397..abb5cdfccf 100644
--- a/frontend/src/components/InstanceForm.vue
+++ b/frontend/src/components/InstanceForm.vue
@@ -464,6 +464,14 @@
</div>
</div>
+ <BBAttention
+ v-if="outboundIpList && actuatorStore.isSaaSMode"
+ class="my-5 border-none"
+ :style="'INFO'"
+ :title="$t('instance.sentence.outbound-ip-list')"
+ :description="outboundIpList"
+ />
+
<div class="mt-6 pt-0 border-none">
<div class="flex flex-row space-x-2">
<button
@@ -582,6 +590,8 @@ import {
useDataSourceStore,
useEnvironmentStore,
useInstanceStore,
+ useSettingStore,
+ useActuatorStore,
useSQLStore,
} from "@/store";
import { useRouter } from "vue-router";
@@ -647,6 +657,8 @@ const environmentStore = useEnvironmentStore();
const dataSourceStore = useDataSourceStore();
const currentUser = useCurrentUser();
const sqlStore = useSQLStore();
+const settingStore = useSettingStore();
+const actuatorStore = useActuatorStore();
const state = reactive<LocalState>({
currentDataSourceType: "ADMIN",
@@ -711,12 +723,13 @@ const getDefaultPort = (engine: EngineType) => {
const isCreating = computed(() => props.instance === undefined);
-onMounted(() => {
+onMounted(async () => {
if (isCreating.value) {
adminDataSource.value.host = isDev() ? "127.0.0.1" : "host.docker.internal";
adminDataSource.value.options.srv = false;
adminDataSource.value.options.authenticationDatabase = "";
}
+ await settingStore.fetchSetting();
});
watch(
@@ -737,6 +750,13 @@ const engineList = computed(() => {
return supportedEngineList();
});
+const outboundIpList = computed(() => {
+ if (!settingStore.workspaceSetting) {
+ return "";
+ }
+ return settingStore.workspaceSetting.outboundIpList.join(",");
+});
+
const EngineIconPath = {
MYSQL: new URL("../assets/db-mysql.png", import.meta.url).href,
POSTGRES: new URL("../assets/db-postgres.png", import.meta.url).href,
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json
index a405c2c778..4482e7cdae 100644
--- a/frontend/src/locales/en-US.json
+++ b/frontend/src/locales/en-US.json
@@ -824,6 +824,7 @@
"console": {
"snowflake": "The external console URL managing this instance (e.g. AWS RDS console, your in-house DB instance console)"
},
+ "outbound-ip-list": "If you make use of inbound firewall rules for your database instance, please include the following IP addresses in its allowlist to allow access by Bytebase Cloud.",
"create-admin-user": "This is the connection user used by Bytebase to perform DDL and DML (non-SELECT) operations.",
"create-readonly-user": "This is the connection used by Bytebase to perform read-only operations such as SELECT query.",
"create-admin-user-non-sql": "This is the connection user used by Bytebase to perform write and admin operations.",
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index d489f82589..1f761403bd 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -821,6 +821,7 @@
"console": {
"snowflake": "\b管理该@:{'common.instance'}的外部控制台 URL(如 AWS RDS 控制台,您的@:{'common.database'}控制台)"
},
+ "outbound-ip-list": "如果您的数据库使用了入站 IP 白名单,请将以下 IP 加入白名单以允许 Bytebase Cloud 的连接。",
"create-admin-user": "这是 Bytebase 用于连接数据库,执行 DDL 和 DML (非 SELECT) 操作的用户。",
"create-readonly-user": "这是 Bytebase 用于连接数据库,执行诸如 SELECT 的只读操作的用户。",
"create-admin-user-non-sql": "这是 Bytebase 用于连接数据库,执行写和管理操作的用户。",
diff --git a/frontend/src/store/modules/setting.ts b/frontend/src/store/modules/setting.ts
index 41b5ae45d4..fa76860c43 100644
--- a/frontend/src/store/modules/setting.ts
+++ b/frontend/src/store/modules/setting.ts
@@ -75,6 +75,22 @@ export const useSettingStore = defineStore("setting", {
return setting;
},
+ async updateWorkspaceProfile(payload: object): Promise<void> {
+ if (!this.workspaceSetting) {
+ return;
+ }
+ const profileSetting: WorkspaceProfileSetting = {
+ disallowSignup: this.workspaceSetting.disallowSignup,
+ externalUrl: this.workspaceSetting.externalUrl,
+ require2fa: this.workspaceSetting.require2fa,
+ outboundIpList: this.workspaceSetting.outboundIpList,
+ ...payload,
+ };
+ await this.updateSettingByName({
+ name: "bb.workspace.profile",
+ value: JSON.stringify(profileSetting),
+ });
+ },
},
});
diff --git a/frontend/src/types/proto/store/setting.ts b/frontend/src/types/proto/store/setting.ts
index 1c5bde7177..5967d2c1d3 100644
--- a/frontend/src/types/proto/store/setting.ts
+++ b/frontend/src/types/proto/store/setting.ts
@@ -18,6 +18,8 @@ export interface WorkspaceProfileSetting {
disallowSignup: boolean;
/** Require 2FA for all users. */
require2fa: boolean;
+ /** outbound_ip_list is the outbound IP for Bytebase instance in SaaS mode. */
+ outboundIpList: string[];
}
export interface AgentPluginSetting {
@@ -37,7 +39,7 @@ export interface WorkspaceApprovalSetting_Rule {
}
function createBaseWorkspaceProfileSetting(): WorkspaceProfileSetting {
- return { externalUrl: "", disallowSignup: false, require2fa: false };
+ return { externalUrl: "", disallowSignup: false, require2fa: false, outboundIpList: [] };
}
export const WorkspaceProfileSetting = {
@@ -51,6 +53,9 @@ export const WorkspaceProfileSetting = {
if (message.require2fa === true) {
writer.uint32(24).bool(message.require2fa);
}
+ for (const v of message.outboundIpList) {
+ writer.uint32(34).string(v!);
+ }
return writer;
},
@@ -82,6 +87,13 @@ export const WorkspaceProfileSetting = {
message.require2fa = reader.bool();
continue;
+ case 4:
+ if (tag != 34) {
+ break;
+ }
+
+ message.outboundIpList.push(reader.string());
+ continue;
}
if ((tag & 7) == 4 || tag == 0) {
break;
@@ -96,6 +108,7 @@ export const WorkspaceProfileSetting = {
externalUrl: isSet(object.externalUrl) ? String(object.externalUrl) : "",
disallowSignup: isSet(object.disallowSignup) ? Boolean(object.disallowSignup) : false,
require2fa: isSet(object.require2fa) ? Boolean(object.require2fa) : false,
+ outboundIpList: Array.isArray(object?.outboundIpList) ? object.outboundIpList.map((e: any) => String(e)) : [],
};
},
@@ -104,6 +117,11 @@ export const WorkspaceProfileSetting = {
message.externalUrl !== undefined && (obj.externalUrl = message.externalUrl);
message.disallowSignup !== undefined && (obj.disallowSignup = message.disallowSignup);
message.require2fa !== undefined && (obj.require2fa = message.require2fa);
+ if (message.outboundIpList) {
+ obj.outboundIpList = message.outboundIpList.map((e) => e);
+ } else {
+ obj.outboundIpList = [];
+ }
return obj;
},
@@ -116,6 +134,7 @@ export const WorkspaceProfileSetting = {
message.externalUrl = object.externalUrl ?? "";
message.disallowSignup = object.disallowSignup ?? false;
message.require2fa = object.require2fa ?? false;
+ message.outboundIpList = object.outboundIpList?.map((e) => e) || [];
return message;
},
};
diff --git a/frontend/src/views/SettingWorkspaceGeneral.vue b/frontend/src/views/SettingWorkspaceGeneral.vue
index c13e733436..1dab839597 100644
--- a/frontend/src/views/SettingWorkspaceGeneral.vue
+++ b/frontend/src/views/SettingWorkspaceGeneral.vue
@@ -8,6 +8,7 @@
</template>
<script lang="ts" setup>
+import { onMounted } from "vue";
import { storeToRefs } from "pinia";
import {
BrandingSetting,
@@ -15,9 +16,12 @@ import {
NetworkSetting,
AIAugmentationSetting,
} from "@/components/GeneralSetting";
-import { useActuatorStore } from "@/store";
+import { useActuatorStore, useSettingStore } from "@/store";
const actuatorStore = useActuatorStore();
+onMounted(async () => {
+ await useSettingStore().fetchSetting();
+});
const { isSaaSMode } = storeToRefs(actuatorStore);
</script>
diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.md
index 6bbe67c3c1..b01586b326 100644
--- a/proto/gen/grpc-doc/store/README.md
+++ b/proto/gen/grpc-doc/store/README.md
@@ -879,6 +879,7 @@ OIDCIdentityProviderConfig is the structure for OIDC identity provider config.
The external URL is used for: 1. Constructing the correct callback URL when configuring the VCS provider. The callback URL points to the frontend. 2. Creating the correct webhook endpoint when configuring the project GitOps workflow. The webhook endpoint points to the backend. |
| disallow_signup | [bool](#bool) | | Disallow self-service signup, users can only be invited by the owner. |
| require_2fa | [bool](#bool) | | Require 2FA for all users. |
+| outbound_ip_list | [string](#string) | repeated | outbound_ip_list is the outbound IP for Bytebase instance in SaaS mode. |
diff --git a/proto/generated-go/store/setting.pb.go b/proto/generated-go/store/setting.pb.go
index 696346a32e..a9036ff4ed 100644
--- a/proto/generated-go/store/setting.pb.go
+++ b/proto/generated-go/store/setting.pb.go
@@ -36,6 +36,8 @@ type WorkspaceProfileSetting struct {
DisallowSignup bool `protobuf:"varint,2,opt,name=disallow_signup,json=disallowSignup,proto3" json:"disallow_signup,omitempty"`
// Require 2FA for all users.
Require_2Fa bool `protobuf:"varint,3,opt,name=require_2fa,json=require2fa,proto3" json:"require_2fa,omitempty"`
+ // outbound_ip_list is the outbound IP for Bytebase instance in SaaS mode.
+ OutboundIpList []string `protobuf:"bytes,4,rep,name=outbound_ip_list,json=outboundIpList,proto3" json:"outbound_ip_list,omitempty"`
}
func (x *WorkspaceProfileSetting) Reset() {
@@ -91,6 +93,13 @@ func (x *WorkspaceProfileSetting) GetRequire_2Fa() bool {
return false
}
+func (x *WorkspaceProfileSetting) GetOutboundIpList() []string {
+ if x != nil {
+ return x.OutboundIpList
+ }
+ return nil
+}
+
type AgentPluginSetting struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -259,7 +268,7 @@ var file_store_setting_proto_rawDesc = []byte{
0x69, 0x2f, 0x65, 0x78, 0x70, 0x72, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f,
0x73, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x73, 0x74,
0x6f, 0x72, 0x65, 0x2f, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x2e, 0x70, 0x72, 0x6f,
- 0x74, 0x6f, 0x22, 0x86, 0x01, 0x0a, 0x17, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65,
+ 0x74, 0x6f, 0x22, 0xb0, 0x01, 0x0a, 0x17, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65,
0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x21,
0x0a, 0x0c, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x55, 0x72,
@@ -267,28 +276,30 @@ var file_store_setting_proto_rawDesc = []byte{
0x67, 0x6e, 0x75, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x64, 0x69, 0x73, 0x61,
0x6c, 0x6c, 0x6f, 0x77, 0x53, 0x69, 0x67, 0x6e, 0x75, 0x70, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65,
0x71, 0x75, 0x69, 0x72, 0x65, 0x5f, 0x32, 0x66, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52,
- 0x0a, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x32, 0x66, 0x61, 0x22, 0x3c, 0x0a, 0x12, 0x41,
- 0x67, 0x65, 0x6e, 0x74, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e,
- 0x67, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
- 0x75, 0x72, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xec, 0x01, 0x0a, 0x18, 0x57, 0x6f,
- 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x53,
- 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x43, 0x0a, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18,
- 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
- 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65,
- 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e,
- 0x52, 0x75, 0x6c, 0x65, 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x1a, 0x8a, 0x01, 0x0a, 0x04,
- 0x52, 0x75, 0x6c, 0x65, 0x12, 0x44, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69,
- 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
- 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70,
- 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x73, 0x65, 0x64, 0x45, 0x78, 0x70, 0x72, 0x52, 0x0a,
- 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3c, 0x0a, 0x08, 0x74, 0x65,
- 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x62,
- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70,
- 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x08,
- 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x42, 0x14, 0x5a, 0x12, 0x67, 0x65, 0x6e, 0x65,
- 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06,
- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+ 0x0a, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x32, 0x66, 0x61, 0x12, 0x28, 0x0a, 0x10, 0x6f,
+ 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x69, 0x70, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18,
+ 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x49,
+ 0x70, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x3c, 0x0a, 0x12, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x6c,
+ 0x75, 0x67, 0x69, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x75,
+ 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x14, 0x0a,
+ 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f,
+ 0x6b, 0x65, 0x6e, 0x22, 0xec, 0x01, 0x0a, 0x18, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63,
+ 0x65, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
+ 0x12, 0x43, 0x0a, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
+ 0x2d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65,
+ 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76,
+ 0x61, 0x6c, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x05,
+ 0x72, 0x75, 0x6c, 0x65, 0x73, 0x1a, 0x8a, 0x01, 0x0a, 0x04, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x44,
+ 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01,
+ 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e,
+ 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61,
+ 0x72, 0x73, 0x65, 0x64, 0x45, 0x78, 0x70, 0x72, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73,
+ 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3c, 0x0a, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65,
+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c,
+ 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61,
+ 0x74, 0x65, 0x42, 0x14, 0x5a, 0x12, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d,
+ 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
diff --git a/proto/store/setting.proto b/proto/store/setting.proto
index 9a41b2370f..578fa07180 100644
--- a/proto/store/setting.proto
+++ b/proto/store/setting.proto
@@ -20,6 +20,9 @@ message WorkspaceProfileSetting {
// Require 2FA for all users.
bool require_2fa = 3;
+
+ // outbound_ip_list is the outbound IP for Bytebase instance in SaaS mode.
+ repeated string outbound_ip_list = 4;
}
message AgentPluginSetting {