Skip to content

Accounts and roles Since v0.1 ​

The management API and web console run on their own HTTPS listener, never on the data plane. This page covers who may connect, who may sign in, and what each role may do.

Before you begin ​

  • Role: admin for accounts, tokens and trusted networks.
  • Create the first administrator on the node with waap admin init -user NAME. It works only while no account exists.

Set the management listener ​

The listener address is the -mgmt-addr option (default 127.0.0.1:9443). TLS is 1.2 or newer. Use -mgmt-cert and -mgmt-key for your own certificate. Without them the node creates a self-signed certificate in its data directory. Its SHA-256 fingerprint is logged at start and shown under System > Accounts and access > Management access. Compare it with what the browser shows.

Change the trusted networks ​

Only sources in the trusted networks may connect. Others are disconnected before TLS and counted in waap_management_refused_total.

text
1. Open System > Accounts and access > Management access.
2. Select Change trusted networks and enter the networks.
3. Select Preview changes, add a comment and select Apply.
sh
waap settings set management -m "office network" trusted_networks=10.0.0.0/8,192.0.2.7
yaml
management:
  trusted_networks: [10.0.0.0/8, 192.0.2.7]   # empty: loopback only

Lock-out protection

A change over the management interface that would remove the caller's own address is refused, whether it comes from a form, waap settings or a YAML apply. The local socket has no such check, so waap config apply on the node can always repair access.

Add an account ​

text
1. Open System > Accounts and access > Accounts.
2. Select Add an account.
3. Enter Name, Initial password, Role and, for a scoped account, the applications.
4. Save.
sh
waap admin add -user olga -role operator -apps shop

-apps limits an account to some applications. Without it the account covers every application. A password change or disabling the account ends its sessions.

Recover a lost password ​

Run on the node:

sh
waap admin password -user alice

It asks for a new password and ends the account's sessions.

Create an API token ​

Tokens are for scripts. The secret is shown once.

text
1. Open System > Accounts and access > API tokens.
2. Select Create an API token, enter Name, Role and Expires after.
3. Copy the secret.

Scripts can create tokens with POST /v1/tokens (administrators).

Send the token as Authorization: Bearer SECRET. The route list and the role each route needs are at GET /v1/openapi.yaml.

Roles ​

RoleMay
viewerRead configuration, events and status. Sees masked values when the application masks.
operatorApply configuration for its applications. Global operators also roll back and manage bans.
adminEverything, including accounts, tokens, SIEM, backup and high availability.

Settings reference ​

Management access ​

SettingWhat it doesDefaultAllowed valuesApplies in
Trusted networks (management.trusted_networks)Sources that may connect to the management listener.empty (loopback only)networks and addressesadmin
-mgmt-addrListener address.127.0.0.1:9443host:port, empty to disablenode option
-mgmt-cert, -mgmt-keyYour TLS certificate and key.self-signed in the data directoryPEM filesnode option

Passwords and sessions ​

RuleValue
Password length12 to 256 characters, stored with argon2id
Failed sign-ins5 for an account, or from one source, within 15 minutes lock further attempts for the rest of the window
Session idle limit15 minutes
Session length12 hours
Sessions end alsoon a password change and when the account is disabled

Troubleshooting ​

The console does not load, and the browser resets the connection ​

  • Cause: your address is not in the trusted networks.
  • Check: waap_management_refused_total on the node grows.
  • Fix: on the node, waap settings set management trusted_networks=....

Sign-in is refused after several attempts ​

  • Cause: five failures lock further attempts for the rest of the 15-minute window.
  • Fix: wait, or reset the password on the node with waap admin password.