完成邮件服务策略整合与安全配置调整
Security Checks / security (push) Waiting to run

This commit is contained in:
xuans committed 2026-09-07 15:24:41 +08:00
1 parent d2f14ede7a
commit cfe4401b70
32 files changed
+893 -318

No files matched your search

@@ -5,9 +5,6 @@
<div class="overview-copy">
<div class="overview-title">
<h3 id="config-page-title">{{ currentSection.label }}</h3>
<el-tag v-if="!loading && !availabilityError" :type="stateTagType" effect="light" size="small">
<span class="sr-only">运行状态:</span>{{ stateLabel }}
</el-tag>
</div>
</div>
<div class="overview-actions">
@@ -36,15 +33,6 @@
</template>
</header>
<el-alert
v-if="!canWrite"
title="当前账号仅能查看配置,保存、应用和回滚操作已隐藏。"
type="info"
:closable="false"
show-icon
class="config-alert"
/>
<div v-if="availabilityError" class="config-availability" role="status">
<el-alert :title="availabilityError" type="warning" :closable="false" show-icon />
<el-button :loading="loading" @click="refreshPage">重新检查</el-button>
@@ -52,10 +40,6 @@
<div v-else-if="!loading" class="config-page-body">
<section class="editor-panel" :aria-busy="sectionLoading">
<p v-if="selectedSection === 'ssl' && status.tlsMode === 'proxy'" class="heading-note" role="note">
当前由反向代理提供 HTTPS,Smail 不自动申请或续期 SSL 证书。下方配置仅用于本地邮件服务证书;外部续期后请重新导入并应用,不能仅更新反代服务器上的证书。
</p>
<el-alert
v-if="sectionError"
:title="sectionError"
@@ -65,7 +49,6 @@
class="config-alert"
/>
<MailPortSummary v-if="mailPortSummary && !sectionLoading && !sectionError" :services="mailPortSummary" />
<ConfigForm
v-if="!sectionLoading && !sectionError"
:section="selectedSection"
@@ -74,8 +57,6 @@
:disabled="!canWrite || !!working || !!pendingCandidate"
@change="updateField"
/>
<p v-if="sensitiveHint" id="config-sensitive-hint" class="editor-hint">{{ sensitiveHint }}。</p>
<div v-if="secretField" class="secret-editor">
<div>
<label for="config-secret-input">{{ secretField.label }}</label>
@@ -129,7 +110,6 @@
{{ savedGeneration ? `应用代次 ${savedGeneration}` : '应用配置' }}
</el-button>
</div>
<p class="action-hint">保存不会立即生效;需要继续修改时先取消候选。跨会话恢复或取消需要近期认证并勾选确认。</p>
</div>
<div v-if="validationResult" class="result-box" :class="validationResult.valid ? 'result-success' : 'result-error'" role="status">
<strong>{{ validationResult.valid ? '验证通过' : '验证未通过' }}</strong>
@@ -149,16 +129,12 @@
<script setup>
import { inject } from 'vue'
import ConfigForm from '../ConfigForm/ConfigForm.vue'
import MailPortSummary from '../MailPortSummary/MailPortSummary.vue'
const {
mailPortSummary,
availabilityError,
loading,
working,
status,
stateLabel,
stateTagType,
selectedSection,
currentSection,
sectionLoading,
@@ -167,7 +143,6 @@ const {
updateField,
updateSecret,
sectionError,
sensitiveHint,
secretField,
secretValue,
confirmed,
@@ -33,16 +33,6 @@
line-height: 1.5;
}
.form-group-description {
flex: 1 1 100%;
margin: 0;
color: var(--pm-text-secondary);
font-size: 12px;
line-height: 1.6;
}
.credential-status,
.form-group-note,
.form-empty {
margin: 0 0 8px;
color: var(--pm-text-secondary);
@@ -85,7 +75,7 @@
}
.config-form[data-form-section="base"] .form-grid,
.config-form[data-form-section="email"] .form-grid,
.config-form[data-form-section="mail"] .form-grid,
.form-group[data-group="verification"] .form-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
@@ -108,11 +108,14 @@ const baseGroups = [
])
]
const smtpGroups = [
group('listener', 'SMTP 服务监听', '', [
const mailGroups = [
group('listener', '邮件服务监听', '', [
port('listener.port', 'SMTP 收信端口', { min: 1, hint: '默认 25,用于接收其他邮件服务器投递,支持 STARTTLS;不是发信中继端口。' }),
port('listener.starttlsPort', 'SMTP 提交端口(STARTTLS)', { min: 1, hint: '默认 587,客户端升级 TLS 后进行认证。' }),
port('listener.tlsPort', 'SMTP 隐式 TLS 端口', { min: 1, hint: '默认 465,客户端建立连接时直接使用 TLS。' })
port('listener.tlsPort', 'SMTP 隐式 TLS 端口', { min: 1, hint: '默认 465,客户端建立连接时直接使用 TLS。' }),
port('imap.tlsPort', 'IMAP 隐式 TLS 端口', { min: 1, required: true, hint: '默认 993。客户端建立连接时直接使用 TLS。' }),
port('pop3.port', 'POP3 端口(STLS)', { min: 1, required: true, hint: '默认 110,客户端使用 STLS 升级加密后认证。' }),
port('pop3.tlsPort', 'POP3 隐式 TLS 端口', { min: 1, required: true, hint: '默认 995,客户端建立连接时直接使用 TLS。' })
]),
group('relay', 'SMTP 中继连接(可选)', '', [
field('relay.relayHost', 'SMTP 服务器', 'text', { placeholder: 'smtp.example.com' }),
@@ -131,27 +134,17 @@ const smtpGroups = [
field('relay.password', '中继密码', 'password', { placeholder: '留空保持原值' }),
field('relay.from', '发件邮箱', 'text', { placeholder: 'noreply@example.com' }),
field('relay.fromDomain', '发件域名', 'text', { placeholder: 'example.com' })
])
]
const imapGroups = [
group('imap', 'IMAP 服务监听', '', [
port('imap.tlsPort', 'IMAP 隐式 TLS 端口', { min: 1, required: true, hint: '默认 993。当前仅支持隐式 TLS,不提供明文或 STARTTLS 监听。' })
])
]
const pop3Groups = [
group('pop3', 'POP3 服务监听', '', [
port('pop3.port', 'POP3 端口(STLS)', { min: 1, required: true, hint: '默认 110,客户端使用 STLS 升级加密后认证。' }),
port('pop3.tlsPort', 'POP3 隐式 TLS 端口', { min: 1, required: true, hint: '默认 995,客户端建立连接时直接使用 TLS。' })
])
]
const emailGroups = [
group('policy', '邮件与账号策略', '', [
]),
group('policy', '邮件策略', '', [
field('policy.maxMessageBytes', '最大邮件大小(字节)', 'number', { min: 0, max: Number.MAX_SAFE_INTEGER, integer: true, hint: '0 使用后端默认限制;1 MiB = 1048576 字节。' }),
field('policy.spamFilterLevel', '垃圾邮件过滤级别', 'select', { fallback: 0, options: options([[0, '不过滤'], [1, 'SPF 与 DKIM 均失败时过滤'], [2, 'SPF 失败时过滤'], [3, 'DKIM 失败时过滤']]) }),
field('policy.loginVerificationPolicy', '账号登录验证策略', 'select', { options: loginOptions }),
field('policy.spamFilterLevel', '垃圾邮件过滤级别', 'select', { fallback: 0, options: options([[0, '不过滤'], [1, 'SPF 与 DKIM 均失败时过滤'], [2, 'SPF 失败时过滤'], [3, 'DKIM 失败时过滤']]) })
])
]
const securityPolicyGroups = [
group('verification', '登录与账号恢复', '', [
field('relay.verificationEnabled', '启用账号登录验证', 'switch'),
field('relay.loginPolicy', '账号登录验证策略', 'select', { options: loginOptions }),
field('policy.externalRecoveryEnabled', '允许外部邮箱恢复账号', 'switch')
])
]
@@ -190,7 +183,7 @@ const pluginDefinitions = {
export function getFieldGroups(section, config) {
const pluginId = Object.hasOwn(pluginDefinitions, section) ? section : ''
if (section !== 'plugins' && !pluginId) {
return ({ base: baseGroups, smtp: smtpGroups, imap: imapGroups, pop3: pop3Groups, email: emailGroups, ssl: sslGroups }[section] || [])
return ({ base: baseGroups, mail: mailGroups, security_policy: securityPolicyGroups, ssl: sslGroups }[section] || [])
.map(item => ({
...item,
fields: item.fields
@@ -207,14 +200,14 @@ export function getFieldGroups(section, config) {
return {
id,
title: definition?.label || `插件:${id}`,
description: `插件标识:${id}。程序与权限由安装目录维护;凭据请在专用插件设置中管理。`,
description: '',
fields: [
input('enabled', '启用插件', 'switch', { locked: !definition }),
input('executable', '运行程序', 'text', { locked: true }),
{ path: [...prefix, 'permissions', 'network'], label: '允许访问的网络目标', type: 'network', hint: '仅允许 HTTPS 或 WSS;填写域名和端口,不接受 IP 地址。', locked: !definition },
...(definition && settingsEditable ? definition.fields.map(item => ({ ...item, path: [...prefix, 'settings', ...item.path] })) : [])
],
note: !settingsEditable ? '当前插件使用非标准设置格式,已保留原值;请在专用插件页面调整。' : '',
note: '',
secretConfigured: !!plugin.secretStatus?.configured
}
})
@@ -291,22 +284,24 @@ export function validateFormConfig(section, config) {
errors['http.httpsPort'] = 'HTTP 与 HTTPS 监听端口不能相同'
}
}
if (section === 'smtp') {
if (section === 'mail') {
const relay = config.relay || {}
if (relay.relayHost && relay.security) {
if (!['starttls', 'implicit_tls', 'tls', 'plain'].includes(relay.security)) {
errors['relay.security'] = '请选择明确的连接加密方式,系统会自动匹配端口'
}
const relayConfigured = !!(
relay.relayHost || relay.relayPort || relay.username || relay.password || relay.security || relay.from
)
if (relayConfigured) {
if (!relay.relayHost) errors['relay.relayHost'] = '请填写 SMTP 服务器'
if (!['starttls', 'implicit_tls', 'tls', 'plain'].includes(relay.security)) errors['relay.security'] = '请选择连接加密方式'
if (!validPort(relay.relayPort)) errors['relay.relayPort'] = '请填写 1~65535 的 SMTP 端口'
if (!relay.from) errors['relay.from'] = '请填写发件邮箱'
if (!relay.fromDomain) errors['relay.fromDomain'] = '请填写发件域名'
}
if (relay.security === 'plain' && !localSMTPHost(relay.relayHost)) {
errors['relay.relayHost'] = '不加密连接仅限本机地址;远程服务器请选择 STARTTLS 或隐式 TLS'
}
}
if (['smtp', 'imap', 'pop3'].includes(section)) {
const paths = section === 'smtp'
? ['listener.port', 'listener.starttlsPort', 'listener.tlsPort']
: ['imap.tlsPort', 'pop3.port', 'pop3.tlsPort']
if (section === 'mail') {
const paths = ['listener.port', 'listener.starttlsPort', 'listener.tlsPort', 'imap.tlsPort', 'pop3.port', 'pop3.tlsPort']
for (const path of paths) {
const value = getValue(config, path.split('.'))
if (value > 0 && paths.some(other => other !== path && getValue(config, other.split('.')) === value)) errors[path] = '邮件服务监听端口不能重复'
@@ -10,11 +10,8 @@
>
<div class="form-group-heading">
<h4>{{ group.title }}</h4>
<p v-if="group.description" class="form-group-description">{{ group.description }}</p>
<span v-if="group.fields.some(field => errors[fieldKey(field)])" class="section-error">待修正</span>
</div>
<p v-if="group.secretConfigured !== undefined" class="credential-status">{{ group.secretConfigured ? '凭据已配置' : '未配置凭据' }}</p>
<p v-if="group.note" class="form-group-note" role="note">{{ group.note }}</p>
<div class="form-grid" :class="{ 'site-grid': section === 'base' && group.id === 'site' }">
<ConfigField
v-for="field in group.fields"
@@ -1,9 +1,6 @@
import { computed, nextTick, ref } from 'vue'
import { useGlobalStatusStore } from '@/stores/useGlobalStatusStore'
import BaseConfig from './BaseConfig/BaseConfig.vue'
import SmtpConfig from './SmtpConfig/SmtpConfig.vue'
import ImapConfig from './ImapConfig/ImapConfig.vue'
import Pop3Config from './Pop3Config/Pop3Config.vue'
import EmailConfig from './EmailConfig/EmailConfig.vue'
import SslConfig from './SslConfig/SslConfig.vue'
import PluginsConfig from './PluginsConfig/PluginsConfig.vue'
@@ -17,10 +14,7 @@ export function useNavigation() {
const switching = ref(false)
const pages = [
{ value: 'base', label: '基础配置', component: BaseConfig },
{ value: 'smtp', label: 'SMTP 配置', component: SmtpConfig },
{ value: 'imap', label: 'IMAP 配置', component: ImapConfig },
{ value: 'pop3', label: 'POP3 配置', component: Pop3Config },
{ value: 'email', label: '邮箱策略', component: EmailConfig },
{ value: 'mail', label: '邮件服务与策略', component: EmailConfig },
{ value: 'ssl', label: 'SSL 配置', component: SslConfig },
{ value: 'plugins', label: '插件配置', children: [
{ value: 'spam_block', label: '垃圾邮件拦截', component: PluginsConfig },
@@ -5,16 +5,14 @@ import { useGlobalStatusStore } from '@/stores/useGlobalStatusStore'
import { readFormConfig, updateFormConfig, validateFormConfig } from './ConfigForm/ConfigForm.js'
const sections = [
{ value: 'base', label: '基础配置', description: '管理站点与数据库连接,敏感凭据单独填写。' },
{ value: 'smtp', label: 'SMTP 配置', description: '管理本机监听与发信中继;监听端口变更需应用配置并重启后端。' },
{ value: 'imap', label: 'IMAP 配置', description: '管理 IMAP 隐式 TLS 监听;端口变更需应用配置并重启后端。' },
{ value: 'pop3', label: 'POP3 配置', description: '管理 POP3 的 STLS 与隐式 TLS 监听;端口变更需应用配置并重启后端。' },
{ value: 'email', label: '邮箱策略', description: '自动汇总三个协议的配置端口,管理邮件与账号恢复策略。' },
{ value: 'ssl', label: 'SSL 配置', description: '管理证书与加密连接,应用后请留意待重启提示。' },
{ value: 'plugins', label: '插件配置', description: '管理插件运行配置,敏感设置仅显示配置状态。' },
{ value: 'spam_block', label: '垃圾邮件拦截', description: '配置垃圾邮件检测服务、超时和拦截阈值,仅编辑当前插件。' },
{ value: 'telegram_push', label: 'Telegram 推送', description: '配置 Telegram 推送的运行参数与网络权限,个人绑定在扩展功能中管理。' },
{ value: 'wechat_push', label: '微信推送', description: '配置微信推送的应用、模板与接收用户,敏感凭据不回填。' }
{ value: 'base', label: '基础配置' },
{ value: 'mail', label: '邮件服务与策略' },
{ value: 'security_policy', label: '安全策略' },
{ value: 'ssl', label: 'SSL 配置' },
{ value: 'plugins', label: '插件配置' },
{ value: 'spam_block', label: '垃圾邮件拦截' },
{ value: 'telegram_push', label: 'Telegram 推送' },
{ value: 'wechat_push', label: '微信推送' }
]
const serviceLabels = {
@@ -57,7 +55,7 @@ export function usePage(pageKey = 'base') {
// 独立页面复用原配置分区的原子保存与候选保护,不丢弃其他页面的字段。
const pluginPages = ['spam_block', 'telegram_push', 'wechat_push']
const apiSection = () => pluginPages.includes(selectedSection.value) ? 'plugins'
: ['imap', 'pop3'].includes(selectedSection.value) ? 'email' : selectedSection.value
: selectedSection.value === 'security_policy' ? 'mail' : selectedSection.value
const currentSection = computed(() => sections.find(item => item.value === selectedSection.value) || sections[0])
const sectionLoading = ref(false)
let sectionRequestId = 0
@@ -66,23 +64,6 @@ export function usePage(pageKey = 'base') {
const formConfig = computed(() => readFormConfig(editorText.value))
const formErrors = ref({})
const loadedText = ref('')
const smtpListener = ref(null)
const mailPortSummary = computed(() => {
if (selectedSection.value !== 'email' || !loadedText.value || !smtpListener.value) return null
const email = readFormConfig(loadedText.value)
return [
{ name: 'SMTP', ports: [
{ label: '收信 / STARTTLS', value: smtpListener.value.port },
{ label: '提交 / STARTTLS', value: smtpListener.value.starttlsPort },
{ label: '隐式 TLS', value: smtpListener.value.tlsPort }
] },
{ name: 'IMAP', ports: [{ label: '隐式 TLS', value: email.imap?.tlsPort }] },
{ name: 'POP3', ports: [
{ label: 'STLS', value: email.pop3?.port },
{ label: '隐式 TLS', value: email.pop3?.tlsPort }
] }
]
})
const sectionError = ref('')
const secretValue = ref('')
const confirmed = ref(false)
@@ -102,22 +83,24 @@ export function usePage(pageKey = 'base') {
: '候选内容尚未完整读取,请刷新后核对。'
return `${scope}三个插件共用一个配置分区,请在对应三级菜单核对;应用时整个候选一起生效,其他插件的原有配置会保留。`
}
if (pending?.section !== 'email' || apiSection() !== 'email') return ''
if (pending?.section !== 'mail' || apiSection() !== 'mail') return ''
const active = readFormConfig(loadedText.value)
const candidate = pending.payload || {}
const changed = [
['imap', 'IMAP 配置'],
['pop3', 'POP3 配置'],
['policy', '邮箱策略']
['listener', 'SMTP 监听'],
['imap', 'IMAP 监听'],
['pop3', 'POP3 监听'],
['relay', 'SMTP 中继与登录验证'],
['policy', '邮件与账号策略']
].filter(([key]) => {
const before = active[key] || {}
const after = candidate[key] || {}
return Object.keys({ ...before, ...after }).some(field => JSON.stringify(before[field]) !== JSON.stringify(after[field]))
}).map(([, label]) => label)
const scope = pending.payload && loadedText.value
? (changed.length ? `本次候选涉及:${changed.join('、')}。` : '本次候选的协议端口和邮箱策略未变化。')
? (changed.length ? `本次候选涉及:${changed.join('、')}。` : '本次候选的邮件服务与安全策略未变化。')
: '候选内容尚未完整读取,请刷新后核对。'
return `${scope}IMAP、POP3 和邮箱策略共用一个配置分区,请逐页核对;应用时会一起生效,监听端口仍需重启后端。`
return `${scope}邮件服务页和安全策略页共用一个候选配置;应用时全部变更一起生效,监听端口变更仍需重启后端。`
})
let savedInput = null
const validationResult = ref(null)
@@ -294,7 +277,6 @@ export function usePage(pageKey = 'base') {
formErrors.value = {}
editorText.value = ''
loadedText.value = ''
smtpListener.value = null
secretValue.value = ''
confirmed.value = false
validationResult.value = null
@@ -305,16 +287,6 @@ export function usePage(pageKey = 'base') {
if (requestId !== sectionRequestId) return
notifyResponseError(response, '配置分区读取失败')
const publicConfig = response.data || {}
if (selectedSection.value === 'email') {
const smtpResponse = await http.get('/api/v1/config/smtp')
if (requestId !== sectionRequestId) return
notifyResponseError(smtpResponse, 'SMTP 监听配置读取失败')
// 不拼接不同代次的配置,也不在读取失败时显示旧端口。
if (smtpResponse.data?.meta?.generation !== publicConfig.meta?.generation) {
throw new Error('配置代次已变化,请刷新后查看最新端口')
}
smtpListener.value = smtpResponse.data?.listener || null
}
editorText.value = JSON.stringify(publicConfig, null, 2)
loadedText.value = editorText.value
if (section === 'base') {
@@ -519,7 +491,7 @@ export function usePage(pageKey = 'base') {
if (selectedSection.value === 'base') {
delete payload.databasePasswordStatus
}
if (selectedSection.value === 'smtp') {
if (apiSection() === 'mail') {
delete payload.relayPasswordStatus
if (payload.relay && 'password' in payload.relay) {
delete payload.relay.password
@@ -549,7 +521,7 @@ export function usePage(pageKey = 'base') {
secretChanges['database.password'] = { operation: 'replace', value: { plaintext: value } }
}
const relayPassword = formConfig.value?.relay?.password
if (relayPassword && selectedSection.value === 'smtp') {
if (relayPassword && selectedSection.value === 'mail') {
secretChanges['relay.password'] = { operation: 'replace', value: { plaintext: relayPassword } }
}
return {
@@ -737,7 +709,6 @@ export function usePage(pageKey = 'base') {
})
return {
mailPortSummary,
pendingScopeHint,
loading, availabilityError, working, status, stateLabel, stateTagType, sectionOptions: sections,
selectedSection, currentSection, sectionLoading, editorText, formConfig, formErrors, updateField, updateSecret,
@@ -7,7 +7,7 @@ import { provide } from 'vue'
import { usePage } from '../ConfigSettings.js'
import ConfigEditor from '../ConfigEditor/ConfigEditor.vue'
const page = usePage('email')
const page = usePage('mail')
provide('smail-config-page', page)
defineExpose({ beforeLeave: page.beforeLeave })
</script>
@@ -0,0 +1,3 @@
.global-security-policy {
min-width: 0;
}
@@ -0,0 +1 @@
export const globalSecurityPolicySection = 'security_policy'
@@ -0,0 +1,17 @@
<template>
<div class="global-security-policy">
<ConfigEditor />
</div>
</template>
<script setup>
import { provide } from 'vue'
import { usePage } from '../../ConfigSettings/ConfigSettings.js'
import ConfigEditor from '../../ConfigSettings/ConfigEditor/ConfigEditor.vue'
const page = usePage('security_policy')
provide('smail-config-page', page)
defineExpose({ beforeLeave: page.beforeLeave })
</script>
<style scoped src="./GlobalSecurityPolicy.css"></style>
@@ -12,8 +12,12 @@ export function usePage() {
const isSuperAdmin = computed(() => globalStatus.role === 'super_admin')
const supported = webAuthnSupported()
const webAuthnEnabled = computed(() => globalStatus.userInfos.webAuthnEnabled === true)
const canReadGlobalPolicy = computed(() => globalStatus.hasCapability('config.read'))
const sectionOptions = computed(() => {
const options = []
if (canReadGlobalPolicy.value) {
options.push({ value: 'security-policy', label: '安全策略' })
}
if (!isSuperAdmin.value) {
options.push({ value: 'password', label: lang.modify_pwd })
}
@@ -31,10 +35,11 @@ export function usePage() {
set: value => { globalStatus.securityActiveSection = value }
})
const selectSection = value => {
if (sectionOptions.value.some(item => item.value === value)) {
selectedSection.value = value
}
const globalSecurityPolicyPage = ref(null)
const selectSection = async value => {
if (!sectionOptions.value.some(item => item.value === value) || value === selectedSection.value) return
if (selectedSection.value === 'security-policy' && !await (globalSecurityPolicyPage.value?.beforeLeave?.() ?? true)) return
selectedSection.value = value
}
watch(sectionOptions, options => {
@@ -290,6 +295,7 @@ export function usePage() {
return {
lang, isSuperAdmin, supported, webAuthnEnabled, sectionOptions, selectedSection, selectSection,
globalSecurityPolicyPage,
registering, credentialsLoading, credentials, securityLoading,
securityQuestion, questionForm, recoveryConfigured, generatedCodes, externalEmails, externalLoading,
bindForm, ruleForm, rules, submit, registerCredential, renameCredential, revokeCredential,
@@ -9,6 +9,11 @@
/>
<div class="security-main">
<GlobalSecurityPolicy
v-if="selectedSection === 'security-policy'"
ref="globalSecurityPolicyPage"
/>
<section v-if="selectedSection === 'password' && !isSuperAdmin" class="security-section">
<div class="settings-header">
<h3>{{ lang.modify_pwd }}</h3>
@@ -95,9 +100,11 @@
<script setup>
import { usePage } from './SecuritySettings.js'
import SettingsSubmenu from '../SettingsSubmenu/SettingsSubmenu.vue'
import GlobalSecurityPolicy from './GlobalSecurityPolicy/GlobalSecurityPolicy.vue'
const {
lang, isSuperAdmin, supported, webAuthnEnabled, sectionOptions, selectedSection, selectSection,
globalSecurityPolicyPage,
registering, credentialsLoading, credentials, securityLoading,
securityQuestion, questionForm, recoveryConfigured, generatedCodes, externalEmails, externalLoading,
bindForm, ruleForm, rules, submit, registerCredential, renameCredential, revokeCredential,