Skip to main content
User guide

Accounts and permissions

Console account management, roles and permissions, password policy and sign-in lockout, session timeouts, the console IP allow list, one-time codes, third-party sign-in and the audit log.

The pages in the accounts and permissions group of Settings control who can sign in to the console and what they can do. For visitors signing in to protected sites, see Identity authentication.

Account management

Account management (账号管理) needs View accounts and roles (查看账号与角色); changes need Manage accounts (管理账号).

The list shows each account, its role, whether two-step verification is on, its Feishu link status, its state (normal, password change required, locked, disabled) and its last sign-in.

  • New account (新建账号): the user name is 3 to 32 letters, digits or ., _, -; choose a role and optionally a display name. The initial password is shown once and must be changed at first sign-in.
  • Account actions: view details, change role, reset password, reset two-step verification, unlock, disable or enable, delete, and link, change or unlink a Feishu account. A reset password is also shown only once.
  • Active sessions (在线会话) lists every signed-in session, and administrators can sign sessions out.

You cannot change your own role, and at least one enabled super administrator must remain.

Role management

Role management (角色管理) needs View accounts and roles to view and Manage roles (管理角色) to change. Roles and permissions are shown as a matrix. Write permissions include the matching read permission.

Built-in roles:

RoleDescription
Super administrator (超级管理员)Every permission; cannot be changed or deleted
Read-only (只读)A preset role that can be edited. Includes View security events, View protection policy, View system settings, View protection reports and View access and runtime logs

Permissions:

GroupPermissions
Security eventsView security events (查看防护事件); Query threat intelligence (查询威胁情报), which uses query quota
Protection policyView protection policy (查看防护策略); Modify protection policy (修改防护策略); Use AI triage (使用 AI 研判), which uses the daily triage budget
System settingsView system settings (查看系统设置); Modify system settings (修改系统设置); Upgrade software version (升级软件版本), console sessions only, never API tokens
Accounts and rolesView accounts and roles; Manage accounts; Manage roles
Audit logView audit log (查看操作审计)
Protection reportsView protection reports (查看防护报告); Generate protection reports (生成防护报告)
LogsView access and runtime logs (查看访问与运行日志); View raw logs (查看日志原文), unmasked, with every view audited

When creating a role, enter a name and description and tick the permissions. You cannot grant permissions you do not hold yourself. Roles still assigned to accounts cannot be deleted.

To separate auditors from administrators, create a role with only View audit log. Accounts with only that permission land on the audit log page after signing in.

Security

Security (安全) needs View system settings; changes need Modify system settings. Saved values apply to every session immediately and take precedence over environment variables.

SectionSettingRangeDefault
Data retentionDays to keep events180 to 3650180
Password policyMinimum length8 to 6412
Password policyMinimum character classes1 to 43
Password policyExpiry in days, 0 for never0 to 36590
Password policyRecent passwords that cannot be reused0 to 240
Sign-in lockoutConsecutive failures1 to 205
Sign-in lockoutLockout duration (minutes)1 to 144015
Session timeoutIdle timeout (minutes)5 to 72030
Session timeoutMaximum lifetime (hours)1 to 16812

Passwords can be at most 72 characters and must not contain the user name. Separately, after 5 failed sign-ins from one source IP, that IP must wait 15 minutes.

Console IP allow list: one IP or range per line, up to 256 entries; empty means no restriction. If the list would exclude your own IP, the page asks you to confirm, so that you do not lock yourself out. If the console sits behind a reverse proxy, set RSTWAF_CONSOLE_TRUSTED_PROXIES first; see Configuration reference.

Account and security

Every account can open Account and security (账号与安全) from the avatar menu at the top right to view its profile, change its password, turn one-time codes (TOTP, 6 digits) on or off, and view its sessions and sign out the others.

Turning on one-time codes takes two steps: confirm your password, then scan the QR code. If the deployment sets RSTWAF_REQUIRE_TOTP=on, every account must enrol and cannot turn it off.

Third-party sign-in

The console supports Feishu or Lark QR sign-in, which needs outbound access. For setup, see Sign-in and third-party sign-in.

Audit log

Audit log (操作审计) needs View audit log. It records every console and API action with the time, operator, account, role, object, source IP, endpoint, HTTP status, request parameters and changes, with secret fields masked.

The audit log is protected by a hash chain. The page shows the chain check result and the latest anchor, and the chain-tail hash is logged every hour. Verify integrity (校验完整性) checks the whole chain now. Filter by operator, action and result (success, denied, failed), and export as CSV or JSON; the export itself is also audited.

On this page