feat: 系统设置-安全设置 支持配置 作业中心命令黑名单

This commit is contained in:
fangfangdong
2023-05-31 17:16:48 +08:00
committed by Jiangjie.Bai
parent 51d6090fdc
commit a0bb25e558
7 changed files with 1089 additions and 1339 deletions

View File

@@ -179,6 +179,11 @@ class SecuritySettingSerializer(SecurityPasswordRuleSerializer, SecurityAuthSeri
required=False, label=_('Operation center'),
help_text=_('Allow user run batch command or not using ansible')
)
SECURITY_COMMAND_BLACKLIST = serializers.ListField(
child=serializers.CharField(max_length=1024, ),
label=_('Operation center command blacklist'),
help_text=_("Commands that are not allowed execute.")
)
SECURITY_SESSION_SHARE = serializers.BooleanField(
required=True, label=_('Session share'),
help_text=_("Enabled, Allows user active session to be shared with other users")