Edgeweir
System

Account and sign-in

The console's only operator account: setup, sign-in, sessions, account security, personal settings, console navigation and account recovery.

Account

The console has one account, created by the setup wizard (/setup, Create your account).

ItemDescription
Setup fieldsSetup token (the one-time token printed in the console log), Name (1–100 characters), Email (the sign-in email), Password (12–128 characters). For the steps, see Quick start
Other accountsSign-up is closed; the console has no user management and no way to add a second account. The view-only demo account is switched in System settings → Demo account and is not a second operator account
Name and emailThe console offers no way to change them
PasswordChanged in Account security; the web UI has no password recovery or reset. A forgotten password is reset on the server, see Account recovery
APIAccessKeys (prefix ewk_) call /api/v1 as this account; create them in Personal settings

Sign-in

Page: /login.

MethodDescription
PasswordEnter Email and Password, then click Sign in
Two-factor authenticationWith TOTP enabled, a correct password leads to Two-factor authentication: enter the 6-digit code, or click Use a backup code and enter a backup code (Use the authenticator switches back, Back to sign in returns to the first step). The step is valid for 10 minutes; 5 wrong codes in one step require signing in again, and 10 failed verifications in a row lock two-factor authentication for 15 minutes
PasskeyClick Sign in with a passkey; no two-factor step follows. Hidden in browsers without WebAuthn
Demo accountWith the demo account on, Sign in to the demo appears
ItemDescription
RedirectAfter sign-in, the console returns to the page opened before, otherwise to Overview
Sign-in rate limitSign-in, two-factor authentication (enabling and disabling it under Security included), and password change: 3 attempts per 10 seconds per client IP, active in production (NODE_ENV=production). For how the client IP is determined, see Trusted proxies and client IP
Login IP allow listOnce set, only addresses on the list may sign in and use sessions, see Login IP allow list
AuditSuccessful (auth.sign_in, with the sign-in method) and failed (auth.sign_in_failed) sign-ins are written to the audit log

Sessions

ItemDescription
Lifetime7 days; extended at most once every 24 hours while in use (better-auth defaults)
Sign outThe user menu in the top bar → Log out
Other devicesThe console does not list sessions; changing the password signs out the sessions on other devices, and account recovery signs out all sessions

Account security

Page: user menu → Security (/security, titled Account security).

Password

ItemDescription
ChangeEnter Current password, New password, and Confirm new password, then click Change password
Length12–128 characters
Other sessionsSigned out after the change

Two-factor authentication (TOTP)

  1. Under Two-factor authentication (TOTP), enter Current password and click Enable.
  2. Scan the QR code with an authenticator, or enter the Secret key manually.
  3. Enter the 6-digit Code and click Verify.
  4. Store the Backup codes (shown once).
ItemDescription
StatusOn / Off next to the card title
TOTP parameters6 digits, 30 seconds, issuer Edgeweir
Backup codes10 codes, format xxxxx-xxxxx, each usable once
New backup codesDisable and enable two-factor authentication again
DisableEnter Current password and click Disable

Passkeys

ItemDescription
AddEnter a Name (optional, at most 64 characters), click Add passkey, and follow the browser prompt. The button is disabled in browsers without WebAuthn
DeleteDelete from the list, with confirmation
BindingPasskeys are bound to the host name of EDGEWEIR_PUBLIC_URL; after the console host name changes, registered passkeys stop working

Password changes, two-factor enable and disable, and passkey add and delete are written to the audit log (account.*).

Connected apps

MCP clients you authorized: name, client host, Read only or Read and write, last use. Revoke (confirmed) deletes the grant and every token, audited as oauth.revoke. See MCP.

Personal settings

Page: user menu → Personal settings (/settings).

CardContent
PreferencesLanguage (简体中文 / English) and Theme (Light / Dark / System), stored in the current browser
Access keysCreate, edit and revoke AccessKeys, see the tables below
AccessKey fieldValuesDescription
Name1–64 charactersChangeable later under Edit key
ScopeRead only / Read and write, default read and writeRead-only keys call GET procedures and rules.validate only; fixed after creation
Requests per minute1–100000, default 600; empty for no limitAbove it /api/v1 returns 429 API_KEY_RATE_LIMITED ("Too many requests with this access key; try again in N s"); changeable under Edit key
ItemDescription
KeyStarts with ewk_, shown once at creation
ListEach row shows the name, scope, requests per minute ("N/min" or "No rate limit"), Revoked and Last used
Session requiredCreated and edited only in a signed-in console; calls with an AccessKey return 403 ACCESS_KEY_SESSION_REQUIRED ("Sign in to create or change an access key")
Auditapi_key.create, api_key.update, api_key.revoke

Request header, scopes and rate limits: API overview.

Console navigation

New site at the top of the sidebar opens the new-site form; without any node it is Add node and opens the add-node dialog. Collapse sidebar at the bottom folds the sidebar into an icon rail.

GroupItemPathContent
SitesOverview/overviewThe home page after sign-in, see Overview; shows the number of Needs attention items beside it
SitesSites/sitesSite list and details, see Site management. The Sites | L4 apps switch above the list moves to the L4 app list (/l4), see L4 forwarding
SitesCertificates/certificatesCertificates and DNS credentials, see HTTPS and certificates
SitesPurge & prefetch/purgeURL, directory and whole-site purges, URL prefetch and tasks, see Origins and cache
Access controlGlobal rules/rulesRules for every site, see Rules, IP lists, and GeoIP
Access controlIP lists & bans/ip-lists, /bans, /greylistThe IP lists | Bans | Greylist switch at the top moves between the three lists: IP lists in Rules, IP lists, and GeoIP, bans and the greylist in Bans. /bans?site=<site ID> shows one site's bans
Access controlProtection settings/protectionGlobal Under Attack, ban settings, CC template, connection limits and GeoIP databases, see Protection settings
InfrastructureClusters & nodes/clustersClusters, node groups, nodes, revisions, configuration canary, node upgrades, the cluster's DNS binding and scheduling, see Clusters and nodes. Clusters | Regions moves to regions (/clusters?view=regions), see Regions
InfrastructureDNS steering/dnsDNS provider accounts, cluster bindings and mass removal protection, see DNS steering
SystemAlerts/alertsAlert channels, SMTP, subscriptions, recent alerts and alert rules, see Alerts
SystemAudit log/auditSee Audit log
SystemSystem settings/systemTabs General, Monitoring (?tab=probes, see Regional probes) and Service accounts (?tab=service-accounts, see Service accounts), see System settings

A click anywhere on a row or card of a list opens it; rows that link to a page open in a new tab with a middle click or ⌘ / Ctrl+click. A row's other actions sit under ⋯ at its end. At phone width, Open menu in the top bar opens the sidebar as a drawer.

Top bar

ElementDescription
Edgeweir logoOpens Overview
Search field"Search or run a command…", opens the command menu
Language简体中文 / English
Theme toggleLight / dark
AlertsOpens /alerts; with items needing attention it carries a red dot and reads "Needs attention: N" on hover
User menuAvatar, name and role (Administrator; View-only demo for the demo account); a click opens the user menu

User menu

ItemDescription
HeaderName and email (View-only demo for the demo account)
Security/security, see Account security
Personal settings/settings, see Personal settings
Language简体中文 / English
ThemeLight / Dark / System
Log outEnds the current session and returns to the sign-in page

Command menu

⌘K / Ctrl+K or the search field in the top bar opens the command menu; arrow keys select, Enter runs, Esc closes.

GroupBehavior
SitesType a site name or domain to search sites, Enter opens one; with nothing typed, starred and recently visited sites are listed
Site actionsThe first 3 matching sites each get "Under Attack: (site)" (toggles the site's Under Attack after a confirmation) and "Purge cache: (site)" (creates a whole-site purge task after a confirmation)
TagsMatching tags "Tag: (tag)", at most 4, open the site list filtered by the tag
NavigationOpens any page, including L4 apps, Security, Personal settings, the Monitoring tab of the system settings, and Regions and Service accounts on the pages they live on
ActionsNew site, Add node, Request certificate (opens the request dialog), Ban an IP… (opens the ban dialog, with the site filled in on a site's pages), Purge URLs… (opens Purge & prefetch, with the site filled in on a site's pages), Global Under Attack (toggles it after a confirmation), Switch language, Toggle dark mode

Other paths

PathDescription
/No page: redirects to /setup before setup, to /overview when signed in, otherwise to /login
/loginSign-in
/setupSetup wizard; on completion it signs in and opens /clusters?enroll=true (the add-node dialog), or /login when that sign-in fails; after setup the path redirects to /login
/regionsRedirects to /clusters?view=regions; /regions?tab=probes to /system?tab=probes
/service-accountsRedirects to /system?tab=service-accounts
/admin/<page>Old paths, redirected to the page of the same name (/admin/settings to /system); unknown pages to /overview
Anything elseA not-found page inside the console

Troubleshooting

SymptomCauseAction
Invalid codeThe two-factor code is wrongCheck the time on the authenticator device and retry, or use a backup code
Verification expired, sign in againThe two-factor step took longer than 10 minutesSign in again
Too many requests; try again laterSign-in rate limit reached; or 5 wrong codes in one two-factor step; or 10 failed verifications in a row, which lock two-factor authentication for 15 minutesAfter the rate limit, retry after 10 seconds; after 5 wrong codes, sign in again; when locked, retry after 15 minutes
This IP is not on the login allow listThe current address is outside the login IP allow listSign in from a network on the list; if the list no longer holds any of your addresses, clear it on the server, see Account recovery
Incorrect passwordCurrent password is wrong when changing the password or enabling or disabling two-factor authenticationEnter the current password again
A passkey no longer signs inThe console host name changedSign in with the password, delete the old passkey, and add it again
Forgotten passwordThe web UI has no password recoveryReset the password on the server, see Account recovery
Authenticator device and backup codes both lostTwo-factor authentication cannot be completedTurn two-factor authentication off on the server, see Account recovery; enable it again after signing in
Two-factor authentication always fails after BETTER_AUTH_SECRET changedTOTP secrets and backup codes are encrypted with the previous secret, which the new one cannot decryptRestore the previous BETTER_AUTH_SECRET; if it is lost, turn two-factor authentication off on the server (see Account recovery) and enable it again after signing in

Account recovery

When nobody can sign in, run recover.js on the server that runs the console: it resets the password of the only account, turns two-factor authentication off, clears the login IP allow list, or several of these at once. The command does not go through the web UI; it reads the console container's environment and changes the database directly.

  1. Run the command with the options you need (add --clear-login-allowlist to clear the allow list):

    docker compose exec console node dist/server/recover.js --reset-password --disable-two-factor

    On 宝塔 / aaPanel deployments the container is named edgeweir-console:

    docker exec -it edgeweir-console node dist/server/recover.js --reset-password --disable-two-factor
  2. The command prints the account's name and email. With --reset-password, enter the new password twice when prompted (12–128 characters); it is not shown while typing.

  3. Once the command prints what it changed, sign in with the account email, using the new password if you reset it.

  4. If two-factor authentication was turned off, enable it again in Account security and keep the new backup codes.

ItemDescription
SessionsAll sessions of the account are signed out; sign-ins waiting for their two-factor code expire
UnchangedName, email, passkeys, and AccessKeys. If someone else may have used the account, review them after signing in and delete passkeys and AccessKeys you do not recognize
AuditWritten to the audit log: account.recover, actor System (recover)

For the options, reading the password from a file, the output, and exit codes, see Command line.

Edit on GitHub

On this page