diff --git a/apps/accounts/automations/change_secret/custom/ssh/manifest.yml b/apps/accounts/automations/change_secret/custom/ssh/manifest.yml index 465cfa1e2..3ac25a231 100644 --- a/apps/accounts/automations/change_secret/custom/ssh/manifest.yml +++ b/apps/accounts/automations/change_secret/custom/ssh/manifest.yml @@ -1,5 +1,5 @@ id: change_secret_by_ssh -name: Change secret by SSH +name: "{{ 'SSH account change secret' | trans }}" category: - device - host @@ -10,5 +10,10 @@ params: - name: commands type: list label: '自定义命令' - default: [''] + default: [ '' ] help_text: '自定义命令中如需包含账号的 账号、密码、SSH 连接的用户密码 字段,
请使用 {username}、{password}、{login_password}格式,执行任务时会进行替换 。
比如针对 Cisco 主机进行改密,一般需要配置五条命令:
1. enable
2. {login_password}
3. configure terminal
4. username {username} privilege 0 password {password}
5. end' + +i18n: + SSH account change secret: + zh: SSH 账号改密 + ja: SSH アカウントのパスワード変更 diff --git a/apps/accounts/automations/change_secret/database/mongodb/manifest.yml b/apps/accounts/automations/change_secret/database/mongodb/manifest.yml index b6eeaa139..ce4f6fecf 100644 --- a/apps/accounts/automations/change_secret/database/mongodb/manifest.yml +++ b/apps/accounts/automations/change_secret/database/mongodb/manifest.yml @@ -1,6 +1,11 @@ id: change_secret_mongodb -name: Change secret for MongoDB +name: "{{ 'MongoDB account change secret' | trans }}" category: database type: - mongodb method: change_secret + +i18n: + MongoDB account change secret: + zh: MongoDB 账号改密 + ja: MongoDB アカウントのパスワード変更 diff --git a/apps/accounts/automations/change_secret/database/mysql/manifest.yml b/apps/accounts/automations/change_secret/database/mysql/manifest.yml index eac0fb56b..554acd8ba 100644 --- a/apps/accounts/automations/change_secret/database/mysql/manifest.yml +++ b/apps/accounts/automations/change_secret/database/mysql/manifest.yml @@ -1,7 +1,12 @@ id: change_secret_mysql -name: Change secret for MySQL +name: "{{ 'MySQL account change secret' | trans }}" category: database type: - mysql - mariadb method: change_secret + +i18n: + MySQL account change secret: + zh: MySQL 账号改密 + ja: MySQL アカウントのパスワード変更 diff --git a/apps/accounts/automations/change_secret/database/oracle/manifest.yml b/apps/accounts/automations/change_secret/database/oracle/manifest.yml index ee5cee177..2d88c7fcd 100644 --- a/apps/accounts/automations/change_secret/database/oracle/manifest.yml +++ b/apps/accounts/automations/change_secret/database/oracle/manifest.yml @@ -1,6 +1,11 @@ id: change_secret_oracle -name: Change secret for Oracle +name: "{{ 'Oracle account change secret' | trans }}" category: database type: - oracle method: change_secret + +i18n: + Oracle account change secret: + zh: Oracle 账号改密 + ja: Oracle アカウントのパスワード変更 diff --git a/apps/accounts/automations/change_secret/database/postgresql/manifest.yml b/apps/accounts/automations/change_secret/database/postgresql/manifest.yml index 048637c7f..29c66e2ce 100644 --- a/apps/accounts/automations/change_secret/database/postgresql/manifest.yml +++ b/apps/accounts/automations/change_secret/database/postgresql/manifest.yml @@ -1,6 +1,11 @@ id: change_secret_postgresql -name: Change secret for PostgreSQL +name: "{{ 'PostgreSQL account change secret' | trans }}" category: database type: - postgresql method: change_secret + +i18n: + PostgreSQL account change secret: + zh: PostgreSQL 账号改密 + ja: PostgreSQL アカウントのパスワード変更 diff --git a/apps/accounts/automations/change_secret/database/sqlserver/manifest.yml b/apps/accounts/automations/change_secret/database/sqlserver/manifest.yml index 2a436e27f..58d764a08 100644 --- a/apps/accounts/automations/change_secret/database/sqlserver/manifest.yml +++ b/apps/accounts/automations/change_secret/database/sqlserver/manifest.yml @@ -1,6 +1,11 @@ id: change_secret_sqlserver -name: Change secret for SQLServer +name: "{{ 'SQLServer account change secret' | trans }}" category: database type: - sqlserver method: change_secret + +i18n: + SQLServer account change secret: + zh: SQLServer 账号改密 + ja: SQLServer アカウントのパスワード変更 diff --git a/apps/accounts/automations/change_secret/host/aix/manifest.yml b/apps/accounts/automations/change_secret/host/aix/manifest.yml index 5c44f0350..d95c07032 100644 --- a/apps/accounts/automations/change_secret/host/aix/manifest.yml +++ b/apps/accounts/automations/change_secret/host/aix/manifest.yml @@ -1,6 +1,11 @@ id: change_secret_aix -name: Change secret for aix +name: "{{ 'AIX account change secret' | trans }}" category: host type: - AIX method: change_secret + +i18n: + AIX account change secret: + zh: AIX 账号改密 + ja: AIX アカウントのパスワード変更 diff --git a/apps/accounts/automations/change_secret/host/posix/manifest.yml b/apps/accounts/automations/change_secret/host/posix/manifest.yml index 491fb14a2..8c6c0d48d 100644 --- a/apps/accounts/automations/change_secret/host/posix/manifest.yml +++ b/apps/accounts/automations/change_secret/host/posix/manifest.yml @@ -1,7 +1,12 @@ id: change_secret_posix -name: Change secret for posix +name: "{{ 'Posix account change secret' | trans }}" category: host type: - unix - linux method: change_secret + +i18n: + Posix account change secret: + zh: Posix 账号改密 + ja: Posix アカウントのパスワード変更 diff --git a/apps/accounts/automations/change_secret/host/windows/manifest.yml b/apps/accounts/automations/change_secret/host/windows/manifest.yml index d727e3bec..f04666c66 100644 --- a/apps/accounts/automations/change_secret/host/windows/manifest.yml +++ b/apps/accounts/automations/change_secret/host/windows/manifest.yml @@ -1,7 +1,12 @@ id: change_secret_local_windows -name: Change secret local account for Windows +name: "{{ 'Windows account change secret' | trans }}" version: 1 method: change_secret category: host type: - windows + +i18n: + Windows account change secret: + zh: Windows 账号改密 + ja: Windows アカウントのパスワード変更 diff --git a/apps/accounts/automations/gather_accounts/database/mongodb/manifest.yml b/apps/accounts/automations/gather_accounts/database/mongodb/manifest.yml index a002848b4..fa35c95a0 100644 --- a/apps/accounts/automations/gather_accounts/database/mongodb/manifest.yml +++ b/apps/accounts/automations/gather_accounts/database/mongodb/manifest.yml @@ -1,6 +1,11 @@ id: gather_accounts_mongodb -name: Gather account from MongoDB +name: "{{ 'MongoDB account gather' | trans }}" category: database type: - mongodb method: gather_accounts + +i18n: + MongoDB account gather: + zh: MongoDB 账号收集 + ja: MongoDB アカウントの収集 diff --git a/apps/accounts/automations/gather_accounts/database/mysql/manifest.yml b/apps/accounts/automations/gather_accounts/database/mysql/manifest.yml index 22f57156c..bd160ed34 100644 --- a/apps/accounts/automations/gather_accounts/database/mysql/manifest.yml +++ b/apps/accounts/automations/gather_accounts/database/mysql/manifest.yml @@ -1,5 +1,5 @@ id: gather_accounts_mysql -name: "{{ 'Gather account from MySQL' | trans }}" +name: "{{ 'MySQL account gather' | trans }}" category: database type: - mysql @@ -7,9 +7,6 @@ type: method: gather_accounts i18n: - en: - Gather account from MySQL: Gather account from MySQL - zh: - Gather account from MySQL: 从MySQL获取账号 - ja: - Gather account from MySQL: MySQLからアカウントを取得する + MySQL account gather: + zh: MySQL 账号收集 + ja: MySQL アカウントの収集 diff --git a/apps/accounts/automations/gather_accounts/database/oracle/manifest.yml b/apps/accounts/automations/gather_accounts/database/oracle/manifest.yml index 4753f1495..ccfd7cb86 100644 --- a/apps/accounts/automations/gather_accounts/database/oracle/manifest.yml +++ b/apps/accounts/automations/gather_accounts/database/oracle/manifest.yml @@ -1,6 +1,11 @@ id: gather_accounts_oracle -name: Gather account from Oracle +name: "{{ 'Oracle account gather' | trans }}" category: database type: - oracle method: gather_accounts + +i18n: + Oracle account gather: + zh: Oracle 账号收集 + ja: Oracle アカウントの収集 diff --git a/apps/accounts/automations/gather_accounts/database/postgresql/manifest.yml b/apps/accounts/automations/gather_accounts/database/postgresql/manifest.yml index 3e563053a..af41c50ef 100644 --- a/apps/accounts/automations/gather_accounts/database/postgresql/manifest.yml +++ b/apps/accounts/automations/gather_accounts/database/postgresql/manifest.yml @@ -1,6 +1,11 @@ id: gather_accounts_postgresql -name: Gather account for PostgreSQL +name: "{{ 'PostgreSQL account gather' | trans }}" category: database type: - postgresql method: gather_accounts + +i18n: + PostgreSQL account gather: + zh: PostgreSQL 账号收集 + ja: PostgreSQL アカウントの収集 diff --git a/apps/accounts/automations/gather_accounts/host/posix/manifest.yml b/apps/accounts/automations/gather_accounts/host/posix/manifest.yml index a761c9796..33534e183 100644 --- a/apps/accounts/automations/gather_accounts/host/posix/manifest.yml +++ b/apps/accounts/automations/gather_accounts/host/posix/manifest.yml @@ -1,7 +1,12 @@ id: gather_accounts_posix -name: Gather posix account +name: "{{ 'Posix account gather' | trans }}" category: host type: - linux - unix method: gather_accounts + +i18n: + Posix account gather: + zh: Posix 账号收集 + ja: Posix アカウントの収集 diff --git a/apps/accounts/automations/gather_accounts/host/windows/manifest.yml b/apps/accounts/automations/gather_accounts/host/windows/manifest.yml index ffc2ef7ee..281f095fe 100644 --- a/apps/accounts/automations/gather_accounts/host/windows/manifest.yml +++ b/apps/accounts/automations/gather_accounts/host/windows/manifest.yml @@ -1,7 +1,12 @@ id: gather_accounts_windows -name: Gather account windows +name: "{{ 'Windows account gather' | trans }}" version: 1 method: gather_accounts category: host type: - windows + +i18n: + Windows account gather: + zh: Windows 账号收集 + ja: Windows アカウントの収集 diff --git a/apps/accounts/automations/push_account/database/mongodb/manifest.yml b/apps/accounts/automations/push_account/database/mongodb/manifest.yml index 6c91977bf..b4c237f78 100644 --- a/apps/accounts/automations/push_account/database/mongodb/manifest.yml +++ b/apps/accounts/automations/push_account/database/mongodb/manifest.yml @@ -1,6 +1,11 @@ id: push_account_mongodb -name: Push account for MongoDB +name: "{{ 'MongoDB account push' | trans }}" category: database type: - mongodb method: push_account + +i18n: + MongoDB account push: + zh: MongoDB 账号推送 + ja: MongoDB アカウントのプッシュ diff --git a/apps/accounts/automations/push_account/database/mysql/manifest.yml b/apps/accounts/automations/push_account/database/mysql/manifest.yml index 712d0bfb8..56e144a3f 100644 --- a/apps/accounts/automations/push_account/database/mysql/manifest.yml +++ b/apps/accounts/automations/push_account/database/mysql/manifest.yml @@ -1,7 +1,12 @@ id: push_account_mysql -name: Push account for MySQL +name: "{{ 'MySQL account push' | trans }}" category: database type: - mysql - mariadb method: push_account + +i18n: + MySQL account push: + zh: MySQL 账号推送 + ja: MySQL アカウントのプッシュ diff --git a/apps/accounts/automations/push_account/database/oracle/manifest.yml b/apps/accounts/automations/push_account/database/oracle/manifest.yml index f60215892..729dc4ec7 100644 --- a/apps/accounts/automations/push_account/database/oracle/manifest.yml +++ b/apps/accounts/automations/push_account/database/oracle/manifest.yml @@ -1,6 +1,11 @@ id: push_account_oracle -name: Push account for Oracle +name: "{{ 'Oracle account push' | trans }}" category: database type: - oracle method: push_account + +i18n: + Oracle account push: + zh: Oracle 账号推送 + ja: Oracle アカウントのプッシュ \ No newline at end of file diff --git a/apps/accounts/automations/push_account/database/postgresql/manifest.yml b/apps/accounts/automations/push_account/database/postgresql/manifest.yml index 6488ddd5a..4c8e7febb 100644 --- a/apps/accounts/automations/push_account/database/postgresql/manifest.yml +++ b/apps/accounts/automations/push_account/database/postgresql/manifest.yml @@ -1,6 +1,11 @@ id: push_account_postgresql -name: Push account for PostgreSQL +name: "{{ 'PostgreSQL account push' | trans }}" category: database type: - postgresql method: push_account + +i18n: + PostgreSQL account push: + zh: PostgreSQL 账号推送 + ja: PostgreSQL アカウントのプッシュ \ No newline at end of file diff --git a/apps/accounts/automations/push_account/database/sqlserver/manifest.yml b/apps/accounts/automations/push_account/database/sqlserver/manifest.yml index f1dc32b66..058e75ca7 100644 --- a/apps/accounts/automations/push_account/database/sqlserver/manifest.yml +++ b/apps/accounts/automations/push_account/database/sqlserver/manifest.yml @@ -1,6 +1,11 @@ id: push_account_sqlserver -name: Push account for SQLServer +name: "{{ 'SQLServer account push' | trans }}" category: database type: - sqlserver method: push_account + +i18n: + SQLServer account push: + zh: SQLServer 账号推送 + ja: SQLServer アカウントのプッシュ diff --git a/apps/accounts/automations/push_account/host/aix/manifest.yml b/apps/accounts/automations/push_account/host/aix/manifest.yml index ccc051eac..78a44a4e9 100644 --- a/apps/accounts/automations/push_account/host/aix/manifest.yml +++ b/apps/accounts/automations/push_account/host/aix/manifest.yml @@ -1,5 +1,5 @@ id: push_account_aix -name: Push account for aix +name: "{{ 'Aix account push' | trans }}" category: host type: - AIX @@ -22,3 +22,8 @@ params: default: '' help_text: '请输入用户组,多个用户组使用逗号分隔(需填写已存在的用户组)' +i18n: + Aix account push: + zh: Aix 账号推送 + ja: Aix アカウントのプッシュ + diff --git a/apps/accounts/automations/push_account/host/posix/manifest.yml b/apps/accounts/automations/push_account/host/posix/manifest.yml index 382b48add..efeb11b93 100644 --- a/apps/accounts/automations/push_account/host/posix/manifest.yml +++ b/apps/accounts/automations/push_account/host/posix/manifest.yml @@ -1,5 +1,5 @@ id: push_account_posix -name: Push account for posix +name: "{{ 'Posix account push' | trans }}" category: host type: - unix @@ -23,3 +23,8 @@ params: label: '用户组' default: '' help_text: '请输入用户组,多个用户组使用逗号分隔(需填写已存在的用户组)' + +i18n: + Posix account push: + zh: Posix 账号推送 + ja: Posix アカウントのプッシュ diff --git a/apps/accounts/automations/push_account/host/windows/manifest.yml b/apps/accounts/automations/push_account/host/windows/manifest.yml index 05e3127f9..28745245f 100644 --- a/apps/accounts/automations/push_account/host/windows/manifest.yml +++ b/apps/accounts/automations/push_account/host/windows/manifest.yml @@ -1,5 +1,5 @@ id: push_account_local_windows -name: Push account local account for Windows +name: "{{ 'Windows account push' | trans }}" version: 1 method: push_account category: host @@ -11,3 +11,8 @@ params: label: '用户组' default: 'Users,Remote Desktop Users' help_text: '请输入用户组,多个用户组使用逗号分隔(需填写已存在的用户组)' + +i18n: + Windows account push: + zh: Windows 账号推送 + ja: Windows アカウントのプッシュ diff --git a/apps/accounts/automations/verify_account/custom/manifest.yml b/apps/accounts/automations/verify_account/custom/manifest.yml index 51c5fedb1..ceef8e50d 100644 --- a/apps/accounts/automations/verify_account/custom/manifest.yml +++ b/apps/accounts/automations/verify_account/custom/manifest.yml @@ -1,8 +1,13 @@ id: verify_account_by_ssh -name: Verify account by SSH +name: "{{ 'SSH account verify' | trans }}" category: - device - host type: - all method: verify_account + +i18n: + SSH account verify: + zh: SSH 账号验证 + ja: SSH アカウントの検証 diff --git a/apps/accounts/automations/verify_account/database/mongodb/manifest.yml b/apps/accounts/automations/verify_account/database/mongodb/manifest.yml index 24cc398c2..fd5a31294 100644 --- a/apps/accounts/automations/verify_account/database/mongodb/manifest.yml +++ b/apps/accounts/automations/verify_account/database/mongodb/manifest.yml @@ -1,6 +1,11 @@ id: verify_account_mongodb -name: Verify account from MongoDB +name: "{{ 'MongoDB account verify' | trans }}" category: database type: - mongodb method: verify_account + +i18n: + MongoDB account verify: + zh: MongoDB 账号验证 + ja: MongoDB アカウントの検証 diff --git a/apps/accounts/automations/verify_account/database/mysql/manifest.yml b/apps/accounts/automations/verify_account/database/mysql/manifest.yml index 48d4bb4c4..bd381de0b 100644 --- a/apps/accounts/automations/verify_account/database/mysql/manifest.yml +++ b/apps/accounts/automations/verify_account/database/mysql/manifest.yml @@ -1,7 +1,12 @@ id: verify_account_mysql -name: Verify account from MySQL +name: "{{ 'MySQL account verify' | trans }}" category: database type: - mysql - mariadb method: verify_account + +i18n: + MySQL account verify: + zh: MySQL 账号验证 + ja: MySQL アカウントの検証 diff --git a/apps/accounts/automations/verify_account/database/oracle/manifest.yml b/apps/accounts/automations/verify_account/database/oracle/manifest.yml index b58a7f888..220445daa 100644 --- a/apps/accounts/automations/verify_account/database/oracle/manifest.yml +++ b/apps/accounts/automations/verify_account/database/oracle/manifest.yml @@ -1,6 +1,11 @@ id: verify_account_oracle -name: Verify account from Oracle +name: "{{ 'Oracle account verify' | trans }}" category: database type: - oracle method: verify_account + +i18n: + Oracle account verify: + zh: Oracle 账号验证 + ja: Oracle アカウントの検証 diff --git a/apps/accounts/automations/verify_account/database/postgresql/manifest.yml b/apps/accounts/automations/verify_account/database/postgresql/manifest.yml index 4c9e2cbec..6ce7175b3 100644 --- a/apps/accounts/automations/verify_account/database/postgresql/manifest.yml +++ b/apps/accounts/automations/verify_account/database/postgresql/manifest.yml @@ -1,6 +1,11 @@ id: verify_account_postgresql -name: Verify account for PostgreSQL +name: "{{ 'PostgreSQL account verify' | trans }}" category: database type: - postgresql method: verify_account + +i18n: + PostgreSQL account verify: + zh: PostgreSQL 账号验证 + ja: PostgreSQL アカウントの検証 diff --git a/apps/accounts/automations/verify_account/database/sqlserver/manifest.yml b/apps/accounts/automations/verify_account/database/sqlserver/manifest.yml index 8af52ab0b..8effdcfeb 100644 --- a/apps/accounts/automations/verify_account/database/sqlserver/manifest.yml +++ b/apps/accounts/automations/verify_account/database/sqlserver/manifest.yml @@ -1,6 +1,11 @@ id: verify_account_sqlserver -name: Verify account from SQLServer +name: "{{ 'SQLServer account verify' | trans }}" category: database type: - sqlserver method: verify_account + +i18n: + SQLServer account verify: + zh: SQLServer 账号验证 + ja: SQLServer アカウントの検証 \ No newline at end of file diff --git a/apps/accounts/automations/verify_account/host/posix/manifest.yml b/apps/accounts/automations/verify_account/host/posix/manifest.yml index 5b9a1e51b..26ee3b025 100644 --- a/apps/accounts/automations/verify_account/host/posix/manifest.yml +++ b/apps/accounts/automations/verify_account/host/posix/manifest.yml @@ -1,7 +1,12 @@ id: verify_account_posix -name: Verify posix account +name: "{{ 'Posix account verify' | trans }}" category: host type: - linux - unix method: verify_account + +i18n: + Posix account verify: + zh: Posix 账号验证 + ja: Posix アカウントの検証 \ No newline at end of file diff --git a/apps/accounts/automations/verify_account/host/windows/manifest.yml b/apps/accounts/automations/verify_account/host/windows/manifest.yml index 69faf4217..28b914d10 100644 --- a/apps/accounts/automations/verify_account/host/windows/manifest.yml +++ b/apps/accounts/automations/verify_account/host/windows/manifest.yml @@ -1,7 +1,12 @@ id: verify_account_windows -name: Verify account windows +name: "{{ 'Windows account verify' | trans }}" version: 1 method: verify_account category: host type: - windows + +i18n: + Windows account verify: + zh: Windows 账号验证 + ja: Windows アカウントの検証 diff --git a/apps/assets/api/platform.py b/apps/assets/api/platform.py index 61f4db985..fc32a3b5f 100644 --- a/apps/assets/api/platform.py +++ b/apps/assets/api/platform.py @@ -71,7 +71,7 @@ class PlatformAutomationMethodsApi(generics.ListAPIView): def generate_serializer_fields(self): data = self.automation_methods() fields = { - i['id']: i['params_serializer']() + i['id']: i['params_serializer'](label=i['name']) if i['params_serializer'] else None for i in data }