Skip to content

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

refactor: migrate PasswordRestrictionSetting to WorkspaceProfileSetting (#18349) (#18349)

Danny Xu399c10b2b479
diff --git a/backend/api/v1/setting_service.go b/backend/api/v1/setting_service.go
index 50e41eca83..c7b764f4d1 100644
--- a/backend/api/v1/setting_service.go
+++ b/backend/api/v1/setting_service.go
@@ -287,6 +287,14 @@ func (s *SettingService) UpdateSetting(ctx context.Context, request *connect.Req
return nil, connect.NewError(connect.CodePermissionDenied, err)
}
oldSetting.BrandingLogo = payload.BrandingLogo
+ case "value.workspace_profile.password_restriction":
+ if err := s.licenseService.IsFeatureEnabled(v1pb.PlanFeature_FEATURE_PASSWORD_RESTRICTIONS); err != nil {
+ return nil, connect.NewError(connect.CodePermissionDenied, err)
+ }
+ if payload.PasswordRestriction != nil && payload.PasswordRestriction.MinLength < 8 {
+ return nil, connect.NewError(connect.CodeInvalidArgument, errors.Errorf("invalid password minimum length, should no less than 8"))
+ }
+ oldSetting.PasswordRestriction = payload.PasswordRestriction
default:
return nil, connect.NewError(connect.CodeInvalidArgument, errors.Errorf("invalid update mask path %v", path))
}
@@ -467,19 +475,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_PASSWORD_RESTRICTION:
- if err := s.licenseService.IsFeatureEnabled(v1pb.PlanFeature_FEATURE_PASSWORD_RESTRICTIONS); err != nil {
- return nil, connect.NewError(connect.CodePermissionDenied, err)
- }
- passwordSetting := convertPasswordRestrictionSetting(request.Msg.Setting.Value.GetPasswordRestriction())
- if passwordSetting.MinLength < 8 {
- return nil, connect.NewError(connect.CodeInvalidArgument, errors.Errorf("invalid password minimum length, should no less than 8"))
- }
- bytes, err := protojson.Marshal(passwordSetting)
- if err != nil {
- 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_AI:
aiSetting := convertAISetting(request.Msg.Setting.Value.GetAi())
if aiSetting.Enabled {
diff --git a/backend/api/v1/setting_service_converter.go b/backend/api/v1/setting_service_converter.go
index c94418372e..e1eb342e9f 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_PASSWORD_RESTRICTION:
- storeValue := new(storepb.PasswordRestrictionSetting)
- 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_PasswordRestriction{
- PasswordRestriction: convertToPasswordRestrictionSetting(storeValue),
- },
- },
- }, nil
case storepb.SettingName_AI:
storeValue := new(storepb.AISetting)
if err := common.ProtojsonUnmarshaler.Unmarshal([]byte(setting.Value), storeValue); err != nil {
@@ -171,8 +158,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_PASSWORD_RESTRICTION:
- return v1pb.Setting_PASSWORD_RESTRICTION
case storepb.SettingName_ENVIRONMENT:
return v1pb.Setting_ENVIRONMENT
case storepb.SettingName_SYSTEM:
@@ -200,8 +185,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_PASSWORD_RESTRICTION:
- return storepb.SettingName_PASSWORD_RESTRICTION
case v1pb.Setting_ENVIRONMENT:
return storepb.SettingName_ENVIRONMENT
default:
@@ -270,6 +253,7 @@ func convertWorkspaceProfileSetting(v1Setting *v1pb.WorkspaceProfileSetting) *st
Watermark: v1Setting.Watermark,
DirectorySyncToken: v1Setting.DirectorySyncToken,
BrandingLogo: v1Setting.BrandingLogo,
+ PasswordRestriction: convertPasswordRestrictionSetting(v1Setting.PasswordRestriction),
}
// Convert announcement if present
@@ -316,6 +300,7 @@ func convertToWorkspaceProfileSetting(storeSetting *storepb.WorkspaceProfileSett
Watermark: storeSetting.Watermark,
DirectorySyncToken: storeSetting.DirectorySyncToken,
BrandingLogo: storeSetting.BrandingLogo,
+ PasswordRestriction: convertToPasswordRestrictionSetting(storeSetting.PasswordRestriction),
}
if storeSetting.Announcement != nil {
@@ -722,12 +707,12 @@ func convertToAlgorithmRangeMaskSlices(storeSlices []*storepb.Algorithm_RangeMas
return v1Slices
}
-func convertPasswordRestrictionSetting(v1Setting *v1pb.PasswordRestrictionSetting) *storepb.PasswordRestrictionSetting {
+func convertPasswordRestrictionSetting(v1Setting *v1pb.WorkspaceProfileSetting_PasswordRestriction) *storepb.WorkspaceProfileSetting_PasswordRestriction {
if v1Setting == nil {
return nil
}
- return &storepb.PasswordRestrictionSetting{
+ return &storepb.WorkspaceProfileSetting_PasswordRestriction{
MinLength: v1Setting.MinLength,
RequireNumber: v1Setting.RequireNumber,
RequireLetter: v1Setting.RequireLetter,
@@ -738,12 +723,12 @@ func convertPasswordRestrictionSetting(v1Setting *v1pb.PasswordRestrictionSettin
}
}
-func convertToPasswordRestrictionSetting(storeSetting *storepb.PasswordRestrictionSetting) *v1pb.PasswordRestrictionSetting {
+func convertToPasswordRestrictionSetting(storeSetting *storepb.WorkspaceProfileSetting_PasswordRestriction) *v1pb.WorkspaceProfileSetting_PasswordRestriction {
if storeSetting == nil {
return nil
}
- return &v1pb.PasswordRestrictionSetting{
+ return &v1pb.WorkspaceProfileSetting_PasswordRestriction{
MinLength: storeSetting.MinLength,
RequireNumber: storeSetting.RequireNumber,
RequireLetter: storeSetting.RequireLetter,
diff --git a/backend/generated-go/store/setting.pb.go b/backend/generated-go/store/setting.pb.go
index 8233ec95c8..43e2a7b9fe 100644
--- a/backend/generated-go/store/setting.pb.go
+++ b/backend/generated-go/store/setting.pb.go
@@ -31,12 +31,11 @@ const (
SettingName_WORKSPACE_PROFILE SettingName = 4
SettingName_WORKSPACE_APPROVAL SettingName = 5
// 7 was ENTERPRISE_LICENSE, migrated to SYSTEM setting
- SettingName_APP_IM SettingName = 8
- SettingName_AI SettingName = 10
- SettingName_DATA_CLASSIFICATION SettingName = 14
- SettingName_SEMANTIC_TYPES SettingName = 15
- SettingName_PASSWORD_RESTRICTION SettingName = 18
- SettingName_ENVIRONMENT SettingName = 19
+ SettingName_APP_IM SettingName = 8
+ SettingName_AI SettingName = 10
+ SettingName_DATA_CLASSIFICATION SettingName = 14
+ SettingName_SEMANTIC_TYPES SettingName = 15
+ SettingName_ENVIRONMENT SettingName = 19
)
// Enum value maps for SettingName.
@@ -50,7 +49,6 @@ var (
10: "AI",
14: "DATA_CLASSIFICATION",
15: "SEMANTIC_TYPES",
- 18: "PASSWORD_RESTRICTION",
19: "ENVIRONMENT",
}
SettingName_value = map[string]int32{
@@ -62,7 +60,6 @@ var (
"AI": 10,
"DATA_CLASSIFICATION": 14,
"SEMANTIC_TYPES": 15,
- "PASSWORD_RESTRICTION": 18,
"ENVIRONMENT": 19,
}
)
@@ -355,7 +352,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{8, 0}
+ return file_store_setting_proto_rawDescGZIP(), []int{7, 0}
}
type SystemSetting struct {
@@ -456,9 +453,11 @@ type WorkspaceProfileSetting struct {
// The token for directory sync authentication.
DirectorySyncToken string `protobuf:"bytes,17,opt,name=directory_sync_token,json=directorySyncToken,proto3" json:"directory_sync_token,omitempty"`
// The branding logo as a data URI (e.g. data:image/png;base64,...).
- BrandingLogo string `protobuf:"bytes,18,opt,name=branding_logo,json=brandingLogo,proto3" json:"branding_logo,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
+ BrandingLogo string `protobuf:"bytes,18,opt,name=branding_logo,json=brandingLogo,proto3" json:"branding_logo,omitempty"`
+ // Password restriction settings.
+ PasswordRestriction *WorkspaceProfileSetting_PasswordRestriction `protobuf:"bytes,19,opt,name=password_restriction,json=passwordRestriction,proto3" json:"password_restriction,omitempty"`
+ unknownFields protoimpl.UnknownFields
+ sizeCache protoimpl.SizeCache
}
func (x *WorkspaceProfileSetting) Reset() {
@@ -603,6 +602,13 @@ func (x *WorkspaceProfileSetting) GetBrandingLogo() string {
return ""
}
+func (x *WorkspaceProfileSetting) GetPasswordRestriction() *WorkspaceProfileSetting_PasswordRestriction {
+ if x != nil {
+ return x.PasswordRestriction
+ }
+ return nil
+}
+
type WorkspaceApprovalSetting struct {
state protoimpl.MessageState `protogen:"open.v1"`
Rules []*WorkspaceApprovalSetting_Rule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
@@ -893,105 +899,6 @@ func (x *AppIMSetting) GetSettings() []*AppIMSetting_IMSetting {
return nil
}
-type PasswordRestrictionSetting struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // min_length is the minimum length for password, should be no less than 8.
- MinLength int32 `protobuf:"varint,1,opt,name=min_length,json=minLength,proto3" json:"min_length,omitempty"`
- // require_number requires the password must contain at least one number.
- RequireNumber bool `protobuf:"varint,2,opt,name=require_number,json=requireNumber,proto3" json:"require_number,omitempty"`
- // require_letter requires the password must contain at least one letter, regardless of upper case or lower case
- RequireLetter bool `protobuf:"varint,3,opt,name=require_letter,json=requireLetter,proto3" json:"require_letter,omitempty"`
- // require_uppercase_letter requires the password must contain at least one upper case letter.
- RequireUppercaseLetter bool `protobuf:"varint,4,opt,name=require_uppercase_letter,json=requireUppercaseLetter,proto3" json:"require_uppercase_letter,omitempty"`
- // require_special_character requires the password must contain at least one special character.
- RequireSpecialCharacter bool `protobuf:"varint,5,opt,name=require_special_character,json=requireSpecialCharacter,proto3" json:"require_special_character,omitempty"`
- // require_reset_password_for_first_login requires users to reset their password after the 1st login.
- RequireResetPasswordForFirstLogin bool `protobuf:"varint,6,opt,name=require_reset_password_for_first_login,json=requireResetPasswordForFirstLogin,proto3" json:"require_reset_password_for_first_login,omitempty"`
- // password_rotation requires users to reset their password after the duration.
- PasswordRotation *durationpb.Duration `protobuf:"bytes,7,opt,name=password_rotation,json=passwordRotation,proto3" json:"password_rotation,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *PasswordRestrictionSetting) Reset() {
- *x = PasswordRestrictionSetting{}
- mi := &file_store_setting_proto_msgTypes[7]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *PasswordRestrictionSetting) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*PasswordRestrictionSetting) ProtoMessage() {}
-
-func (x *PasswordRestrictionSetting) 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 PasswordRestrictionSetting.ProtoReflect.Descriptor instead.
-func (*PasswordRestrictionSetting) Descriptor() ([]byte, []int) {
- return file_store_setting_proto_rawDescGZIP(), []int{7}
-}
-
-func (x *PasswordRestrictionSetting) GetMinLength() int32 {
- if x != nil {
- return x.MinLength
- }
- return 0
-}
-
-func (x *PasswordRestrictionSetting) GetRequireNumber() bool {
- if x != nil {
- return x.RequireNumber
- }
- return false
-}
-
-func (x *PasswordRestrictionSetting) GetRequireLetter() bool {
- if x != nil {
- return x.RequireLetter
- }
- return false
-}
-
-func (x *PasswordRestrictionSetting) GetRequireUppercaseLetter() bool {
- if x != nil {
- return x.RequireUppercaseLetter
- }
- return false
-}
-
-func (x *PasswordRestrictionSetting) GetRequireSpecialCharacter() bool {
- if x != nil {
- return x.RequireSpecialCharacter
- }
- return false
-}
-
-func (x *PasswordRestrictionSetting) GetRequireResetPasswordForFirstLogin() bool {
- if x != nil {
- return x.RequireResetPasswordForFirstLogin
- }
- return false
-}
-
-func (x *PasswordRestrictionSetting) GetPasswordRotation() *durationpb.Duration {
- if x != nil {
- return x.PasswordRotation
- }
- return nil
-}
-
type AISetting struct {
state protoimpl.MessageState `protogen:"open.v1"`
Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
@@ -1006,7 +913,7 @@ type AISetting struct {
func (x *AISetting) Reset() {
*x = AISetting{}
- mi := &file_store_setting_proto_msgTypes[8]
+ mi := &file_store_setting_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1018,7 +925,7 @@ func (x *AISetting) String() string {
func (*AISetting) ProtoMessage() {}
func (x *AISetting) 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 {
@@ -1031,7 +938,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{8}
+ return file_store_setting_proto_rawDescGZIP(), []int{7}
}
func (x *AISetting) GetEnabled() bool {
@@ -1085,7 +992,7 @@ type EnvironmentSetting struct {
func (x *EnvironmentSetting) Reset() {
*x = EnvironmentSetting{}
- mi := &file_store_setting_proto_msgTypes[9]
+ mi := &file_store_setting_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1097,7 +1004,7 @@ func (x *EnvironmentSetting) String() string {
func (*EnvironmentSetting) ProtoMessage() {}
func (x *EnvironmentSetting) 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 {
@@ -1110,7 +1017,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{9}
+ return file_store_setting_proto_rawDescGZIP(), []int{8}
}
func (x *EnvironmentSetting) GetEnvironments() []*EnvironmentSetting_Environment {
@@ -1134,7 +1041,7 @@ type WorkspaceProfileSetting_Announcement struct {
func (x *WorkspaceProfileSetting_Announcement) Reset() {
*x = WorkspaceProfileSetting_Announcement{}
- mi := &file_store_setting_proto_msgTypes[10]
+ mi := &file_store_setting_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1146,7 +1053,7 @@ func (x *WorkspaceProfileSetting_Announcement) String() string {
func (*WorkspaceProfileSetting_Announcement) ProtoMessage() {}
func (x *WorkspaceProfileSetting_Announcement) 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 {
@@ -1183,6 +1090,105 @@ func (x *WorkspaceProfileSetting_Announcement) GetLink() string {
return ""
}
+type WorkspaceProfileSetting_PasswordRestriction struct {
+ state protoimpl.MessageState `protogen:"open.v1"`
+ // min_length is the minimum length for password, should be no less than 8.
+ MinLength int32 `protobuf:"varint,1,opt,name=min_length,json=minLength,proto3" json:"min_length,omitempty"`
+ // require_number requires the password must contain at least one number.
+ RequireNumber bool `protobuf:"varint,2,opt,name=require_number,json=requireNumber,proto3" json:"require_number,omitempty"`
+ // require_letter requires the password must contain at least one letter, regardless of upper case or lower case
+ RequireLetter bool `protobuf:"varint,3,opt,name=require_letter,json=requireLetter,proto3" json:"require_letter,omitempty"`
+ // require_uppercase_letter requires the password must contain at least one upper case letter.
+ RequireUppercaseLetter bool `protobuf:"varint,4,opt,name=require_uppercase_letter,json=requireUppercaseLetter,proto3" json:"require_uppercase_letter,omitempty"`
+ // require_special_character requires the password must contain at least one special character.
+ RequireSpecialCharacter bool `protobuf:"varint,5,opt,name=require_special_character,json=requireSpecialCharacter,proto3" json:"require_special_character,omitempty"`
+ // require_reset_password_for_first_login requires users to reset their password after the 1st login.
+ RequireResetPasswordForFirstLogin bool `protobuf:"varint,6,opt,name=require_reset_password_for_first_login,json=requireResetPasswordForFirstLogin,proto3" json:"require_reset_password_for_first_login,omitempty"`
+ // password_rotation requires users to reset their password after the duration.
+ PasswordRotation *durationpb.Duration `protobuf:"bytes,7,opt,name=password_rotation,json=passwordRotation,proto3" json:"password_rotation,omitempty"`
+ unknownFields protoimpl.UnknownFields
+ sizeCache protoimpl.SizeCache
+}
+
+func (x *WorkspaceProfileSetting_PasswordRestriction) Reset() {
+ *x = WorkspaceProfileSetting_PasswordRestriction{}
+ mi := &file_store_setting_proto_msgTypes[10]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+}
+
+func (x *WorkspaceProfileSetting_PasswordRestriction) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*WorkspaceProfileSetting_PasswordRestriction) ProtoMessage() {}
+
+func (x *WorkspaceProfileSetting_PasswordRestriction) ProtoReflect() protoreflect.Message {
+ mi := &file_store_setting_proto_msgTypes[10]
+ 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 WorkspaceProfileSetting_PasswordRestriction.ProtoReflect.Descriptor instead.
+func (*WorkspaceProfileSetting_PasswordRestriction) Descriptor() ([]byte, []int) {
+ return file_store_setting_proto_rawDescGZIP(), []int{1, 1}
+}
+
+func (x *WorkspaceProfileSetting_PasswordRestriction) GetMinLength() int32 {
+ if x != nil {
+ return x.MinLength
+ }
+ return 0
+}
+
+func (x *WorkspaceProfileSetting_PasswordRestriction) GetRequireNumber() bool {
+ if x != nil {
+ return x.RequireNumber
+ }
+ return false
+}
+
+func (x *WorkspaceProfileSetting_PasswordRestriction) GetRequireLetter() bool {
+ if x != nil {
+ return x.RequireLetter
+ }
+ return false
+}
+
+func (x *WorkspaceProfileSetting_PasswordRestriction) GetRequireUppercaseLetter() bool {
+ if x != nil {
+ return x.RequireUppercaseLetter
+ }
+ return false
+}
+
+func (x *WorkspaceProfileSetting_PasswordRestriction) GetRequireSpecialCharacter() bool {
+ if x != nil {
+ return x.RequireSpecialCharacter
+ }
+ return false
+}
+
+func (x *WorkspaceProfileSetting_PasswordRestriction) GetRequireResetPasswordForFirstLogin() bool {
+ if x != nil {
+ return x.RequireResetPasswordForFirstLogin
+ }
+ return false
+}
+
+func (x *WorkspaceProfileSetting_PasswordRestriction) GetPasswordRotation() *durationpb.Duration {
+ if x != nil {
+ return x.PasswordRotation
+ }
+ return nil
+}
+
type WorkspaceApprovalSetting_Rule struct {
state protoimpl.MessageState `protogen:"open.v1"`
Template *ApprovalTemplate `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"`
@@ -2320,7 +2326,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{9, 0}
+ return file_store_setting_proto_rawDescGZIP(), []int{8, 0}
}
func (x *EnvironmentSetting_Environment) GetId() string {
@@ -2360,8 +2366,7 @@ const file_store_setting_proto_rawDesc = "" +
"\vauth_secret\x18\x01 \x01(\tR\n" +
"authSecret\x12!\n" +
"\fworkspace_id\x18\x02 \x01(\tR\vworkspaceId\x12\x18\n" +
- "\alicense\x18\x03 \x01(\tR\alicense\"\x84\n" +
- "\n" +
+ "\alicense\x18\x03 \x01(\tR\alicense\"\x8a\x0e\n" +
"\x17WorkspaceProfileSetting\x12!\n" +
"\fexternal_url\x18\x01 \x01(\tR\vexternalUrl\x12'\n" +
"\x0fdisallow_signup\x18\x02 \x01(\bR\x0edisallowSignup\x12\x1f\n" +
@@ -2380,7 +2385,8 @@ const file_store_setting_proto_rawDesc = "" +
"\x17enable_audit_log_stdout\x18\x0f \x01(\bR\x14enableAuditLogStdout\x12\x1c\n" +
"\twatermark\x18\x10 \x01(\bR\twatermark\x120\n" +
"\x14directory_sync_token\x18\x11 \x01(\tR\x12directorySyncToken\x12#\n" +
- "\rbranding_logo\x18\x12 \x01(\tR\fbrandingLogo\x1a\x81\x02\n" +
+ "\rbranding_logo\x18\x12 \x01(\tR\fbrandingLogo\x12n\n" +
+ "\x14password_restriction\x18\x13 \x01(\v2;.bytebase.store.WorkspaceProfileSetting.PasswordRestrictionR\x13passwordRestriction\x1a\x81\x02\n" +
"\fAnnouncement\x12U\n" +
"\x05level\x18\x01 \x01(\x0e2?.bytebase.store.WorkspaceProfileSetting.Announcement.AlertLevelR\x05level\x12\x12\n" +
"\x04text\x18\x02 \x01(\tR\x04text\x12\x12\n" +
@@ -2390,7 +2396,16 @@ const file_store_setting_proto_rawDesc = "" +
"\x17ALERT_LEVEL_UNSPECIFIED\x10\x00\x12\x14\n" +
"\x10ALERT_LEVEL_INFO\x10\x01\x12\x17\n" +
"\x13ALERT_LEVEL_WARNING\x10\x02\x12\x18\n" +
- "\x14ALERT_LEVEL_CRITICAL\x10\x03\"T\n" +
+ "\x14ALERT_LEVEL_CRITICAL\x10\x03\x1a\x93\x03\n" +
+ "\x13PasswordRestriction\x12\x1d\n" +
+ "\n" +
+ "min_length\x18\x01 \x01(\x05R\tminLength\x12%\n" +
+ "\x0erequire_number\x18\x02 \x01(\bR\rrequireNumber\x12%\n" +
+ "\x0erequire_letter\x18\x03 \x01(\bR\rrequireLetter\x128\n" +
+ "\x18require_uppercase_letter\x18\x04 \x01(\bR\x16requireUppercaseLetter\x12:\n" +
+ "\x19require_special_character\x18\x05 \x01(\bR\x17requireSpecialCharacter\x12Q\n" +
+ "&require_reset_password_for_first_login\x18\x06 \x01(\bR!requireResetPasswordForFirstLogin\x12F\n" +
+ "\x11password_rotation\x18\a \x01(\v2\x19.google.protobuf.DurationR\x10passwordRotation\"T\n" +
"\x12DatabaseChangeMode\x12$\n" +
" DATABASE_CHANGE_MODE_UNSPECIFIED\x10\x00\x12\f\n" +
"\bPIPELINE\x10\x01\x12\n" +
@@ -2497,16 +2512,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\"\x9a\x03\n" +
- "\x1aPasswordRestrictionSetting\x12\x1d\n" +
- "\n" +
- "min_length\x18\x01 \x01(\x05R\tminLength\x12%\n" +
- "\x0erequire_number\x18\x02 \x01(\bR\rrequireNumber\x12%\n" +
- "\x0erequire_letter\x18\x03 \x01(\bR\rrequireLetter\x128\n" +
- "\x18require_uppercase_letter\x18\x04 \x01(\bR\x16requireUppercaseLetter\x12:\n" +
- "\x19require_special_character\x18\x05 \x01(\bR\x17requireSpecialCharacter\x12Q\n" +
- "&require_reset_password_for_first_login\x18\x06 \x01(\bR!requireResetPasswordForFirstLogin\x12F\n" +
- "\x11password_rotation\x18\a \x01(\v2\x19.google.protobuf.DurationR\x10passwordRotation\"\xa7\x02\n" +
+ "\apayload\"\xa7\x02\n" +
"\tAISetting\x12\x18\n" +
"\aenabled\x18\x01 \x01(\bR\aenabled\x12>\n" +
"\bprovider\x18\x02 \x01(\x0e2\".bytebase.store.AISetting.ProviderR\bprovider\x12\x1a\n" +
@@ -2531,7 +2537,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*\xd2\x01\n" +
+ "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01*\xb8\x01\n" +
"\vSettingName\x12\x1c\n" +
"\x18SETTING_NAME_UNSPECIFIED\x10\x00\x12\n" +
"\n" +
@@ -2543,8 +2549,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\x18\n" +
- "\x14PASSWORD_RESTRICTION\x10\x12\x12\x0f\n" +
+ "\x0eSEMANTIC_TYPES\x10\x0f\x12\x0f\n" +
"\vENVIRONMENT\x10\x13B\x8f\x01\n" +
"\x12com.bytebase.storeB\fSettingProtoP\x01Z\x12generated-go/store\xa2\x02\x03BSX\xaa\x02\x0eBytebase.Store\xca\x02\x0eBytebase\\Store\xe2\x02\x1aBytebase\\Store\\GPBMetadata\xea\x02\x0fBytebase::Storeb\x06proto3"
@@ -2576,10 +2581,10 @@ var file_store_setting_proto_goTypes = []any{
(*Algorithm)(nil), // 10: bytebase.store.Algorithm
(*SemanticTypeSetting)(nil), // 11: bytebase.store.SemanticTypeSetting
(*AppIMSetting)(nil), // 12: bytebase.store.AppIMSetting
- (*PasswordRestrictionSetting)(nil), // 13: bytebase.store.PasswordRestrictionSetting
- (*AISetting)(nil), // 14: bytebase.store.AISetting
- (*EnvironmentSetting)(nil), // 15: bytebase.store.EnvironmentSetting
- (*WorkspaceProfileSetting_Announcement)(nil), // 16: bytebase.store.WorkspaceProfileSetting.Announcement
+ (*AISetting)(nil), // 13: bytebase.store.AISetting
+ (*EnvironmentSetting)(nil), // 14: bytebase.store.EnvironmentSetting
+ (*WorkspaceProfileSetting_Announcement)(nil), // 15: bytebase.store.WorkspaceProfileSetting.Announcement
+ (*WorkspaceProfileSetting_PasswordRestriction)(nil), // 16: bytebase.store.WorkspaceProfileSetting.PasswordRestriction
(*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
@@ -2607,44 +2612,45 @@ var file_store_setting_proto_goTypes = []any{
}
var file_store_setting_proto_depIdxs = []int32{
37, // 0: bytebase.store.WorkspaceProfileSetting.token_duration:type_name -> google.protobuf.Duration
- 16, // 1: bytebase.store.WorkspaceProfileSetting.announcement:type_name -> bytebase.store.WorkspaceProfileSetting.Announcement
+ 15, // 1: bytebase.store.WorkspaceProfileSetting.announcement:type_name -> bytebase.store.WorkspaceProfileSetting.Announcement
37, // 2: bytebase.store.WorkspaceProfileSetting.maximum_role_expiration:type_name -> google.protobuf.Duration
1, // 3: bytebase.store.WorkspaceProfileSetting.database_change_mode:type_name -> bytebase.store.WorkspaceProfileSetting.DatabaseChangeMode
37, // 4: bytebase.store.WorkspaceProfileSetting.inactive_session_timeout:type_name -> google.protobuf.Duration
- 17, // 5: bytebase.store.WorkspaceApprovalSetting.rules:type_name -> bytebase.store.WorkspaceApprovalSetting.Rule
- 18, // 6: bytebase.store.DataClassificationSetting.configs:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig
- 22, // 7: bytebase.store.Algorithm.full_mask:type_name -> bytebase.store.Algorithm.FullMask
- 23, // 8: bytebase.store.Algorithm.range_mask:type_name -> bytebase.store.Algorithm.RangeMask
- 24, // 9: bytebase.store.Algorithm.md5_mask:type_name -> bytebase.store.Algorithm.MD5Mask
- 25, // 10: bytebase.store.Algorithm.inner_outer_mask:type_name -> bytebase.store.Algorithm.InnerOuterMask
- 27, // 11: bytebase.store.SemanticTypeSetting.types:type_name -> bytebase.store.SemanticTypeSetting.SemanticType
- 34, // 12: bytebase.store.AppIMSetting.settings:type_name -> bytebase.store.AppIMSetting.IMSetting
- 37, // 13: bytebase.store.PasswordRestrictionSetting.password_rotation:type_name -> google.protobuf.Duration
+ 16, // 5: bytebase.store.WorkspaceProfileSetting.password_restriction:type_name -> bytebase.store.WorkspaceProfileSetting.PasswordRestriction
+ 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.Algorithm.full_mask:type_name -> bytebase.store.Algorithm.FullMask
+ 23, // 9: bytebase.store.Algorithm.range_mask:type_name -> bytebase.store.Algorithm.RangeMask
+ 24, // 10: bytebase.store.Algorithm.md5_mask:type_name -> bytebase.store.Algorithm.MD5Mask
+ 25, // 11: bytebase.store.Algorithm.inner_outer_mask:type_name -> bytebase.store.Algorithm.InnerOuterMask
+ 27, // 12: bytebase.store.SemanticTypeSetting.types:type_name -> bytebase.store.SemanticTypeSetting.SemanticType
+ 34, // 13: bytebase.store.AppIMSetting.settings:type_name -> bytebase.store.AppIMSetting.IMSetting
5, // 14: bytebase.store.AISetting.provider:type_name -> bytebase.store.AISetting.Provider
35, // 15: bytebase.store.EnvironmentSetting.environments:type_name -> bytebase.store.EnvironmentSetting.Environment
2, // 16: bytebase.store.WorkspaceProfileSetting.Announcement.level:type_name -> bytebase.store.WorkspaceProfileSetting.Announcement.AlertLevel
- 38, // 17: bytebase.store.WorkspaceApprovalSetting.Rule.template:type_name -> bytebase.store.ApprovalTemplate
- 39, // 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
- 26, // 23: bytebase.store.Algorithm.RangeMask.slices:type_name -> bytebase.store.Algorithm.RangeMask.Slice
- 4, // 24: bytebase.store.Algorithm.InnerOuterMask.type:type_name -> bytebase.store.Algorithm.InnerOuterMask.MaskType
- 10, // 25: bytebase.store.SemanticTypeSetting.SemanticType.algorithm:type_name -> bytebase.store.Algorithm
- 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
- 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
- 34, // [34:34] is the sub-list for extension extendee
- 0, // [0:34] is the sub-list for field type_name
+ 37, // 17: bytebase.store.WorkspaceProfileSetting.PasswordRestriction.password_rotation:type_name -> google.protobuf.Duration
+ 38, // 18: bytebase.store.WorkspaceApprovalSetting.Rule.template:type_name -> bytebase.store.ApprovalTemplate
+ 39, // 19: bytebase.store.WorkspaceApprovalSetting.Rule.condition:type_name -> google.type.Expr
+ 3, // 20: bytebase.store.WorkspaceApprovalSetting.Rule.source:type_name -> bytebase.store.WorkspaceApprovalSetting.Rule.Source
+ 19, // 21: bytebase.store.DataClassificationSetting.DataClassificationConfig.levels:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.Level
+ 21, // 22: bytebase.store.DataClassificationSetting.DataClassificationConfig.classification:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry
+ 20, // 23: bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry.value:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.DataClassification
+ 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
+ 10, // 26: bytebase.store.SemanticTypeSetting.SemanticType.algorithm:type_name -> bytebase.store.Algorithm
+ 40, // 27: bytebase.store.AppIMSetting.IMSetting.type:type_name -> bytebase.store.ProjectWebhook.Type
+ 28, // 28: bytebase.store.AppIMSetting.IMSetting.slack:type_name -> bytebase.store.AppIMSetting.Slack
+ 29, // 29: bytebase.store.AppIMSetting.IMSetting.feishu:type_name -> bytebase.store.AppIMSetting.Feishu
+ 30, // 30: bytebase.store.AppIMSetting.IMSetting.wecom:type_name -> bytebase.store.AppIMSetting.Wecom
+ 31, // 31: bytebase.store.AppIMSetting.IMSetting.lark:type_name -> bytebase.store.AppIMSetting.Lark
+ 32, // 32: bytebase.store.AppIMSetting.IMSetting.dingtalk:type_name -> bytebase.store.AppIMSetting.DingTalk
+ 33, // 33: bytebase.store.AppIMSetting.IMSetting.teams:type_name -> bytebase.store.AppIMSetting.Teams
+ 36, // 34: bytebase.store.EnvironmentSetting.Environment.tags:type_name -> bytebase.store.EnvironmentSetting.Environment.TagsEntry
+ 35, // [35:35] is the sub-list for method output_type
+ 35, // [35:35] is the sub-list for method input_type
+ 35, // [35:35] is the sub-list for extension type_name
+ 35, // [35:35] is the sub-list for extension extendee
+ 0, // [0:35] is the sub-list for field type_name
}
func init() { file_store_setting_proto_init() }
diff --git a/backend/generated-go/store/setting_equal.pb.go b/backend/generated-go/store/setting_equal.pb.go
index 34a4f042cb..afe2eff10e 100644
--- a/backend/generated-go/store/setting_equal.pb.go
+++ b/backend/generated-go/store/setting_equal.pb.go
@@ -46,6 +46,37 @@ func (x *WorkspaceProfileSetting_Announcement) Equal(y *WorkspaceProfileSetting_
return true
}
+func (x *WorkspaceProfileSetting_PasswordRestriction) Equal(y *WorkspaceProfileSetting_PasswordRestriction) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.MinLength != y.MinLength {
+ return false
+ }
+ if x.RequireNumber != y.RequireNumber {
+ return false
+ }
+ if x.RequireLetter != y.RequireLetter {
+ return false
+ }
+ if x.RequireUppercaseLetter != y.RequireUppercaseLetter {
+ return false
+ }
+ if x.RequireSpecialCharacter != y.RequireSpecialCharacter {
+ return false
+ }
+ if x.RequireResetPasswordForFirstLogin != y.RequireResetPasswordForFirstLogin {
+ return false
+ }
+ if p, q := x.PasswordRotation, y.PasswordRotation; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ return true
+}
+
func (x *WorkspaceProfileSetting) Equal(y *WorkspaceProfileSetting) bool {
if x == y {
return true
@@ -106,6 +137,9 @@ func (x *WorkspaceProfileSetting) Equal(y *WorkspaceProfileSetting) bool {
if x.BrandingLogo != y.BrandingLogo {
return false
}
+ if !x.PasswordRestriction.Equal(y.PasswordRestriction) {
+ return false
+ }
return true
}
@@ -544,37 +578,6 @@ func (x *AppIMSetting) Equal(y *AppIMSetting) bool {
return true
}
-func (x *PasswordRestrictionSetting) Equal(y *PasswordRestrictionSetting) bool {
- if x == y {
- return true
- }
- if x == nil || y == nil {
- return x == nil && y == nil
- }
- if x.MinLength != y.MinLength {
- return false
- }
- if x.RequireNumber != y.RequireNumber {
- return false
- }
- if x.RequireLetter != y.RequireLetter {
- return false
- }
- if x.RequireUppercaseLetter != y.RequireUppercaseLetter {
- return false
- }
- if x.RequireSpecialCharacter != y.RequireSpecialCharacter {
- return false
- }
- if x.RequireResetPasswordForFirstLogin != y.RequireResetPasswordForFirstLogin {
- return false
- }
- if p, q := x.PasswordRotation, y.PasswordRotation; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
- return false
- }
- return true
-}
-
func (x *AISetting) Equal(y *AISetting) bool {
if x == y {
return true
diff --git a/backend/generated-go/v1/actuator_service.pb.go b/backend/generated-go/v1/actuator_service.pb.go
index 9bef3b157f..758c7d53d7 100644
--- a/backend/generated-go/v1/actuator_service.pb.go
+++ b/backend/generated-go/v1/actuator_service.pb.go
@@ -321,7 +321,7 @@ type ActuatorInfo struct {
// Whether password-based signin is disabled (except for workspace admins).
DisallowPasswordSignin bool `protobuf:"varint,20,opt,name=disallow_password_signin,json=disallowPasswordSignin,proto3" json:"disallow_password_signin,omitempty"`
// Password complexity and restriction requirements.
- PasswordRestriction *PasswordRestrictionSetting `protobuf:"bytes,21,opt,name=password_restriction,json=passwordRestriction,proto3" json:"password_restriction,omitempty"`
+ PasswordRestriction *WorkspaceProfileSetting_PasswordRestriction `protobuf:"bytes,21,opt,name=password_restriction,json=passwordRestriction,proto3" json:"password_restriction,omitempty"`
// Whether the Bytebase instance is running in Docker.
Docker bool `protobuf:"varint,22,opt,name=docker,proto3" json:"docker,omitempty"`
// Statistics about users in the system.
@@ -480,7 +480,7 @@ func (x *ActuatorInfo) GetDisallowPasswordSignin() bool {
return false
}
-func (x *ActuatorInfo) GetPasswordRestriction() *PasswordRestrictionSetting {
+func (x *ActuatorInfo) GetPasswordRestriction() *WorkspaceProfileSetting_PasswordRestriction {
if x != nil {
return x.PasswordRestriction
}
@@ -608,7 +608,7 @@ const file_v1_actuator_service_proto_rawDesc = "" +
"\vupdate_mask\x18\x02 \x01(\v2\x1a.google.protobuf.FieldMaskB\x03\xe0A\x02R\n" +
"updateMask\x12#\n" +
"\rallow_missing\x18\x03 \x01(\bR\fallowMissing\"\x14\n" +
- "\x12DeleteCacheRequest\"\x9f\t\n" +
+ "\x12DeleteCacheRequest\"\xb0\t\n" +
"\fActuatorInfo\x12\x1d\n" +
"\aversion\x18\x01 \x01(\tB\x03\xe0A\x03R\aversion\x12\"\n" +
"\n" +
@@ -628,8 +628,8 @@ const file_v1_actuator_service_proto_rawDesc = "" +
"\fworkspace_id\x18\r \x01(\tB\x03\xe0A\x03R\vworkspaceId\x12\x14\n" +
"\x05debug\x18\x0f \x01(\bR\x05debug\x124\n" +
"\x13unlicensed_features\x18\x13 \x03(\tB\x03\xe0A\x03R\x12unlicensedFeatures\x12=\n" +
- "\x18disallow_password_signin\x18\x14 \x01(\bB\x03\xe0A\x03R\x16disallowPasswordSignin\x12_\n" +
- "\x14password_restriction\x18\x15 \x01(\v2'.bytebase.v1.PasswordRestrictionSettingB\x03\xe0A\x03R\x13passwordRestriction\x12\x1b\n" +
+ "\x18disallow_password_signin\x18\x14 \x01(\bB\x03\xe0A\x03R\x16disallowPasswordSignin\x12p\n" +
+ "\x14password_restriction\x18\x15 \x01(\v28.bytebase.v1.WorkspaceProfileSetting.PasswordRestrictionB\x03\xe0A\x03R\x13passwordRestriction\x12\x1b\n" +
"\x06docker\x18\x16 \x01(\bB\x03\xe0A\x03R\x06docker\x12F\n" +
"\n" +
"user_stats\x18\x17 \x03(\v2\".bytebase.v1.ActuatorInfo.StatUserB\x03\xe0A\x03R\tuserStats\x12=\n" +
@@ -663,26 +663,26 @@ func file_v1_actuator_service_proto_rawDescGZIP() []byte {
var file_v1_actuator_service_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
var file_v1_actuator_service_proto_goTypes = []any{
- (*GetResourcePackageRequest)(nil), // 0: bytebase.v1.GetResourcePackageRequest
- (*ResourcePackage)(nil), // 1: bytebase.v1.ResourcePackage
- (*SetupSampleRequest)(nil), // 2: bytebase.v1.SetupSampleRequest
- (*GetActuatorInfoRequest)(nil), // 3: bytebase.v1.GetActuatorInfoRequest
- (*UpdateActuatorInfoRequest)(nil), // 4: bytebase.v1.UpdateActuatorInfoRequest
- (*DeleteCacheRequest)(nil), // 5: bytebase.v1.DeleteCacheRequest
- (*ActuatorInfo)(nil), // 6: bytebase.v1.ActuatorInfo
- (*ActuatorInfo_StatUser)(nil), // 7: bytebase.v1.ActuatorInfo.StatUser
- (*fieldmaskpb.FieldMask)(nil), // 8: google.protobuf.FieldMask
- (*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp
- (*PasswordRestrictionSetting)(nil), // 10: bytebase.v1.PasswordRestrictionSetting
- (UserType)(0), // 11: bytebase.v1.UserType
- (State)(0), // 12: bytebase.v1.State
- (*emptypb.Empty)(nil), // 13: google.protobuf.Empty
+ (*GetResourcePackageRequest)(nil), // 0: bytebase.v1.GetResourcePackageRequest
+ (*ResourcePackage)(nil), // 1: bytebase.v1.ResourcePackage
+ (*SetupSampleRequest)(nil), // 2: bytebase.v1.SetupSampleRequest
+ (*GetActuatorInfoRequest)(nil), // 3: bytebase.v1.GetActuatorInfoRequest
+ (*UpdateActuatorInfoRequest)(nil), // 4: bytebase.v1.UpdateActuatorInfoRequest
+ (*DeleteCacheRequest)(nil), // 5: bytebase.v1.DeleteCacheRequest
+ (*ActuatorInfo)(nil), // 6: bytebase.v1.ActuatorInfo
+ (*ActuatorInfo_StatUser)(nil), // 7: bytebase.v1.ActuatorInfo.StatUser
+ (*fieldmaskpb.FieldMask)(nil), // 8: google.protobuf.FieldMask
+ (*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp
+ (*WorkspaceProfileSetting_PasswordRestriction)(nil), // 10: bytebase.v1.WorkspaceProfileSetting.PasswordRestriction
+ (UserType)(0), // 11: bytebase.v1.UserType
+ (State)(0), // 12: bytebase.v1.State
+ (*emptypb.Empty)(nil), // 13: google.protobuf.Empty
}
var file_v1_actuator_service_proto_depIdxs = []int32{
6, // 0: bytebase.v1.UpdateActuatorInfoRequest.actuator:type_name -> bytebase.v1.ActuatorInfo
8, // 1: bytebase.v1.UpdateActuatorInfoRequest.update_mask:type_name -> google.protobuf.FieldMask
9, // 2: bytebase.v1.ActuatorInfo.last_active_time:type_name -> google.protobuf.Timestamp
- 10, // 3: bytebase.v1.ActuatorInfo.password_restriction:type_name -> bytebase.v1.PasswordRestrictionSetting
+ 10, // 3: bytebase.v1.ActuatorInfo.password_restriction:type_name -> bytebase.v1.WorkspaceProfileSetting.PasswordRestriction
7, // 4: bytebase.v1.ActuatorInfo.user_stats:type_name -> bytebase.v1.ActuatorInfo.StatUser
11, // 5: bytebase.v1.ActuatorInfo.StatUser.user_type:type_name -> bytebase.v1.UserType
12, // 6: bytebase.v1.ActuatorInfo.StatUser.state:type_name -> bytebase.v1.State
diff --git a/backend/generated-go/v1/setting_service.pb.go b/backend/generated-go/v1/setting_service.pb.go
index 485fdd1886..eea4c797e5 100644
--- a/backend/generated-go/v1/setting_service.pb.go
+++ b/backend/generated-go/v1/setting_service.pb.go
@@ -87,7 +87,6 @@ const (
Setting_AI Setting_SettingName = 10
Setting_DATA_CLASSIFICATION Setting_SettingName = 14
Setting_SEMANTIC_TYPES Setting_SettingName = 15
- Setting_PASSWORD_RESTRICTION Setting_SettingName = 18
Setting_ENVIRONMENT Setting_SettingName = 19
)
@@ -101,7 +100,6 @@ var (
10: "AI",
14: "DATA_CLASSIFICATION",
15: "SEMANTIC_TYPES",
- 18: "PASSWORD_RESTRICTION",
19: "ENVIRONMENT",
}
Setting_SettingName_value = map[string]int32{
@@ -112,7 +110,6 @@ var (
"AI": 10,
"DATA_CLASSIFICATION": 14,
"SEMANTIC_TYPES": 15,
- "PASSWORD_RESTRICTION": 18,
"ENVIRONMENT": 19,
}
)
@@ -353,7 +350,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{15, 0}
+ return file_v1_setting_service_proto_rawDescGZIP(), []int{14, 0}
}
type ListSettingsRequest struct {
@@ -667,7 +664,6 @@ type SettingValue struct {
// *SettingValue_WorkspaceApproval
// *SettingValue_DataClassification
// *SettingValue_SemanticType
- // *SettingValue_PasswordRestriction
// *SettingValue_Ai
// *SettingValue_Environment
Value isSettingValue_Value `protobuf_oneof:"value"`
@@ -757,15 +753,6 @@ func (x *SettingValue) GetSemanticType() *SemanticTypeSetting {
return nil
}
-func (x *SettingValue) GetPasswordRestriction() *PasswordRestrictionSetting {
- if x != nil {
- if x, ok := x.Value.(*SettingValue_PasswordRestriction); ok {
- return x.PasswordRestriction
- }
- }
- return nil
-}
-
func (x *SettingValue) GetAi() *AISetting {
if x != nil {
if x, ok := x.Value.(*SettingValue_Ai); ok {
@@ -808,10 +795,6 @@ type SettingValue_SemanticType struct {
SemanticType *SemanticTypeSetting `protobuf:"bytes,11,opt,name=semantic_type,json=semanticType,proto3,oneof"`
}
-type SettingValue_PasswordRestriction struct {
- PasswordRestriction *PasswordRestrictionSetting `protobuf:"bytes,15,opt,name=password_restriction,json=passwordRestriction,proto3,oneof"`
-}
-
type SettingValue_Ai struct {
Ai *AISetting `protobuf:"bytes,16,opt,name=ai,proto3,oneof"`
}
@@ -830,8 +813,6 @@ func (*SettingValue_DataClassification) isSettingValue_Value() {}
func (*SettingValue_SemanticType) isSettingValue_Value() {}
-func (*SettingValue_PasswordRestriction) isSettingValue_Value() {}
-
func (*SettingValue_Ai) isSettingValue_Value() {}
func (*SettingValue_Environment) isSettingValue_Value() {}
@@ -915,9 +896,11 @@ type WorkspaceProfileSetting struct {
// The token for directory sync authentication.
DirectorySyncToken string `protobuf:"bytes,17,opt,name=directory_sync_token,json=directorySyncToken,proto3" json:"directory_sync_token,omitempty"`
// The branding logo as a data URI (e.g. data:image/png;base64,...).
- BrandingLogo string `protobuf:"bytes,18,opt,name=branding_logo,json=brandingLogo,proto3" json:"branding_logo,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
+ BrandingLogo string `protobuf:"bytes,18,opt,name=branding_logo,json=brandingLogo,proto3" json:"branding_logo,omitempty"`
+ // Password restriction settings.
+ PasswordRestriction *WorkspaceProfileSetting_PasswordRestriction `protobuf:"bytes,19,opt,name=password_restriction,json=passwordRestriction,proto3" json:"password_restriction,omitempty"`
+ unknownFields protoimpl.UnknownFields
+ sizeCache protoimpl.SizeCache
}
func (x *WorkspaceProfileSetting) Reset() {
@@ -1062,6 +1045,13 @@ func (x *WorkspaceProfileSetting) GetBrandingLogo() string {
return ""
}
+func (x *WorkspaceProfileSetting) GetPasswordRestriction() *WorkspaceProfileSetting_PasswordRestriction {
+ if x != nil {
+ return x.PasswordRestriction
+ }
+ return nil
+}
+
type Announcement struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The alert level of announcement
@@ -1371,105 +1361,6 @@ func (*Algorithm_Md5Mask) isAlgorithm_Mask() {}
func (*Algorithm_InnerOuterMask_) isAlgorithm_Mask() {}
-type PasswordRestrictionSetting struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // min_length is the minimum length for password, should no less than 8.
- MinLength int32 `protobuf:"varint,1,opt,name=min_length,json=minLength,proto3" json:"min_length,omitempty"`
- // require_number requires the password must contains at least one number.
- RequireNumber bool `protobuf:"varint,2,opt,name=require_number,json=requireNumber,proto3" json:"require_number,omitempty"`
- // require_letter requires the password must contains at least one letter, regardless of upper case or lower case
- RequireLetter bool `protobuf:"varint,3,opt,name=require_letter,json=requireLetter,proto3" json:"require_letter,omitempty"`
- // require_uppercase_letter requires the password must contains at least one upper case letter.
- RequireUppercaseLetter bool `protobuf:"varint,4,opt,name=require_uppercase_letter,json=requireUppercaseLetter,proto3" json:"require_uppercase_letter,omitempty"`
- // require_special_character requires the password must contains at least one special character.
- RequireSpecialCharacter bool `protobuf:"varint,5,opt,name=require_special_character,json=requireSpecialCharacter,proto3" json:"require_special_character,omitempty"`
- // require_reset_password_for_first_login requires users to reset their password after the 1st login.
- RequireResetPasswordForFirstLogin bool `protobuf:"varint,6,opt,name=require_reset_password_for_first_login,json=requireResetPasswordForFirstLogin,proto3" json:"require_reset_password_for_first_login,omitempty"`
- // password_rotation requires users to reset their password after the duration.
- PasswordRotation *durationpb.Duration `protobuf:"bytes,7,opt,name=password_rotation,json=passwordRotation,proto3" json:"password_rotation,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *PasswordRestrictionSetting) Reset() {
- *x = PasswordRestrictionSetting{}
- mi := &file_v1_setting_service_proto_msgTypes[14]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *PasswordRestrictionSetting) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*PasswordRestrictionSetting) ProtoMessage() {}
-
-func (x *PasswordRestrictionSetting) 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 PasswordRestrictionSetting.ProtoReflect.Descriptor instead.
-func (*PasswordRestrictionSetting) Descriptor() ([]byte, []int) {
- return file_v1_setting_service_proto_rawDescGZIP(), []int{14}
-}
-
-func (x *PasswordRestrictionSetting) GetMinLength() int32 {
- if x != nil {
- return x.MinLength
- }
- return 0
-}
-
-func (x *PasswordRestrictionSetting) GetRequireNumber() bool {
- if x != nil {
- return x.RequireNumber
- }
- return false
-}
-
-func (x *PasswordRestrictionSetting) GetRequireLetter() bool {
- if x != nil {
- return x.RequireLetter
- }
- return false
-}
-
-func (x *PasswordRestrictionSetting) GetRequireUppercaseLetter() bool {
- if x != nil {
- return x.RequireUppercaseLetter
- }
- return false
-}
-
-func (x *PasswordRestrictionSetting) GetRequireSpecialCharacter() bool {
- if x != nil {
- return x.RequireSpecialCharacter
- }
- return false
-}
-
-func (x *PasswordRestrictionSetting) GetRequireResetPasswordForFirstLogin() bool {
- if x != nil {
- return x.RequireResetPasswordForFirstLogin
- }
- return false
-}
-
-func (x *PasswordRestrictionSetting) GetPasswordRotation() *durationpb.Duration {
- if x != nil {
- return x.PasswordRotation
- }
- return nil
-}
-
type AISetting struct {
state protoimpl.MessageState `protogen:"open.v1"`
Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
@@ -1484,7 +1375,7 @@ type AISetting struct {
func (x *AISetting) Reset() {
*x = AISetting{}
- 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)
}
@@ -1496,7 +1387,7 @@ func (x *AISetting) String() string {
func (*AISetting) ProtoMessage() {}
func (x *AISetting) 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 {
@@ -1509,7 +1400,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{15}
+ return file_v1_setting_service_proto_rawDescGZIP(), []int{14}
}
func (x *AISetting) GetEnabled() bool {
@@ -1563,7 +1454,7 @@ type EnvironmentSetting struct {
func (x *EnvironmentSetting) Reset() {
*x = EnvironmentSetting{}
- 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)
}
@@ -1575,7 +1466,7 @@ func (x *EnvironmentSetting) String() string {
func (*EnvironmentSetting) ProtoMessage() {}
func (x *EnvironmentSetting) 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 {
@@ -1588,7 +1479,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{16}
+ return file_v1_setting_service_proto_rawDescGZIP(), []int{15}
}
func (x *EnvironmentSetting) GetEnvironments() []*EnvironmentSetting_Environment {
@@ -1607,7 +1498,7 @@ type AppIMSetting_Slack struct {
func (x *AppIMSetting_Slack) Reset() {
*x = AppIMSetting_Slack{}
- 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)
}
@@ -1619,7 +1510,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[17]
+ mi := &file_v1_setting_service_proto_msgTypes[16]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1652,7 +1543,7 @@ type AppIMSetting_Feishu struct {
func (x *AppIMSetting_Feishu) Reset() {
*x = AppIMSetting_Feishu{}
- 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)
}
@@ -1664,7 +1555,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[18]
+ mi := &file_v1_setting_service_proto_msgTypes[17]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1705,7 +1596,7 @@ type AppIMSetting_Wecom struct {
func (x *AppIMSetting_Wecom) Reset() {
*x = AppIMSetting_Wecom{}
- 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)
}
@@ -1717,7 +1608,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[19]
+ mi := &file_v1_setting_service_proto_msgTypes[18]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1764,7 +1655,7 @@ type AppIMSetting_Lark struct {
func (x *AppIMSetting_Lark) Reset() {
*x = AppIMSetting_Lark{}
- 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)
}
@@ -1776,7 +1667,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[20]
+ mi := &file_v1_setting_service_proto_msgTypes[19]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1817,7 +1708,7 @@ type AppIMSetting_DingTalk struct {
func (x *AppIMSetting_DingTalk) Reset() {
*x = AppIMSetting_DingTalk{}
- 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)
}
@@ -1829,7 +1720,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[21]
+ mi := &file_v1_setting_service_proto_msgTypes[20]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1880,7 +1771,7 @@ type AppIMSetting_Teams struct {
func (x *AppIMSetting_Teams) Reset() {
*x = AppIMSetting_Teams{}
- 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)
}
@@ -1892,7 +1783,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[22]
+ mi := &file_v1_setting_service_proto_msgTypes[21]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1947,7 +1838,7 @@ type AppIMSetting_IMSetting struct {
func (x *AppIMSetting_IMSetting) Reset() {
*x = AppIMSetting_IMSetting{}
- 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)
}
@@ -1959,7 +1850,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[23]
+ mi := &file_v1_setting_service_proto_msgTypes[22]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2083,6 +1974,105 @@ func (*AppIMSetting_IMSetting_Dingtalk) isAppIMSetting_IMSetting_Payload() {}
func (*AppIMSetting_IMSetting_Teams) isAppIMSetting_IMSetting_Payload() {}
+type WorkspaceProfileSetting_PasswordRestriction struct {
+ state protoimpl.MessageState `protogen:"open.v1"`
+ // min_length is the minimum length for password, should no less than 8.
+ MinLength int32 `protobuf:"varint,1,opt,name=min_length,json=minLength,proto3" json:"min_length,omitempty"`
+ // require_number requires the password must contains at least one number.
+ RequireNumber bool `protobuf:"varint,2,opt,name=require_number,json=requireNumber,proto3" json:"require_number,omitempty"`
+ // require_letter requires the password must contains at least one letter, regardless of upper case or lower case
+ RequireLetter bool `protobuf:"varint,3,opt,name=require_letter,json=requireLetter,proto3" json:"require_letter,omitempty"`
+ // require_uppercase_letter requires the password must contains at least one upper case letter.
+ RequireUppercaseLetter bool `protobuf:"varint,4,opt,name=require_uppercase_letter,json=requireUppercaseLetter,proto3" json:"require_uppercase_letter,omitempty"`
+ // require_special_character requires the password must contains at least one special character.
+ RequireSpecialCharacter bool `protobuf:"varint,5,opt,name=require_special_character,json=requireSpecialCharacter,proto3" json:"require_special_character,omitempty"`
+ // require_reset_password_for_first_login requires users to reset their password after the 1st login.
+ RequireResetPasswordForFirstLogin bool `protobuf:"varint,6,opt,name=require_reset_password_for_first_login,json=requireResetPasswordForFirstLogin,proto3" json:"require_reset_password_for_first_login,omitempty"`
+ // password_rotation requires users to reset their password after the duration.
+ PasswordRotation *durationpb.Duration `protobuf:"bytes,7,opt,name=password_rotation,json=passwordRotation,proto3" json:"password_rotation,omitempty"`
+ unknownFields protoimpl.UnknownFields
+ sizeCache protoimpl.SizeCache
+}
+
+func (x *WorkspaceProfileSetting_PasswordRestriction) Reset() {
+ *x = WorkspaceProfileSetting_PasswordRestriction{}
+ mi := &file_v1_setting_service_proto_msgTypes[23]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+}
+
+func (x *WorkspaceProfileSetting_PasswordRestriction) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*WorkspaceProfileSetting_PasswordRestriction) ProtoMessage() {}
+
+func (x *WorkspaceProfileSetting_PasswordRestriction) ProtoReflect() protoreflect.Message {
+ mi := &file_v1_setting_service_proto_msgTypes[23]
+ 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 WorkspaceProfileSetting_PasswordRestriction.ProtoReflect.Descriptor instead.
+func (*WorkspaceProfileSetting_PasswordRestriction) Descriptor() ([]byte, []int) {
+ return file_v1_setting_service_proto_rawDescGZIP(), []int{8, 0}
+}
+
+func (x *WorkspaceProfileSetting_PasswordRestriction) GetMinLength() int32 {
+ if x != nil {
+ return x.MinLength
+ }
+ return 0
+}
+
+func (x *WorkspaceProfileSetting_PasswordRestriction) GetRequireNumber() bool {
+ if x != nil {
+ return x.RequireNumber
+ }
+ return false
+}
+
+func (x *WorkspaceProfileSetting_PasswordRestriction) GetRequireLetter() bool {
+ if x != nil {
+ return x.RequireLetter
+ }
+ return false
+}
+
+func (x *WorkspaceProfileSetting_PasswordRestriction) GetRequireUppercaseLetter() bool {
+ if x != nil {
+ return x.RequireUppercaseLetter
+ }
+ return false
+}
+
+func (x *WorkspaceProfileSetting_PasswordRestriction) GetRequireSpecialCharacter() bool {
+ if x != nil {
+ return x.RequireSpecialCharacter
+ }
+ return false
+}
+
+func (x *WorkspaceProfileSetting_PasswordRestriction) GetRequireResetPasswordForFirstLogin() bool {
+ if x != nil {
+ return x.RequireResetPasswordForFirstLogin
+ }
+ return false
+}
+
+func (x *WorkspaceProfileSetting_PasswordRestriction) GetPasswordRotation() *durationpb.Duration {
+ if x != nil {
+ return x.PasswordRotation
+ }
+ return nil
+}
+
type WorkspaceApprovalSetting_Rule struct {
state protoimpl.MessageState `protogen:"open.v1"`
Template *ApprovalTemplate `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"`
@@ -2765,7 +2755,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{16, 0}
+ return file_v1_setting_service_proto_rawDescGZIP(), []int{15, 0}
}
func (x *EnvironmentSetting_Environment) GetName() string {
@@ -2821,10 +2811,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\"\xd0\x02\n" +
+ "updateMask\"\xb6\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\"\xc6\x01\n" +
+ "\x05value\x18\x02 \x01(\v2\x19.bytebase.v1.SettingValueB\x03\xe0A\x02R\x05value\"\xac\x01\n" +
"\vSettingName\x12\x1c\n" +
"\x18SETTING_NAME_UNSPECIFIED\x10\x00\x12\x15\n" +
"\x11WORKSPACE_PROFILE\x10\x04\x12\x16\n" +
@@ -2834,18 +2824,16 @@ 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\x18\n" +
- "\x14PASSWORD_RESTRICTION\x10\x12\x12\x0f\n" +
+ "\x0eSEMANTIC_TYPES\x10\x0f\x12\x0f\n" +
"\vENVIRONMENT\x10\x13:-\xeaA*\n" +
- "\x14bytebase.com/Setting\x12\x12settings/{setting}\"\xe9\x04\n" +
+ "\x14bytebase.com/Setting\x12\x12settings/{setting}\"\x8b\x04\n" +
"\fSettingValue\x122\n" +
"\x06app_im\x18\x03 \x01(\v2\x19.bytebase.v1.AppIMSettingH\x00R\x05appIm\x12S\n" +
"\x11workspace_profile\x18\x05 \x01(\v2$.bytebase.v1.WorkspaceProfileSettingH\x00R\x10workspaceProfile\x12V\n" +
"\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" +
- "\x14password_restriction\x18\x0f \x01(\v2'.bytebase.v1.PasswordRestrictionSettingH\x00R\x13passwordRestriction\x12(\n" +
+ "\rsemantic_type\x18\v \x01(\v2 .bytebase.v1.SemanticTypeSettingH\x00R\fsemanticType\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" +
"\x05value\"\x83\b\n" +
@@ -2882,7 +2870,8 @@ 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\"\xf4\x06\n" +
+ "\apayload\"\xf7\n" +
+ "\n" +
"\x17WorkspaceProfileSetting\x12!\n" +
"\fexternal_url\x18\x01 \x01(\tR\vexternalUrl\x12'\n" +
"\x0fdisallow_signup\x18\x02 \x01(\bR\x0edisallowSignup\x12\x1f\n" +
@@ -2901,7 +2890,17 @@ const file_v1_setting_service_proto_rawDesc = "" +
"\x17enable_audit_log_stdout\x18\x0f \x01(\bR\x14enableAuditLogStdout\x12\x1c\n" +
"\twatermark\x18\x10 \x01(\bR\twatermark\x120\n" +
"\x14directory_sync_token\x18\x11 \x01(\tR\x12directorySyncToken\x12#\n" +
- "\rbranding_logo\x18\x12 \x01(\tR\fbrandingLogo\"\xc2\x01\n" +
+ "\rbranding_logo\x18\x12 \x01(\tR\fbrandingLogo\x12k\n" +
+ "\x14password_restriction\x18\x13 \x01(\v28.bytebase.v1.WorkspaceProfileSetting.PasswordRestrictionR\x13passwordRestriction\x1a\x93\x03\n" +
+ "\x13PasswordRestriction\x12\x1d\n" +
+ "\n" +
+ "min_length\x18\x01 \x01(\x05R\tminLength\x12%\n" +
+ "\x0erequire_number\x18\x02 \x01(\bR\rrequireNumber\x12%\n" +
+ "\x0erequire_letter\x18\x03 \x01(\bR\rrequireLetter\x128\n" +
+ "\x18require_uppercase_letter\x18\x04 \x01(\bR\x16requireUppercaseLetter\x12:\n" +
+ "\x19require_special_character\x18\x05 \x01(\bR\x17requireSpecialCharacter\x12Q\n" +
+ "&require_reset_password_for_first_login\x18\x06 \x01(\bR!requireResetPasswordForFirstLogin\x12F\n" +
+ "\x11password_rotation\x18\a \x01(\v2\x19.google.protobuf.DurationR\x10passwordRotation\"\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" +
@@ -2979,16 +2978,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\"\x9a\x03\n" +
- "\x1aPasswordRestrictionSetting\x12\x1d\n" +
- "\n" +
- "min_length\x18\x01 \x01(\x05R\tminLength\x12%\n" +
- "\x0erequire_number\x18\x02 \x01(\bR\rrequireNumber\x12%\n" +
- "\x0erequire_letter\x18\x03 \x01(\bR\rrequireLetter\x128\n" +
- "\x18require_uppercase_letter\x18\x04 \x01(\bR\x16requireUppercaseLetter\x12:\n" +
- "\x19require_special_character\x18\x05 \x01(\bR\x17requireSpecialCharacter\x12Q\n" +
- "&require_reset_password_for_first_login\x18\x06 \x01(\bR!requireResetPasswordForFirstLogin\x12F\n" +
- "\x11password_rotation\x18\a \x01(\v2\x19.google.protobuf.DurationR\x10passwordRotation\"\xa4\x02\n" +
+ "\x04mask\"\xa4\x02\n" +
"\tAISetting\x12\x18\n" +
"\aenabled\x18\x01 \x01(\bR\aenabled\x12;\n" +
"\bprovider\x18\x02 \x01(\x0e2\x1f.bytebase.v1.AISetting.ProviderR\bprovider\x12\x1a\n" +
@@ -3062,16 +3052,16 @@ 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
- (*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
+ (*AISetting)(nil), // 20: bytebase.v1.AISetting
+ (*EnvironmentSetting)(nil), // 21: bytebase.v1.EnvironmentSetting
+ (*AppIMSetting_Slack)(nil), // 22: bytebase.v1.AppIMSetting.Slack
+ (*AppIMSetting_Feishu)(nil), // 23: bytebase.v1.AppIMSetting.Feishu
+ (*AppIMSetting_Wecom)(nil), // 24: bytebase.v1.AppIMSetting.Wecom
+ (*AppIMSetting_Lark)(nil), // 25: bytebase.v1.AppIMSetting.Lark
+ (*AppIMSetting_DingTalk)(nil), // 26: bytebase.v1.AppIMSetting.DingTalk
+ (*AppIMSetting_Teams)(nil), // 27: bytebase.v1.AppIMSetting.Teams
+ (*AppIMSetting_IMSetting)(nil), // 28: bytebase.v1.AppIMSetting.IMSetting
+ (*WorkspaceProfileSetting_PasswordRestriction)(nil), // 29: bytebase.v1.WorkspaceProfileSetting.PasswordRestriction
(*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
@@ -3102,15 +3092,15 @@ var file_v1_setting_service_proto_depIdxs = []int32{
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.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
+ 20, // 10: bytebase.v1.SettingValue.ai:type_name -> bytebase.v1.AISetting
+ 21, // 11: bytebase.v1.SettingValue.environment:type_name -> bytebase.v1.EnvironmentSetting
+ 28, // 12: bytebase.v1.AppIMSetting.settings:type_name -> bytebase.v1.AppIMSetting.IMSetting
+ 44, // 13: bytebase.v1.WorkspaceProfileSetting.token_duration:type_name -> google.protobuf.Duration
+ 15, // 14: bytebase.v1.WorkspaceProfileSetting.announcement:type_name -> bytebase.v1.Announcement
+ 44, // 15: bytebase.v1.WorkspaceProfileSetting.maximum_role_expiration:type_name -> google.protobuf.Duration
+ 0, // 16: bytebase.v1.WorkspaceProfileSetting.database_change_mode:type_name -> bytebase.v1.DatabaseChangeMode
+ 44, // 17: bytebase.v1.WorkspaceProfileSetting.inactive_session_timeout:type_name -> google.protobuf.Duration
+ 29, // 18: bytebase.v1.WorkspaceProfileSetting.password_restriction:type_name -> bytebase.v1.WorkspaceProfileSetting.PasswordRestriction
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
@@ -3119,16 +3109,16 @@ var file_v1_setting_service_proto_depIdxs = []int32{
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
+ 5, // 27: bytebase.v1.AISetting.provider:type_name -> bytebase.v1.AISetting.Provider
+ 41, // 28: bytebase.v1.EnvironmentSetting.environments:type_name -> bytebase.v1.EnvironmentSetting.Environment
+ 45, // 29: bytebase.v1.AppIMSetting.IMSetting.type:type_name -> bytebase.v1.Webhook.Type
+ 22, // 30: bytebase.v1.AppIMSetting.IMSetting.slack:type_name -> bytebase.v1.AppIMSetting.Slack
+ 23, // 31: bytebase.v1.AppIMSetting.IMSetting.feishu:type_name -> bytebase.v1.AppIMSetting.Feishu
+ 24, // 32: bytebase.v1.AppIMSetting.IMSetting.wecom:type_name -> bytebase.v1.AppIMSetting.Wecom
+ 25, // 33: bytebase.v1.AppIMSetting.IMSetting.lark:type_name -> bytebase.v1.AppIMSetting.Lark
+ 26, // 34: bytebase.v1.AppIMSetting.IMSetting.dingtalk:type_name -> bytebase.v1.AppIMSetting.DingTalk
+ 27, // 35: bytebase.v1.AppIMSetting.IMSetting.teams:type_name -> bytebase.v1.AppIMSetting.Teams
+ 44, // 36: bytebase.v1.WorkspaceProfileSetting.PasswordRestriction.password_rotation:type_name -> google.protobuf.Duration
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
@@ -3166,7 +3156,6 @@ func file_v1_setting_service_proto_init() {
(*SettingValue_WorkspaceApproval)(nil),
(*SettingValue_DataClassification)(nil),
(*SettingValue_SemanticType)(nil),
- (*SettingValue_PasswordRestriction)(nil),
(*SettingValue_Ai)(nil),
(*SettingValue_Environment)(nil),
}
@@ -3176,7 +3165,7 @@ func file_v1_setting_service_proto_init() {
(*Algorithm_Md5Mask)(nil),
(*Algorithm_InnerOuterMask_)(nil),
}
- file_v1_setting_service_proto_msgTypes[23].OneofWrappers = []any{
+ file_v1_setting_service_proto_msgTypes[22].OneofWrappers = []any{
(*AppIMSetting_IMSetting_Slack)(nil),
(*AppIMSetting_IMSetting_Feishu)(nil),
(*AppIMSetting_IMSetting_Wecom)(nil),
diff --git a/backend/generated-go/v1/setting_service_equal.pb.go b/backend/generated-go/v1/setting_service_equal.pb.go
index 833f037d9e..e450bb3147 100644
--- a/backend/generated-go/v1/setting_service_equal.pb.go
+++ b/backend/generated-go/v1/setting_service_equal.pb.go
@@ -127,9 +127,6 @@ func (x *SettingValue) Equal(y *SettingValue) bool {
if !x.GetSemanticType().Equal(y.GetSemanticType()) {
return false
}
- if !x.GetPasswordRestriction().Equal(y.GetPasswordRestriction()) {
- return false
- }
if !x.GetAi().Equal(y.GetAi()) {
return false
}
@@ -290,6 +287,37 @@ func (x *AppIMSetting) Equal(y *AppIMSetting) bool {
return true
}
+func (x *WorkspaceProfileSetting_PasswordRestriction) Equal(y *WorkspaceProfileSetting_PasswordRestriction) bool {
+ if x == y {
+ return true
+ }
+ if x == nil || y == nil {
+ return x == nil && y == nil
+ }
+ if x.MinLength != y.MinLength {
+ return false
+ }
+ if x.RequireNumber != y.RequireNumber {
+ return false
+ }
+ if x.RequireLetter != y.RequireLetter {
+ return false
+ }
+ if x.RequireUppercaseLetter != y.RequireUppercaseLetter {
+ return false
+ }
+ if x.RequireSpecialCharacter != y.RequireSpecialCharacter {
+ return false
+ }
+ if x.RequireResetPasswordForFirstLogin != y.RequireResetPasswordForFirstLogin {
+ return false
+ }
+ if p, q := x.PasswordRotation, y.PasswordRotation; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
+ return false
+ }
+ return true
+}
+
func (x *WorkspaceProfileSetting) Equal(y *WorkspaceProfileSetting) bool {
if x == y {
return true
@@ -350,6 +378,9 @@ func (x *WorkspaceProfileSetting) Equal(y *WorkspaceProfileSetting) bool {
if x.BrandingLogo != y.BrandingLogo {
return false
}
+ if !x.PasswordRestriction.Equal(y.PasswordRestriction) {
+ return false
+ }
return true
}
@@ -656,37 +687,6 @@ func (x *Algorithm) Equal(y *Algorithm) bool {
return true
}
-func (x *PasswordRestrictionSetting) Equal(y *PasswordRestrictionSetting) bool {
- if x == y {
- return true
- }
- if x == nil || y == nil {
- return x == nil && y == nil
- }
- if x.MinLength != y.MinLength {
- return false
- }
- if x.RequireNumber != y.RequireNumber {
- return false
- }
- if x.RequireLetter != y.RequireLetter {
- return false
- }
- if x.RequireUppercaseLetter != y.RequireUppercaseLetter {
- return false
- }
- if x.RequireSpecialCharacter != y.RequireSpecialCharacter {
- return false
- }
- if x.RequireResetPasswordForFirstLogin != y.RequireResetPasswordForFirstLogin {
- return false
- }
- if p, q := x.PasswordRotation, y.PasswordRotation; (p == nil && q != nil) || (p != nil && (q == nil || p.Seconds != q.Seconds || p.Nanos != q.Nanos)) {
- return false
- }
- return true
-}
-
func (x *AISetting) Equal(y *AISetting) bool {
if x == y {
return true
diff --git a/backend/migrator/migration/3.13/0015##migrate_password_restriction_to_workspace_profile.sql b/backend/migrator/migration/3.13/0015##migrate_password_restriction_to_workspace_profile.sql
new file mode 100644
index 0000000000..f13459c4c6
--- /dev/null
+++ b/backend/migrator/migration/3.13/0015##migrate_password_restriction_to_workspace_profile.sql
@@ -0,0 +1,16 @@
+-- Migrate PASSWORD_RESTRICTION into WORKSPACE_PROFILE as passwordRestriction
+-- Extract password restriction settings from PASSWORD_RESTRICTION and merge into WORKSPACE_PROFILE
+UPDATE setting
+SET value = jsonb_set(
+ value,
+ '{passwordRestriction}',
+ (SELECT value FROM setting WHERE name = 'PASSWORD_RESTRICTION'),
+ true
+)
+WHERE name = 'WORKSPACE_PROFILE'
+AND EXISTS (
+ SELECT 1 FROM setting WHERE name = 'PASSWORD_RESTRICTION'
+);
+
+-- Delete the old PASSWORD_RESTRICTION setting
+DELETE FROM setting WHERE name = 'PASSWORD_RESTRICTION';
diff --git a/backend/migrator/migration/LATEST.sql b/backend/migrator/migration/LATEST.sql
index 8439cbb41a..a9f19965b3 100644
--- a/backend/migrator/migration/LATEST.sql
+++ b/backend/migrator/migration/LATEST.sql
@@ -34,8 +34,7 @@ CREATE TABLE principal (
CREATE TABLE setting (
id serial PRIMARY KEY,
-- name: SYSTEM, WORKSPACE_PROFILE, WORKSPACE_APPROVAL,
- -- APP_IM, AI, DATA_CLASSIFICATION, SEMANTIC_TYPES,
- -- PASSWORD_RESTRICTION, ENVIRONMENT
+ -- APP_IM, AI, DATA_CLASSIFICATION, SEMANTIC_TYPES, ENVIRONMENT
-- Enum: SettingName (proto/store/store/setting.proto)
name text NOT NULL,
-- Stored as JSON marshalled by protojson.Marshal (camelCase keys)
@@ -553,10 +552,9 @@ ALTER SEQUENCE project_id_seq RESTART WITH 101;
INSERT INTO setting (name, value) VALUES ('APP_IM', '{}'::jsonb);
INSERT INTO setting (name, value) VALUES ('DATA_CLASSIFICATION', '{}'::jsonb);
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"}}]}'::jsonb);
-INSERT INTO setting (name, value) VALUES ('PASSWORD_RESTRICTION', '{"minLength":8}'::jsonb);
INSERT INTO setting (name, value) VALUES (
'WORKSPACE_PROFILE',
- ('{"enableMetricCollection":true,"directorySyncToken":"' || gen_random_uuid()::text || '"}')::jsonb
+ ('{"enableMetricCollection":true,"directorySyncToken":"' || gen_random_uuid()::text || '","passwordRestriction":{"minLength":8}}')::jsonb
);
INSERT INTO setting (name, value) VALUES ('ENVIRONMENT', '{"environments":[{"title":"Test","id":"test"},{"title":"Prod","id":"prod"}]}'::jsonb);
diff --git a/backend/migrator/migrator_test.go b/backend/migrator/migrator_test.go
index e7dd7847e4..f7f9c8fea0 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.14"), *files[len(files)-1].version)
+ require.Equal(t, semver.MustParse("3.13.15"), *files[len(files)-1].version)
}
func TestVersionUnique(t *testing.T) {
diff --git a/backend/store/setting.go b/backend/store/setting.go
index e41e044a1f..cf7d3100fa 100644
--- a/backend/store/setting.go
+++ b/backend/store/setting.go
@@ -29,22 +29,19 @@ type SettingMessage struct {
Value string
}
-func (s *Store) GetPasswordRestriction(ctx context.Context) (*storepb.PasswordRestrictionSetting, error) {
- passwordRestriction := &storepb.PasswordRestrictionSetting{
+func (s *Store) GetPasswordRestriction(ctx context.Context) (*storepb.WorkspaceProfileSetting_PasswordRestriction, error) {
+ passwordRestriction := &storepb.WorkspaceProfileSetting_PasswordRestriction{
MinLength: 8,
}
- setting, err := s.GetSettingV2(ctx, storepb.SettingName_PASSWORD_RESTRICTION)
+ workspaceProfile, err := s.GetWorkspaceGeneralSetting(ctx)
if err != nil {
return nil, err
}
- if setting == nil {
+ if workspaceProfile == nil || workspaceProfile.PasswordRestriction == nil {
return passwordRestriction, nil
}
- if err := common.ProtojsonUnmarshaler.Unmarshal([]byte(setting.Value), passwordRestriction); err != nil {
- return nil, err
- }
- return passwordRestriction, nil
+ return workspaceProfile.PasswordRestriction, nil
}
// GetWorkspaceGeneralSetting gets the workspace general setting payload.
diff --git a/frontend/src/components/GeneralSetting/PasswordRestrictionSetting.vue b/frontend/src/components/GeneralSetting/PasswordRestrictionSetting.vue
index b48b264f2b..2386e1e8f1 100644
--- a/frontend/src/components/GeneralSetting/PasswordRestrictionSetting.vue
+++ b/frontend/src/components/GeneralSetting/PasswordRestrictionSetting.vue
@@ -164,18 +164,14 @@
<script setup lang="tsx">
import { create } from "@bufbuild/protobuf";
-import { DurationSchema } from "@bufbuild/protobuf/wkt";
+import { DurationSchema, FieldMaskSchema } from "@bufbuild/protobuf/wkt";
import { cloneDeep, isEqual } from "lodash-es";
import { NCheckbox, NInputNumber } from "naive-ui";
import { computed, reactive, ref } from "vue";
import { featureToRef } from "@/store";
import { useSettingV1Store } from "@/store/modules/v1/setting";
-import type { PasswordRestrictionSetting } from "@/types/proto-es/v1/setting_service_pb";
-import {
- PasswordRestrictionSettingSchema,
- Setting_SettingName,
- SettingValueSchema as SettingSettingValueSchema,
-} from "@/types/proto-es/v1/setting_service_pb";
+import type { WorkspaceProfileSetting_PasswordRestriction } from "@/types/proto-es/v1/setting_service_pb";
+import { WorkspaceProfileSetting_PasswordRestrictionSchema } from "@/types/proto-es/v1/setting_service_pb";
import { PlanFeature } from "@/types/proto-es/v1/subscription_service_pb";
import { FeatureBadge, FeatureModal } from "../FeatureGuard";
@@ -192,20 +188,19 @@ const hasPasswordFeature = featureToRef(
);
const passwordRestrictionSetting = computed(() => {
- const setting = settingV1Store.getSettingByName(
- Setting_SettingName.PASSWORD_RESTRICTION
+ return (
+ settingV1Store.workspaceProfileSetting?.passwordRestriction ??
+ create(WorkspaceProfileSetting_PasswordRestrictionSchema, {})
);
- if (setting?.value?.value?.case === "passwordRestriction") {
- return setting.value.value.value;
- }
- return create(PasswordRestrictionSettingSchema, {});
});
-const state = reactive<PasswordRestrictionSetting>(
+const state = reactive<WorkspaceProfileSetting_PasswordRestriction>(
cloneDeep(passwordRestrictionSetting.value)
);
-const onUpdate = async (update: Partial<PasswordRestrictionSetting>) => {
+const onUpdate = async (
+ update: Partial<WorkspaceProfileSetting_PasswordRestriction>
+) => {
if (!hasPasswordFeature.value) {
showFeatureModal.value = true;
return;
@@ -216,15 +211,20 @@ const onUpdate = async (update: Partial<PasswordRestrictionSetting>) => {
defineExpose({
isDirty: computed(() => !isEqual(passwordRestrictionSetting.value, state)),
update: async () => {
- await settingV1Store.upsertSetting({
- name: Setting_SettingName.PASSWORD_RESTRICTION,
- value: create(SettingSettingValueSchema, {
- value: {
- case: "passwordRestriction",
- value: create(PasswordRestrictionSettingSchema, {
+ if (!settingV1Store.workspaceProfileSetting) {
+ return;
+ }
+ await settingV1Store.updateWorkspaceProfile({
+ payload: {
+ passwordRestriction: create(
+ WorkspaceProfileSetting_PasswordRestrictionSchema,
+ {
...state,
- }),
- },
+ }
+ ),
+ },
+ updateMask: create(FieldMaskSchema, {
+ paths: ["value.workspace_profile.password_restriction"],
}),
});
},
diff --git a/frontend/src/components/User/Settings/UserPassword.vue b/frontend/src/components/User/Settings/UserPassword.vue
index 56b61eb17a..cb150a73fe 100644
--- a/frontend/src/components/User/Settings/UserPassword.vue
+++ b/frontend/src/components/User/Settings/UserPassword.vue
@@ -109,13 +109,13 @@ import { useRouter } from "vue-router";
import LearnMoreLink from "@/components/LearnMoreLink.vue";
import RequiredStar from "@/components/RequiredStar.vue";
import { SETTING_ROUTE_WORKSPACE_GENERAL } from "@/router/dashboard/workspaceSetting";
-import { type PasswordRestrictionSetting } from "@/types/proto-es/v1/setting_service_pb";
+import { type WorkspaceProfileSetting_PasswordRestriction } from "@/types/proto-es/v1/setting_service_pb";
const props = withDefaults(
defineProps<{
password: string;
passwordConfirm: string;
- passwordRestriction: PasswordRestrictionSetting;
+ passwordRestriction: WorkspaceProfileSetting_PasswordRestriction;
showLearnMore?: boolean;
}>(),
{
diff --git a/frontend/src/store/modules/v1/actuator.ts b/frontend/src/store/modules/v1/actuator.ts
index 416fc498dc..56d33934b7 100644
--- a/frontend/src/store/modules/v1/actuator.ts
+++ b/frontend/src/store/modules/v1/actuator.ts
@@ -18,7 +18,7 @@ import type {
ResourcePackage,
} from "@/types/proto-es/v1/actuator_service_pb";
import { State } from "@/types/proto-es/v1/common_pb";
-import { PasswordRestrictionSettingSchema } from "@/types/proto-es/v1/setting_service_pb";
+import { WorkspaceProfileSetting_PasswordRestrictionSchema } from "@/types/proto-es/v1/setting_service_pb";
import { UserType } from "@/types/proto-es/v1/user_service_pb";
import { semverCompare } from "@/utils";
@@ -129,7 +129,7 @@ export const useActuatorV1Store = defineStore("actuator_v1", {
passwordRestriction: (state) => {
return (
state.serverInfo?.passwordRestriction ??
- create(PasswordRestrictionSettingSchema, {
+ create(WorkspaceProfileSetting_PasswordRestrictionSchema, {
minLength: 8,
requireLetter: true,
})
diff --git a/frontend/src/store/modules/v1/setting.ts b/frontend/src/store/modules/v1/setting.ts
index e1ab9a9a2e..15388524bf 100644
--- a/frontend/src/store/modules/v1/setting.ts
+++ b/frontend/src/store/modules/v1/setting.ts
@@ -10,8 +10,6 @@ import {
type DataClassificationSetting_DataClassificationConfig,
GetSettingRequestSchema,
ListSettingsRequestSchema,
- type PasswordRestrictionSetting,
- PasswordRestrictionSettingSchema,
type Setting,
Setting_SettingName,
SettingSchema,
@@ -19,6 +17,8 @@ import {
SettingValueSchema,
UpdateSettingRequestSchema,
type WorkspaceProfileSetting,
+ type WorkspaceProfileSetting_PasswordRestriction,
+ WorkspaceProfileSetting_PasswordRestrictionSchema,
WorkspaceProfileSettingSchema,
} from "@/types/proto-es/v1/setting_service_pb";
import { useActuatorV1Store } from "./actuator";
@@ -57,24 +57,14 @@ export const useSettingV1Store = defineStore("setting_v1", {
}
return [];
},
- passwordRestriction(): PasswordRestrictionSetting {
- const setting = this.settingMapByName.get(
- `${settingNamePrefix}${Setting_SettingName[Setting_SettingName.PASSWORD_RESTRICTION]}`
- );
- if (!setting?.value?.value) {
- return create(PasswordRestrictionSettingSchema, {
+ passwordRestriction(): WorkspaceProfileSetting_PasswordRestriction {
+ return (
+ this.workspaceProfileSetting?.passwordRestriction ??
+ create(WorkspaceProfileSetting_PasswordRestrictionSchema, {
minLength: 8,
requireLetter: true,
- });
- }
- const value = setting.value.value;
- if (value.case === "passwordRestriction") {
- return value.value;
- }
- return create(PasswordRestrictionSettingSchema, {
- minLength: 8,
- requireLetter: true,
- });
+ })
+ );
},
},
actions: {
diff --git a/frontend/src/types/proto-es/v1/actuator_service_pb.d.ts b/frontend/src/types/proto-es/v1/actuator_service_pb.d.ts
index cbe8ea1944..612f05cbd1 100644
--- a/frontend/src/types/proto-es/v1/actuator_service_pb.d.ts
+++ b/frontend/src/types/proto-es/v1/actuator_service_pb.d.ts
@@ -5,7 +5,7 @@
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
import type { Message } from "@bufbuild/protobuf";
import type { EmptySchema, FieldMask, Timestamp } from "@bufbuild/protobuf/wkt";
-import type { PasswordRestrictionSetting } from "./setting_service_pb";
+import type { WorkspaceProfileSetting_PasswordRestriction } from "./setting_service_pb";
import type { UserType } from "./user_service_pb";
import type { State } from "./common_pb";
@@ -247,9 +247,9 @@ export declare type ActuatorInfo = Message<"bytebase.v1.ActuatorInfo"> & {
/**
* Password complexity and restriction requirements.
*
- * @generated from field: bytebase.v1.PasswordRestrictionSetting password_restriction = 21;
+ * @generated from field: bytebase.v1.WorkspaceProfileSetting.PasswordRestriction password_restriction = 21;
*/
- passwordRestriction?: PasswordRestrictionSetting;
+ passwordRestriction?: WorkspaceProfileSetting_PasswordRestriction;
/**
* Whether the Bytebase instance is running in Docker.
diff --git a/frontend/src/types/proto-es/v1/actuator_service_pb.js b/frontend/src/types/proto-es/v1/actuator_service_pb.js
index d0865ff2ba..d628647971 100644
--- a/frontend/src/types/proto-es/v1/actuator_service_pb.js
+++ b/frontend/src/types/proto-es/v1/actuator_service_pb.js
@@ -16,7 +16,7 @@ import { file_v1_user_service } from "./user_service_pb";
* Describes the file v1/actuator_service.proto.
*/
export const file_v1_actuator_service = /*@__PURE__*/
- fileDesc("Chl2MS9hY3R1YXRvcl9zZXJ2aWNlLnByb3RvEgtieXRlYmFzZS52MSIbChlHZXRSZXNvdXJjZVBhY2thZ2VSZXF1ZXN0Ih8KD1Jlc291cmNlUGFja2FnZRIMCgRsb2d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0eSIegOowAYLT5JMCFCoSL3YxL2FjdHVhdG9yL2NhY2hlEoEBChJHZXRSZXNvdXJjZVBhY2thZ2USJi5ieXRlYmFzZS52MS5HZXRSZXNvdXJjZVBhY2thZ2VSZXF1ZXN0GhwuYnl0ZWJhc2UudjEuUmVzb3VyY2VQYWNrYWdlIiXaQQCA6jABgtPkkwIYEhYvdjEvYWN0dWF0b3IvcmVzb3VyY2VzQqoBCg9jb20uYnl0ZWJhc2UudjFCFEFjdHVhdG9yU2VydmljZVByb3RvUAFaNGdpdGh1Yi5jb20vYnl0ZWJhc2UvYnl0ZWJhc2UvYmFja2VuZC9nZW5lcmF0ZWQtZ28vdjGiAgNCWFiqAgtCeXRlYmFzZS5WMcoCC0J5dGViYXNlXFYx4gIXQnl0ZWJhc2VcVjFcR1BCTWV0YWRhdGHqAgxCeXRlYmFzZTo6VjFiBnByb3RvMw", [file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_protobuf_empty, file_google_protobuf_field_mask, file_google_protobuf_timestamp, file_v1_annotation, file_v1_common, file_v1_setting_service, file_v1_user_service]);
+ fileDesc("Chl2MS9hY3R1YXRvcl9zZXJ2aWNlLnByb3RvEgtieXRlYmFzZS52MSIbChlHZXRSZXNvdXJjZVBhY2thZ2VSZXF1ZXN0Ih8KD1Jlc291cmNlUGFja2FnZRIMCgRsb2dvGAEgASgMIhQKElNldHVwU2FtcGxlUmVxdWVzdCIYChZHZXRBY3R1YXRvckluZm9SZXF1ZXN0IpoBChlVcGRhdGVBY3R1YXRvckluZm9SZXF1ZXN0EjAKCGFjdHVhdG9yGAEgASgLMhkuYnl0ZWJhc2UudjEuQWN0dWF0b3JJbmZvQgPgQQISNAoLdXBkYXRlX21hc2sYAiABKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNrQgPgQQISFQoNYWxsb3dfbWlzc2luZxgDIAEoCCIUChJEZWxldGVDYWNoZVJlcXVlc3Qi4gYKDEFjdHVhdG9ySW5mbxIUCgd2ZXJz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W5kL2dlbmVyYXRlZC1nby92MaICA0JYWKoCC0J5dGViYXNlLlYxygILQnl0ZWJhc2VcVjHiAhdCeXRlYmFzZVxWMVxHUEJNZXRhZGF0YeoCDEJ5dGViYXNlOjpWMWIGcHJvdG8z", [file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_protobuf_empty, file_google_protobuf_field_mask, file_google_protobuf_timestamp, file_v1_annotation, file_v1_common, file_v1_setting_service, file_v1_user_service]);
/**
* Describes the message bytebase.v1.GetResourcePackageRequest.
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 ba17652483..2fdb5e10ab 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
@@ -188,11 +188,6 @@ export enum Setting_SettingName {
*/
SEMANTIC_TYPES = 15,
- /**
- * @generated from enum value: PASSWORD_RESTRICTION = 18;
- */
- PASSWORD_RESTRICTION = 18,
-
/**
* @generated from enum value: ENVIRONMENT = 19;
*/
@@ -243,12 +238,6 @@ export declare type SettingValue = Message<"bytebase.v1.SettingValue"> & {
*/
value: SemanticTypeSetting;
case: "semanticType";
- } | {
- /**
- * @generated from field: bytebase.v1.PasswordRestrictionSetting password_restriction = 15;
- */
- value: PasswordRestrictionSetting;
- case: "passwordRestriction";
} | {
/**
* @generated from field: bytebase.v1.AISetting ai = 16;
@@ -602,6 +591,13 @@ export declare type WorkspaceProfileSetting = Message<"bytebase.v1.WorkspaceProf
* @generated from field: string branding_logo = 18;
*/
brandingLogo: string;
+
+ /**
+ * Password restriction settings.
+ *
+ * @generated from field: bytebase.v1.WorkspaceProfileSetting.PasswordRestriction password_restriction = 19;
+ */
+ passwordRestriction?: WorkspaceProfileSetting_PasswordRestriction;
};
/**
@@ -610,6 +606,66 @@ export declare type WorkspaceProfileSetting = Message<"bytebase.v1.WorkspaceProf
*/
export declare const WorkspaceProfileSettingSchema: GenMessage<WorkspaceProfileSetting>;
+/**
+ * @generated from message bytebase.v1.WorkspaceProfileSetting.PasswordRestriction
+ */
+export declare type WorkspaceProfileSetting_PasswordRestriction = Message<"bytebase.v1.WorkspaceProfileSetting.PasswordRestriction"> & {
+ /**
+ * min_length is the minimum length for password, should no less than 8.
+ *
+ * @generated from field: int32 min_length = 1;
+ */
+ minLength: number;
+
+ /**
+ * require_number requires the password must contains at least one number.
+ *
+ * @generated from field: bool require_number = 2;
+ */
+ requireNumber: boolean;
+
+ /**
+ * require_letter requires the password must contains at least one letter, regardless of upper case or lower case
+ *
+ * @generated from field: bool require_letter = 3;
+ */
+ requireLetter: boolean;
+
+ /**
+ * require_uppercase_letter requires the password must contains at least one upper case letter.
+ *
+ * @generated from field: bool require_uppercase_letter = 4;
+ */
+ requireUppercaseLetter: boolean;
+
+ /**
+ * require_special_character requires the password must contains at least one special character.
+ *
+ * @generated from field: bool require_special_character = 5;
+ */
+ requireSpecialCharacter: boolean;
+
+ /**
+ * require_reset_password_for_first_login requires users to reset their password after the 1st login.
+ *
+ * @generated from field: bool require_reset_password_for_first_login = 6;
+ */
+ requireResetPasswordForFirstLogin: boolean;
+
+ /**
+ * password_rotation requires users to reset their password after the duration.
+ *
+ * @generated from field: google.protobuf.Duration password_rotation = 7;
+ */
+ passwordRotation?: Duration;
+};
+
+/**
+ * Describes the message bytebase.v1.WorkspaceProfileSetting.PasswordRestriction.
+ * Use `create(WorkspaceProfileSetting_PasswordRestrictionSchema)` to create a new message.
+ */
+export declare const WorkspaceProfileSetting_PasswordRestrictionSchema: GenMessage<WorkspaceProfileSetting_PasswordRestriction>;
+
/**
* @generated from message bytebase.v1.Announcement
*/
@@ -1137,66 +1193,6 @@ export enum Algorithm_InnerOuterMask_MaskType {
*/
export declare const Algorithm_InnerOuterMask_MaskTypeSchema: GenEnum<Algorithm_InnerOuterMask_MaskType>;
-/**
- * @generated from message bytebase.v1.PasswordRestrictionSetting
- */
-export declare type PasswordRestrictionSetting = Message<"bytebase.v1.PasswordRestrictionSetting"> & {
- /**
- * min_length is the minimum length for password, should no less than 8.
- *
- * @generated from field: int32 min_length = 1;
- */
- minLength: number;
-
- /**
- * require_number requires the password must contains at least one number.
- *
- * @generated from field: bool require_number = 2;
- */
- requireNumber: boolean;
-
- /**
- * require_letter requires the password must contains at least one letter, regardless of upper case or lower case
- *
- * @generated from field: bool require_letter = 3;
- */
- requireLetter: boolean;
-
- /**
- * require_uppercase_letter requires the password must contains at least one upper case letter.
- *
- * @generated from field: bool require_uppercase_letter = 4;
- */
- requireUppercaseLetter: boolean;
-
- /**
- * require_special_character requires the password must contains at least one special character.
- *
- * @generated from field: bool require_special_character = 5;
- */
- requireSpecialCharacter: boolean;
-
- /**
- * require_reset_password_for_first_login requires users to reset their password after the 1st login.
- *
- * @generated from field: bool require_reset_password_for_first_login = 6;
- */
- requireResetPasswordForFirstLogin: boolean;
-
- /**
- * password_rotation requires users to reset their password after the duration.
- *
- * @generated from field: google.protobuf.Duration password_rotation = 7;
- */
- passwordRotation?: Duration;
-};
-
-/**
- * Describes the message bytebase.v1.PasswordRestrictionSetting.
- * Use `create(PasswordRestrictionSettingSchema)` to create a new message.
- */
-export declare const PasswordRestrictionSettingSchema: GenMessage<PasswordRestrictionSetting>;
-
/**
* @generated from message bytebase.v1.AISetting
*/
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 8cf98d3e69..7c989ed9c8 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("Chh2MS9zZXR0aW5nX3NlcnZpY2UucHJvdG8SC2J5dGViYXNlLnYxIhUKE0xpc3RTZXR0aW5nc1JlcXVlc3QiPgoUTGlzdFNldHRpbmdzUmVzcG9uc2USJgoIc2V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GluZ3MubGlzdJDqMAGC0+STAg4SDC92MS9zZXR0aW5ncxJ/CgpHZXRTZXR0aW5nEh4uYnl0ZWJhc2UudjEuR2V0U2V0dGluZ1JlcXVlc3QaFC5ieXRlYmFzZS52MS5TZXR0aW5nIjvaQQRuYW1liuowD2JiLnNldHRpbmdzLmdldJDqMAGC0+STAhcSFS92MS97bmFtZT1zZXR0aW5ncy8qfRKTAQoNVXBkYXRlU2V0dGluZxIhLmJ5dGViYXNlLnYxLlVwZGF0ZVNldHRpbmdSZXF1ZXN0GhQuYnl0ZWJhc2UudjEuU2V0dGluZyJJiuowD2JiLnNldHRpbmdzLnNldJDqMAGY6jABgtPkkwIoOgdzZXR0aW5nMh0vdjEve3NldHRpbmcubmFtZT1zZXR0aW5ncy8qfUKpAQoPY29tLmJ5dGViYXNlLnYxQhNTZXR0aW5nU2VydmljZVByb3RvUAFaNGdpdGh1Yi5jb20vYnl0ZWJhc2UvYnl0ZWJhc2UvYmFja2VuZC9nZW5lcmF0ZWQtZ28vdjGiAgNCWFiqAgtCeXRlYmFzZS5WMcoCC0J5dGViYXNlXFYx4gIXQnl0ZWJhc2VcVjFcR1BCTWV0YWRhdGHqAgxCeXRlYmFzZTo6VjFiBnByb3RvMw", [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("Chh2MS9zZXR0aW5nX3NlcnZpY2UucHJvdG8SC2J5dGViYXNlLnYxIhUKE0xpc3RTZXR0aW5nc1JlcXVlc3QiPgoUTGlzdFNldHRpbmdzUmVzcG9uc2USJgoIc2V0dGluZ3MYASADKAsyFC5ieXRlYmFzZS52MS5TZXR0aW5nIj8KEUdldFNldHRpbmdSZXF1ZXN0EioKBG5hbWUYASABKAlCHOBBAvpBFgoUYnl0ZWJhc2UuY29tL1NldHRpbmciOwoSR2V0U2V0dGluZ1Jlc3BvbnNlEi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MS97bmFtZT1zZXR0aW5ncy8qfRKTAQoNVXBkYXRlU2V0dGluZxIhLmJ5dGViYXNlLnYxLlVwZGF0ZVNldHRpbmdSZXF1ZXN0GhQuYnl0ZWJhc2UudjEuU2V0dGluZyJJiuowD2JiLnNldHRpbmdzLnNldJDqMAGY6jABgtPkkwIoOgdzZXR0aW5nMh0vdjEve3NldHRpbmcubmFtZT1zZXR0aW5ncy8qfUKpAQoPY29tLmJ5dGViYXNlLnYxQhNTZXR0aW5nU2VydmljZVByb3RvUAFaNGdpdGh1Yi5jb20vYnl0ZWJhc2UvYnl0ZWJhc2UvYmFja2VuZC9nZW5lcmF0ZWQtZ28vdjGiAgNCWFiqAgtCeXRlYmFzZS5WMcoCC0J5dGViYXNlXFYx4gIXQnl0ZWJhc2VcVjFcR1BCTWV0YWRhdGHqAgxCeXRlYmFzZTo6VjFiBnByb3RvMw", [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.
@@ -143,6 +143,13 @@ export const AppIMSetting_IMSettingSchema = /*@__PURE__*/
export const WorkspaceProfileSettingSchema = /*@__PURE__*/
messageDesc(file_v1_setting_service, 8);
+/**
+ * Describes the message bytebase.v1.WorkspaceProfileSetting.PasswordRestriction.
+ * Use `create(WorkspaceProfileSetting_PasswordRestrictionSchema)` to create a new message.
+ */
+export const WorkspaceProfileSetting_PasswordRestrictionSchema = /*@__PURE__*/
+ messageDesc(file_v1_setting_service, 8, 0);
+
/**
* Describes the message bytebase.v1.Announcement.
* Use `create(AnnouncementSchema)` to create a new message.
@@ -286,25 +293,18 @@ export const Algorithm_InnerOuterMask_MaskTypeSchema = /*@__PURE__*/
export const Algorithm_InnerOuterMask_MaskType = /*@__PURE__*/
tsEnum(Algorithm_InnerOuterMask_MaskTypeSchema);
-/**
- * Describes the message bytebase.v1.PasswordRestrictionSetting.
- * Use `create(PasswordRestrictionSettingSchema)` to create a new message.
- */
-export const PasswordRestrictionSettingSchema = /*@__PURE__*/
- 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, 15);
+ messageDesc(file_v1_setting_service, 14);
/**
* Describes the enum bytebase.v1.AISetting.Provider.
*/
export const AISetting_ProviderSchema = /*@__PURE__*/
- enumDesc(file_v1_setting_service, 15, 0);
+ enumDesc(file_v1_setting_service, 14, 0);
/**
* @generated from enum bytebase.v1.AISetting.Provider
@@ -317,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, 16);
+ messageDesc(file_v1_setting_service, 15);
/**
* 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, 16, 0);
+ messageDesc(file_v1_setting_service, 15, 0);
/**
* Describes the enum bytebase.v1.DatabaseChangeMode.
diff --git a/frontend/src/views/auth/PasswordReset.vue b/frontend/src/views/auth/PasswordReset.vue
index 1b1616c739..b52b1f9dac 100644
--- a/frontend/src/views/auth/PasswordReset.vue
+++ b/frontend/src/views/auth/PasswordReset.vue
@@ -85,7 +85,7 @@ onMounted(async () => {
return;
}
await settingV1Store.getOrFetchSettingByName(
- Setting_SettingName.PASSWORD_RESTRICTION
+ Setting_SettingName.WORKSPACE_PROFILE
);
});
diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yaml
index e29b2cf05b..2363f26bff 100644
--- a/proto/gen/grpc-doc/openapi.yaml
+++ b/proto/gen/grpc-doc/openapi.yaml
@@ -7938,7 +7938,7 @@ components:
passwordRestriction:
readOnly: true
allOf:
- - $ref: '#/components/schemas/PasswordRestrictionSetting'
+ - $ref: '#/components/schemas/WorkspaceProfileSetting_PasswordRestriction'
description: Password complexity and restriction requirements.
docker:
readOnly: true
@@ -11992,32 +11992,6 @@ components:
type: string
description: The definition is the definition of a package.
description: PackageMetadata is the metadata for packages.
- PasswordRestrictionSetting:
- type: object
- properties:
- minLength:
- type: integer
- description: min_length is the minimum length for password, should no less than 8.
- format: int32
- requireNumber:
- type: boolean
- description: require_number requires the password must contains at least one number.
- requireLetter:
- type: boolean
- description: require_letter requires the password must contains at least one letter, regardless of upper case or lower case
- requireUppercaseLetter:
- type: boolean
- description: require_uppercase_letter requires the password must contains at least one upper case letter.
- requireSpecialCharacter:
- type: boolean
- description: require_special_character requires the password must contains at least one special character.
- requireResetPasswordForFirstLogin:
- type: boolean
- description: require_reset_password_for_first_login requires users to reset their password after the 1st login.
- passwordRotation:
- pattern: ^-?(?:0|[1-9][0-9]{0,11})(?:\.[0-9]{1,9})?s$
- type: string
- description: password_rotation requires users to reset their password after the duration.
Plan:
type: object
properties:
@@ -13992,8 +13966,6 @@ components:
$ref: '#/components/schemas/DataClassificationSetting'
semanticType:
$ref: '#/components/schemas/SemanticTypeSetting'
- passwordRestriction:
- $ref: '#/components/schemas/PasswordRestrictionSetting'
ai:
$ref: '#/components/schemas/AISetting'
environment:
@@ -15599,6 +15571,36 @@ components:
brandingLogo:
type: string
description: The branding logo as a data URI (e.g. data:image/png;base64,...).
+ passwordRestriction:
+ allOf:
+ - $ref: '#/components/schemas/WorkspaceProfileSetting_PasswordRestriction'
+ description: Password restriction settings.
+ WorkspaceProfileSetting_PasswordRestriction:
+ type: object
+ properties:
+ minLength:
+ type: integer
+ description: min_length is the minimum length for password, should no less than 8.
+ format: int32
+ requireNumber:
+ type: boolean
+ description: require_number requires the password must contains at least one number.
+ requireLetter:
+ type: boolean
+ description: require_letter requires the password must contains at least one letter, regardless of upper case or lower case
+ requireUppercaseLetter:
+ type: boolean
+ description: require_uppercase_letter requires the password must contains at least one upper case letter.
+ requireSpecialCharacter:
+ type: boolean
+ description: require_special_character requires the password must contains at least one special character.
+ requireResetPasswordForFirstLogin:
+ type: boolean
+ description: require_reset_password_for_first_login requires users to reset their password after the 1st login.
+ passwordRotation:
+ pattern: ^-?(?:0|[1-9][0-9]{0,11})(?:\.[0-9]{1,9})?s$
+ type: string
+ description: password_rotation requires users to reset their password after the duration.
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 1298f2f93e..f9001e0fcb 100644
--- a/proto/gen/grpc-doc/store/README.md
+++ b/proto/gen/grpc-doc/store/README.md
@@ -276,7 +276,6 @@
- [EnvironmentSetting](#bytebase-store-EnvironmentSetting)
- [EnvironmentSetting.Environment](#bytebase-store-EnvironmentSetting-Environment)
- [EnvironmentSetting.Environment.TagsEntry](#bytebase-store-EnvironmentSetting-Environment-TagsEntry)
- - [PasswordRestrictionSetting](#bytebase-store-PasswordRestrictionSetting)
- [SemanticTypeSetting](#bytebase-store-SemanticTypeSetting)
- [SemanticTypeSetting.SemanticType](#bytebase-store-SemanticTypeSetting-SemanticType)
- [SystemSetting](#bytebase-store-SystemSetting)
@@ -284,6 +283,7 @@
- [WorkspaceApprovalSetting.Rule](#bytebase-store-WorkspaceApprovalSetting-Rule)
- [WorkspaceProfileSetting](#bytebase-store-WorkspaceProfileSetting)
- [WorkspaceProfileSetting.Announcement](#bytebase-store-WorkspaceProfileSetting-Announcement)
+ - [WorkspaceProfileSetting.PasswordRestriction](#bytebase-store-WorkspaceProfileSetting-PasswordRestriction)
- [AISetting.Provider](#bytebase-store-AISetting-Provider)
- [Algorithm.InnerOuterMask.MaskType](#bytebase-store-Algorithm-InnerOuterMask-MaskType)
@@ -4498,27 +4498,6 @@ ISSUE_CREATE represents creating an issue. |
-<a name="bytebase-store-PasswordRestrictionSetting"></a>
-
-### PasswordRestrictionSetting
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| min_length | [int32](#int32) | | min_length is the minimum length for password, should be no less than 8. |
-| require_number | [bool](#bool) | | require_number requires the password must contain at least one number. |
-| require_letter | [bool](#bool) | | require_letter requires the password must contain at least one letter, regardless of upper case or lower case |
-| require_uppercase_letter | [bool](#bool) | | require_uppercase_letter requires the password must contain at least one upper case letter. |
-| require_special_character | [bool](#bool) | | require_special_character requires the password must contain at least one special character. |
-| require_reset_password_for_first_login | [bool](#bool) | | require_reset_password_for_first_login requires users to reset their password after the 1st login. |
-| password_rotation | [google.protobuf.Duration](#google-protobuf-Duration) | | password_rotation requires users to reset their password after the duration. |
-
-
-
-
-
-
<a name="bytebase-store-SemanticTypeSetting"></a>
### SemanticTypeSetting
@@ -4626,6 +4605,7 @@ ISSUE_CREATE represents creating an issue. |
| watermark | [bool](#bool) | | Whether to display watermark on pages. Requires ENTERPRISE license. |
| directory_sync_token | [string](#string) | | The token for directory sync authentication. |
| branding_logo | [string](#string) | | The branding logo as a data URI (e.g. data:image/png;base64,...). |
+| password_restriction | [WorkspaceProfileSetting.PasswordRestriction](#bytebase-store-WorkspaceProfileSetting-PasswordRestriction) | | Password restriction settings. |
@@ -4648,6 +4628,27 @@ ISSUE_CREATE represents creating an issue. |
+
+<a name="bytebase-store-WorkspaceProfileSetting-PasswordRestriction"></a>
+
+### WorkspaceProfileSetting.PasswordRestriction
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| min_length | [int32](#int32) | | min_length is the minimum length for password, should be no less than 8. |
+| require_number | [bool](#bool) | | require_number requires the password must contain at least one number. |
+| require_letter | [bool](#bool) | | require_letter requires the password must contain at least one letter, regardless of upper case or lower case |
+| require_uppercase_letter | [bool](#bool) | | require_uppercase_letter requires the password must contain at least one upper case letter. |
+| require_special_character | [bool](#bool) | | require_special_character requires the password must contain at least one special character. |
+| require_reset_password_for_first_login | [bool](#bool) | | require_reset_password_for_first_login requires users to reset their password after the 1st login. |
+| password_rotation | [google.protobuf.Duration](#google-protobuf-Duration) | | password_rotation requires users to reset their password after the duration. |
+
+
+
+
+
@@ -4694,7 +4695,6 @@ ISSUE_CREATE represents creating an issue. |
| AI | 10 | |
| DATA_CLASSIFICATION | 14 | |
| SEMANTIC_TYPES | 15 | |
-| PASSWORD_RESTRICTION | 18 | |
| ENVIRONMENT | 19 | |
diff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.html
index 8577e50374..4a3d95ac3b 100644
--- a/proto/gen/grpc-doc/store/index.html
+++ b/proto/gen/grpc-doc/store/index.html
@@ -1282,10 +1282,6 @@
<a href="#bytebase.store.EnvironmentSetting.Environment.TagsEntry"><span class="badge">M</span>EnvironmentSetting.Environment.TagsEntry</a>
</li>
- <li>
- <a href="#bytebase.store.PasswordRestrictionSetting"><span class="badge">M</span>PasswordRestrictionSetting</a>
- </li>
-
<li>
<a href="#bytebase.store.SemanticTypeSetting"><span class="badge">M</span>SemanticTypeSetting</a>
</li>
@@ -1314,6 +1310,10 @@
<a href="#bytebase.store.WorkspaceProfileSetting.Announcement"><span class="badge">M</span>WorkspaceProfileSetting.Announcement</a>
</li>
+ <li>
+ <a href="#bytebase.store.WorkspaceProfileSetting.PasswordRestriction"><span class="badge">M</span>WorkspaceProfileSetting.PasswordRestriction</a>
+ </li>
+
<li>
<a href="#bytebase.store.AISetting.Provider"><span class="badge">E</span>AISetting.Provider</a>
@@ -11860,72 +11860,6 @@ are /[a-z][0-9]-/. </p></td>
- <h3 id="bytebase.store.PasswordRestrictionSetting">PasswordRestrictionSetting</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>min_length</td>
- <td><a href="#int32">int32</a></td>
- <td></td>
- <td><p>min_length is the minimum length for password, should be no less than 8. </p></td>
- </tr>
-
- <tr>
- <td>require_number</td>
- <td><a href="#bool">bool</a></td>
- <td></td>
- <td><p>require_number requires the password must contain at least one number. </p></td>
- </tr>
-
- <tr>
- <td>require_letter</td>
- <td><a href="#bool">bool</a></td>
- <td></td>
- <td><p>require_letter requires the password must contain at least one letter, regardless of upper case or lower case </p></td>
- </tr>
-
- <tr>
- <td>require_uppercase_letter</td>
- <td><a href="#bool">bool</a></td>
- <td></td>
- <td><p>require_uppercase_letter requires the password must contain at least one upper case letter. </p></td>
- </tr>
-
- <tr>
- <td>require_special_character</td>
- <td><a href="#bool">bool</a></td>
- <td></td>
- <td><p>require_special_character requires the password must contain at least one special character. </p></td>
- </tr>
-
- <tr>
- <td>require_reset_password_for_first_login</td>
- <td><a href="#bool">bool</a></td>
- <td></td>
- <td><p>require_reset_password_for_first_login requires users to reset their password after the 1st login. </p></td>
- </tr>
-
- <tr>
- <td>password_rotation</td>
- <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>
- <td></td>
- <td><p>password_rotation requires users to reset their password after the duration. </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
<h3 id="bytebase.store.SemanticTypeSetting">SemanticTypeSetting</h3>
<p></p>
@@ -12226,6 +12160,13 @@ Requires ENTERPRISE license. </p></td>
<td><p>The branding logo as a data URI (e.g. data:image/png;base64,...). </p></td>
</tr>
+ <tr>
+ <td>password_restriction</td>
+ <td><a href="#bytebase.store.WorkspaceProfileSetting.PasswordRestriction">WorkspaceProfileSetting.PasswordRestriction</a></td>
+ <td></td>
+ <td><p>Password restriction settings. </p></td>
+ </tr>
+
</tbody>
</table>
@@ -12271,6 +12212,72 @@ Requires ENTERPRISE license. </p></td>
+ <h3 id="bytebase.store.WorkspaceProfileSetting.PasswordRestriction">WorkspaceProfileSetting.PasswordRestriction</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>min_length</td>
+ <td><a href="#int32">int32</a></td>
+ <td></td>
+ <td><p>min_length is the minimum length for password, should be no less than 8. </p></td>
+ </tr>
+
+ <tr>
+ <td>require_number</td>
+ <td><a href="#bool">bool</a></td>
+ <td></td>
+ <td><p>require_number requires the password must contain at least one number. </p></td>
+ </tr>
+
+ <tr>
+ <td>require_letter</td>
+ <td><a href="#bool">bool</a></td>
+ <td></td>
+ <td><p>require_letter requires the password must contain at least one letter, regardless of upper case or lower case </p></td>
+ </tr>
+
+ <tr>
+ <td>require_uppercase_letter</td>
+ <td><a href="#bool">bool</a></td>
+ <td></td>
+ <td><p>require_uppercase_letter requires the password must contain at least one upper case letter. </p></td>
+ </tr>
+
+ <tr>
+ <td>require_special_character</td>
+ <td><a href="#bool">bool</a></td>
+ <td></td>
+ <td><p>require_special_character requires the password must contain at least one special character. </p></td>
+ </tr>
+
+ <tr>
+ <td>require_reset_password_for_first_login</td>
+ <td><a href="#bool">bool</a></td>
+ <td></td>
+ <td><p>require_reset_password_for_first_login requires users to reset their password after the 1st login. </p></td>
+ </tr>
+
+ <tr>
+ <td>password_rotation</td>
+ <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>
+ <td></td>
+ <td><p>password_rotation requires users to reset their password after the duration. </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
<h3 id="bytebase.store.AISetting.Provider">AISetting.Provider</h3>
@@ -12399,12 +12406,6 @@ Requires ENTERPRISE license. </p></td>
<td><p></p></td>
</tr>
- <tr>
- <td>PASSWORD_RESTRICTION</td>
- <td>18</td>
- <td><p></p></td>
- </tr>
-
<tr>
<td>ENVIRONMENT</td>
<td>19</td>
diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.md
index 3d68f2128d..744a6fcd24 100644
--- a/proto/gen/grpc-doc/v1/README.md
+++ b/proto/gen/grpc-doc/v1/README.md
@@ -132,7 +132,6 @@
- [GetSettingResponse](#bytebase-v1-GetSettingResponse)
- [ListSettingsRequest](#bytebase-v1-ListSettingsRequest)
- [ListSettingsResponse](#bytebase-v1-ListSettingsResponse)
- - [PasswordRestrictionSetting](#bytebase-v1-PasswordRestrictionSetting)
- [SemanticTypeSetting](#bytebase-v1-SemanticTypeSetting)
- [SemanticTypeSetting.SemanticType](#bytebase-v1-SemanticTypeSetting-SemanticType)
- [Setting](#bytebase-v1-Setting)
@@ -141,6 +140,7 @@
- [WorkspaceApprovalSetting](#bytebase-v1-WorkspaceApprovalSetting)
- [WorkspaceApprovalSetting.Rule](#bytebase-v1-WorkspaceApprovalSetting-Rule)
- [WorkspaceProfileSetting](#bytebase-v1-WorkspaceProfileSetting)
+ - [WorkspaceProfileSetting.PasswordRestriction](#bytebase-v1-WorkspaceProfileSetting-PasswordRestriction)
- [AISetting.Provider](#bytebase-v1-AISetting-Provider)
- [Algorithm.InnerOuterMask.MaskType](#bytebase-v1-Algorithm-InnerOuterMask-MaskType)
@@ -2632,27 +2632,6 @@ The response message for getting a setting.
-<a name="bytebase-v1-PasswordRestrictionSetting"></a>
-
-### PasswordRestrictionSetting
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| min_length | [int32](#int32) | | min_length is the minimum length for password, should no less than 8. |
-| require_number | [bool](#bool) | | require_number requires the password must contains at least one number. |
-| require_letter | [bool](#bool) | | require_letter requires the password must contains at least one letter, regardless of upper case or lower case |
-| require_uppercase_letter | [bool](#bool) | | require_uppercase_letter requires the password must contains at least one upper case letter. |
-| require_special_character | [bool](#bool) | | require_special_character requires the password must contains at least one special character. |
-| require_reset_password_for_first_login | [bool](#bool) | | require_reset_password_for_first_login requires users to reset their password after the 1st login. |
-| password_rotation | [google.protobuf.Duration](#google-protobuf-Duration) | | password_rotation requires users to reset their password after the duration. |
-
-
-
-
-
-
<a name="bytebase-v1-SemanticTypeSetting"></a>
### SemanticTypeSetting
@@ -2716,7 +2695,6 @@ The data in setting value.
| workspace_approval | [WorkspaceApprovalSetting](#bytebase-v1-WorkspaceApprovalSetting) | | |
| data_classification | [DataClassificationSetting](#bytebase-v1-DataClassificationSetting) | | |
| semantic_type | [SemanticTypeSetting](#bytebase-v1-SemanticTypeSetting) | | |
-| password_restriction | [PasswordRestrictionSetting](#bytebase-v1-PasswordRestrictionSetting) | | |
| ai | [AISetting](#bytebase-v1-AISetting) | | |
| environment | [EnvironmentSetting](#bytebase-v1-EnvironmentSetting) | | |
@@ -2807,6 +2785,28 @@ For examples: resource.environment_id == &#34;prod&#34; &amp;&amp; statement.aff
| watermark | [bool](#bool) | | Whether to display watermark on pages. Requires ENTERPRISE license. |
| directory_sync_token | [string](#string) | | The token for directory sync authentication. |
| branding_logo | [string](#string) | | The branding logo as a data URI (e.g. data:image/png;base64,...). |
+| password_restriction | [WorkspaceProfileSetting.PasswordRestriction](#bytebase-v1-WorkspaceProfileSetting-PasswordRestriction) | | Password restriction settings. |
+
+
+
+
+
+
+<a name="bytebase-v1-WorkspaceProfileSetting-PasswordRestriction"></a>
+
+### WorkspaceProfileSetting.PasswordRestriction
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| min_length | [int32](#int32) | | min_length is the minimum length for password, should no less than 8. |
+| require_number | [bool](#bool) | | require_number requires the password must contains at least one number. |
+| require_letter | [bool](#bool) | | require_letter requires the password must contains at least one letter, regardless of upper case or lower case |
+| require_uppercase_letter | [bool](#bool) | | require_uppercase_letter requires the password must contains at least one upper case letter. |
+| require_special_character | [bool](#bool) | | require_special_character requires the password must contains at least one special character. |
+| require_reset_password_for_first_login | [bool](#bool) | | require_reset_password_for_first_login requires users to reset their password after the 1st login. |
+| password_rotation | [google.protobuf.Duration](#google-protobuf-Duration) | | password_rotation requires users to reset their password after the duration. |
@@ -2884,7 +2884,6 @@ We support three levels of AlertLevel: INFO, WARNING, and ERROR.
| AI | 10 | |
| DATA_CLASSIFICATION | 14 | |
| SEMANTIC_TYPES | 15 | |
-| PASSWORD_RESTRICTION | 18 | |
| ENVIRONMENT | 19 | |
@@ -3199,7 +3198,7 @@ Actuator concept is similar to the Spring Boot Actuator.
| debug | [bool](#bool) | | Whether debug mode is enabled. |
| unlicensed_features | [string](#string) | repeated | List of features that are not licensed. |
| disallow_password_signin | [bool](#bool) | | Whether password-based signin is disabled (except for workspace admins). |
-| password_restriction | [PasswordRestrictionSetting](#bytebase-v1-PasswordRestrictionSetting) | | Password complexity and restriction requirements. |
+| password_restriction | [WorkspaceProfileSetting.PasswordRestriction](#bytebase-v1-WorkspaceProfileSetting-PasswordRestriction) | | Password complexity and restriction requirements. |
| docker | [bool](#bool) | | Whether the Bytebase instance is running in Docker. |
| user_stats | [ActuatorInfo.StatUser](#bytebase-v1-ActuatorInfo-StatUser) | repeated | Statistics about users in the system. |
| activated_instance_count | [int32](#int32) | | The number of activated database instances. |
diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.html
index 92a47c6dd4..2a1be1c442 100644
--- a/proto/gen/grpc-doc/v1/index.html
+++ b/proto/gen/grpc-doc/v1/index.html
@@ -677,10 +677,6 @@
<a href="#bytebase.v1.ListSettingsResponse"><span class="badge">M</span>ListSettingsResponse</a>
</li>
- <li>
- <a href="#bytebase.v1.PasswordRestrictionSetting"><span class="badge">M</span>PasswordRestrictionSetting</a>
- </li>
-
<li>
<a href="#bytebase.v1.SemanticTypeSetting"><span class="badge">M</span>SemanticTypeSetting</a>
</li>
@@ -713,6 +709,10 @@
<a href="#bytebase.v1.WorkspaceProfileSetting"><span class="badge">M</span>WorkspaceProfileSetting</a>
</li>
+ <li>
+ <a href="#bytebase.v1.WorkspaceProfileSetting.PasswordRestriction"><span class="badge">M</span>WorkspaceProfileSetting.PasswordRestriction</a>
+ </li>
+
<li>
<a href="#bytebase.v1.AISetting.Provider"><span class="badge">E</span>AISetting.Provider</a>
@@ -7767,72 +7767,6 @@ are /[a-z][0-9]-/. </p></td>
- <h3 id="bytebase.v1.PasswordRestrictionSetting">PasswordRestrictionSetting</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>min_length</td>
- <td><a href="#int32">int32</a></td>
- <td></td>
- <td><p>min_length is the minimum length for password, should no less than 8. </p></td>
- </tr>
-
- <tr>
- <td>require_number</td>
- <td><a href="#bool">bool</a></td>
- <td></td>
- <td><p>require_number requires the password must contains at least one number. </p></td>
- </tr>
-
- <tr>
- <td>require_letter</td>
- <td><a href="#bool">bool</a></td>
- <td></td>
- <td><p>require_letter requires the password must contains at least one letter, regardless of upper case or lower case </p></td>
- </tr>
-
- <tr>
- <td>require_uppercase_letter</td>
- <td><a href="#bool">bool</a></td>
- <td></td>
- <td><p>require_uppercase_letter requires the password must contains at least one upper case letter. </p></td>
- </tr>
-
- <tr>
- <td>require_special_character</td>
- <td><a href="#bool">bool</a></td>
- <td></td>
- <td><p>require_special_character requires the password must contains at least one special character. </p></td>
- </tr>
-
- <tr>
- <td>require_reset_password_for_first_login</td>
- <td><a href="#bool">bool</a></td>
- <td></td>
- <td><p>require_reset_password_for_first_login requires users to reset their password after the 1st login. </p></td>
- </tr>
-
- <tr>
- <td>password_rotation</td>
- <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>
- <td></td>
- <td><p>password_rotation requires users to reset their password after the duration. </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
<h3 id="bytebase.v1.SemanticTypeSetting">SemanticTypeSetting</h3>
<p></p>
@@ -7987,13 +7921,6 @@ Example: &#34;settings/SEMANTIC_TYPES&#34; </p></td>
<td><p> </p></td>
</tr>
- <tr>
- <td>password_restriction</td>
- <td><a href="#bytebase.v1.PasswordRestrictionSetting">PasswordRestrictionSetting</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
<tr>
<td>ai</td>
<td><a href="#bytebase.v1.AISetting">AISetting</a></td>
@@ -8273,6 +8200,79 @@ Requires ENTERPRISE license. </p></td>
<td><p>The branding logo as a data URI (e.g. data:image/png;base64,...). </p></td>
</tr>
+ <tr>
+ <td>password_restriction</td>
+ <td><a href="#bytebase.v1.WorkspaceProfileSetting.PasswordRestriction">WorkspaceProfileSetting.PasswordRestriction</a></td>
+ <td></td>
+ <td><p>Password restriction settings. </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.v1.WorkspaceProfileSetting.PasswordRestriction">WorkspaceProfileSetting.PasswordRestriction</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>min_length</td>
+ <td><a href="#int32">int32</a></td>
+ <td></td>
+ <td><p>min_length is the minimum length for password, should no less than 8. </p></td>
+ </tr>
+
+ <tr>
+ <td>require_number</td>
+ <td><a href="#bool">bool</a></td>
+ <td></td>
+ <td><p>require_number requires the password must contains at least one number. </p></td>
+ </tr>
+
+ <tr>
+ <td>require_letter</td>
+ <td><a href="#bool">bool</a></td>
+ <td></td>
+ <td><p>require_letter requires the password must contains at least one letter, regardless of upper case or lower case </p></td>
+ </tr>
+
+ <tr>
+ <td>require_uppercase_letter</td>
+ <td><a href="#bool">bool</a></td>
+ <td></td>
+ <td><p>require_uppercase_letter requires the password must contains at least one upper case letter. </p></td>
+ </tr>
+
+ <tr>
+ <td>require_special_character</td>
+ <td><a href="#bool">bool</a></td>
+ <td></td>
+ <td><p>require_special_character requires the password must contains at least one special character. </p></td>
+ </tr>
+
+ <tr>
+ <td>require_reset_password_for_first_login</td>
+ <td><a href="#bool">bool</a></td>
+ <td></td>
+ <td><p>require_reset_password_for_first_login requires users to reset their password after the 1st login. </p></td>
+ </tr>
+
+ <tr>
+ <td>password_rotation</td>
+ <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>
+ <td></td>
+ <td><p>password_rotation requires users to reset their password after the duration. </p></td>
+ </tr>
+
</tbody>
</table>
@@ -8467,12 +8467,6 @@ Default to this mode.</p></td>
<td><p></p></td>
</tr>
- <tr>
- <td>PASSWORD_RESTRICTION</td>
- <td>18</td>
- <td><p></p></td>
- </tr>
-
<tr>
<td>ENVIRONMENT</td>
<td>19</td>
@@ -9443,7 +9437,7 @@ Permissions required: bb.users.undelete</p></td>
<tr>
<td>password_restriction</td>
- <td><a href="#bytebase.v1.PasswordRestrictionSetting">PasswordRestrictionSetting</a></td>
+ <td><a href="#bytebase.v1.WorkspaceProfileSetting.PasswordRestriction">WorkspaceProfileSetting.PasswordRestriction</a></td>
<td></td>
<td><p>Password complexity and restriction requirements. </p></td>
</tr>
diff --git a/proto/store/store/setting.proto b/proto/store/store/setting.proto
index e01e39073b..fd9ebb266d 100644
--- a/proto/store/store/setting.proto
+++ b/proto/store/store/setting.proto
@@ -19,7 +19,6 @@ enum SettingName {
AI = 10;
DATA_CLASSIFICATION = 14;
SEMANTIC_TYPES = 15;
- PASSWORD_RESTRICTION = 18;
ENVIRONMENT = 19;
}
@@ -110,6 +109,26 @@ message WorkspaceProfileSetting {
// The branding logo as a data URI (e.g. data:image/png;base64,...).
string branding_logo = 18;
+
+ message PasswordRestriction {
+ // min_length is the minimum length for password, should be no less than 8.
+ int32 min_length = 1;
+ // require_number requires the password must contain at least one number.
+ bool require_number = 2;
+ // require_letter requires the password must contain at least one letter, regardless of upper case or lower case
+ bool require_letter = 3;
+ // require_uppercase_letter requires the password must contain at least one upper case letter.
+ bool require_uppercase_letter = 4;
+ // require_special_character requires the password must contain at least one special character.
+ bool require_special_character = 5;
+ // require_reset_password_for_first_login requires users to reset their password after the 1st login.
+ bool require_reset_password_for_first_login = 6;
+ // password_rotation requires users to reset their password after the duration.
+ google.protobuf.Duration password_rotation = 7;
+ }
+
+ // Password restriction settings.
+ PasswordRestriction password_restriction = 19;
}
message WorkspaceApprovalSetting {
@@ -273,23 +292,6 @@ message AppIMSetting {
repeated IMSetting settings = 1;
}
-message PasswordRestrictionSetting {
- // min_length is the minimum length for password, should be no less than 8.
- int32 min_length = 1;
- // require_number requires the password must contain at least one number.
- bool require_number = 2;
- // require_letter requires the password must contain at least one letter, regardless of upper case or lower case
- bool require_letter = 3;
- // require_uppercase_letter requires the password must contain at least one upper case letter.
- bool require_uppercase_letter = 4;
- // require_special_character requires the password must contain at least one special character.
- bool require_special_character = 5;
- // require_reset_password_for_first_login requires users to reset their password after the 1st login.
- bool require_reset_password_for_first_login = 6;
- // password_rotation requires users to reset their password after the duration.
- google.protobuf.Duration password_rotation = 7;
-}
-
message AISetting {
bool enabled = 1;
enum Provider {
diff --git a/proto/v1/v1/actuator_service.proto b/proto/v1/v1/actuator_service.proto
index be213429ca..f6a8e134e0 100644
--- a/proto/v1/v1/actuator_service.proto
+++ b/proto/v1/v1/actuator_service.proto
@@ -147,7 +147,7 @@ message ActuatorInfo {
bool disallow_password_signin = 20 [(google.api.field_behavior) = OUTPUT_ONLY];
// Password complexity and restriction requirements.
- PasswordRestrictionSetting password_restriction = 21 [(google.api.field_behavior) = OUTPUT_ONLY];
+ WorkspaceProfileSetting.PasswordRestriction password_restriction = 21 [(google.api.field_behavior) = OUTPUT_ONLY];
// Whether the Bytebase instance is running in Docker.
bool docker = 22 [(google.api.field_behavior) = OUTPUT_ONLY];
diff --git a/proto/v1/v1/setting_service.proto b/proto/v1/v1/setting_service.proto
index 5dd262f13a..613eff2e19 100644
--- a/proto/v1/v1/setting_service.proto
+++ b/proto/v1/v1/setting_service.proto
@@ -98,7 +98,6 @@ message Setting {
AI = 10;
DATA_CLASSIFICATION = 14;
SEMANTIC_TYPES = 15;
- PASSWORD_RESTRICTION = 18;
ENVIRONMENT = 19;
}
@@ -119,7 +118,6 @@ message SettingValue {
WorkspaceApprovalSetting workspace_approval = 6;
DataClassificationSetting data_classification = 10;
SemanticTypeSetting semantic_type = 11;
- PasswordRestrictionSetting password_restriction = 15;
AISetting ai = 16;
EnvironmentSetting environment = 17;
}
@@ -221,6 +219,26 @@ message WorkspaceProfileSetting {
// The branding logo as a data URI (e.g. data:image/png;base64,...).
string branding_logo = 18;
+
+ message PasswordRestriction {
+ // min_length is the minimum length for password, should no less than 8.
+ int32 min_length = 1;
+ // require_number requires the password must contains at least one number.
+ bool require_number = 2;
+ // require_letter requires the password must contains at least one letter, regardless of upper case or lower case
+ bool require_letter = 3;
+ // require_uppercase_letter requires the password must contains at least one upper case letter.
+ bool require_uppercase_letter = 4;
+ // require_special_character requires the password must contains at least one special character.
+ bool require_special_character = 5;
+ // require_reset_password_for_first_login requires users to reset their password after the 1st login.
+ bool require_reset_password_for_first_login = 6;
+ // password_rotation requires users to reset their password after the duration.
+ google.protobuf.Duration password_rotation = 7;
+ }
+
+ // Password restriction settings.
+ PasswordRestriction password_restriction = 19;
}
message Announcement {
@@ -393,23 +411,6 @@ enum DatabaseChangeMode {
EDITOR = 2;
}
-message PasswordRestrictionSetting {
- // min_length is the minimum length for password, should no less than 8.
- int32 min_length = 1;
- // require_number requires the password must contains at least one number.
- bool require_number = 2;
- // require_letter requires the password must contains at least one letter, regardless of upper case or lower case
- bool require_letter = 3;
- // require_uppercase_letter requires the password must contains at least one upper case letter.
- bool require_uppercase_letter = 4;
- // require_special_character requires the password must contains at least one special character.
- bool require_special_character = 5;
- // require_reset_password_for_first_login requires users to reset their password after the 1st login.
- bool require_reset_password_for_first_login = 6;
- // password_rotation requires users to reset their password after the duration.
- google.protobuf.Duration password_rotation = 7;
-}
-
message AISetting {
bool enabled = 1;
enum Provider {