Skip to content

Operations

Day-to-day running: upgrades, backups, keys, logs and health.

CI runs on GitHub-hosted runners. A private fork can run it on a self-hosted runner instead; setup and disk limits are in CI and branch protection.

Upgrading

Docker Compose:

cd Eve-Nexus
git pull
docker compose build nexus
docker compose up -d

The release that runs cloudflared in its own container reuses 172.31.250.0/24 for the edge network. An install that still has the old <project>_nexus network on that subnet fails docker compose up with Pool overlaps with other one on this address space. Run docker compose down, then docker network rm <project>_nexus, then docker compose up -d. With the project name in this compose file, that network is eve-nexus_nexus. The public hostname's service must be http://nexus:8080; see Installation, Option A.

Built from source:

cd Eve-Nexus
git pull
cd web && npm install && npm run build && cd ..
cargo build --release -p core-api
# stop the service, replace the binary, start it again
sudo systemctl stop eve-nexus
sudo cp target/release/core-api /opt/eve-nexus/
sudo systemctl start eve-nexus

Database changes apply automatically when the new version starts ("migrations verified" in the log). Before every upgrade:

  1. Take a database backup (below).
  2. Read the release notes for new settings.

To roll back, restore the backup taken before the upgrade and run the previous binary. Newer database changes are not undone automatically, so a backup is the only way back.

Never edit files in migrations/. Nexus checks each one byte-for-byte against what it has already applied. On Windows, make sure Git doesn't rewrite line endings (the repository's .gitattributes forces LF; keep it). See Troubleshooting → migration was modified.

Backups

Two things must be backed up, and separately:

What How often Where
The PostgreSQL database Daily, plus before upgrades Off the server
VAULT_MASTER_KEYS (and the rest of .env) Once, then whenever it changes Password manager

A database backup without the vault key can't decrypt stored tokens. Keeping them apart means a stolen backup alone is useless to an attacker.

Back up (Docker):

docker exec nexus-pg pg_dump -U nexus -Fc nexus > nexus-$(date +%F).dump

Restore into an empty database, with Nexus stopped:

docker exec -i nexus-pg pg_restore -U nexus -d nexus --clean --if-exists < nexus-2026-12-03.dump

Test a restore at least once, on a spare database.

Rotating the vault key

Rotate when someone who had the key leaves, or on a schedule.

  1. Generate a new key (Installation, step 4).
  2. Add it with a higher version and keep the old one: VAULT_MASTER_KEYS=1:<old>,2:<new>.
  3. Restart. New and refreshed tokens are encrypted with key 2. Existing tokens still decrypt with key 1.
  4. Keep key 1 listed while tokens move over. A token is re-encrypted with key 2 whenever it is refreshed, and the daily refresh sweep refreshes every usable token, so within a day or two every usable token is on key 2. Check with SELECT key_version, count(*) FROM esi_tokens WHERE status IN ('valid','missing_scopes') GROUP BY 1; Once that shows only version 2, key 1 can go. Revoked tokens may stay on key 1; they are unusable anyway.

Also note: - The built-in tunnel's tokens move to the new key when Nexus starts (the log says "Tunnel tokens re-sealed"). - Anyone in the middle of signing in when you restart has to start again (their sign-in cookie was protected by the old key). Existing sessions are not affected. - Lost the key entirely? Set a new 1:<new> key. Every stored token becomes unusable, so pilots must sign in and re-link alts. Their accounts and characters are kept.

Rotating the EVE secret

  1. On developers.eveonline.com, open your application and regenerate the Secret Key.
  2. Update EVE_CLIENT_SECRET and restart. Sign-ins started before the restart may fail once.

Logs

Nexus writes logs to standard output. With systemd, read them with journalctl -u eve-nexus; with NSSM, they go to the file you configured.

Level Meaning
INFO Normal events: startup, static data imports, Cloudflare range refreshes
WARN Something degraded but Nexus kept going: ESI unreachable, an import retried, a lookup failed
ERROR A request failed because of a server-side problem (usually the database)

More detail for a support request:

RUST_LOG=core_api=debug,esi_engine=debug,tower_http=debug,sqlx=warn

Set it back afterwards; debug logs are large. Logs never contain secrets or tokens, but they do contain character IDs and IP addresses. Trim those if you post logs publicly (Getting Help).

Health checks

Check Who can see it Use it for
GET /api/v1/health Anyone Uptime monitors and load balancers. 200 {"status":"ok"} when the database is reachable, 503 when not. Reveals nothing else.
Admin → System Health Superadmins and admin.system.view Database, static data release, public URL and callback, proxy/IP detection and configuration warnings

Point an uptime monitor (UptimeRobot, Uptime Kuma, Healthchecks…) at https://auth.example.com/api/v1/health.

Background behaviour

What Nexus does on its own, so it doesn't surprise you in the logs:

Task When
Import CCP's static data (SDE): names, groups, map, and the skills each item needs At startup, then every 6 hours if CCP published a new release; 15 minutes after a failed import
Delete expired sessions Hourly (sessions last 14 days)
Refresh Cloudflare IP ranges Daily, only with TRUST_CLOUDFLARE_IPS=true
Look up character names, corps, alliances When a page needs them, cached for 7 days
Re-check every character's corporation / alliance, and update account States Each character every AFFILIATION_INTERVAL_MINUTES (default 60; sweep every 5 minutes, 1000 characters per ESI call). CCP caches this data for an hour, so a pilot who leaves the corporation loses access within the interval plus up to an hour, not instantly. System Health shows the worst case.
Refresh ESI tokens Each token daily, up to 100 per sweep, which also moves it onto the newest vault key. Access tokens are kept in memory until a minute before they expire, so jobs don't refresh a token on every ESI call. A token CCP rejects is marked revoked; a transferred character's is marked owner changed (both go to the audit log). The pilot signs in with that character again to fix it.
Read contact lists for standings-based States Every 30 minutes per corp / alliance named in a standing_min rule
Retry a failed corporation lookup from sign-in Within seconds, with backoff
Re-check every pilot's State Seconds after an admin changes a State's rules or priority, or deletes a State
Sync Discord roles and nicknames Seconds after a linked pilot's State or groups change, or an admin changes a role mapping; every linked account re-checked hourly (only with Discord set up)
Read each character's page data (skills, location, wallet, assets, contracts, mail, kills, contacts, public record) Per section on its own interval: location every 15 minutes, skills / wallet / contracts / mail / kills hourly, assets and contacts every 6 hours, public record daily. Only for characters whose token grants that category; up to 25 characters per section per sweep (every 5 minutes). Sections whose category was switched off or whose token was lost are deleted at the next sweep.
Read connected corporation wallets (balances of the seven divisions and their journal) Each connected corporation hourly, up to 20 per sweep (every 5 minutes). A corporation whose character left it, lost the in-game role or lost its login is skipped, and the reason is shown on the Corp Wallets page. Journal entries are kept 180 days
Background checks (see Background checks) Every 30 minutes over every account, reading only rows stored since the last run; Admin → Background Checks → Run now starts one at once. Public data on outside characters (corporation, history) is looked up in small batches every 5 minutes. The alliance blacklist sheet is read daily (hourly retries after a failure). The Discord digest goes out daily or weekly, if set
Read CEOs, alliance executors and director roles for the org tree Every unit hourly (sweep every 5 minutes); queued at once after an admin adds an alliance
Clean up the job queue Every minute: release jobs whose worker crashed; delete failed jobs after 7 days

All of these run as jobs in the background_jobs table. A job that keeps failing ends up with failed_at set and the reason in last_error:

SELECT queue, attempts, failed_at, last_error FROM background_jobs ORDER BY id DESC LIMIT 20;

Standings-based States need a contacts scope. The contact list of a corporation is read with the token of any member who granted esi-corporations.read_contacts.v1 (for an alliance: esi-alliances.read_contacts.v1). Turn on Corp & alliance contacts under Admin → Organisation, or have one member grant it. Until then the rule can't match, and contact_sync_status.last_error says why.

Sign-in rate limit

Each client IP may make 30 requests a minute to /sso/*, /discord/*, and the OIDC authorize, token, and revocation endpoints (a sign-in takes two). More get 429 Too Many Requests for the rest of the minute, and the log says "Sign-in rate limit hit". This is always on, whatever sits in front of Nexus. Behind a proxy, the limit only works per pilot if TRUSTED_PROXIES is right: otherwise every pilot appears to come from the proxy's address and they share one allowance.

  • What sign-in asks for. Every sign-in first shows one screen listing the categories the org asks for (Admin → Organisation → What Nexus asks pilots for), what each reads and who sees it. I agree records the agreement (scopes, policy version, time, IP in scope_consents) and asks EVE for all of them. Scopes are not set per State.
  • Restricting afterwards. On Characters, each character has a switch per category (Identity & corporation roles is always on). Switching one off writes a scope_restrictions row (time, IP) and consent.category_restricted to the audit log; Nexus stops using those scopes at once, deletes the stored rows, and deletes findings, the summary and alert text built from that category. Leaders no longer see that data. It stays off on later sign-ins, even though EVE's own grant still lists the scope (esi_tokens.ccp_scopes). Switching back on restores it straight away if EVE still grants it; otherwise the pilot signs in once more. Leaders see each member's switched-off categories in the member list of their home page. Switching a category off does not mark the token invalid. Characters lists organisation scopes EVE has not granted, which need another sign-in. Pilots can remove Nexus entirely on CCP's third-party applications page.
  • What is kept. The character page stores summaries, not copies: totals, counts and the latest few items (for mail: the 5 newest subjects and senders, never bodies; for assets: counts and the 5 biggest places; for wallet: the balance only), one row per character and section in character_snapshots.
  • Retention. A section is deleted the moment its category is switched off, and at the next sweep (within 5 minutes) after the token is lost or the scope disappears. Findings built from that section are deleted with it. Deleting the account or character deletes all of it. A pilot who leaves stays readable only by leaders of the units their main is now in, because visibility follows the main; there is no time limit yet for data of pilots who have left but keep their token.
  • Erasure requests. Before the SQL delete, revoke that pilot's ESI grants (Admin → Emergency, or POST /api/v1/admin/users/<account id>/revoke-esi with the confirmation phrase). The delete destroys the ciphertext, and CCP cannot be told afterwards. Banning a pilot does the same revoke before the local token is wiped. Deleting an account removes its characters, tokens, sessions, consent records and group memberships (DELETE FROM accounts WHERE id = '<account id>';). The audit log is append-only and is not deleted: the link from its entries to the account is cleared, but entries keep the IDs they were about, and some keep a name in their details (for example a character added to a group). That is the policy: audit entries are kept and pseudonymised, not deleted, because they are the record of who had access to what. Tell the pilot so.

Organisation (coalition, alliances, corporations)

Admin → Organisation (needs admin.org.manage) sets the shape of the site once: a coalition, one alliance, or one corporation. A coalition then gets member alliances, added by exact name. Corporation pages are created by themselves as soon as a pilot whose main is in a member alliance signs in or is re-checked, and move if the corp changes alliance.

Who Sees Leads
A pilot Their main's corporation, its alliance and the coalition home Nothing
Corp CEO and directors As above Their corporation page and its members
Executor corp's CEO and directors As above Their alliance and every corp in it
Members of a page's leadership group As above That page and everything below it
Superadmins Everything Everything

Pilots never see another alliance's or corporation's pages; the server answers 404 for them. CEOs and executors are read from EVE's public data hourly (or with Refresh from EVE). Directors are recognised only for pilots who granted esi-characters.read_corporation_roles.v1; a director whose roles haven't been re-read for 26 hours stops counting. Every change on the page is written to the audit log (org.*).

Account overview

Every account has an overview (/account/<account id>). Links to a character (/pilot/<character id>, from Characters, member lists or Admin → Users) open it with that character picked. Across the top: the main, and totals for the whole account (skill points, wallets, estimated asset value, ships). Below that, a character switcher ("All characters" or one) and these tabs:

Tab Shows
Overview All characters in one table (SP, wallet, assets, ship, location, last login), or one character's page (below)
Skills Total and unallocated SP, an SP graph (one point a day), the training queue, and a chart of where the SP is (trained, or still in the queue) with each skill group as a bar you can open. Picking a skill shows what it needs, which skills it leads to and which ships need it, marked by whether this pilot can already train or fly them
Clones Home station, last clone jump, active implants, jump clones with their implants
Assets Value by location; open a location, then any ship or container inside it. Search by item, name or group; Ships only lists every ship
Wallet Balance and 30-day in/out per character; a Breakdown (the default) of ISK in and out per day and by entry type, for 7, 30 or 90 days or everything kept, with each type's biggest counterparties; the journal (search, filter by entry type); market transactions; Who ISK moved to and from, with the account's own characters marked
Market Open buy and sell orders (with what sell orders are worth and what's held in buy escrow), and finished orders from the last 90 days
Contracts Contracts issued or received (EVE lists about the last 30 days): type, title, who to whom, price or reward, status. Filter outstanding or finished, search by title
Mail Mail headers (sender, subject, recipients). Opening a mail reads its text from EVE at that moment; the text is never stored. Every mail a leader or superadmin opens is written to the audit log (account.mail_read)
Notifications In-game notifications (structure alerts, war declarations, corp applications and so on), filtered by type, with the details EVE sends
Contacts The contact list with standings, watched and blocked marks, and NPC standings (factions, NPC corporations, agents)
Kills Kills and losses with ship, victim, system and an estimated value (CCP's average prices), with totals
History Employment history of every character, character age and security status (public data, read daily)

Lists are 50 a page. Asset values use CCP's average market prices, refreshed daily: an estimate, not what the items would sell for. Blueprint copies count as zero.

What is collected, and how long it is kept. The character sweep reads each shared category on its own interval and keeps:

  • skills, the queue, jump clones and assets: replaced on every read (assets every 6 hours);
  • the wallet journal, market transactions and the daily SP points: added to, and deleted after 180 days. EVE itself only returns the last 30 days of journal, so history builds up from the day a pilot shares their wallet.
  • mail headers and notifications: added to, deleted after 180 days. Mail text is never stored;
  • contracts and market orders: updated on every read; finished ones are deleted after 180 days;
  • contacts and NPC standings: replaced on every read;
  • killmails: which ones each character was on (deleted with the category), and the killmails themselves, which are public and kept. Up to 25 new killmails are read per character per run.

When a pilot switches a category off, its rows are deleted at once. When a token is lost or stops granting the scopes, they go at the next sweep (within about 5 minutes).

Who sees it: the owner; leaders of the unit the owner's main belongs to, or any unit above it; superadmins. Anyone else gets 404. Each tab a leader or superadmin opens is written to the audit log as account.viewed (with the tab), at most once per tab every 10 minutes. Every mail they open is logged separately as account.mail_read, every time:

SELECT created_at, actor_account_id, target_id, metadata->>'tab', metadata->>'as_leader_of'
FROM audit_logs WHERE action = 'account.viewed' ORDER BY id DESC LIMIT 20;

Character pages

Each character also has a page, shown on the account overview's Overview tab when that character is picked: portrait, corporation and alliance, age, security status, corporation history, and one card per category with what it is and who sees it. A card whose category is switched off says so and shows nothing, even if data was collected before. Pilots can press Refresh now (at most once a minute).

Leaders of the unit a pilot's main belongs to, or of any unit above it, can open the same page read-only for any of that pilot's characters: this is the background check. Each view is written to the audit log as character.profile_viewed with the unit the leader acted for. Anyone else gets 404.

SELECT created_at, actor_account_id, target_id, metadata->>'as_leader_of'
FROM audit_logs WHERE action = 'character.profile_viewed' ORDER BY id DESC LIMIT 20;

Members and compliance

Members (under Management) appears for anyone who leads a page. Pick a page you lead to see every pilot whose main is in it or below it, one row per pilot with their characters folded underneath. Each row lists its checks:

Check Kind Means
No working token Problem A character's token was revoked, changed owner, or never existed
Missing scopes — Not raised from a State. Scopes are the categories on Admin → Organisation. A token stays valid unless EVE revokes it or the character changes owner. Characters lists organisation scopes EVE has not granted.
Not a member State Problem The pilot has no State, or only the default one
Characters outside Note An alt is in a corporation / alliance outside the organisation
Switched off data Note The pilot switched off categories (which ones)
Inactive 30+ days Note No character has logged in for 30 days (needs the location category)
Discord Note Discord isn't linked, or the pilot left the server (only with Discord set up)

Registration by corporation compares the characters registered in Nexus with the corporation's in-game member count (EVE's public data, read hourly).

Export CSV downloads the list; each export is written to the audit log as leadership.members_exported. Up to 5,000 pilots are listed per page; pick a lower page for bigger groups. Leaders of a sibling alliance or corporation can't open each other's lists (404).

Filters. Chips above the list narrow it to pilots with problems, notes, open report items or a blacklist mark. A red shield on a row means its background-check report has High or Medium items; it opens the report.

Background checks, reports and HR

Nexus reads what members share (wallet, contracts, contacts, mail headers, kills, corporation history) in the background and writes a report per account in plain sentences, for example that a pilot is likely an unregistered alt, or dealt with a hostile corporation. Each item says what to ask the pilot and what would clear it. The report is on the account page's Report tab.

  • Who can see a report: superadmins, holders of hr.audit.view, and leaders of a page the pilot is in who do not outrank that pilot. A non-superadmin cannot open a superadmin's report. Never the pilot themself (the same 404 as a missing account). Each view is written to the audit log. Another account named in a report is hidden unless the viewer could open that report.
  • Severity: High items are "likely" or "very likely", Medium "possibly". Weaker signals stay in Raw findings at the bottom. HR or a superadmin can mark an item Expected (a known alt, an agreed deal) or Dismiss it; that status is global, and the previous status and note are in the audit log. Restore it from Raw findings. Applicants are checked on everything; members on a recent window, from 1 to 365 days.
  • Mail: only who wrote to whom and when. Subjects and bodies are never read by the checks.
  • Retention: a finding from data the pilot still shares is kept for the days set under Thresholds (default 180, at most 365) after it was last seen, then deleted, along with lookups and alert rows that nothing still cites. Switching a category off deletes that category's findings immediately.

Admin → Background Checks (reporter.manage): run now; test; alerts for Medium items and new registrations; daily or weekly digest; the manual hostile and friendly lists (standings, our own units and both blacklists are added automatically); thresholds; and the report rules (turn a rule off or change its score). A friendly entry that overrides a blacklist hit is called out on the lists page. The Discord webhook and the alliance sheet link are superadmin-only. Alerts post the pilot's name and a link, not the finding: evidence, blacklist reasons, mail and conclusions stay in Nexus. Findings are kept 7 to 365 days after they were last seen (180 by default).

Blacklist (blacklist.manage): blacklisting an account, or adding a character to the Nexus blacklist, blocks that character from signing in, ends the account's sessions, revokes its ESI tokens and drops the account to the default State. Corporation entries, alliance entries and the alliance sheet do not block sign-in; they show up in reports. You cannot blacklist a leader you do not outrank. Blacklist a member from their Report tab, or add any character, corporation or alliance by name on Admin → Blacklist. Reasons can be restricted to blacklist.view_restricted or blacklist.view_ultra_restricted, and you cannot change or remove an entry above your level. Entries from the alliance sheet are read-only in Nexus.

HR → HR Audit Queue (hr.applications.act): everyone signed in who isn't in a member State yet. The report columns need hr.audit.view as well. Claim an applicant; only the person who claimed them can approve, reject or release, and a second claim is rejected. Notes are kept as a history, not overwritten. This records the decision; membership itself still follows the State rules. Every action, and each look at the queue, is audit-logged.

Corporation wallets

Corp Wallets (under Management) appears for anyone who leads a page. A corporation page shows its own wallet; an alliance or coalition page (alliances have no wallet in EVE) adds up every connected corporation below it, and you can pick one corporation to see it on its own. Views: a Breakdown of ISK in and out per day and by entry type, the Journal (by division, search, entry type) and Who ISK moved to and from.

Connecting a wallet. A leader of the corporation (or of a page above it) clicks Connect wallet and signs in with EVE once, as a character in that corporation with the Accountant, Junior Accountant or Director role. That sign-in asks for one extra scope, esi-wallet.read_corporation_wallets.v1; ordinary pilots are never asked for it. The character is added to the leader's account if it isn't already, and later sign-ins on that account keep asking for the scope so it isn't lost. Your EVE application must allow this scope (see Installation), or EVE refuses the connect sign-in.

  • Only leaders of the corporation and of the pages above it can see its wallet (404 for everyone else), as on Members.
  • Connecting replaces any earlier character for that corporation. Disconnect stops the reads and deletes the stored balances and journal. Both are written to the audit log (corp_wallet.connected, corp_wallet.disconnected).
  • If the character loses the role, leaves the corporation or its login stops working, the corporation card says so. Connect again with another character.

Home pages

Home Pages shows each pilot their corporation, alliance and coalition as tabs. Each page has an about text and an updates feed (pinned first, then newest). Leaders of a page, or of any page above it, see New update, can edit, pin and delete updates and edit the about text; leaders also see the pages below theirs and the member list. Updates use a small Markdown subset (bold, italic, links, lists, headings, quotes, code); raw HTML is never rendered, and links only go to http(s), mailto or this site. Every change is audit-logged (home.*).

OIDC clients (Sign in with Nexus)

Another app (a wiki, a forum, a mapper) can send pilots here instead of running its own EVE application. You need admin.oidc.manage (superadmins have it). Open Admin → OIDC Clients.

  1. New client. Name it, pick confidential (it has a secret) or public (PKCE only).
  2. Paste the app's redirect URL, one per line. It must match exactly. https only, except http://localhost and http://127.0.0.1 for a dev machine. No wildcards.
  3. Tick the scopes the app may ask for. openid is always on. Refresh tokens stay off unless you turn them on and include offline_access.
  4. Pick which States or groups may sign in. With none selected, only superadmins can. That is the default so a new client is not open to everyone.
  5. Save. Copy the client id and, for a confidential client, the secret. The secret is shown once. Rotating it replaces the old one immediately and signs pilots out of that app, unless you tick Keep current sign-ins.
  6. Pilots see a consent screen the first time, and again if the app asks for more. They can revoke an app on Connected Services.

Example, a generic OIDC client (wiki at https://wiki.example.com):

Setting in the app Value
Issuer / discovery https://auth.example.com
Client ID the id from the registry (nxc_…)
Client secret the secret shown once, or empty for a public client
Redirect URI https://wiki.example.com/oauth/callback
Scopes openid profile groups
PKCE required, method S256

Use your own PUBLIC_URL as the issuer. Discovery (PUBLIC_URL/.well-known/openid-configuration) lists the authorize, token, userinfo, JWKS, revocation, and end-session addresses. ID tokens are ES256; validate them against PUBLIC_URL/oauth/jwks (iss is PUBLIC_URL, aud is the client id).

sub is the Nexus account, not a character id. name is the main character. groups and state are slugs. A pilot who loses the State or group, or who is blacklisted, cannot get a new token.

Access control

States, their rules and permissions, and Groups are managed on Admin → Access Control (needs admin.states.manage). Which ESI scopes sign-in asks for is set on Admin → Organisation (the category list), not on a State. Rule targets are found by their exact in-game name (for example Example Alliance., with the dot). Every change is written to the audit log with who made it and from which IP, and pilots move to their new State within seconds.

Pilots join groups on Groups & SIGs:

Kind How pilots get in
Open Join directly, if their State is eligible
On request Ask; a group manager approves or rejects in Manage
Invite only Hidden from non-members; managers add pilots by character name

Only admins (admin.states.manage) make or unmake group managers. groups.members.manage can add and remove members of any group; a group manager can do that for their own group. Neither can grant a group that carries a permission they do not hold. Only a superadmin can change the membership of a superadmin, or of a group that grants admin.states.manage.

A member State has a corporation or alliance rule. Guest (the default) and Blue (a State whose rules are only standings or a faction) are non-member States.

Membership follows three rules:

  • A manual add (from Manage, or from the account panel, including "add anyway" when the pilot's State is not eligible) stays when the pilot moves from one member State to another, and when someone edits the group's allowed States. It is removed when the pilot falls from a member State to a non-member State. Each of those removals is audit-logged with the reason left organization, and Discord role sync is queued in that same change.
  • An automatic membership (an open join, an approved request, or a row from before manual membership existed) is removed when the pilot's State is no longer eligible. That removal is audit-logged with the reason state_not_eligible.
  • A manual remove blocks the pilot from joining again, or from having a request approved, until a manager adds them back. Leaving the organisation does not write that block.

states.members.manage (and admin.states.manage) can force a pilot's State, with an optional reason and an optional expiry. The affiliation re-check keeps that State. If affiliation itself falls to a non-member State, a non-member override is cleared early and audited with the reason left organization. An override that forces a member State is kept, and one audit row flags that it is holding the pilot after they left. Clearing the override, or letting it expire, puts the pilot back on automatic evaluation. The same grant rule applies: you cannot force a State that carries a permission you do not hold, and only a superadmin can force a State that grants admin.states.manage or change a superadmin's State. The forced State is shown on the State page and on the account panel.

  • Superadmin bypasses everything. Keep it to two or three trusted people. A superadmin makes or unmakes others on Admin → Users; nobody can remove their own superadmin there.
  • The very first superadmin has to be made in the database: UPDATE accounts SET is_superadmin = TRUE WHERE id = (SELECT account_id FROM characters WHERE character_name = '<name>');
  • Every state change is written to the audit_logs table. A database trigger blocks edits and deletes of existing rows, so the log can only grow. Read it on Admin → Audit Log.

Users

Admin → Users lists every account, searchable by any of its characters (alts too), with filters for State, group, token problems, default State, no Discord and superadmins. 50 accounts a page.

Permission Gives
admin.users.view The directory and every account panel, read-only
admin.users.manage The actions below (and the view)
admin.audit.view Admin → Audit Log
groups.members.manage Add and remove members of any group
states.members.manage Force or clear a pilot's State

An account panel shows: - its characters, with token status, organisation scopes EVE has not granted, and switched-off categories - its State and the rule that gave it - its groups and pending requests - its Discord link and the last sync error - active sessions and the last sign-in - its history from the audit log

Actions, each written to the audit log with who did it: - change the main (the State, groups and home pages follow) - add to or remove from a group (only groups its State may join; a manual add is kept if the State later changes) - force a State, or clear that override, when the account also holds states.members.manage or admin.states.manage - re-check the State now - re-sync Discord - sign out everywhere

Pilots can also change their own main on Characters → Make main.

Blacklisting is not here yet: it arrives with Reporter and HR (docs/design/character-and-user-management.md).

Audit log

Admin → Audit Log shows every entry, newest first, 50 a page. Filter by action (or every action of a kind, such as all group actions), by date, by text in the IDs and details, or by account. From an account panel, Full history opens the log filtered to that account. That filter covers what was done to it, what it did, its characters, and group changes about it. Entries whose actor shows as "Nexus" were made by Nexus itself, or by an account that has since been deleted.

Admin MFA (passkeys and authenticator app)

Security (under Personal) lets anyone add a second factor to their account:

  • Passkeys and security keys: a YubiKey or other key, Windows Hello, Touch ID, or a passkey in a phone or password manager. Needs Nexus on https (PUBLIC_URL); plain http://localhost works for development.
  • Authenticator app: a 6-digit code (Aegis, Google Authenticator, 1Password and so on). The secret is sealed with the vault key, like ESI tokens.

Before a dangerous change, Nexus asks the person to confirm with a factor, and the confirmation lasts 5 minutes for that browser session. The check is on the server: the API answers 401 step_up_required:<level>:<action> and the web app shows a "Confirm it's you" dialog.

Needs a passkey or security key Needs any factor
Granting or removing superadmin Blacklisting and lifting (accounts and entries)
Tunnel setup and removal The Discord webhook and the alliance sheet link
OIDC signing-key and client-secret rotation Deleting an OIDC client
Emergency revoke of every ESI grant The organisation's scope categories
Turning Require MFA for admin actions on or off Adding or removing your own factors (once you have one; a passkey once you have a passkey)

The first factor needs a recent EVE sign-in: if the last one was more than 10 minutes ago, sign out, sign in again, and add it straight away. This stops someone with a copied session from adding their own factor.

Rolling it out. At first, someone with no factor isn't stopped; superadmins see a reminder banner. Keep this short: until the switch is on, the step-up actions are open to a copied session of anyone without a factor. Once every admin has added a factor (superadmins a passkey), a superadmin turns on Security → Require MFA for admin actions (stored as admin_mfa_required). From then on, anyone without the right factor is refused those actions, including blacklist managers and OIDC admins, and a superadmin can't remove their last factor.

Five wrong codes or keys in 15 minutes lock that account's confirmations for 15 minutes (mfa.locked in the audit log). It unlocks by itself.

Lost every key? On the server, remove that account's factors by its main character's name:

docker compose exec nexus core-api mfa-reset "Main Character Name"

It writes mfa.reset to the audit log. The person then signs in with EVE again and adds a new factor. Check who is asking before you run it: it is the way around MFA for that account.

Audit log entries: mfa.enrolled, mfa.removed, mfa.step_up (with the action it was for), mfa.locked, mfa.counter_regressed (a security key's counter went backwards: possibly a cloned key; remove that key), mfa.required_changed and mfa.reset.

Tunnel

Admin → Tunnel (superadmins only) creates the Cloudflare tunnel and its DNS record; see Installation, Option A. cloudflared is a separate container. This page does not start it, and it does not show the connector's log.

  • Create shows the connector token once and does not store it or the API token. Put the connector token in CLOUDFLARE_TUNNEL_TOKEN and run docker compose up -d. The public hostname's service is http://nexus:8080. Paste the API token again for any later change.
  • Change moves the tunnel to another hostname. The API token is required each time. Copy the new connector token into CLOUDFLARE_TUNNEL_TOKEN.
  • Remove deletes the tunnel and its DNS record at Cloudflare. Paste the API token when asked. If Cloudflare refuses part of it (a connection is still up, or the token was revoked), the page lists what is left to delete by hand. Stop the connector first with docker compose stop cloudflared. There is no button that turns the connector off from inside Nexus.
  • Restart the connector with docker compose restart cloudflared.

Every change is in the audit log (tunnel.*). With CLOUDFLARE_TUNNEL_TOKEN set (the connector token, the long eyJ... string, not the tunnel id), the page stays read only; change the tunnel in the Cloudflare dashboard instead. The public hostname's service must be http://nexus:8080.

Emergency revoke

Admin → Emergency (permission admin.emergency.revoke; a superadmin has it without a grant) revokes ESI refresh tokens at CCP, wipes the stored ciphertext, ends every Nexus session and every OIDC access and refresh token, and can turn maintenance mode on. The confirmation phrase is on the page. One pilot can be revoked from the same page, and banning a pilot does that pilot's revoke before the local token is wiped. See the incident runbook. Access tokens CCP has already issued keep working for about 20 minutes. A row that fails at CCP is still wiped here, so it cannot be retried; reset the EVE application if those grants must die.

Connected but the site shows an error: check that PUBLIC_URL is the tunnel's address (the page warns if not), and that no other tunnel in your Cloudflare account serves the same hostname.