Skip to content

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

refactor: migrate SCIM token to WorkspaceProfileSetting (#18341)

Danny Xu5ae4d6707225
diff --git a/backend/api/directory-sync/webhook.go b/backend/api/directory-sync/webhook.go
index da464144fe..da18b3e995 100644
--- a/backend/api/directory-sync/webhook.go
+++ b/backend/api/directory-sync/webhook.go
@@ -625,19 +625,15 @@ func (s *Service) validRequestURL(ctx context.Context, c echo.Context) error {
return errors.Errorf("invalid workspace id %q, my ID %q", workspaceID, myWorkspaceID)
}
- scimSetting, err := s.store.GetSettingV2(ctx, storepb.SettingName_SCIM)
+ workspaceProfileSetting, err := s.store.GetWorkspaceGeneralSetting(ctx)
if err != nil {
- return errors.Wrapf(err, "failed to find scim setting")
+ return errors.Wrapf(err, "failed to get workspace profile setting")
}
- if scimSetting == nil {
- return errors.Errorf("cannot found scim setting")
- }
- payload := new(storepb.SCIMSetting)
- if err := common.ProtojsonUnmarshaler.Unmarshal([]byte(scimSetting.Value), payload); err != nil {
- return errors.Wrapf(err, "failed to unmarshal scim setting")
+ if workspaceProfileSetting.DirectorySyncToken == "" {
+ return errors.Errorf("directory sync token is not configured")
}
- if subtle.ConstantTimeCompare([]byte(payload.Token), []byte(authorization)) != 1 {
+ if subtle.ConstantTimeCompare([]byte(workspaceProfileSetting.DirectorySyncToken), []byte(authorization)) != 1 {
return errors.Errorf("invalid authorization token")
}
diff --git a/backend/api/v1/setting_service.go b/backend/api/v1/setting_service.go
index d52a5b079a..f8994be1b3 100644
--- a/backend/api/v1/setting_service.go
+++ b/backend/api/v1/setting_service.go
@@ -7,6 +7,7 @@ import (
"time"
"connectrpc.com/connect"
+ "github.com/google/uuid"
"github.com/pkg/errors"
"google.golang.org/protobuf/encoding/protojson"
"google.golang.org/protobuf/types/known/anypb"
@@ -275,6 +276,16 @@ func (s *SettingService) UpdateSetting(ctx context.Context, request *connect.Req
}
}
oldSetting.Watermark = payload.Watermark
+ case "value.workspace_profile.directory_sync_token":
+ if err := s.licenseService.IsFeatureEnabled(v1pb.PlanFeature_FEATURE_DIRECTORY_SYNC); err != nil {
+ return nil, connect.NewError(connect.CodePermissionDenied, err)
+ }
+ // Generate a new token if the payload is empty.
+ // This handles both initial setup and token reset (when user explicitly sends empty string).
+ if payload.DirectorySyncToken == "" {
+ payload.DirectorySyncToken = uuid.New().String()
+ }
+ oldSetting.DirectorySyncToken = payload.DirectorySyncToken
default:
return nil, connect.NewError(connect.CodeInvalidArgument, errors.Errorf("invalid update mask path %v", path))
}
@@ -461,18 +472,6 @@ func (s *SettingService) UpdateSetting(ctx context.Context, request *connect.Req
return nil, connect.NewError(connect.CodeInternal, errors.Errorf("failed to marshal setting for %s with error: %v", apiSettingName, err))
}
storeSettingValue = string(bytes)
- case storepb.SettingName_SCIM:
- scimToken, err := common.RandomString(32)
- if err != nil {
- return nil, connect.NewError(connect.CodeInternal, errors.Errorf("failed to generate random SCIM secret with error: %v", err))
- }
- bytes, err := protojson.Marshal(&storepb.SCIMSetting{
- Token: scimToken,
- })
- if err != nil {
- return nil, connect.NewError(connect.CodeInternal, errors.Errorf("failed to marshal SCIM setting with error: %v", err))
- }
- storeSettingValue = string(bytes)
case storepb.SettingName_PASSWORD_RESTRICTION:
if err := s.licenseService.IsFeatureEnabled(v1pb.PlanFeature_FEATURE_PASSWORD_RESTRICTIONS); err != nil {
return nil, connect.NewError(connect.CodePermissionDenied, err)
diff --git a/backend/api/v1/setting_service_converter.go b/backend/api/v1/setting_service_converter.go
index 8435f10359..01a1e9ebc5 100644
--- a/backend/api/v1/setting_service_converter.go
+++ b/backend/api/v1/setting_service_converter.go
@@ -93,19 +93,6 @@ func convertToSettingMessage(setting *store.SettingMessage, profile *config.Prof
},
},
}, nil
- case storepb.SettingName_SCIM:
- storeValue := new(storepb.SCIMSetting)
- if err := common.ProtojsonUnmarshaler.Unmarshal([]byte(setting.Value), storeValue); err != nil {
- return nil, connect.NewError(connect.CodeInternal, errors.Errorf("failed to unmarshal setting value for %s with error: %v", setting.Name, err))
- }
- return &v1pb.Setting{
- Name: settingName,
- Value: &v1pb.SettingValue{
- Value: &v1pb.SettingValue_Scim{
- Scim: convertToSCIMSetting(storeValue),
- },
- },
- }, nil
case storepb.SettingName_PASSWORD_RESTRICTION:
storeValue := new(storepb.PasswordRestrictionSetting)
if err := common.ProtojsonUnmarshaler.Unmarshal([]byte(setting.Value), storeValue); err != nil {
@@ -193,8 +180,6 @@ func convertStoreSettingNameToV1(storeName storepb.SettingName) v1pb.Setting_Set
return v1pb.Setting_DATA_CLASSIFICATION
case storepb.SettingName_SEMANTIC_TYPES:
return v1pb.Setting_SEMANTIC_TYPES
- case storepb.SettingName_SCIM:
- return v1pb.Setting_SCIM
case storepb.SettingName_PASSWORD_RESTRICTION:
return v1pb.Setting_PASSWORD_RESTRICTION
case storepb.SettingName_ENVIRONMENT:
@@ -226,8 +211,6 @@ func convertV1SettingNameToStore(v1Name v1pb.Setting_SettingName) storepb.Settin
return storepb.SettingName_DATA_CLASSIFICATION
case v1pb.Setting_SEMANTIC_TYPES:
return storepb.SettingName_SEMANTIC_TYPES
- case v1pb.Setting_SCIM:
- return storepb.SettingName_SCIM
case v1pb.Setting_PASSWORD_RESTRICTION:
return storepb.SettingName_PASSWORD_RESTRICTION
case v1pb.Setting_ENVIRONMENT:
@@ -296,6 +279,7 @@ func convertWorkspaceProfileSetting(v1Setting *v1pb.WorkspaceProfileSetting) *st
EnableMetricCollection: v1Setting.EnableMetricCollection,
EnableAuditLogStdout: v1Setting.EnableAuditLogStdout,
Watermark: v1Setting.Watermark,
+ DirectorySyncToken: v1Setting.DirectorySyncToken,
}
// Convert announcement if present
@@ -340,6 +324,7 @@ func convertToWorkspaceProfileSetting(storeSetting *storepb.WorkspaceProfileSett
EnableMetricCollection: storeSetting.EnableMetricCollection,
EnableAuditLogStdout: storeSetting.EnableAuditLogStdout,
Watermark: storeSetting.Watermark,
+ DirectorySyncToken: storeSetting.DirectorySyncToken,
}
if storeSetting.Announcement != nil {
@@ -807,13 +792,3 @@ func convertToAISetting(storeSetting *storepb.AISetting) *v1pb.AISetting {
Version: storeSetting.Version,
}
}
-
-func convertToSCIMSetting(storeSetting *storepb.SCIMSetting) *v1pb.SCIMSetting {
- if storeSetting == nil {
- return nil
- }
-
- return &v1pb.SCIMSetting{
- Token: storeSetting.Token,
- }
-}
diff --git a/backend/generated-go/store/setting.pb.go b/backend/generated-go/store/setting.pb.go
index 0096c35e15..4ca5b525e3 100644
--- a/backend/generated-go/store/setting.pb.go
+++ b/backend/generated-go/store/setting.pb.go
@@ -37,7 +37,6 @@ const (
SettingName_AI SettingName = 10
SettingName_DATA_CLASSIFICATION SettingName = 14
SettingName_SEMANTIC_TYPES SettingName = 15
- SettingName_SCIM SettingName = 17
SettingName_PASSWORD_RESTRICTION SettingName = 18
SettingName_ENVIRONMENT SettingName = 19
)
@@ -56,7 +55,6 @@ var (
10: "AI",
14: "DATA_CLASSIFICATION",
15: "SEMANTIC_TYPES",
- 17: "SCIM",
18: "PASSWORD_RESTRICTION",
19: "ENVIRONMENT",
}
@@ -72,7 +70,6 @@ var (
"AI": 10,
"DATA_CLASSIFICATION": 14,
"SEMANTIC_TYPES": 15,
- "SCIM": 17,
"PASSWORD_RESTRICTION": 18,
"ENVIRONMENT": 19,
}
@@ -366,7 +363,7 @@ func (x AISetting_Provider) Number() protoreflect.EnumNumber {
// Deprecated: Use AISetting_Provider.Descriptor instead.
func (AISetting_Provider) EnumDescriptor() ([]byte, []int) {
- return file_store_setting_proto_rawDescGZIP(), []int{9, 0}
+ return file_store_setting_proto_rawDescGZIP(), []int{8, 0}
}
type WorkspaceProfileSetting struct {
@@ -400,9 +397,11 @@ type WorkspaceProfileSetting struct {
EnableAuditLogStdout bool `protobuf:"varint,15,opt,name=enable_audit_log_stdout,json=enableAuditLogStdout,proto3" json:"enable_audit_log_stdout,omitempty"`
// Whether to display watermark on pages.
// Requires ENTERPRISE license.
- Watermark bool `protobuf:"varint,16,opt,name=watermark,proto3" json:"watermark,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
+ Watermark bool `protobuf:"varint,16,opt,name=watermark,proto3" json:"watermark,omitempty"`
+ // The token for directory sync authentication.
+ DirectorySyncToken string `protobuf:"bytes,17,opt,name=directory_sync_token,json=directorySyncToken,proto3" json:"directory_sync_token,omitempty"`
+ unknownFields protoimpl.UnknownFields
+ sizeCache protoimpl.SizeCache
}
func (x *WorkspaceProfileSetting) Reset() {
@@ -533,6 +532,13 @@ func (x *WorkspaceProfileSetting) GetWatermark() bool {
return false
}
+func (x *WorkspaceProfileSetting) GetDirectorySyncToken() string {
+ if x != nil {
+ return x.DirectorySyncToken
+ }
+ return ""
+}
+
type Announcement struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The alert level of the announcement.
@@ -886,50 +892,6 @@ func (x *AppIMSetting) GetSettings() []*AppIMSetting_IMSetting {
return nil
}
-type SCIMSetting struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *SCIMSetting) Reset() {
- *x = SCIMSetting{}
- mi := &file_store_setting_proto_msgTypes[7]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *SCIMSetting) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*SCIMSetting) ProtoMessage() {}
-
-func (x *SCIMSetting) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[7]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use SCIMSetting.ProtoReflect.Descriptor instead.
-func (*SCIMSetting) Descriptor() ([]byte, []int) {
- return file_store_setting_proto_rawDescGZIP(), []int{7}
-}
-
-func (x *SCIMSetting) GetToken() string {
- if x != nil {
- return x.Token
- }
- return ""
-}
-
type PasswordRestrictionSetting struct {
state protoimpl.MessageState `protogen:"open.v1"`
// min_length is the minimum length for password, should be no less than 8.
@@ -952,7 +914,7 @@ type PasswordRestrictionSetting struct {
func (x *PasswordRestrictionSetting) Reset() {
*x = PasswordRestrictionSetting{}
- mi := &file_store_setting_proto_msgTypes[8]
+ mi := &file_store_setting_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -964,7 +926,7 @@ func (x *PasswordRestrictionSetting) String() string {
func (*PasswordRestrictionSetting) ProtoMessage() {}
func (x *PasswordRestrictionSetting) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[8]
+ mi := &file_store_setting_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -977,7 +939,7 @@ func (x *PasswordRestrictionSetting) ProtoReflect() protoreflect.Message {
// Deprecated: Use PasswordRestrictionSetting.ProtoReflect.Descriptor instead.
func (*PasswordRestrictionSetting) Descriptor() ([]byte, []int) {
- return file_store_setting_proto_rawDescGZIP(), []int{8}
+ return file_store_setting_proto_rawDescGZIP(), []int{7}
}
func (x *PasswordRestrictionSetting) GetMinLength() int32 {
@@ -1043,7 +1005,7 @@ type AISetting struct {
func (x *AISetting) Reset() {
*x = AISetting{}
- mi := &file_store_setting_proto_msgTypes[9]
+ mi := &file_store_setting_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1055,7 +1017,7 @@ func (x *AISetting) String() string {
func (*AISetting) ProtoMessage() {}
func (x *AISetting) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[9]
+ mi := &file_store_setting_proto_msgTypes[8]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1068,7 +1030,7 @@ func (x *AISetting) ProtoReflect() protoreflect.Message {
// Deprecated: Use AISetting.ProtoReflect.Descriptor instead.
func (*AISetting) Descriptor() ([]byte, []int) {
- return file_store_setting_proto_rawDescGZIP(), []int{9}
+ return file_store_setting_proto_rawDescGZIP(), []int{8}
}
func (x *AISetting) GetEnabled() bool {
@@ -1122,7 +1084,7 @@ type EnvironmentSetting struct {
func (x *EnvironmentSetting) Reset() {
*x = EnvironmentSetting{}
- mi := &file_store_setting_proto_msgTypes[10]
+ mi := &file_store_setting_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1134,7 +1096,7 @@ func (x *EnvironmentSetting) String() string {
func (*EnvironmentSetting) ProtoMessage() {}
func (x *EnvironmentSetting) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[10]
+ mi := &file_store_setting_proto_msgTypes[9]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1147,7 +1109,7 @@ func (x *EnvironmentSetting) ProtoReflect() protoreflect.Message {
// Deprecated: Use EnvironmentSetting.ProtoReflect.Descriptor instead.
func (*EnvironmentSetting) Descriptor() ([]byte, []int) {
- return file_store_setting_proto_rawDescGZIP(), []int{10}
+ return file_store_setting_proto_rawDescGZIP(), []int{9}
}
func (x *EnvironmentSetting) GetEnvironments() []*EnvironmentSetting_Environment {
@@ -1168,7 +1130,7 @@ type WorkspaceApprovalSetting_Rule struct {
func (x *WorkspaceApprovalSetting_Rule) Reset() {
*x = WorkspaceApprovalSetting_Rule{}
- mi := &file_store_setting_proto_msgTypes[11]
+ mi := &file_store_setting_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1180,7 +1142,7 @@ func (x *WorkspaceApprovalSetting_Rule) String() string {
func (*WorkspaceApprovalSetting_Rule) ProtoMessage() {}
func (x *WorkspaceApprovalSetting_Rule) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[11]
+ mi := &file_store_setting_proto_msgTypes[10]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1235,7 +1197,7 @@ type DataClassificationSetting_DataClassificationConfig struct {
func (x *DataClassificationSetting_DataClassificationConfig) Reset() {
*x = DataClassificationSetting_DataClassificationConfig{}
- mi := &file_store_setting_proto_msgTypes[12]
+ mi := &file_store_setting_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1247,7 +1209,7 @@ func (x *DataClassificationSetting_DataClassificationConfig) String() string {
func (*DataClassificationSetting_DataClassificationConfig) ProtoMessage() {}
func (x *DataClassificationSetting_DataClassificationConfig) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[12]
+ mi := &file_store_setting_proto_msgTypes[11]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1302,7 +1264,7 @@ type DataClassificationSetting_DataClassificationConfig_Level struct {
func (x *DataClassificationSetting_DataClassificationConfig_Level) Reset() {
*x = DataClassificationSetting_DataClassificationConfig_Level{}
- mi := &file_store_setting_proto_msgTypes[13]
+ mi := &file_store_setting_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1314,7 +1276,7 @@ func (x *DataClassificationSetting_DataClassificationConfig_Level) String() stri
func (*DataClassificationSetting_DataClassificationConfig_Level) ProtoMessage() {}
func (x *DataClassificationSetting_DataClassificationConfig_Level) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[13]
+ mi := &file_store_setting_proto_msgTypes[12]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1364,7 +1326,7 @@ type DataClassificationSetting_DataClassificationConfig_DataClassification struc
func (x *DataClassificationSetting_DataClassificationConfig_DataClassification) Reset() {
*x = DataClassificationSetting_DataClassificationConfig_DataClassification{}
- mi := &file_store_setting_proto_msgTypes[14]
+ mi := &file_store_setting_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1376,7 +1338,7 @@ func (x *DataClassificationSetting_DataClassificationConfig_DataClassification)
func (*DataClassificationSetting_DataClassificationConfig_DataClassification) ProtoMessage() {}
func (x *DataClassificationSetting_DataClassificationConfig_DataClassification) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[14]
+ mi := &file_store_setting_proto_msgTypes[13]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1437,7 +1399,7 @@ type SemanticTypeSetting_SemanticType struct {
func (x *SemanticTypeSetting_SemanticType) Reset() {
*x = SemanticTypeSetting_SemanticType{}
- mi := &file_store_setting_proto_msgTypes[16]
+ mi := &file_store_setting_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1449,7 +1411,7 @@ func (x *SemanticTypeSetting_SemanticType) String() string {
func (*SemanticTypeSetting_SemanticType) ProtoMessage() {}
func (x *SemanticTypeSetting_SemanticType) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[16]
+ mi := &file_store_setting_proto_msgTypes[15]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1511,7 +1473,7 @@ type Algorithm_FullMask struct {
func (x *Algorithm_FullMask) Reset() {
*x = Algorithm_FullMask{}
- mi := &file_store_setting_proto_msgTypes[17]
+ mi := &file_store_setting_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1523,7 +1485,7 @@ func (x *Algorithm_FullMask) String() string {
func (*Algorithm_FullMask) ProtoMessage() {}
func (x *Algorithm_FullMask) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[17]
+ mi := &file_store_setting_proto_msgTypes[16]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1557,7 +1519,7 @@ type Algorithm_RangeMask struct {
func (x *Algorithm_RangeMask) Reset() {
*x = Algorithm_RangeMask{}
- mi := &file_store_setting_proto_msgTypes[18]
+ mi := &file_store_setting_proto_msgTypes[17]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1569,7 +1531,7 @@ func (x *Algorithm_RangeMask) String() string {
func (*Algorithm_RangeMask) ProtoMessage() {}
func (x *Algorithm_RangeMask) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[18]
+ mi := &file_store_setting_proto_msgTypes[17]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1602,7 +1564,7 @@ type Algorithm_MD5Mask struct {
func (x *Algorithm_MD5Mask) Reset() {
*x = Algorithm_MD5Mask{}
- mi := &file_store_setting_proto_msgTypes[19]
+ mi := &file_store_setting_proto_msgTypes[18]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1614,7 +1576,7 @@ func (x *Algorithm_MD5Mask) String() string {
func (*Algorithm_MD5Mask) ProtoMessage() {}
func (x *Algorithm_MD5Mask) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[19]
+ mi := &file_store_setting_proto_msgTypes[18]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1649,7 +1611,7 @@ type Algorithm_InnerOuterMask struct {
func (x *Algorithm_InnerOuterMask) Reset() {
*x = Algorithm_InnerOuterMask{}
- mi := &file_store_setting_proto_msgTypes[20]
+ mi := &file_store_setting_proto_msgTypes[19]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1661,7 +1623,7 @@ func (x *Algorithm_InnerOuterMask) String() string {
func (*Algorithm_InnerOuterMask) ProtoMessage() {}
func (x *Algorithm_InnerOuterMask) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[20]
+ mi := &file_store_setting_proto_msgTypes[19]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1719,7 +1681,7 @@ type Algorithm_RangeMask_Slice struct {
func (x *Algorithm_RangeMask_Slice) Reset() {
*x = Algorithm_RangeMask_Slice{}
- mi := &file_store_setting_proto_msgTypes[21]
+ mi := &file_store_setting_proto_msgTypes[20]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1731,7 +1693,7 @@ func (x *Algorithm_RangeMask_Slice) String() string {
func (*Algorithm_RangeMask_Slice) ProtoMessage() {}
func (x *Algorithm_RangeMask_Slice) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[21]
+ mi := &file_store_setting_proto_msgTypes[20]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1777,7 +1739,7 @@ type AppIMSetting_Slack struct {
func (x *AppIMSetting_Slack) Reset() {
*x = AppIMSetting_Slack{}
- mi := &file_store_setting_proto_msgTypes[22]
+ mi := &file_store_setting_proto_msgTypes[21]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1789,7 +1751,7 @@ func (x *AppIMSetting_Slack) String() string {
func (*AppIMSetting_Slack) ProtoMessage() {}
func (x *AppIMSetting_Slack) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[22]
+ mi := &file_store_setting_proto_msgTypes[21]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1822,7 +1784,7 @@ type AppIMSetting_Feishu struct {
func (x *AppIMSetting_Feishu) Reset() {
*x = AppIMSetting_Feishu{}
- mi := &file_store_setting_proto_msgTypes[23]
+ mi := &file_store_setting_proto_msgTypes[22]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1834,7 +1796,7 @@ func (x *AppIMSetting_Feishu) String() string {
func (*AppIMSetting_Feishu) ProtoMessage() {}
func (x *AppIMSetting_Feishu) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[23]
+ mi := &file_store_setting_proto_msgTypes[22]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1875,7 +1837,7 @@ type AppIMSetting_Wecom struct {
func (x *AppIMSetting_Wecom) Reset() {
*x = AppIMSetting_Wecom{}
- mi := &file_store_setting_proto_msgTypes[24]
+ mi := &file_store_setting_proto_msgTypes[23]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1887,7 +1849,7 @@ func (x *AppIMSetting_Wecom) String() string {
func (*AppIMSetting_Wecom) ProtoMessage() {}
func (x *AppIMSetting_Wecom) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[24]
+ mi := &file_store_setting_proto_msgTypes[23]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1934,7 +1896,7 @@ type AppIMSetting_Lark struct {
func (x *AppIMSetting_Lark) Reset() {
*x = AppIMSetting_Lark{}
- mi := &file_store_setting_proto_msgTypes[25]
+ mi := &file_store_setting_proto_msgTypes[24]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1946,7 +1908,7 @@ func (x *AppIMSetting_Lark) String() string {
func (*AppIMSetting_Lark) ProtoMessage() {}
func (x *AppIMSetting_Lark) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[25]
+ mi := &file_store_setting_proto_msgTypes[24]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1987,7 +1949,7 @@ type AppIMSetting_DingTalk struct {
func (x *AppIMSetting_DingTalk) Reset() {
*x = AppIMSetting_DingTalk{}
- mi := &file_store_setting_proto_msgTypes[26]
+ mi := &file_store_setting_proto_msgTypes[25]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1999,7 +1961,7 @@ func (x *AppIMSetting_DingTalk) String() string {
func (*AppIMSetting_DingTalk) ProtoMessage() {}
func (x *AppIMSetting_DingTalk) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[26]
+ mi := &file_store_setting_proto_msgTypes[25]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2050,7 +2012,7 @@ type AppIMSetting_Teams struct {
func (x *AppIMSetting_Teams) Reset() {
*x = AppIMSetting_Teams{}
- mi := &file_store_setting_proto_msgTypes[27]
+ mi := &file_store_setting_proto_msgTypes[26]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2062,7 +2024,7 @@ func (x *AppIMSetting_Teams) String() string {
func (*AppIMSetting_Teams) ProtoMessage() {}
func (x *AppIMSetting_Teams) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[27]
+ mi := &file_store_setting_proto_msgTypes[26]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2117,7 +2079,7 @@ type AppIMSetting_IMSetting struct {
func (x *AppIMSetting_IMSetting) Reset() {
*x = AppIMSetting_IMSetting{}
- mi := &file_store_setting_proto_msgTypes[28]
+ mi := &file_store_setting_proto_msgTypes[27]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2129,7 +2091,7 @@ func (x *AppIMSetting_IMSetting) String() string {
func (*AppIMSetting_IMSetting) ProtoMessage() {}
func (x *AppIMSetting_IMSetting) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[28]
+ mi := &file_store_setting_proto_msgTypes[27]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2269,7 +2231,7 @@ type EnvironmentSetting_Environment struct {
func (x *EnvironmentSetting_Environment) Reset() {
*x = EnvironmentSetting_Environment{}
- mi := &file_store_setting_proto_msgTypes[29]
+ mi := &file_store_setting_proto_msgTypes[28]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2281,7 +2243,7 @@ func (x *EnvironmentSetting_Environment) String() string {
func (*EnvironmentSetting_Environment) ProtoMessage() {}
func (x *EnvironmentSetting_Environment) ProtoReflect() protoreflect.Message {
- mi := &file_store_setting_proto_msgTypes[29]
+ mi := &file_store_setting_proto_msgTypes[28]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2294,7 +2256,7 @@ func (x *EnvironmentSetting_Environment) ProtoReflect() protoreflect.Message {
// Deprecated: Use EnvironmentSetting_Environment.ProtoReflect.Descriptor instead.
func (*EnvironmentSetting_Environment) Descriptor() ([]byte, []int) {
- return file_store_setting_proto_rawDescGZIP(), []int{10, 0}
+ return file_store_setting_proto_rawDescGZIP(), []int{9, 0}
}
func (x *EnvironmentSetting_Environment) GetId() string {
@@ -2329,7 +2291,7 @@ var File_store_setting_proto protoreflect.FileDescriptor
const file_store_setting_proto_rawDesc = "" +
"\n" +
- "\x13store/setting.proto\x12\x0ebytebase.store\x1a\x1egoogle/protobuf/duration.proto\x1a\x16google/type/expr.proto\x1a\x14store/approval.proto\x1a\x1bstore/project_webhook.proto\"\xa3\x06\n" +
+ "\x13store/setting.proto\x12\x0ebytebase.store\x1a\x1egoogle/protobuf/duration.proto\x1a\x16google/type/expr.proto\x1a\x14store/approval.proto\x1a\x1bstore/project_webhook.proto\"\xd5\x06\n" +
"\x17WorkspaceProfileSetting\x12!\n" +
"\fexternal_url\x18\x01 \x01(\tR\vexternalUrl\x12'\n" +
"\x0fdisallow_signup\x18\x02 \x01(\bR\x0edisallowSignup\x12\x1f\n" +
@@ -2346,7 +2308,8 @@ const file_store_setting_proto_rawDesc = "" +
"\x18enable_metric_collection\x18\r \x01(\bR\x16enableMetricCollection\x12S\n" +
"\x18inactive_session_timeout\x18\x0e \x01(\v2\x19.google.protobuf.DurationR\x16inactiveSessionTimeout\x125\n" +
"\x17enable_audit_log_stdout\x18\x0f \x01(\bR\x14enableAuditLogStdout\x12\x1c\n" +
- "\twatermark\x18\x10 \x01(\bR\twatermark\"\xe9\x01\n" +
+ "\twatermark\x18\x10 \x01(\bR\twatermark\x120\n" +
+ "\x14directory_sync_token\x18\x11 \x01(\tR\x12directorySyncToken\"\xe9\x01\n" +
"\fAnnouncement\x12=\n" +
"\x05level\x18\x01 \x01(\x0e2'.bytebase.store.Announcement.AlertLevelR\x05level\x12\x12\n" +
"\x04text\x18\x02 \x01(\tR\x04text\x12\x12\n" +
@@ -2458,9 +2421,7 @@ const file_store_setting_proto_rawDesc = "" +
"\x04lark\x18\x05 \x01(\v2!.bytebase.store.AppIMSetting.LarkH\x00R\x04lark\x12C\n" +
"\bdingtalk\x18\x06 \x01(\v2%.bytebase.store.AppIMSetting.DingTalkH\x00R\bdingtalk\x12:\n" +
"\x05teams\x18\a \x01(\v2\".bytebase.store.AppIMSetting.TeamsH\x00R\x05teamsB\t\n" +
- "\apayload\"#\n" +
- "\vSCIMSetting\x12\x14\n" +
- "\x05token\x18\x01 \x01(\tR\x05token\"\x9a\x03\n" +
+ "\apayload\"\x9a\x03\n" +
"\x1aPasswordRestrictionSetting\x12\x1d\n" +
"\n" +
"min_length\x18\x01 \x01(\x05R\tminLength\x12%\n" +
@@ -2494,7 +2455,7 @@ const file_store_setting_proto_rawDesc = "" +
"\x05color\x18\x04 \x01(\tR\x05color\x1a7\n" +
"\tTagsEntry\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
- "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01*\x9e\x02\n" +
+ "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01*\x94\x02\n" +
"\vSettingName\x12\x1c\n" +
"\x18SETTING_NAME_UNSPECIFIED\x10\x00\x12\x0f\n" +
"\vAUTH_SECRET\x10\x01\x12\x11\n" +
@@ -2508,8 +2469,7 @@ const file_store_setting_proto_rawDesc = "" +
"\x02AI\x10\n" +
"\x12\x17\n" +
"\x13DATA_CLASSIFICATION\x10\x0e\x12\x12\n" +
- "\x0eSEMANTIC_TYPES\x10\x0f\x12\b\n" +
- "\x04SCIM\x10\x11\x12\x18\n" +
+ "\x0eSEMANTIC_TYPES\x10\x0f\x12\x18\n" +
"\x14PASSWORD_RESTRICTION\x10\x12\x12\x0f\n" +
"\vENVIRONMENT\x10\x13*T\n" +
"\x12DatabaseChangeMode\x12$\n" +
@@ -2532,7 +2492,7 @@ func file_store_setting_proto_rawDescGZIP() []byte {
}
var file_store_setting_proto_enumTypes = make([]protoimpl.EnumInfo, 6)
-var file_store_setting_proto_msgTypes = make([]protoimpl.MessageInfo, 31)
+var file_store_setting_proto_msgTypes = make([]protoimpl.MessageInfo, 30)
var file_store_setting_proto_goTypes = []any{
(SettingName)(0), // 0: bytebase.store.SettingName
(DatabaseChangeMode)(0), // 1: bytebase.store.DatabaseChangeMode
@@ -2547,70 +2507,69 @@ var file_store_setting_proto_goTypes = []any{
(*SemanticTypeSetting)(nil), // 10: bytebase.store.SemanticTypeSetting
(*Algorithm)(nil), // 11: bytebase.store.Algorithm
(*AppIMSetting)(nil), // 12: bytebase.store.AppIMSetting
- (*SCIMSetting)(nil), // 13: bytebase.store.SCIMSetting
- (*PasswordRestrictionSetting)(nil), // 14: bytebase.store.PasswordRestrictionSetting
- (*AISetting)(nil), // 15: bytebase.store.AISetting
- (*EnvironmentSetting)(nil), // 16: bytebase.store.EnvironmentSetting
- (*WorkspaceApprovalSetting_Rule)(nil), // 17: bytebase.store.WorkspaceApprovalSetting.Rule
- (*DataClassificationSetting_DataClassificationConfig)(nil), // 18: bytebase.store.DataClassificationSetting.DataClassificationConfig
- (*DataClassificationSetting_DataClassificationConfig_Level)(nil), // 19: bytebase.store.DataClassificationSetting.DataClassificationConfig.Level
- (*DataClassificationSetting_DataClassificationConfig_DataClassification)(nil), // 20: bytebase.store.DataClassificationSetting.DataClassificationConfig.DataClassification
- nil, // 21: bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry
- (*SemanticTypeSetting_SemanticType)(nil), // 22: bytebase.store.SemanticTypeSetting.SemanticType
- (*Algorithm_FullMask)(nil), // 23: bytebase.store.Algorithm.FullMask
- (*Algorithm_RangeMask)(nil), // 24: bytebase.store.Algorithm.RangeMask
- (*Algorithm_MD5Mask)(nil), // 25: bytebase.store.Algorithm.MD5Mask
- (*Algorithm_InnerOuterMask)(nil), // 26: bytebase.store.Algorithm.InnerOuterMask
- (*Algorithm_RangeMask_Slice)(nil), // 27: bytebase.store.Algorithm.RangeMask.Slice
- (*AppIMSetting_Slack)(nil), // 28: bytebase.store.AppIMSetting.Slack
- (*AppIMSetting_Feishu)(nil), // 29: bytebase.store.AppIMSetting.Feishu
- (*AppIMSetting_Wecom)(nil), // 30: bytebase.store.AppIMSetting.Wecom
- (*AppIMSetting_Lark)(nil), // 31: bytebase.store.AppIMSetting.Lark
- (*AppIMSetting_DingTalk)(nil), // 32: bytebase.store.AppIMSetting.DingTalk
- (*AppIMSetting_Teams)(nil), // 33: bytebase.store.AppIMSetting.Teams
- (*AppIMSetting_IMSetting)(nil), // 34: bytebase.store.AppIMSetting.IMSetting
- (*EnvironmentSetting_Environment)(nil), // 35: bytebase.store.EnvironmentSetting.Environment
- nil, // 36: bytebase.store.EnvironmentSetting.Environment.TagsEntry
- (*durationpb.Duration)(nil), // 37: google.protobuf.Duration
- (*ApprovalTemplate)(nil), // 38: bytebase.store.ApprovalTemplate
- (*expr.Expr)(nil), // 39: google.type.Expr
- (ProjectWebhook_Type)(0), // 40: bytebase.store.ProjectWebhook.Type
+ (*PasswordRestrictionSetting)(nil), // 13: bytebase.store.PasswordRestrictionSetting
+ (*AISetting)(nil), // 14: bytebase.store.AISetting
+ (*EnvironmentSetting)(nil), // 15: bytebase.store.EnvironmentSetting
+ (*WorkspaceApprovalSetting_Rule)(nil), // 16: bytebase.store.WorkspaceApprovalSetting.Rule
+ (*DataClassificationSetting_DataClassificationConfig)(nil), // 17: bytebase.store.DataClassificationSetting.DataClassificationConfig
+ (*DataClassificationSetting_DataClassificationConfig_Level)(nil), // 18: bytebase.store.DataClassificationSetting.DataClassificationConfig.Level
+ (*DataClassificationSetting_DataClassificationConfig_DataClassification)(nil), // 19: bytebase.store.DataClassificationSetting.DataClassificationConfig.DataClassification
+ nil, // 20: bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry
+ (*SemanticTypeSetting_SemanticType)(nil), // 21: bytebase.store.SemanticTypeSetting.SemanticType
+ (*Algorithm_FullMask)(nil), // 22: bytebase.store.Algorithm.FullMask
+ (*Algorithm_RangeMask)(nil), // 23: bytebase.store.Algorithm.RangeMask
+ (*Algorithm_MD5Mask)(nil), // 24: bytebase.store.Algorithm.MD5Mask
+ (*Algorithm_InnerOuterMask)(nil), // 25: bytebase.store.Algorithm.InnerOuterMask
+ (*Algorithm_RangeMask_Slice)(nil), // 26: bytebase.store.Algorithm.RangeMask.Slice
+ (*AppIMSetting_Slack)(nil), // 27: bytebase.store.AppIMSetting.Slack
+ (*AppIMSetting_Feishu)(nil), // 28: bytebase.store.AppIMSetting.Feishu
+ (*AppIMSetting_Wecom)(nil), // 29: bytebase.store.AppIMSetting.Wecom
+ (*AppIMSetting_Lark)(nil), // 30: bytebase.store.AppIMSetting.Lark
+ (*AppIMSetting_DingTalk)(nil), // 31: bytebase.store.AppIMSetting.DingTalk
+ (*AppIMSetting_Teams)(nil), // 32: bytebase.store.AppIMSetting.Teams
+ (*AppIMSetting_IMSetting)(nil), // 33: bytebase.store.AppIMSetting.IMSetting
+ (*EnvironmentSetting_Environment)(nil), // 34: bytebase.store.EnvironmentSetting.Environment
+ nil, // 35: bytebase.store.EnvironmentSetting.Environment.TagsEntry
+ (*durationpb.Duration)(nil), // 36: google.protobuf.Duration
+ (*ApprovalTemplate)(nil), // 37: bytebase.store.ApprovalTemplate
+ (*expr.Expr)(nil), // 38: google.type.Expr
+ (ProjectWebhook_Type)(0), // 39: bytebase.store.ProjectWebhook.Type
}
var file_store_setting_proto_depIdxs = []int32{
- 37, // 0: bytebase.store.WorkspaceProfileSetting.token_duration:type_name -> google.protobuf.Duration
+ 36, // 0: bytebase.store.WorkspaceProfileSetting.token_duration:type_name -> google.protobuf.Duration
7, // 1: bytebase.store.WorkspaceProfileSetting.announcement:type_name -> bytebase.store.Announcement
- 37, // 2: bytebase.store.WorkspaceProfileSetting.maximum_role_expiration:type_name -> google.protobuf.Duration
+ 36, // 2: bytebase.store.WorkspaceProfileSetting.maximum_role_expiration:type_name -> google.protobuf.Duration
1, // 3: bytebase.store.WorkspaceProfileSetting.database_change_mode:type_name -> bytebase.store.DatabaseChangeMode
- 37, // 4: bytebase.store.WorkspaceProfileSetting.inactive_session_timeout:type_name -> google.protobuf.Duration
+ 36, // 4: bytebase.store.WorkspaceProfileSetting.inactive_session_timeout:type_name -> google.protobuf.Duration
2, // 5: bytebase.store.Announcement.level:type_name -> bytebase.store.Announcement.AlertLevel
- 17, // 6: bytebase.store.WorkspaceApprovalSetting.rules:type_name -> bytebase.store.WorkspaceApprovalSetting.Rule
- 18, // 7: bytebase.store.DataClassificationSetting.configs:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig
- 22, // 8: bytebase.store.SemanticTypeSetting.types:type_name -> bytebase.store.SemanticTypeSetting.SemanticType
- 23, // 9: bytebase.store.Algorithm.full_mask:type_name -> bytebase.store.Algorithm.FullMask
- 24, // 10: bytebase.store.Algorithm.range_mask:type_name -> bytebase.store.Algorithm.RangeMask
- 25, // 11: bytebase.store.Algorithm.md5_mask:type_name -> bytebase.store.Algorithm.MD5Mask
- 26, // 12: bytebase.store.Algorithm.inner_outer_mask:type_name -> bytebase.store.Algorithm.InnerOuterMask
- 34, // 13: bytebase.store.AppIMSetting.settings:type_name -> bytebase.store.AppIMSetting.IMSetting
- 37, // 14: bytebase.store.PasswordRestrictionSetting.password_rotation:type_name -> google.protobuf.Duration
+ 16, // 6: bytebase.store.WorkspaceApprovalSetting.rules:type_name -> bytebase.store.WorkspaceApprovalSetting.Rule
+ 17, // 7: bytebase.store.DataClassificationSetting.configs:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig
+ 21, // 8: bytebase.store.SemanticTypeSetting.types:type_name -> bytebase.store.SemanticTypeSetting.SemanticType
+ 22, // 9: bytebase.store.Algorithm.full_mask:type_name -> bytebase.store.Algorithm.FullMask
+ 23, // 10: bytebase.store.Algorithm.range_mask:type_name -> bytebase.store.Algorithm.RangeMask
+ 24, // 11: bytebase.store.Algorithm.md5_mask:type_name -> bytebase.store.Algorithm.MD5Mask
+ 25, // 12: bytebase.store.Algorithm.inner_outer_mask:type_name -> bytebase.store.Algorithm.InnerOuterMask
+ 33, // 13: bytebase.store.AppIMSetting.settings:type_name -> bytebase.store.AppIMSetting.IMSetting
+ 36, // 14: bytebase.store.PasswordRestrictionSetting.password_rotation:type_name -> google.protobuf.Duration
5, // 15: bytebase.store.AISetting.provider:type_name -> bytebase.store.AISetting.Provider
- 35, // 16: bytebase.store.EnvironmentSetting.environments:type_name -> bytebase.store.EnvironmentSetting.Environment
- 38, // 17: bytebase.store.WorkspaceApprovalSetting.Rule.template:type_name -> bytebase.store.ApprovalTemplate
- 39, // 18: bytebase.store.WorkspaceApprovalSetting.Rule.condition:type_name -> google.type.Expr
+ 34, // 16: bytebase.store.EnvironmentSetting.environments:type_name -> bytebase.store.EnvironmentSetting.Environment
+ 37, // 17: bytebase.store.WorkspaceApprovalSetting.Rule.template:type_name -> bytebase.store.ApprovalTemplate
+ 38, // 18: bytebase.store.WorkspaceApprovalSetting.Rule.condition:type_name -> google.type.Expr
3, // 19: bytebase.store.WorkspaceApprovalSetting.Rule.source:type_name -> bytebase.store.WorkspaceApprovalSetting.Rule.Source
- 19, // 20: bytebase.store.DataClassificationSetting.DataClassificationConfig.levels:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.Level
- 21, // 21: bytebase.store.DataClassificationSetting.DataClassificationConfig.classification:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry
- 20, // 22: bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry.value:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.DataClassification
+ 18, // 20: bytebase.store.DataClassificationSetting.DataClassificationConfig.levels:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.Level
+ 20, // 21: bytebase.store.DataClassificationSetting.DataClassificationConfig.classification:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry
+ 19, // 22: bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry.value:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.DataClassification
11, // 23: bytebase.store.SemanticTypeSetting.SemanticType.algorithm:type_name -> bytebase.store.Algorithm
- 27, // 24: bytebase.store.Algorithm.RangeMask.slices:type_name -> bytebase.store.Algorithm.RangeMask.Slice
+ 26, // 24: bytebase.store.Algorithm.RangeMask.slices:type_name -> bytebase.store.Algorithm.RangeMask.Slice
4, // 25: bytebase.store.Algorithm.InnerOuterMask.type:type_name -> bytebase.store.Algorithm.InnerOuterMask.MaskType
- 40, // 26: bytebase.store.AppIMSetting.IMSetting.type:type_name -> bytebase.store.ProjectWebhook.Type
- 28, // 27: bytebase.store.AppIMSetting.IMSetting.slack:type_name -> bytebase.store.AppIMSetting.Slack
- 29, // 28: bytebase.store.AppIMSetting.IMSetting.feishu:type_name -> bytebase.store.AppIMSetting.Feishu
- 30, // 29: bytebase.store.AppIMSetting.IMSetting.wecom:type_name -> bytebase.store.AppIMSetting.Wecom
- 31, // 30: bytebase.store.AppIMSetting.IMSetting.lark:type_name -> bytebase.store.AppIMSetting.Lark
- 32, // 31: bytebase.store.AppIMSetting.IMSetting.dingtalk:type_name -> bytebase.store.AppIMSetting.DingTalk
- 33, // 32: bytebase.store.AppIMSetting.IMSetting.teams:type_name -> bytebase.store.AppIMSetting.Teams
- 36, // 33: bytebase.store.EnvironmentSetting.Environment.tags:type_name -> bytebase.store.EnvironmentSetting.Environment.TagsEntry
+ 39, // 26: bytebase.store.AppIMSetting.IMSetting.type:type_name -> bytebase.store.ProjectWebhook.Type
+ 27, // 27: bytebase.store.AppIMSetting.IMSetting.slack:type_name -> bytebase.store.AppIMSetting.Slack
+ 28, // 28: bytebase.store.AppIMSetting.IMSetting.feishu:type_name -> bytebase.store.AppIMSetting.Feishu
+ 29, // 29: bytebase.store.AppIMSetting.IMSetting.wecom:type_name -> bytebase.store.AppIMSetting.Wecom
+ 30, // 30: bytebase.store.AppIMSetting.IMSetting.lark:type_name -> bytebase.store.AppIMSetting.Lark
+ 31, // 31: bytebase.store.AppIMSetting.IMSetting.dingtalk:type_name -> bytebase.store.AppIMSetting.DingTalk
+ 32, // 32: bytebase.store.AppIMSetting.IMSetting.teams:type_name -> bytebase.store.AppIMSetting.Teams
+ 35, // 33: bytebase.store.EnvironmentSetting.Environment.tags:type_name -> bytebase.store.EnvironmentSetting.Environment.TagsEntry
34, // [34:34] is the sub-list for method output_type
34, // [34:34] is the sub-list for method input_type
34, // [34:34] is the sub-list for extension type_name
@@ -2631,8 +2590,8 @@ func file_store_setting_proto_init() {
(*Algorithm_Md5Mask)(nil),
(*Algorithm_InnerOuterMask_)(nil),
}
- file_store_setting_proto_msgTypes[14].OneofWrappers = []any{}
- file_store_setting_proto_msgTypes[28].OneofWrappers = []any{
+ file_store_setting_proto_msgTypes[13].OneofWrappers = []any{}
+ file_store_setting_proto_msgTypes[27].OneofWrappers = []any{
(*AppIMSetting_IMSetting_Slack)(nil),
(*AppIMSetting_IMSetting_Feishu)(nil),
(*AppIMSetting_IMSetting_Wecom)(nil),
@@ -2646,7 +2605,7 @@ func file_store_setting_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_store_setting_proto_rawDesc), len(file_store_setting_proto_rawDesc)),
NumEnums: 6,
- NumMessages: 31,
+ NumMessages: 30,
NumExtensions: 0,
NumServices: 0,
},
diff --git a/backend/generated-go/store/setting_equal.pb.go b/backend/generated-go/store/setting_equal.pb.go
index c2f64c4ecb..de5da622eb 100644
--- a/backend/generated-go/store/setting_equal.pb.go
+++ b/backend/generated-go/store/setting_equal.pb.go
@@ -62,6 +62,9 @@ func (x *WorkspaceProfileSetting) Equal(y *WorkspaceProfileSetting) bool {
if x.Watermark != y.Watermark {
return false
}
+ if x.DirectorySyncToken != y.DirectorySyncToken {
+ return false
+ }
return true
}
@@ -519,19 +522,6 @@ func (x *AppIMSetting) Equal(y *AppIMSetting) bool {
return true
}
-func (x *SCIMSetting) Equal(y *SCIMSetting) bool {
- if x == y {
- return true
- }
- if x == nil || y == nil {
- return x == nil && y == nil
- }
- if x.Token != y.Token {
- return false
- }
- return true
-}
-
func (x *PasswordRestrictionSetting) Equal(y *PasswordRestrictionSetting) bool {
if x == y {
return true
diff --git a/backend/generated-go/v1/setting_service.pb.go b/backend/generated-go/v1/setting_service.pb.go
index c2d6e3aff4..cd6c7c9ff7 100644
--- a/backend/generated-go/v1/setting_service.pb.go
+++ b/backend/generated-go/v1/setting_service.pb.go
@@ -88,7 +88,6 @@ const (
Setting_AI Setting_SettingName = 10
Setting_DATA_CLASSIFICATION Setting_SettingName = 14
Setting_SEMANTIC_TYPES Setting_SettingName = 15
- Setting_SCIM Setting_SettingName = 17
Setting_PASSWORD_RESTRICTION Setting_SettingName = 18
Setting_ENVIRONMENT Setting_SettingName = 19
)
@@ -104,7 +103,6 @@ var (
10: "AI",
14: "DATA_CLASSIFICATION",
15: "SEMANTIC_TYPES",
- 17: "SCIM",
18: "PASSWORD_RESTRICTION",
19: "ENVIRONMENT",
}
@@ -117,7 +115,6 @@ var (
"AI": 10,
"DATA_CLASSIFICATION": 14,
"SEMANTIC_TYPES": 15,
- "SCIM": 17,
"PASSWORD_RESTRICTION": 18,
"ENVIRONMENT": 19,
}
@@ -359,7 +356,7 @@ func (x AISetting_Provider) Number() protoreflect.EnumNumber {
// Deprecated: Use AISetting_Provider.Descriptor instead.
func (AISetting_Provider) EnumDescriptor() ([]byte, []int) {
- return file_v1_setting_service_proto_rawDescGZIP(), []int{16, 0}
+ return file_v1_setting_service_proto_rawDescGZIP(), []int{15, 0}
}
type ListSettingsRequest struct {
@@ -674,7 +671,6 @@ type SettingValue struct {
// *SettingValue_WorkspaceApproval
// *SettingValue_DataClassification
// *SettingValue_SemanticType
- // *SettingValue_Scim
// *SettingValue_PasswordRestriction
// *SettingValue_Ai
// *SettingValue_Environment
@@ -774,15 +770,6 @@ func (x *SettingValue) GetSemanticType() *SemanticTypeSetting {
return nil
}
-func (x *SettingValue) GetScim() *SCIMSetting {
- if x != nil {
- if x, ok := x.Value.(*SettingValue_Scim); ok {
- return x.Scim
- }
- }
- return nil
-}
-
func (x *SettingValue) GetPasswordRestriction() *PasswordRestrictionSetting {
if x != nil {
if x, ok := x.Value.(*SettingValue_PasswordRestriction); ok {
@@ -839,10 +826,6 @@ type SettingValue_SemanticType struct {
SemanticType *SemanticTypeSetting `protobuf:"bytes,11,opt,name=semantic_type,json=semanticType,proto3,oneof"`
}
-type SettingValue_Scim struct {
- Scim *SCIMSetting `protobuf:"bytes,14,opt,name=scim,proto3,oneof"`
-}
-
type SettingValue_PasswordRestriction struct {
PasswordRestriction *PasswordRestrictionSetting `protobuf:"bytes,15,opt,name=password_restriction,json=passwordRestriction,proto3,oneof"`
}
@@ -867,8 +850,6 @@ func (*SettingValue_DataClassification) isSettingValue_Value() {}
func (*SettingValue_SemanticType) isSettingValue_Value() {}
-func (*SettingValue_Scim) isSettingValue_Value() {}
-
func (*SettingValue_PasswordRestriction) isSettingValue_Value() {}
func (*SettingValue_Ai) isSettingValue_Value() {}
@@ -950,9 +931,11 @@ type WorkspaceProfileSetting struct {
EnableAuditLogStdout bool `protobuf:"varint,15,opt,name=enable_audit_log_stdout,json=enableAuditLogStdout,proto3" json:"enable_audit_log_stdout,omitempty"`
// Whether to display watermark on pages.
// Requires ENTERPRISE license.
- Watermark bool `protobuf:"varint,16,opt,name=watermark,proto3" json:"watermark,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
+ Watermark bool `protobuf:"varint,16,opt,name=watermark,proto3" json:"watermark,omitempty"`
+ // The token for directory sync authentication.
+ DirectorySyncToken string `protobuf:"bytes,17,opt,name=directory_sync_token,json=directorySyncToken,proto3" json:"directory_sync_token,omitempty"`
+ unknownFields protoimpl.UnknownFields
+ sizeCache protoimpl.SizeCache
}
func (x *WorkspaceProfileSetting) Reset() {
@@ -1083,6 +1066,13 @@ func (x *WorkspaceProfileSetting) GetWatermark() bool {
return false
}
+func (x *WorkspaceProfileSetting) GetDirectorySyncToken() string {
+ if x != nil {
+ return x.DirectorySyncToken
+ }
+ return ""
+}
+
type Announcement struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The alert level of announcement
@@ -1392,50 +1382,6 @@ func (*Algorithm_Md5Mask) isAlgorithm_Mask() {}
func (*Algorithm_InnerOuterMask_) isAlgorithm_Mask() {}
-type SCIMSetting struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *SCIMSetting) Reset() {
- *x = SCIMSetting{}
- mi := &file_v1_setting_service_proto_msgTypes[14]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *SCIMSetting) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*SCIMSetting) ProtoMessage() {}
-
-func (x *SCIMSetting) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[14]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use SCIMSetting.ProtoReflect.Descriptor instead.
-func (*SCIMSetting) Descriptor() ([]byte, []int) {
- return file_v1_setting_service_proto_rawDescGZIP(), []int{14}
-}
-
-func (x *SCIMSetting) GetToken() string {
- if x != nil {
- return x.Token
- }
- return ""
-}
-
type PasswordRestrictionSetting struct {
state protoimpl.MessageState `protogen:"open.v1"`
// min_length is the minimum length for password, should no less than 8.
@@ -1458,7 +1404,7 @@ type PasswordRestrictionSetting struct {
func (x *PasswordRestrictionSetting) Reset() {
*x = PasswordRestrictionSetting{}
- mi := &file_v1_setting_service_proto_msgTypes[15]
+ mi := &file_v1_setting_service_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1470,7 +1416,7 @@ func (x *PasswordRestrictionSetting) String() string {
func (*PasswordRestrictionSetting) ProtoMessage() {}
func (x *PasswordRestrictionSetting) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[15]
+ mi := &file_v1_setting_service_proto_msgTypes[14]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1483,7 +1429,7 @@ func (x *PasswordRestrictionSetting) ProtoReflect() protoreflect.Message {
// Deprecated: Use PasswordRestrictionSetting.ProtoReflect.Descriptor instead.
func (*PasswordRestrictionSetting) Descriptor() ([]byte, []int) {
- return file_v1_setting_service_proto_rawDescGZIP(), []int{15}
+ return file_v1_setting_service_proto_rawDescGZIP(), []int{14}
}
func (x *PasswordRestrictionSetting) GetMinLength() int32 {
@@ -1549,7 +1495,7 @@ type AISetting struct {
func (x *AISetting) Reset() {
*x = AISetting{}
- mi := &file_v1_setting_service_proto_msgTypes[16]
+ mi := &file_v1_setting_service_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1561,7 +1507,7 @@ func (x *AISetting) String() string {
func (*AISetting) ProtoMessage() {}
func (x *AISetting) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[16]
+ mi := &file_v1_setting_service_proto_msgTypes[15]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1574,7 +1520,7 @@ func (x *AISetting) ProtoReflect() protoreflect.Message {
// Deprecated: Use AISetting.ProtoReflect.Descriptor instead.
func (*AISetting) Descriptor() ([]byte, []int) {
- return file_v1_setting_service_proto_rawDescGZIP(), []int{16}
+ return file_v1_setting_service_proto_rawDescGZIP(), []int{15}
}
func (x *AISetting) GetEnabled() bool {
@@ -1628,7 +1574,7 @@ type EnvironmentSetting struct {
func (x *EnvironmentSetting) Reset() {
*x = EnvironmentSetting{}
- mi := &file_v1_setting_service_proto_msgTypes[17]
+ mi := &file_v1_setting_service_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1640,7 +1586,7 @@ func (x *EnvironmentSetting) String() string {
func (*EnvironmentSetting) ProtoMessage() {}
func (x *EnvironmentSetting) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[17]
+ mi := &file_v1_setting_service_proto_msgTypes[16]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1653,7 +1599,7 @@ func (x *EnvironmentSetting) ProtoReflect() protoreflect.Message {
// Deprecated: Use EnvironmentSetting.ProtoReflect.Descriptor instead.
func (*EnvironmentSetting) Descriptor() ([]byte, []int) {
- return file_v1_setting_service_proto_rawDescGZIP(), []int{17}
+ return file_v1_setting_service_proto_rawDescGZIP(), []int{16}
}
func (x *EnvironmentSetting) GetEnvironments() []*EnvironmentSetting_Environment {
@@ -1672,7 +1618,7 @@ type AppIMSetting_Slack struct {
func (x *AppIMSetting_Slack) Reset() {
*x = AppIMSetting_Slack{}
- mi := &file_v1_setting_service_proto_msgTypes[18]
+ mi := &file_v1_setting_service_proto_msgTypes[17]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1684,7 +1630,7 @@ func (x *AppIMSetting_Slack) String() string {
func (*AppIMSetting_Slack) ProtoMessage() {}
func (x *AppIMSetting_Slack) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[18]
+ mi := &file_v1_setting_service_proto_msgTypes[17]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1717,7 +1663,7 @@ type AppIMSetting_Feishu struct {
func (x *AppIMSetting_Feishu) Reset() {
*x = AppIMSetting_Feishu{}
- mi := &file_v1_setting_service_proto_msgTypes[19]
+ mi := &file_v1_setting_service_proto_msgTypes[18]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1729,7 +1675,7 @@ func (x *AppIMSetting_Feishu) String() string {
func (*AppIMSetting_Feishu) ProtoMessage() {}
func (x *AppIMSetting_Feishu) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[19]
+ mi := &file_v1_setting_service_proto_msgTypes[18]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1770,7 +1716,7 @@ type AppIMSetting_Wecom struct {
func (x *AppIMSetting_Wecom) Reset() {
*x = AppIMSetting_Wecom{}
- mi := &file_v1_setting_service_proto_msgTypes[20]
+ mi := &file_v1_setting_service_proto_msgTypes[19]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1782,7 +1728,7 @@ func (x *AppIMSetting_Wecom) String() string {
func (*AppIMSetting_Wecom) ProtoMessage() {}
func (x *AppIMSetting_Wecom) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[20]
+ mi := &file_v1_setting_service_proto_msgTypes[19]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1829,7 +1775,7 @@ type AppIMSetting_Lark struct {
func (x *AppIMSetting_Lark) Reset() {
*x = AppIMSetting_Lark{}
- mi := &file_v1_setting_service_proto_msgTypes[21]
+ mi := &file_v1_setting_service_proto_msgTypes[20]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1841,7 +1787,7 @@ func (x *AppIMSetting_Lark) String() string {
func (*AppIMSetting_Lark) ProtoMessage() {}
func (x *AppIMSetting_Lark) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[21]
+ mi := &file_v1_setting_service_proto_msgTypes[20]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1882,7 +1828,7 @@ type AppIMSetting_DingTalk struct {
func (x *AppIMSetting_DingTalk) Reset() {
*x = AppIMSetting_DingTalk{}
- mi := &file_v1_setting_service_proto_msgTypes[22]
+ mi := &file_v1_setting_service_proto_msgTypes[21]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1894,7 +1840,7 @@ func (x *AppIMSetting_DingTalk) String() string {
func (*AppIMSetting_DingTalk) ProtoMessage() {}
func (x *AppIMSetting_DingTalk) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[22]
+ mi := &file_v1_setting_service_proto_msgTypes[21]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1945,7 +1891,7 @@ type AppIMSetting_Teams struct {
func (x *AppIMSetting_Teams) Reset() {
*x = AppIMSetting_Teams{}
- mi := &file_v1_setting_service_proto_msgTypes[23]
+ mi := &file_v1_setting_service_proto_msgTypes[22]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1957,7 +1903,7 @@ func (x *AppIMSetting_Teams) String() string {
func (*AppIMSetting_Teams) ProtoMessage() {}
func (x *AppIMSetting_Teams) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[23]
+ mi := &file_v1_setting_service_proto_msgTypes[22]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2012,7 +1958,7 @@ type AppIMSetting_IMSetting struct {
func (x *AppIMSetting_IMSetting) Reset() {
*x = AppIMSetting_IMSetting{}
- mi := &file_v1_setting_service_proto_msgTypes[24]
+ mi := &file_v1_setting_service_proto_msgTypes[23]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2024,7 +1970,7 @@ func (x *AppIMSetting_IMSetting) String() string {
func (*AppIMSetting_IMSetting) ProtoMessage() {}
func (x *AppIMSetting_IMSetting) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[24]
+ mi := &file_v1_setting_service_proto_msgTypes[23]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2186,7 +2132,7 @@ type WorkspaceApprovalSetting_Rule struct {
func (x *WorkspaceApprovalSetting_Rule) Reset() {
*x = WorkspaceApprovalSetting_Rule{}
- mi := &file_v1_setting_service_proto_msgTypes[25]
+ mi := &file_v1_setting_service_proto_msgTypes[24]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2198,7 +2144,7 @@ func (x *WorkspaceApprovalSetting_Rule) String() string {
func (*WorkspaceApprovalSetting_Rule) ProtoMessage() {}
func (x *WorkspaceApprovalSetting_Rule) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[25]
+ mi := &file_v1_setting_service_proto_msgTypes[24]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2252,7 +2198,7 @@ type DataClassificationSetting_DataClassificationConfig struct {
func (x *DataClassificationSetting_DataClassificationConfig) Reset() {
*x = DataClassificationSetting_DataClassificationConfig{}
- mi := &file_v1_setting_service_proto_msgTypes[26]
+ mi := &file_v1_setting_service_proto_msgTypes[25]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2264,7 +2210,7 @@ func (x *DataClassificationSetting_DataClassificationConfig) String() string {
func (*DataClassificationSetting_DataClassificationConfig) ProtoMessage() {}
func (x *DataClassificationSetting_DataClassificationConfig) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[26]
+ mi := &file_v1_setting_service_proto_msgTypes[25]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2319,7 +2265,7 @@ type DataClassificationSetting_DataClassificationConfig_Level struct {
func (x *DataClassificationSetting_DataClassificationConfig_Level) Reset() {
*x = DataClassificationSetting_DataClassificationConfig_Level{}
- mi := &file_v1_setting_service_proto_msgTypes[27]
+ mi := &file_v1_setting_service_proto_msgTypes[26]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2331,7 +2277,7 @@ func (x *DataClassificationSetting_DataClassificationConfig_Level) String() stri
func (*DataClassificationSetting_DataClassificationConfig_Level) ProtoMessage() {}
func (x *DataClassificationSetting_DataClassificationConfig_Level) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[27]
+ mi := &file_v1_setting_service_proto_msgTypes[26]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2381,7 +2327,7 @@ type DataClassificationSetting_DataClassificationConfig_DataClassification struc
func (x *DataClassificationSetting_DataClassificationConfig_DataClassification) Reset() {
*x = DataClassificationSetting_DataClassificationConfig_DataClassification{}
- mi := &file_v1_setting_service_proto_msgTypes[28]
+ mi := &file_v1_setting_service_proto_msgTypes[27]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2393,7 +2339,7 @@ func (x *DataClassificationSetting_DataClassificationConfig_DataClassification)
func (*DataClassificationSetting_DataClassificationConfig_DataClassification) ProtoMessage() {}
func (x *DataClassificationSetting_DataClassificationConfig_DataClassification) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[28]
+ mi := &file_v1_setting_service_proto_msgTypes[27]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2454,7 +2400,7 @@ type SemanticTypeSetting_SemanticType struct {
func (x *SemanticTypeSetting_SemanticType) Reset() {
*x = SemanticTypeSetting_SemanticType{}
- mi := &file_v1_setting_service_proto_msgTypes[30]
+ mi := &file_v1_setting_service_proto_msgTypes[29]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2466,7 +2412,7 @@ func (x *SemanticTypeSetting_SemanticType) String() string {
func (*SemanticTypeSetting_SemanticType) ProtoMessage() {}
func (x *SemanticTypeSetting_SemanticType) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[30]
+ mi := &file_v1_setting_service_proto_msgTypes[29]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2528,7 +2474,7 @@ type Algorithm_FullMask struct {
func (x *Algorithm_FullMask) Reset() {
*x = Algorithm_FullMask{}
- mi := &file_v1_setting_service_proto_msgTypes[31]
+ mi := &file_v1_setting_service_proto_msgTypes[30]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2540,7 +2486,7 @@ func (x *Algorithm_FullMask) String() string {
func (*Algorithm_FullMask) ProtoMessage() {}
func (x *Algorithm_FullMask) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[31]
+ mi := &file_v1_setting_service_proto_msgTypes[30]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2574,7 +2520,7 @@ type Algorithm_RangeMask struct {
func (x *Algorithm_RangeMask) Reset() {
*x = Algorithm_RangeMask{}
- mi := &file_v1_setting_service_proto_msgTypes[32]
+ mi := &file_v1_setting_service_proto_msgTypes[31]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2586,7 +2532,7 @@ func (x *Algorithm_RangeMask) String() string {
func (*Algorithm_RangeMask) ProtoMessage() {}
func (x *Algorithm_RangeMask) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[32]
+ mi := &file_v1_setting_service_proto_msgTypes[31]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2619,7 +2565,7 @@ type Algorithm_MD5Mask struct {
func (x *Algorithm_MD5Mask) Reset() {
*x = Algorithm_MD5Mask{}
- mi := &file_v1_setting_service_proto_msgTypes[33]
+ mi := &file_v1_setting_service_proto_msgTypes[32]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2631,7 +2577,7 @@ func (x *Algorithm_MD5Mask) String() string {
func (*Algorithm_MD5Mask) ProtoMessage() {}
func (x *Algorithm_MD5Mask) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[33]
+ mi := &file_v1_setting_service_proto_msgTypes[32]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2666,7 +2612,7 @@ type Algorithm_InnerOuterMask struct {
func (x *Algorithm_InnerOuterMask) Reset() {
*x = Algorithm_InnerOuterMask{}
- mi := &file_v1_setting_service_proto_msgTypes[34]
+ mi := &file_v1_setting_service_proto_msgTypes[33]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2678,7 +2624,7 @@ func (x *Algorithm_InnerOuterMask) String() string {
func (*Algorithm_InnerOuterMask) ProtoMessage() {}
func (x *Algorithm_InnerOuterMask) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[34]
+ mi := &file_v1_setting_service_proto_msgTypes[33]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2736,7 +2682,7 @@ type Algorithm_RangeMask_Slice struct {
func (x *Algorithm_RangeMask_Slice) Reset() {
*x = Algorithm_RangeMask_Slice{}
- mi := &file_v1_setting_service_proto_msgTypes[35]
+ mi := &file_v1_setting_service_proto_msgTypes[34]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2748,7 +2694,7 @@ func (x *Algorithm_RangeMask_Slice) String() string {
func (*Algorithm_RangeMask_Slice) ProtoMessage() {}
func (x *Algorithm_RangeMask_Slice) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[35]
+ mi := &file_v1_setting_service_proto_msgTypes[34]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2805,7 +2751,7 @@ type EnvironmentSetting_Environment struct {
func (x *EnvironmentSetting_Environment) Reset() {
*x = EnvironmentSetting_Environment{}
- mi := &file_v1_setting_service_proto_msgTypes[36]
+ mi := &file_v1_setting_service_proto_msgTypes[35]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2817,7 +2763,7 @@ func (x *EnvironmentSetting_Environment) String() string {
func (*EnvironmentSetting_Environment) ProtoMessage() {}
func (x *EnvironmentSetting_Environment) ProtoReflect() protoreflect.Message {
- mi := &file_v1_setting_service_proto_msgTypes[36]
+ mi := &file_v1_setting_service_proto_msgTypes[35]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2830,7 +2776,7 @@ func (x *EnvironmentSetting_Environment) ProtoReflect() protoreflect.Message {
// Deprecated: Use EnvironmentSetting_Environment.ProtoReflect.Descriptor instead.
func (*EnvironmentSetting_Environment) Descriptor() ([]byte, []int) {
- return file_v1_setting_service_proto_rawDescGZIP(), []int{17, 0}
+ return file_v1_setting_service_proto_rawDescGZIP(), []int{16, 0}
}
func (x *EnvironmentSetting_Environment) GetName() string {
@@ -2886,10 +2832,10 @@ const file_v1_setting_service_proto_rawDesc = "" +
"\rvalidate_only\x18\x02 \x01(\bR\fvalidateOnly\x12#\n" +
"\rallow_missing\x18\x03 \x01(\bR\fallowMissing\x12;\n" +
"\vupdate_mask\x18\x04 \x01(\v2\x1a.google.protobuf.FieldMaskR\n" +
- "updateMask\"\xed\x02\n" +
+ "updateMask\"\xe3\x02\n" +
"\aSetting\x12\x17\n" +
"\x04name\x18\x01 \x01(\tB\x03\xe0A\bR\x04name\x124\n" +
- "\x05value\x18\x02 \x01(\v2\x19.bytebase.v1.SettingValueB\x03\xe0A\x02R\x05value\"\xe3\x01\n" +
+ "\x05value\x18\x02 \x01(\v2\x19.bytebase.v1.SettingValueB\x03\xe0A\x02R\x05value\"\xd9\x01\n" +
"\vSettingName\x12\x1c\n" +
"\x18SETTING_NAME_UNSPECIFIED\x10\x00\x12\x11\n" +
"\rBRANDING_LOGO\x10\x02\x12\x15\n" +
@@ -2900,11 +2846,10 @@ const file_v1_setting_service_proto_rawDesc = "" +
"\x02AI\x10\n" +
"\x12\x17\n" +
"\x13DATA_CLASSIFICATION\x10\x0e\x12\x12\n" +
- "\x0eSEMANTIC_TYPES\x10\x0f\x12\b\n" +
- "\x04SCIM\x10\x11\x12\x18\n" +
+ "\x0eSEMANTIC_TYPES\x10\x0f\x12\x18\n" +
"\x14PASSWORD_RESTRICTION\x10\x12\x12\x0f\n" +
"\vENVIRONMENT\x10\x13:-\xeaA*\n" +
- "\x14bytebase.com/Setting\x12\x12settings/{setting}\"\xbe\x05\n" +
+ "\x14bytebase.com/Setting\x12\x12settings/{setting}\"\x8e\x05\n" +
"\fSettingValue\x12#\n" +
"\fstring_value\x18\x01 \x01(\tH\x00R\vstringValue\x122\n" +
"\x06app_im\x18\x03 \x01(\v2\x19.bytebase.v1.AppIMSettingH\x00R\x05appIm\x12S\n" +
@@ -2912,8 +2857,7 @@ const file_v1_setting_service_proto_rawDesc = "" +
"\x12workspace_approval\x18\x06 \x01(\v2%.bytebase.v1.WorkspaceApprovalSettingH\x00R\x11workspaceApproval\x12Y\n" +
"\x13data_classification\x18\n" +
" \x01(\v2&.bytebase.v1.DataClassificationSettingH\x00R\x12dataClassification\x12G\n" +
- "\rsemantic_type\x18\v \x01(\v2 .bytebase.v1.SemanticTypeSettingH\x00R\fsemanticType\x12.\n" +
- "\x04scim\x18\x0e \x01(\v2\x18.bytebase.v1.SCIMSettingH\x00R\x04scim\x12\\\n" +
+ "\rsemantic_type\x18\v \x01(\v2 .bytebase.v1.SemanticTypeSettingH\x00R\fsemanticType\x12\\\n" +
"\x14password_restriction\x18\x0f \x01(\v2'.bytebase.v1.PasswordRestrictionSettingH\x00R\x13passwordRestriction\x12(\n" +
"\x02ai\x18\x10 \x01(\v2\x16.bytebase.v1.AISettingH\x00R\x02ai\x12C\n" +
"\venvironment\x18\x11 \x01(\v2\x1f.bytebase.v1.EnvironmentSettingH\x00R\venvironmentB\a\n" +
@@ -2951,7 +2895,7 @@ const file_v1_setting_service_proto_rawDesc = "" +
"\x04lark\x18\x05 \x01(\v2\x1e.bytebase.v1.AppIMSetting.LarkH\x00R\x04lark\x12@\n" +
"\bdingtalk\x18\x06 \x01(\v2\".bytebase.v1.AppIMSetting.DingTalkH\x00R\bdingtalk\x127\n" +
"\x05teams\x18\a \x01(\v2\x1f.bytebase.v1.AppIMSetting.TeamsH\x00R\x05teamsB\t\n" +
- "\apayload\"\x9d\x06\n" +
+ "\apayload\"\xcf\x06\n" +
"\x17WorkspaceProfileSetting\x12!\n" +
"\fexternal_url\x18\x01 \x01(\tR\vexternalUrl\x12'\n" +
"\x0fdisallow_signup\x18\x02 \x01(\bR\x0edisallowSignup\x12\x1f\n" +
@@ -2968,7 +2912,8 @@ const file_v1_setting_service_proto_rawDesc = "" +
"\x18enable_metric_collection\x18\r \x01(\bR\x16enableMetricCollection\x12S\n" +
"\x18inactive_session_timeout\x18\x0e \x01(\v2\x19.google.protobuf.DurationR\x16inactiveSessionTimeout\x125\n" +
"\x17enable_audit_log_stdout\x18\x0f \x01(\bR\x14enableAuditLogStdout\x12\x1c\n" +
- "\twatermark\x18\x10 \x01(\bR\twatermark\"\xc2\x01\n" +
+ "\twatermark\x18\x10 \x01(\bR\twatermark\x120\n" +
+ "\x14directory_sync_token\x18\x11 \x01(\tR\x12directorySyncToken\"\xc2\x01\n" +
"\fAnnouncement\x12:\n" +
"\x05level\x18\x01 \x01(\x0e2$.bytebase.v1.Announcement.AlertLevelR\x05level\x12\x12\n" +
"\x04text\x18\x02 \x01(\tR\x04text\x12\x12\n" +
@@ -3046,9 +2991,7 @@ const file_v1_setting_service_proto_rawDesc = "" +
"\x15MASK_TYPE_UNSPECIFIED\x10\x00\x12\t\n" +
"\x05INNER\x10\x01\x12\t\n" +
"\x05OUTER\x10\x02B\x06\n" +
- "\x04mask\"#\n" +
- "\vSCIMSetting\x12\x14\n" +
- "\x05token\x18\x01 \x01(\tR\x05token\"\x9a\x03\n" +
+ "\x04mask\"\x9a\x03\n" +
"\x1aPasswordRestrictionSetting\x12\x1d\n" +
"\n" +
"min_length\x18\x01 \x01(\x05R\tminLength\x12%\n" +
@@ -3109,7 +3052,7 @@ func file_v1_setting_service_proto_rawDescGZIP() []byte {
}
var file_v1_setting_service_proto_enumTypes = make([]protoimpl.EnumInfo, 6)
-var file_v1_setting_service_proto_msgTypes = make([]protoimpl.MessageInfo, 38)
+var file_v1_setting_service_proto_msgTypes = make([]protoimpl.MessageInfo, 37)
var file_v1_setting_service_proto_goTypes = []any{
(DatabaseChangeMode)(0), // 0: bytebase.v1.DatabaseChangeMode
(Setting_SettingName)(0), // 1: bytebase.v1.Setting.SettingName
@@ -3131,96 +3074,94 @@ var file_v1_setting_service_proto_goTypes = []any{
(*DataClassificationSetting)(nil), // 17: bytebase.v1.DataClassificationSetting
(*SemanticTypeSetting)(nil), // 18: bytebase.v1.SemanticTypeSetting
(*Algorithm)(nil), // 19: bytebase.v1.Algorithm
- (*SCIMSetting)(nil), // 20: bytebase.v1.SCIMSetting
- (*PasswordRestrictionSetting)(nil), // 21: bytebase.v1.PasswordRestrictionSetting
- (*AISetting)(nil), // 22: bytebase.v1.AISetting
- (*EnvironmentSetting)(nil), // 23: bytebase.v1.EnvironmentSetting
- (*AppIMSetting_Slack)(nil), // 24: bytebase.v1.AppIMSetting.Slack
- (*AppIMSetting_Feishu)(nil), // 25: bytebase.v1.AppIMSetting.Feishu
- (*AppIMSetting_Wecom)(nil), // 26: bytebase.v1.AppIMSetting.Wecom
- (*AppIMSetting_Lark)(nil), // 27: bytebase.v1.AppIMSetting.Lark
- (*AppIMSetting_DingTalk)(nil), // 28: bytebase.v1.AppIMSetting.DingTalk
- (*AppIMSetting_Teams)(nil), // 29: bytebase.v1.AppIMSetting.Teams
- (*AppIMSetting_IMSetting)(nil), // 30: bytebase.v1.AppIMSetting.IMSetting
- (*WorkspaceApprovalSetting_Rule)(nil), // 31: bytebase.v1.WorkspaceApprovalSetting.Rule
- (*DataClassificationSetting_DataClassificationConfig)(nil), // 32: bytebase.v1.DataClassificationSetting.DataClassificationConfig
- (*DataClassificationSetting_DataClassificationConfig_Level)(nil), // 33: bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level
- (*DataClassificationSetting_DataClassificationConfig_DataClassification)(nil), // 34: bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification
- nil, // 35: bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry
- (*SemanticTypeSetting_SemanticType)(nil), // 36: bytebase.v1.SemanticTypeSetting.SemanticType
- (*Algorithm_FullMask)(nil), // 37: bytebase.v1.Algorithm.FullMask
- (*Algorithm_RangeMask)(nil), // 38: bytebase.v1.Algorithm.RangeMask
- (*Algorithm_MD5Mask)(nil), // 39: bytebase.v1.Algorithm.MD5Mask
- (*Algorithm_InnerOuterMask)(nil), // 40: bytebase.v1.Algorithm.InnerOuterMask
- (*Algorithm_RangeMask_Slice)(nil), // 41: bytebase.v1.Algorithm.RangeMask.Slice
- (*EnvironmentSetting_Environment)(nil), // 42: bytebase.v1.EnvironmentSetting.Environment
- nil, // 43: bytebase.v1.EnvironmentSetting.Environment.TagsEntry
- (*fieldmaskpb.FieldMask)(nil), // 44: google.protobuf.FieldMask
- (*durationpb.Duration)(nil), // 45: google.protobuf.Duration
- (Webhook_Type)(0), // 46: bytebase.v1.Webhook.Type
- (*ApprovalTemplate)(nil), // 47: bytebase.v1.ApprovalTemplate
- (*expr.Expr)(nil), // 48: google.type.Expr
+ (*PasswordRestrictionSetting)(nil), // 20: bytebase.v1.PasswordRestrictionSetting
+ (*AISetting)(nil), // 21: bytebase.v1.AISetting
+ (*EnvironmentSetting)(nil), // 22: bytebase.v1.EnvironmentSetting
+ (*AppIMSetting_Slack)(nil), // 23: bytebase.v1.AppIMSetting.Slack
+ (*AppIMSetting_Feishu)(nil), // 24: bytebase.v1.AppIMSetting.Feishu
+ (*AppIMSetting_Wecom)(nil), // 25: bytebase.v1.AppIMSetting.Wecom
+ (*AppIMSetting_Lark)(nil), // 26: bytebase.v1.AppIMSetting.Lark
+ (*AppIMSetting_DingTalk)(nil), // 27: bytebase.v1.AppIMSetting.DingTalk
+ (*AppIMSetting_Teams)(nil), // 28: bytebase.v1.AppIMSetting.Teams
+ (*AppIMSetting_IMSetting)(nil), // 29: bytebase.v1.AppIMSetting.IMSetting
+ (*WorkspaceApprovalSetting_Rule)(nil), // 30: bytebase.v1.WorkspaceApprovalSetting.Rule
+ (*DataClassificationSetting_DataClassificationConfig)(nil), // 31: bytebase.v1.DataClassificationSetting.DataClassificationConfig
+ (*DataClassificationSetting_DataClassificationConfig_Level)(nil), // 32: bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level
+ (*DataClassificationSetting_DataClassificationConfig_DataClassification)(nil), // 33: bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification
+ nil, // 34: bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry
+ (*SemanticTypeSetting_SemanticType)(nil), // 35: bytebase.v1.SemanticTypeSetting.SemanticType
+ (*Algorithm_FullMask)(nil), // 36: bytebase.v1.Algorithm.FullMask
+ (*Algorithm_RangeMask)(nil), // 37: bytebase.v1.Algorithm.RangeMask
+ (*Algorithm_MD5Mask)(nil), // 38: bytebase.v1.Algorithm.MD5Mask
+ (*Algorithm_InnerOuterMask)(nil), // 39: bytebase.v1.Algorithm.InnerOuterMask
+ (*Algorithm_RangeMask_Slice)(nil), // 40: bytebase.v1.Algorithm.RangeMask.Slice
+ (*EnvironmentSetting_Environment)(nil), // 41: bytebase.v1.EnvironmentSetting.Environment
+ nil, // 42: bytebase.v1.EnvironmentSetting.Environment.TagsEntry
+ (*fieldmaskpb.FieldMask)(nil), // 43: google.protobuf.FieldMask
+ (*durationpb.Duration)(nil), // 44: google.protobuf.Duration
+ (Webhook_Type)(0), // 45: bytebase.v1.Webhook.Type
+ (*ApprovalTemplate)(nil), // 46: bytebase.v1.ApprovalTemplate
+ (*expr.Expr)(nil), // 47: google.type.Expr
}
var file_v1_setting_service_proto_depIdxs = []int32{
11, // 0: bytebase.v1.ListSettingsResponse.settings:type_name -> bytebase.v1.Setting
11, // 1: bytebase.v1.GetSettingResponse.setting:type_name -> bytebase.v1.Setting
11, // 2: bytebase.v1.UpdateSettingRequest.setting:type_name -> bytebase.v1.Setting
- 44, // 3: bytebase.v1.UpdateSettingRequest.update_mask:type_name -> google.protobuf.FieldMask
+ 43, // 3: bytebase.v1.UpdateSettingRequest.update_mask:type_name -> google.protobuf.FieldMask
12, // 4: bytebase.v1.Setting.value:type_name -> bytebase.v1.SettingValue
13, // 5: bytebase.v1.SettingValue.app_im:type_name -> bytebase.v1.AppIMSetting
14, // 6: bytebase.v1.SettingValue.workspace_profile:type_name -> bytebase.v1.WorkspaceProfileSetting
16, // 7: bytebase.v1.SettingValue.workspace_approval:type_name -> bytebase.v1.WorkspaceApprovalSetting
17, // 8: bytebase.v1.SettingValue.data_classification:type_name -> bytebase.v1.DataClassificationSetting
18, // 9: bytebase.v1.SettingValue.semantic_type:type_name -> bytebase.v1.SemanticTypeSetting
- 20, // 10: bytebase.v1.SettingValue.scim:type_name -> bytebase.v1.SCIMSetting
- 21, // 11: bytebase.v1.SettingValue.password_restriction:type_name -> bytebase.v1.PasswordRestrictionSetting
- 22, // 12: bytebase.v1.SettingValue.ai:type_name -> bytebase.v1.AISetting
- 23, // 13: bytebase.v1.SettingValue.environment:type_name -> bytebase.v1.EnvironmentSetting
- 30, // 14: bytebase.v1.AppIMSetting.settings:type_name -> bytebase.v1.AppIMSetting.IMSetting
- 45, // 15: bytebase.v1.WorkspaceProfileSetting.token_duration:type_name -> google.protobuf.Duration
- 15, // 16: bytebase.v1.WorkspaceProfileSetting.announcement:type_name -> bytebase.v1.Announcement
- 45, // 17: bytebase.v1.WorkspaceProfileSetting.maximum_role_expiration:type_name -> google.protobuf.Duration
- 0, // 18: bytebase.v1.WorkspaceProfileSetting.database_change_mode:type_name -> bytebase.v1.DatabaseChangeMode
- 45, // 19: bytebase.v1.WorkspaceProfileSetting.inactive_session_timeout:type_name -> google.protobuf.Duration
- 2, // 20: bytebase.v1.Announcement.level:type_name -> bytebase.v1.Announcement.AlertLevel
- 31, // 21: bytebase.v1.WorkspaceApprovalSetting.rules:type_name -> bytebase.v1.WorkspaceApprovalSetting.Rule
- 32, // 22: bytebase.v1.DataClassificationSetting.configs:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig
- 36, // 23: bytebase.v1.SemanticTypeSetting.types:type_name -> bytebase.v1.SemanticTypeSetting.SemanticType
- 37, // 24: bytebase.v1.Algorithm.full_mask:type_name -> bytebase.v1.Algorithm.FullMask
- 38, // 25: bytebase.v1.Algorithm.range_mask:type_name -> bytebase.v1.Algorithm.RangeMask
- 39, // 26: bytebase.v1.Algorithm.md5_mask:type_name -> bytebase.v1.Algorithm.MD5Mask
- 40, // 27: bytebase.v1.Algorithm.inner_outer_mask:type_name -> bytebase.v1.Algorithm.InnerOuterMask
- 45, // 28: bytebase.v1.PasswordRestrictionSetting.password_rotation:type_name -> google.protobuf.Duration
- 5, // 29: bytebase.v1.AISetting.provider:type_name -> bytebase.v1.AISetting.Provider
- 42, // 30: bytebase.v1.EnvironmentSetting.environments:type_name -> bytebase.v1.EnvironmentSetting.Environment
- 46, // 31: bytebase.v1.AppIMSetting.IMSetting.type:type_name -> bytebase.v1.Webhook.Type
- 24, // 32: bytebase.v1.AppIMSetting.IMSetting.slack:type_name -> bytebase.v1.AppIMSetting.Slack
- 25, // 33: bytebase.v1.AppIMSetting.IMSetting.feishu:type_name -> bytebase.v1.AppIMSetting.Feishu
- 26, // 34: bytebase.v1.AppIMSetting.IMSetting.wecom:type_name -> bytebase.v1.AppIMSetting.Wecom
- 27, // 35: bytebase.v1.AppIMSetting.IMSetting.lark:type_name -> bytebase.v1.AppIMSetting.Lark
- 28, // 36: bytebase.v1.AppIMSetting.IMSetting.dingtalk:type_name -> bytebase.v1.AppIMSetting.DingTalk
- 29, // 37: bytebase.v1.AppIMSetting.IMSetting.teams:type_name -> bytebase.v1.AppIMSetting.Teams
- 47, // 38: bytebase.v1.WorkspaceApprovalSetting.Rule.template:type_name -> bytebase.v1.ApprovalTemplate
- 48, // 39: bytebase.v1.WorkspaceApprovalSetting.Rule.condition:type_name -> google.type.Expr
- 3, // 40: bytebase.v1.WorkspaceApprovalSetting.Rule.source:type_name -> bytebase.v1.WorkspaceApprovalSetting.Rule.Source
- 33, // 41: bytebase.v1.DataClassificationSetting.DataClassificationConfig.levels:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level
- 35, // 42: bytebase.v1.DataClassificationSetting.DataClassificationConfig.classification:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry
- 34, // 43: bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry.value:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification
- 19, // 44: bytebase.v1.SemanticTypeSetting.SemanticType.algorithm:type_name -> bytebase.v1.Algorithm
- 41, // 45: bytebase.v1.Algorithm.RangeMask.slices:type_name -> bytebase.v1.Algorithm.RangeMask.Slice
- 4, // 46: bytebase.v1.Algorithm.InnerOuterMask.type:type_name -> bytebase.v1.Algorithm.InnerOuterMask.MaskType
- 43, // 47: bytebase.v1.EnvironmentSetting.Environment.tags:type_name -> bytebase.v1.EnvironmentSetting.Environment.TagsEntry
- 6, // 48: bytebase.v1.SettingService.ListSettings:input_type -> bytebase.v1.ListSettingsRequest
- 8, // 49: bytebase.v1.SettingService.GetSetting:input_type -> bytebase.v1.GetSettingRequest
- 10, // 50: bytebase.v1.SettingService.UpdateSetting:input_type -> bytebase.v1.UpdateSettingRequest
- 7, // 51: bytebase.v1.SettingService.ListSettings:output_type -> bytebase.v1.ListSettingsResponse
- 11, // 52: bytebase.v1.SettingService.GetSetting:output_type -> bytebase.v1.Setting
- 11, // 53: bytebase.v1.SettingService.UpdateSetting:output_type -> bytebase.v1.Setting
- 51, // [51:54] is the sub-list for method output_type
- 48, // [48:51] is the sub-list for method input_type
- 48, // [48:48] is the sub-list for extension type_name
- 48, // [48:48] is the sub-list for extension extendee
- 0, // [0:48] is the sub-list for field type_name
+ 20, // 10: bytebase.v1.SettingValue.password_restriction:type_name -> bytebase.v1.PasswordRestrictionSetting
+ 21, // 11: bytebase.v1.SettingValue.ai:type_name -> bytebase.v1.AISetting
+ 22, // 12: bytebase.v1.SettingValue.environment:type_name -> bytebase.v1.EnvironmentSetting
+ 29, // 13: bytebase.v1.AppIMSetting.settings:type_name -> bytebase.v1.AppIMSetting.IMSetting
+ 44, // 14: bytebase.v1.WorkspaceProfileSetting.token_duration:type_name -> google.protobuf.Duration
+ 15, // 15: bytebase.v1.WorkspaceProfileSetting.announcement:type_name -> bytebase.v1.Announcement
+ 44, // 16: bytebase.v1.WorkspaceProfileSetting.maximum_role_expiration:type_name -> google.protobuf.Duration
+ 0, // 17: bytebase.v1.WorkspaceProfileSetting.database_change_mode:type_name -> bytebase.v1.DatabaseChangeMode
+ 44, // 18: bytebase.v1.WorkspaceProfileSetting.inactive_session_timeout:type_name -> google.protobuf.Duration
+ 2, // 19: bytebase.v1.Announcement.level:type_name -> bytebase.v1.Announcement.AlertLevel
+ 30, // 20: bytebase.v1.WorkspaceApprovalSetting.rules:type_name -> bytebase.v1.WorkspaceApprovalSetting.Rule
+ 31, // 21: bytebase.v1.DataClassificationSetting.configs:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig
+ 35, // 22: bytebase.v1.SemanticTypeSetting.types:type_name -> bytebase.v1.SemanticTypeSetting.SemanticType
+ 36, // 23: bytebase.v1.Algorithm.full_mask:type_name -> bytebase.v1.Algorithm.FullMask
+ 37, // 24: bytebase.v1.Algorithm.range_mask:type_name -> bytebase.v1.Algorithm.RangeMask
+ 38, // 25: bytebase.v1.Algorithm.md5_mask:type_name -> bytebase.v1.Algorithm.MD5Mask
+ 39, // 26: bytebase.v1.Algorithm.inner_outer_mask:type_name -> bytebase.v1.Algorithm.InnerOuterMask
+ 44, // 27: bytebase.v1.PasswordRestrictionSetting.password_rotation:type_name -> google.protobuf.Duration
+ 5, // 28: bytebase.v1.AISetting.provider:type_name -> bytebase.v1.AISetting.Provider
+ 41, // 29: bytebase.v1.EnvironmentSetting.environments:type_name -> bytebase.v1.EnvironmentSetting.Environment
+ 45, // 30: bytebase.v1.AppIMSetting.IMSetting.type:type_name -> bytebase.v1.Webhook.Type
+ 23, // 31: bytebase.v1.AppIMSetting.IMSetting.slack:type_name -> bytebase.v1.AppIMSetting.Slack
+ 24, // 32: bytebase.v1.AppIMSetting.IMSetting.feishu:type_name -> bytebase.v1.AppIMSetting.Feishu
+ 25, // 33: bytebase.v1.AppIMSetting.IMSetting.wecom:type_name -> bytebase.v1.AppIMSetting.Wecom
+ 26, // 34: bytebase.v1.AppIMSetting.IMSetting.lark:type_name -> bytebase.v1.AppIMSetting.Lark
+ 27, // 35: bytebase.v1.AppIMSetting.IMSetting.dingtalk:type_name -> bytebase.v1.AppIMSetting.DingTalk
+ 28, // 36: bytebase.v1.AppIMSetting.IMSetting.teams:type_name -> bytebase.v1.AppIMSetting.Teams
+ 46, // 37: bytebase.v1.WorkspaceApprovalSetting.Rule.template:type_name -> bytebase.v1.ApprovalTemplate
+ 47, // 38: bytebase.v1.WorkspaceApprovalSetting.Rule.condition:type_name -> google.type.Expr
+ 3, // 39: bytebase.v1.WorkspaceApprovalSetting.Rule.source:type_name -> bytebase.v1.WorkspaceApprovalSetting.Rule.Source
+ 32, // 40: bytebase.v1.DataClassificationSetting.DataClassificationConfig.levels:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level
+ 34, // 41: bytebase.v1.DataClassificationSetting.DataClassificationConfig.classification:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry
+ 33, // 42: bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry.value:type_name -> bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification
+ 19, // 43: bytebase.v1.SemanticTypeSetting.SemanticType.algorithm:type_name -> bytebase.v1.Algorithm
+ 40, // 44: bytebase.v1.Algorithm.RangeMask.slices:type_name -> bytebase.v1.Algorithm.RangeMask.Slice
+ 4, // 45: bytebase.v1.Algorithm.InnerOuterMask.type:type_name -> bytebase.v1.Algorithm.InnerOuterMask.MaskType
+ 42, // 46: bytebase.v1.EnvironmentSetting.Environment.tags:type_name -> bytebase.v1.EnvironmentSetting.Environment.TagsEntry
+ 6, // 47: bytebase.v1.SettingService.ListSettings:input_type -> bytebase.v1.ListSettingsRequest
+ 8, // 48: bytebase.v1.SettingService.GetSetting:input_type -> bytebase.v1.GetSettingRequest
+ 10, // 49: bytebase.v1.SettingService.UpdateSetting:input_type -> bytebase.v1.UpdateSettingRequest
+ 7, // 50: bytebase.v1.SettingService.ListSettings:output_type -> bytebase.v1.ListSettingsResponse
+ 11, // 51: bytebase.v1.SettingService.GetSetting:output_type -> bytebase.v1.Setting
+ 11, // 52: bytebase.v1.SettingService.UpdateSetting:output_type -> bytebase.v1.Setting
+ 50, // [50:53] is the sub-list for method output_type
+ 47, // [47:50] is the sub-list for method input_type
+ 47, // [47:47] is the sub-list for extension type_name
+ 47, // [47:47] is the sub-list for extension extendee
+ 0, // [0:47] is the sub-list for field type_name
}
func init() { file_v1_setting_service_proto_init() }
@@ -3238,7 +3179,6 @@ func file_v1_setting_service_proto_init() {
(*SettingValue_WorkspaceApproval)(nil),
(*SettingValue_DataClassification)(nil),
(*SettingValue_SemanticType)(nil),
- (*SettingValue_Scim)(nil),
(*SettingValue_PasswordRestriction)(nil),
(*SettingValue_Ai)(nil),
(*SettingValue_Environment)(nil),
@@ -3249,7 +3189,7 @@ func file_v1_setting_service_proto_init() {
(*Algorithm_Md5Mask)(nil),
(*Algorithm_InnerOuterMask_)(nil),
}
- file_v1_setting_service_proto_msgTypes[24].OneofWrappers = []any{
+ file_v1_setting_service_proto_msgTypes[23].OneofWrappers = []any{
(*AppIMSetting_IMSetting_Slack)(nil),
(*AppIMSetting_IMSetting_Feishu)(nil),
(*AppIMSetting_IMSetting_Wecom)(nil),
@@ -3257,14 +3197,14 @@ func file_v1_setting_service_proto_init() {
(*AppIMSetting_IMSetting_Dingtalk)(nil),
(*AppIMSetting_IMSetting_Teams)(nil),
}
- file_v1_setting_service_proto_msgTypes[28].OneofWrappers = []any{}
+ file_v1_setting_service_proto_msgTypes[27].OneofWrappers = []any{}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_v1_setting_service_proto_rawDesc), len(file_v1_setting_service_proto_rawDesc)),
NumEnums: 6,
- NumMessages: 38,
+ NumMessages: 37,
NumExtensions: 0,
NumServices: 1,
},
diff --git a/backend/generated-go/v1/setting_service_equal.pb.go b/backend/generated-go/v1/setting_service_equal.pb.go
index de69b9fcb8..fcb5f19082 100644
--- a/backend/generated-go/v1/setting_service_equal.pb.go
+++ b/backend/generated-go/v1/setting_service_equal.pb.go
@@ -130,9 +130,6 @@ func (x *SettingValue) Equal(y *SettingValue) bool {
if !x.GetSemanticType().Equal(y.GetSemanticType()) {
return false
}
- if !x.GetScim().Equal(y.GetScim()) {
- return false
- }
if !x.GetPasswordRestriction().Equal(y.GetPasswordRestriction()) {
return false
}
@@ -350,6 +347,9 @@ func (x *WorkspaceProfileSetting) Equal(y *WorkspaceProfileSetting) bool {
if x.Watermark != y.Watermark {
return false
}
+ if x.DirectorySyncToken != y.DirectorySyncToken {
+ return false
+ }
return true
}
@@ -656,19 +656,6 @@ func (x *Algorithm) Equal(y *Algorithm) bool {
return true
}
-func (x *SCIMSetting) Equal(y *SCIMSetting) bool {
- if x == y {
- return true
- }
- if x == nil || y == nil {
- return x == nil && y == nil
- }
- if x.Token != y.Token {
- return false
- }
- return true
-}
-
func (x *PasswordRestrictionSetting) Equal(y *PasswordRestrictionSetting) bool {
if x == y {
return true
diff --git a/backend/migrator/migration/3.13/0010##migrate_scim_token_to_workspace_profile.sql b/backend/migrator/migration/3.13/0010##migrate_scim_token_to_workspace_profile.sql
new file mode 100644
index 0000000000..01fb5898c0
--- /dev/null
+++ b/backend/migrator/migration/3.13/0010##migrate_scim_token_to_workspace_profile.sql
@@ -0,0 +1,16 @@
+-- Migrate SCIM token into WORKSPACE_PROFILE as directorySyncToken
+-- Extract token from SCIM setting and merge into WORKSPACE_PROFILE
+UPDATE setting
+SET value = jsonb_set(
+ COALESCE(value::jsonb, '{}'::jsonb),
+ '{directorySyncToken}',
+ to_jsonb((SELECT value::jsonb->>'token' FROM setting WHERE name = 'SCIM')),
+ true
+)::text
+WHERE name = 'WORKSPACE_PROFILE'
+AND EXISTS (
+ SELECT 1 FROM setting WHERE name = 'SCIM' AND value::jsonb->>'token' IS NOT NULL AND value::jsonb->>'token' != ''
+);
+
+-- Delete the old SCIM setting
+DELETE FROM setting WHERE name = 'SCIM';
diff --git a/backend/migrator/migration/LATEST.sql b/backend/migrator/migration/LATEST.sql
index 28286bae95..b88ff4d2b9 100644
--- a/backend/migrator/migration/LATEST.sql
+++ b/backend/migrator/migration/LATEST.sql
@@ -35,7 +35,7 @@ CREATE TABLE setting (
id serial PRIMARY KEY,
-- name: AUTH_SECRET, BRANDING_LOGO, WORKSPACE_ID, WORKSPACE_PROFILE, WORKSPACE_APPROVAL,
-- ENTERPRISE_LICENSE, APP_IM, AI,
- -- DATA_CLASSIFICATION, SEMANTIC_TYPES, SCIM, PASSWORD_RESTRICTION, ENVIRONMENT
+ -- DATA_CLASSIFICATION, SEMANTIC_TYPES, PASSWORD_RESTRICTION, ENVIRONMENT
-- Enum: SettingName (proto/store/store/setting.proto)
name text NOT NULL,
value text NOT NULL
@@ -555,7 +555,10 @@ INSERT INTO setting (name, value) VALUES ('APP_IM', '{}');
INSERT INTO setting (name, value) VALUES ('DATA_CLASSIFICATION', '{}');
INSERT INTO setting (name, value) VALUES ('WORKSPACE_APPROVAL', '{"rules":[{"template":{"flow":{"roles":["roles/projectOwner"]},"title":"Fallback Rule","description":"Requires project owner approval when no other rules match."},"condition":{"expression":"true"}}]}');
INSERT INTO setting (name, value) VALUES ('PASSWORD_RESTRICTION', '{"minLength":8}');
-INSERT INTO setting (name, value) VALUES ('WORKSPACE_PROFILE', '{"enableMetricCollection":true}');
+INSERT INTO setting (name, value) VALUES (
+ 'WORKSPACE_PROFILE',
+ '{"enableMetricCollection":true,"directorySyncToken":"' || gen_random_uuid()::text || '"}'
+);
INSERT INTO setting (name, value) VALUES ('ENVIRONMENT', '{"environments":[{"title":"Test","id":"test"},{"title":"Prod","id":"prod"}]}');
-- Initialize settings with dynamically generated values
@@ -567,11 +570,6 @@ INSERT INTO setting (name, value) VALUES (
FROM generate_series(1, 32))
);
INSERT INTO setting (name, value) VALUES ('WORKSPACE_ID', gen_random_uuid()::text);
-INSERT INTO setting (name, value) VALUES (
- 'SCIM',
- '{"token":"' || (SELECT string_agg(substr('0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ', floor(random() * 62 + 1)::int, 1), '')
- FROM generate_series(1, 32)) || '"}'
-);
-- Initialize workspace IAM policy
-- Grant workspace member role to allUsers
diff --git a/backend/migrator/migrator_test.go b/backend/migrator/migrator_test.go
index 47c5d59f6e..953b2d882e 100644
--- a/backend/migrator/migrator_test.go
+++ b/backend/migrator/migrator_test.go
@@ -12,7 +12,7 @@ import (
func TestLatestVersion(t *testing.T) {
files, err := getSortedVersionedFiles()
require.NoError(t, err)
- require.Equal(t, semver.MustParse("3.13.9"), *files[len(files)-1].version)
+ require.Equal(t, semver.MustParse("3.13.10"), *files[len(files)-1].version)
}
func TestVersionUnique(t *testing.T) {
diff --git a/frontend/src/components/User/Settings/AADSyncDrawer.vue b/frontend/src/components/User/Settings/AADSyncDrawer.vue
index 55ec039d2e..860a4cb61b 100644
--- a/frontend/src/components/User/Settings/AADSyncDrawer.vue
+++ b/frontend/src/components/User/Settings/AADSyncDrawer.vue
@@ -123,6 +123,7 @@
<script setup lang="ts">
import { create } from "@bufbuild/protobuf";
+import { FieldMaskSchema } from "@bufbuild/protobuf/wkt";
import { ReplyIcon } from "lucide-vue-next";
import { NButton, NInput, useDialog } from "naive-ui";
import { computed, ref } from "vue";
@@ -137,11 +138,6 @@ import {
useActuatorV1Store,
useSettingV1Store,
} from "@/store";
-import {
- SCIMSettingSchema,
- Setting_SettingName,
- SettingValueSchema as SettingSettingValueSchema,
-} from "@/types/proto-es/v1/setting_service_pb";
import { hasWorkspacePermissionV2 } from "@/utils";
defineProps<{
@@ -180,10 +176,7 @@ const scimUrl = computed(() => {
});
const scimToken = computed(() => {
- const setting = settingV1Store.getSettingByName(Setting_SettingName.SCIM);
- return setting?.value?.value?.case === "scim"
- ? (setting.value.value.value.token ?? "")
- : "";
+ return settingV1Store.workspaceProfileSetting?.directorySyncToken ?? "";
});
const handleSelect = (component: HTMLInputElement | null) => {
@@ -207,26 +200,20 @@ const resetToken = () => {
positiveText: t("common.continue-anyway"),
closeOnEsc: true,
maskClosable: true,
- onPositiveClick: () => {
- settingV1Store
- .upsertSetting({
- name: Setting_SettingName.SCIM,
- value: create(SettingSettingValueSchema, {
- value: {
- case: "scim",
- value: create(SCIMSettingSchema, {
- token: "",
- }),
- },
- }),
- })
- .then(() => {
- pushNotification({
- module: "bytebase",
- style: "SUCCESS",
- title: t("common.updated"),
- });
- });
+ onPositiveClick: async () => {
+ await settingV1Store.updateWorkspaceProfile({
+ payload: {
+ directorySyncToken: "",
+ },
+ updateMask: create(FieldMaskSchema, {
+ paths: ["value.workspace_profile.directory_sync_token"],
+ }),
+ });
+ pushNotification({
+ module: "bytebase",
+ style: "SUCCESS",
+ title: t("common.updated"),
+ });
},
});
};
diff --git a/frontend/src/types/proto-es/v1/setting_service_pb.d.ts b/frontend/src/types/proto-es/v1/setting_service_pb.d.ts
index eac54c469f..60211035b3 100644
--- a/frontend/src/types/proto-es/v1/setting_service_pb.d.ts
+++ b/frontend/src/types/proto-es/v1/setting_service_pb.d.ts
@@ -193,11 +193,6 @@ export enum Setting_SettingName {
*/
SEMANTIC_TYPES = 15,
- /**
- * @generated from enum value: SCIM = 17;
- */
- SCIM = 17,
-
/**
* @generated from enum value: PASSWORD_RESTRICTION = 18;
*/
@@ -261,12 +256,6 @@ export declare type SettingValue = Message<"bytebase.v1.SettingValue"> & {
*/
value: SemanticTypeSetting;
case: "semanticType";
- } | {
- /**
- * @generated from field: bytebase.v1.SCIMSetting scim = 14;
- */
- value: SCIMSetting;
- case: "scim";
} | {
/**
* @generated from field: bytebase.v1.PasswordRestrictionSetting password_restriction = 15;
@@ -612,6 +601,13 @@ export declare type WorkspaceProfileSetting = Message<"bytebase.v1.WorkspaceProf
* @generated from field: bool watermark = 16;
*/
watermark: boolean;
+
+ /**
+ * The token for directory sync authentication.
+ *
+ * @generated from field: string directory_sync_token = 17;
+ */
+ directorySyncToken: string;
};
/**
@@ -1147,22 +1143,6 @@ export enum Algorithm_InnerOuterMask_MaskType {
*/
export declare const Algorithm_InnerOuterMask_MaskTypeSchema: GenEnum<Algorithm_InnerOuterMask_MaskType>;
-/**
- * @generated from message bytebase.v1.SCIMSetting
- */
-export declare type SCIMSetting = Message<"bytebase.v1.SCIMSetting"> & {
- /**
- * @generated from field: string token = 1;
- */
- token: string;
-};
-
-/**
- * Describes the message bytebase.v1.SCIMSetting.
- * Use `create(SCIMSettingSchema)` to create a new message.
- */
-export declare const SCIMSettingSchema: GenMessage<SCIMSetting>;
-
/**
* @generated from message bytebase.v1.PasswordRestrictionSetting
*/
diff --git a/frontend/src/types/proto-es/v1/setting_service_pb.js b/frontend/src/types/proto-es/v1/setting_service_pb.js
index 7417702031..13c90630ff 100644
--- a/frontend/src/types/proto-es/v1/setting_service_pb.js
+++ b/frontend/src/types/proto-es/v1/setting_service_pb.js
@@ -17,7 +17,7 @@ import { file_v1_project_service } from "./project_service_pb";
* Describes the file v1/setting_service.proto.
*/
export const file_v1_setting_service = /*@__PURE__*/
- fileDesc("Chh2MS9zZXR0aW5nX3NlcnZpY2UucHJvdG8SC2J5dGViYXNlLnYxIhUKE0xpc3RTZXR0aW5nc1JlcXVlc3QiPgoUTGlzdFNldHRpbmdzUmVzcG9uc2USJgoIc2V0dGluZ3MYASADKAsyFC5ieXRlYmFzZS52MS5TZXR0aW5nIj8KEUdldFNldHRpbmdSZXF1ZXN0EioKBG5hbWUYASABKAlCHOBBAvpBFgoUYnl0ZWJhc2UuY29tL1NldHRpbmciOwoSR2V0U2V0dGluZ1Jlc3BvbnNlEiUKB3NldHRpbmcYASABKAsyFC5ieXRlYmFzZS52MS5TZXR0aW5nIqEBChRVcGRhdGVTZXR0aW5nUmVxdWVzdBIqCgdzZXR0aW5nGAEgASgLMhQuYnl0ZWJhc2UudjEuU2V0dGluZ0ID4EECEhUKDXZhbGlkYXRlX29ubHkYAiABKAgSFQoNYWxsb3dfbWlzc2luZxgDIAEoCBIvCgt1cGRhdGVfbWFzaxgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1hc2si4AIKB1NldHRpbmcSEQoEbmFtZRgBIAEoCUID4EEIEi0KBXZhbHVlGAIgASgLMhkuYnl0ZWJhc2UudjEuU2V0dGluZ1ZhbHVlQgPgQQIi4wEKC1NldHRpbmdOYW1lEhwKGFNFVFRJTkdfTkFNRV9VTlNQRUNJRklFRBAAEhEK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Ynl0ZWJhc2UvYmFja2VuZC9nZW5lcmF0ZWQtZ28vdjGiAgNCWFiqAgtCeXRlYmFzZS5WMcoCC0J5dGViYXNlXFYx4gIXQnl0ZWJhc2VcVjFcR1BCTWV0YWRhdGHqAgxCeXRlYmFzZTo6VjFiBnByb3RvMw", [file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_duration, file_google_protobuf_field_mask, file_google_type_expr, file_v1_annotation, file_v1_issue_service, file_v1_project_service]);
+ fileDesc("Chh2MS9zZXR0aW5nX3NlcnZpY2UucHJvdG8SC2J5dGViYXNlLnYxIhUKE0xpc3RTZXR0aW5nc1JlcXVlc3QiPgoUTGlzdFNldHRpbmdzUmVzcG9uc2USJgoIc2V0dGluZ3MYASADKAsyFC5ieXRlYmFzZS52MS5TZXR0aW5nIj8KEUdldFNldHRpbmdSZXF1ZXN0EioKBG5hbWUYASABKAlCHOBBAvpBFgoUYnl0ZWJhc2UuY29tL1NldHRpbmciOwoSR2V0U2V0dGluZ1Jlc3BvbnNlEiUKB3NldHRpbmcYASABKAsyFC5ieXRlYmFzZS52MS5TZXR0aW5nIqEBChRVcGRhdGVTZXR0aW5nUmVxdWVzdBIqCgdzZXR0aW5nGAEgASgLMhQuYnl0ZWJhc2UudjEuU2V0dGluZ0ID4EECEhUKDXZhbGlkYXRlX29ubHkYAiABKAgSFQoNYWxsb3dfbWlzc2luZxgDIAEoCBIvCgt1cGRhdGVfbWFzaxgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1hc2si1gIKB1NldHRpbmcSEQoEbmFtZRgBIAEoCUID4EEIEi0KBXZhbHVlGAIgASgLMhkuYnl0ZWJhc2UudjEuU2V0dGluZ1ZhbHVlQgPgQQIi2QEKC1NldHRpbmdOYW1lEhwKGFNFVFRJTkdfTkFNRV9VTlNQRUNJRklFRBAAEhEKDUJSQU5ESU5HX0xPR08QAhIVChFXT1JLU1BBQ0VfUFJPRklMRRAEEhYKEldPUkt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ZVxWMVxHUEJNZXRhZGF0YeoCDEJ5dGViYXNlOjpWMWIGcHJvdG8z", [file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_duration, file_google_protobuf_field_mask, file_google_type_expr, file_v1_annotation, file_v1_issue_service, file_v1_project_service]);
/**
* Describes the message bytebase.v1.ListSettingsRequest.
@@ -286,32 +286,25 @@ export const Algorithm_InnerOuterMask_MaskTypeSchema = /*@__PURE__*/
export const Algorithm_InnerOuterMask_MaskType = /*@__PURE__*/
tsEnum(Algorithm_InnerOuterMask_MaskTypeSchema);
-/**
- * Describes the message bytebase.v1.SCIMSetting.
- * Use `create(SCIMSettingSchema)` to create a new message.
- */
-export const SCIMSettingSchema = /*@__PURE__*/
- messageDesc(file_v1_setting_service, 14);
-
/**
* Describes the message bytebase.v1.PasswordRestrictionSetting.
* Use `create(PasswordRestrictionSettingSchema)` to create a new message.
*/
export const PasswordRestrictionSettingSchema = /*@__PURE__*/
- messageDesc(file_v1_setting_service, 15);
+ messageDesc(file_v1_setting_service, 14);
/**
* Describes the message bytebase.v1.AISetting.
* Use `create(AISettingSchema)` to create a new message.
*/
export const AISettingSchema = /*@__PURE__*/
- messageDesc(file_v1_setting_service, 16);
+ messageDesc(file_v1_setting_service, 15);
/**
* Describes the enum bytebase.v1.AISetting.Provider.
*/
export const AISetting_ProviderSchema = /*@__PURE__*/
- enumDesc(file_v1_setting_service, 16, 0);
+ enumDesc(file_v1_setting_service, 15, 0);
/**
* @generated from enum bytebase.v1.AISetting.Provider
@@ -324,14 +317,14 @@ export const AISetting_Provider = /*@__PURE__*/
* Use `create(EnvironmentSettingSchema)` to create a new message.
*/
export const EnvironmentSettingSchema = /*@__PURE__*/
- messageDesc(file_v1_setting_service, 17);
+ messageDesc(file_v1_setting_service, 16);
/**
* Describes the message bytebase.v1.EnvironmentSetting.Environment.
* Use `create(EnvironmentSetting_EnvironmentSchema)` to create a new message.
*/
export const EnvironmentSetting_EnvironmentSchema = /*@__PURE__*/
- messageDesc(file_v1_setting_service, 17, 0);
+ messageDesc(file_v1_setting_service, 16, 0);
/**
* Describes the enum bytebase.v1.DatabaseChangeMode.
diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yaml
index 78b66775d3..919d9ede58 100644
--- a/proto/gen/grpc-doc/openapi.yaml
+++ b/proto/gen/grpc-doc/openapi.yaml
@@ -12474,11 +12474,6 @@ components:
properties:
krbConfig:
$ref: '#/components/schemas/KerberosConfig'
- SCIMSetting:
- type: object
- properties:
- token:
- type: string
SQLReviewRule:
type: object
properties:
@@ -12939,8 +12934,6 @@ components:
$ref: '#/components/schemas/DataClassificationSetting'
semanticType:
$ref: '#/components/schemas/SemanticTypeSetting'
- scim:
- $ref: '#/components/schemas/SCIMSetting'
passwordRestriction:
$ref: '#/components/schemas/PasswordRestrictionSetting'
ai:
@@ -13975,6 +13968,9 @@ components:
description: |-
Whether to display watermark on pages.
Requires ENTERPRISE license.
+ directorySyncToken:
+ type: string
+ description: The token for directory sync authentication.
tags:
- name: ActuatorService
description: ActuatorService manages system health and operational information.
diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.md
index 126fd02eef..1572dd49c3 100644
--- a/proto/gen/grpc-doc/store/README.md
+++ b/proto/gen/grpc-doc/store/README.md
@@ -278,7 +278,6 @@
- [EnvironmentSetting.Environment](#bytebase-store-EnvironmentSetting-Environment)
- [EnvironmentSetting.Environment.TagsEntry](#bytebase-store-EnvironmentSetting-Environment-TagsEntry)
- [PasswordRestrictionSetting](#bytebase-store-PasswordRestrictionSetting)
- - [SCIMSetting](#bytebase-store-SCIMSetting)
- [SemanticTypeSetting](#bytebase-store-SemanticTypeSetting)
- [SemanticTypeSetting.SemanticType](#bytebase-store-SemanticTypeSetting-SemanticType)
- [WorkspaceApprovalSetting](#bytebase-store-WorkspaceApprovalSetting)
@@ -4535,21 +4534,6 @@ ISSUE_CREATE represents creating an issue. |
-<a name="bytebase-store-SCIMSetting"></a>
-
-### SCIMSetting
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| token | [string](#string) | | |
-
-
-
-
-
-
<a name="bytebase-store-SemanticTypeSetting"></a>
### SemanticTypeSetting
@@ -4638,6 +4622,7 @@ ISSUE_CREATE represents creating an issue. |
| inactive_session_timeout | [google.protobuf.Duration](#google-protobuf-Duration) | | The session expiration time if not activity detected for the user. Value &lt;= 0 means no limit. |
| enable_audit_log_stdout | [bool](#bool) | | Whether to enable audit logging to stdout in structured JSON format. Requires TEAM or ENTERPRISE license. |
| watermark | [bool](#bool) | | Whether to display watermark on pages. Requires ENTERPRISE license. |
+| directory_sync_token | [string](#string) | | The token for directory sync authentication. |
@@ -4719,7 +4704,6 @@ We support three levels of AlertLevel: INFO, WARNING, and ERROR.
| AI | 10 | |
| DATA_CLASSIFICATION | 14 | |
| SEMANTIC_TYPES | 15 | |
-| SCIM | 17 | |
| PASSWORD_RESTRICTION | 18 | |
| ENVIRONMENT | 19 | |
diff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.html
index 3e5b818bf4..7082ae4e03 100644
--- a/proto/gen/grpc-doc/store/index.html
+++ b/proto/gen/grpc-doc/store/index.html
@@ -1290,10 +1290,6 @@
<a href="#bytebase.store.PasswordRestrictionSetting"><span class="badge">M</span>PasswordRestrictionSetting</a>
</li>
- <li>
- <a href="#bytebase.store.SCIMSetting"><span class="badge">M</span>SCIMSetting</a>
- </li>
-
<li>
<a href="#bytebase.store.SemanticTypeSetting"><span class="badge">M</span>SemanticTypeSetting</a>
</li>
@@ -11955,30 +11951,6 @@ are /[a-z][0-9]-/. </p></td>
- <h3 id="bytebase.store.SCIMSetting">SCIMSetting</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>token</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
<h3 id="bytebase.store.SemanticTypeSetting">SemanticTypeSetting</h3>
<p></p>
@@ -12227,6 +12199,13 @@ Requires TEAM or ENTERPRISE license. </p></td>
Requires ENTERPRISE license. </p></td>
</tr>
+ <tr>
+ <td>directory_sync_token</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The token for directory sync authentication. </p></td>
+ </tr>
+
</tbody>
</table>
@@ -12445,12 +12424,6 @@ Default to this mode.</p></td>
<td><p></p></td>
</tr>
- <tr>
- <td>SCIM</td>
- <td>17</td>
- <td><p></p></td>
- </tr>
-
<tr>
<td>PASSWORD_RESTRICTION</td>
<td>18</td>
diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.md
index b93430d382..a501a6729c 100644
--- a/proto/gen/grpc-doc/v1/README.md
+++ b/proto/gen/grpc-doc/v1/README.md
@@ -133,7 +133,6 @@
- [ListSettingsRequest](#bytebase-v1-ListSettingsRequest)
- [ListSettingsResponse](#bytebase-v1-ListSettingsResponse)
- [PasswordRestrictionSetting](#bytebase-v1-PasswordRestrictionSetting)
- - [SCIMSetting](#bytebase-v1-SCIMSetting)
- [SemanticTypeSetting](#bytebase-v1-SemanticTypeSetting)
- [SemanticTypeSetting.SemanticType](#bytebase-v1-SemanticTypeSetting-SemanticType)
- [Setting](#bytebase-v1-Setting)
@@ -2654,21 +2653,6 @@ The response message for getting a setting.
-<a name="bytebase-v1-SCIMSetting"></a>
-
-### SCIMSetting
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| token | [string](#string) | | |
-
-
-
-
-
-
<a name="bytebase-v1-SemanticTypeSetting"></a>
### SemanticTypeSetting
@@ -2733,7 +2717,6 @@ The data in setting value.
| workspace_approval | [WorkspaceApprovalSetting](#bytebase-v1-WorkspaceApprovalSetting) | | |
| data_classification | [DataClassificationSetting](#bytebase-v1-DataClassificationSetting) | | |
| semantic_type | [SemanticTypeSetting](#bytebase-v1-SemanticTypeSetting) | | |
-| scim | [SCIMSetting](#bytebase-v1-SCIMSetting) | | |
| password_restriction | [PasswordRestrictionSetting](#bytebase-v1-PasswordRestrictionSetting) | | |
| ai | [AISetting](#bytebase-v1-AISetting) | | |
| environment | [EnvironmentSetting](#bytebase-v1-EnvironmentSetting) | | |
@@ -2823,6 +2806,7 @@ For examples: resource.environment_id == &#34;prod&#34; &amp;&amp; statement.aff
| inactive_session_timeout | [google.protobuf.Duration](#google-protobuf-Duration) | | The session expiration time if not activity detected for the user. Value &lt;= 0 means no limit. |
| enable_audit_log_stdout | [bool](#bool) | | Whether to enable audit logging to stdout in structured JSON format. Requires TEAM or ENTERPRISE license. |
| watermark | [bool](#bool) | | Whether to display watermark on pages. Requires ENTERPRISE license. |
+| directory_sync_token | [string](#string) | | The token for directory sync authentication. |
@@ -2901,7 +2885,6 @@ We support three levels of AlertLevel: INFO, WARNING, and ERROR.
| AI | 10 | |
| DATA_CLASSIFICATION | 14 | |
| SEMANTIC_TYPES | 15 | |
-| SCIM | 17 | |
| PASSWORD_RESTRICTION | 18 | |
| ENVIRONMENT | 19 | |
diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.html
index 0e382bf48e..0fbfa039d5 100644
--- a/proto/gen/grpc-doc/v1/index.html
+++ b/proto/gen/grpc-doc/v1/index.html
@@ -681,10 +681,6 @@
<a href="#bytebase.v1.PasswordRestrictionSetting"><span class="badge">M</span>PasswordRestrictionSetting</a>
</li>
- <li>
- <a href="#bytebase.v1.SCIMSetting"><span class="badge">M</span>SCIMSetting</a>
- </li>
-
<li>
<a href="#bytebase.v1.SemanticTypeSetting"><span class="badge">M</span>SemanticTypeSetting</a>
</li>
@@ -7837,30 +7833,6 @@ are /[a-z][0-9]-/. </p></td>
- <h3 id="bytebase.v1.SCIMSetting">SCIMSetting</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>token</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
<h3 id="bytebase.v1.SemanticTypeSetting">SemanticTypeSetting</h3>
<p></p>
@@ -8022,13 +7994,6 @@ Example: &#34;settings/SEMANTIC_TYPES&#34; </p></td>
<td><p> </p></td>
</tr>
- <tr>
- <td>scim</td>
- <td><a href="#bytebase.v1.SCIMSetting">SCIMSetting</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
<tr>
<td>password_restriction</td>
<td><a href="#bytebase.v1.PasswordRestrictionSetting">PasswordRestrictionSetting</a></td>
@@ -8301,6 +8266,13 @@ Requires TEAM or ENTERPRISE license. </p></td>
Requires ENTERPRISE license. </p></td>
</tr>
+ <tr>
+ <td>directory_sync_token</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>The token for directory sync authentication. </p></td>
+ </tr>
+
</tbody>
</table>
@@ -8501,12 +8473,6 @@ Default to this mode.</p></td>
<td><p></p></td>
</tr>
- <tr>
- <td>SCIM</td>
- <td>17</td>
- <td><p></p></td>
- </tr>
-
<tr>
<td>PASSWORD_RESTRICTION</td>
<td>18</td>
diff --git a/proto/store/store/setting.proto b/proto/store/store/setting.proto
index 2fdb953735..122995d536 100644
--- a/proto/store/store/setting.proto
+++ b/proto/store/store/setting.proto
@@ -21,7 +21,6 @@ enum SettingName {
AI = 10;
DATA_CLASSIFICATION = 14;
SEMANTIC_TYPES = 15;
- SCIM = 17;
PASSWORD_RESTRICTION = 18;
ENVIRONMENT = 19;
}
@@ -70,6 +69,9 @@ message WorkspaceProfileSetting {
// Whether to display watermark on pages.
// Requires ENTERPRISE license.
bool watermark = 16;
+
+ // The token for directory sync authentication.
+ string directory_sync_token = 17;
}
message Announcement {
@@ -261,10 +263,6 @@ enum DatabaseChangeMode {
EDITOR = 2;
}
-message SCIMSetting {
- string token = 1;
-}
-
message PasswordRestrictionSetting {
// min_length is the minimum length for password, should be no less than 8.
int32 min_length = 1;
diff --git a/proto/v1/v1/setting_service.proto b/proto/v1/v1/setting_service.proto
index ec25a71ad5..8be7e3631d 100644
--- a/proto/v1/v1/setting_service.proto
+++ b/proto/v1/v1/setting_service.proto
@@ -99,7 +99,6 @@ message Setting {
AI = 10;
DATA_CLASSIFICATION = 14;
SEMANTIC_TYPES = 15;
- SCIM = 17;
PASSWORD_RESTRICTION = 18;
ENVIRONMENT = 19;
}
@@ -123,7 +122,6 @@ message SettingValue {
WorkspaceApprovalSetting workspace_approval = 6;
DataClassificationSetting data_classification = 10;
SemanticTypeSetting semantic_type = 11;
- SCIMSetting scim = 14;
PasswordRestrictionSetting password_restriction = 15;
AISetting ai = 16;
EnvironmentSetting environment = 17;
@@ -220,6 +218,9 @@ message WorkspaceProfileSetting {
// Whether to display watermark on pages.
// Requires ENTERPRISE license.
bool watermark = 16;
+
+ // The token for directory sync authentication.
+ string directory_sync_token = 17;
}
message Announcement {
@@ -392,10 +393,6 @@ enum DatabaseChangeMode {
EDITOR = 2;
}
-message SCIMSetting {
- string token = 1;
-}
-
message PasswordRestrictionSetting {
// min_length is the minimum length for password, should no less than 8.
int32 min_length = 1;