diff --git a/dbm-ui/backend/ticket/builders/kafka/kafka_apply.py b/dbm-ui/backend/ticket/builders/kafka/kafka_apply.py index 283df1ee2e..903ed7d3cf 100644 --- a/dbm-ui/backend/ticket/builders/kafka/kafka_apply.py +++ b/dbm-ui/backend/ticket/builders/kafka/kafka_apply.py @@ -34,6 +34,7 @@ class KafkaApplyDetailSerializer(BigDataApplyDetailsSerializer): "port": 9200, "password": "password", "partition_num": 2, + "no_security": 0, "nodes": { "zookeeper": [ { @@ -70,6 +71,9 @@ class KafkaApplyDetailSerializer(BigDataApplyDetailsSerializer): } """ + no_security = serializers.IntegerField( + help_text=_("无认证开关, 1表示无认证。0表示认证,默认0"), min_value=0, max_value=1, required=False, default=0 + ) replication_num = serializers.IntegerField( help_text=_("副本数量"), ) diff --git a/dbm-ui/frontend/src/locales/en.json b/dbm-ui/frontend/src/locales/en.json index 9bbee04b33..9f12d3f3c9 100644 --- a/dbm-ui/frontend/src/locales/en.json +++ b/dbm-ui/frontend/src/locales/en.json @@ -1410,6 +1410,9 @@ "扩容任务进行中": "The expansion task is in progress", "实例重启任务进行中": "The instance restart task is in progress", "启用任务进行中": "Enable task in progress", + "不开启": "Off", + "开启": "On", + "开启认证": "Turn on authentication", "删除任务进行中": "Delete task in progress", "管理": "Manage", "输入需符合正则_regx": "The input must conform to the regular pattern: {regx}", diff --git a/dbm-ui/frontend/src/locales/zh-cn.json b/dbm-ui/frontend/src/locales/zh-cn.json index 7eb81f3ccf..6373ceb940 100644 --- a/dbm-ui/frontend/src/locales/zh-cn.json +++ b/dbm-ui/frontend/src/locales/zh-cn.json @@ -1416,6 +1416,9 @@ "启用任务进行中": "启用任务进行中", "禁用任务进行中": "禁用任务进行中", "删除任务进行中": "删除任务进行中", + "开启认证": "开启认证", + "开启": "开启", + "不开启": "不开启", "实例重启任务进行中": "实例重启任务进行中", "挂载点name重复": "挂载点({name})重复", "Proxy规格": "Proxy 规格", @@ -2055,4 +2058,4 @@ "主机将被落到空闲机,如需要可再次导入": "主机将被落到空闲机,如需要可再次导入", "保存并执行": "保存并执行", "这行勿动!新增翻译请在上一行添加!": "" -} \ No newline at end of file +} diff --git a/dbm-ui/frontend/src/views/kafka-manage/apply/Index.vue b/dbm-ui/frontend/src/views/kafka-manage/apply/Index.vue index 472f048d74..b4d0f5c147 100644 --- a/dbm-ui/frontend/src/views/kafka-manage/apply/Index.vue +++ b/dbm-ui/frontend/src/views/kafka-manage/apply/Index.vue @@ -256,6 +256,15 @@ {{ $t('需小于等于broker数量') }} + + + @@ -353,6 +362,7 @@ partition_num: 1, retention_hours: 1, replication_num: 1, + no_security: 0, }, }); diff --git a/dbm-ui/frontend/src/views/tickets/common/components/demand-factory/bigdata/DetailsKafka.vue b/dbm-ui/frontend/src/views/tickets/common/components/demand-factory/bigdata/DetailsKafka.vue index 28e3140441..afa06aec13 100644 --- a/dbm-ui/frontend/src/views/tickets/common/components/demand-factory/bigdata/DetailsKafka.vue +++ b/dbm-ui/frontend/src/views/tickets/common/components/demand-factory/bigdata/DetailsKafka.vue @@ -104,6 +104,12 @@ +
+ {{ $t('开启认证') }}: + {{ security }} +
{{ $t('备注') }}: props.ticketDetails?.details?.resource_spec?.zookeeper || {}); const brokerSpec = computed(() => props.ticketDetails?.details?.resource_spec?.broker || {}); + const security = computed(() => (props.ticketDetails?.no_security === 0 ? t('开启') : t('不开启'))); /** * 获取服务器数量