Skip to content

Commit 1e0f6d0

Browse files
perf: Advanced Assistant Application Adds AES Encryption Fields
1 parent 4b7d270 commit 1e0f6d0

File tree

3 files changed

+40
-2
lines changed

3 files changed

+40
-2
lines changed

frontend/src/i18n/en.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,8 @@
514514
"creating_advanced_applications": "Creating Advanced Applications",
515515
"configure_interface": "Configure interface",
516516
"interface_url": "Interface URL",
517+
"aes_enable": "Enable AES encryption. The fields (host, user, password, dataBase, schema) are all encrypted using the AES-CBC-PKCS5Padding encryption method",
518+
"bit": "bit",
517519
"credential_acquisition_method": "Credential acquisition method",
518520
"table_notes": "Table notes",
519521
"system_credential_type": "Source system credential type",
@@ -647,4 +649,4 @@
647649
"setting_successfully": "Setting Successfully",
648650
"customize_theme_color": "Customize theme color"
649651
}
650-
}
652+
}

frontend/src/i18n/zh-CN.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,8 @@
513513
"private": "私有",
514514
"configure_interface": "配置接口",
515515
"interface_url": "接口 URL",
516+
"aes_enable": "开启 AES 加密,加密字段 (host, user, password, dataBase, schema) 均采用 AES-CBC-PKCS5Padding 加密方式",
517+
"bit": "",
516518
"creating_advanced_applications": "创建高级应用",
517519
"credential_acquisition_method": "凭证获取方式",
518520
"table_notes": "表备注",
@@ -647,4 +649,4 @@
647649
"setting_successfully": "设置成功",
648650
"customize_theme_color": "自定义主题色"
649651
}
650-
}
652+
}

frontend/src/views/system/embedded/iframe.vue

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ const certificateForm = reactive(cloneDeep(defaultCertificateForm))
7979
8080
const defaultUrlForm = {
8181
endpoint: '',
82+
encrypt: true,
83+
aes_key: '',
84+
aes_iv: '',
8285
certificate: [] as any,
8386
}
8487
const urlForm = reactive(cloneDeep(defaultUrlForm))
@@ -722,6 +725,37 @@ const saveHandler = () => {
722725
autocomplete="off"
723726
/>
724727
</el-form-item>
728+
<el-form-item prop="AES" :label="t('embedded.aes_enable')">
729+
<el-switch v-model="urlForm.encrypt" />
730+
</el-form-item>
731+
<el-form-item v-if="urlForm.encrypt" prop="aes_key" label="AES Key">
732+
<el-input
733+
v-model="urlForm.aes_key"
734+
clearable
735+
:placeholder="
736+
$t('datasource.please_enter') +
737+
$t('common.empty') +
738+
' 32 ' +
739+
$t('embedded.bit') +
740+
' AES Key'
741+
"
742+
autocomplete="off"
743+
/>
744+
</el-form-item>
745+
<el-form-item v-if="urlForm.encrypt" prop="aes_iv" label="AES IV">
746+
<el-input
747+
v-model="urlForm.aes_iv"
748+
clearable
749+
:placeholder="
750+
$t('datasource.please_enter') +
751+
$t('common.empty') +
752+
' 16 ' +
753+
$t('embedded.bit') +
754+
' AES IV'
755+
"
756+
autocomplete="off"
757+
/>
758+
</el-form-item>
725759
<el-form-item class="certificate-table_form" prop="type">
726760
<template #label>
727761
<div class="title-content">

0 commit comments

Comments
 (0)