EVE Nexus roadmap¶
Working roadmap for the repository.
Phase 1: Identity and data foundation (complete)¶
| Item | Status |
|---|---|
| EVE SSO login (PKCE, JWKS-verified tokens), sessions, logout | Done, tested live |
Alt linking (explicit ?link=1), main character, owner-hash change detection |
Done, tested live |
| Sensitive-scope consent with policy versioning | Done, tested live |
| Encrypted token vault (AES-GCM, key rotation, per-character binding) | Done |
| State engine (corp / alliance / faction / standings rules) | Done; managed on Admin → Access Control |
| ESI engine (ETag cache, X-Pages snapshots, shared error-budget tracking) | Done |
| Postgres job queue (priorities, retries, dead-letter) with worker and stale-lock sweep | Done |
| SDE importer (at boot, every 6 h, 15 min retry after failure) and ID-to-name resolution | Done |
| Trusted-proxy / Cloudflare client-IP handling, CSRF origin checks, security headers | Done |
| System Health page | Done |
| Token refresh: daily per token, rotated refresh tokens re-sealed, revoked / transferred tokens flagged and audited | Done, tested live |
| Affiliation re-sync: every character hourly, States re-evaluated on change, so leaving the corp removes access without a new sign-in | Done, tested live |
Contacts sync: contact_standings filled from corp / alliance contact lists every 30 min, so standing_min rules can match |
Done, tested live |
Phase 1 is complete. Every item above is built and has been tested against CCP's live SSO and ESI.
Phase 1 follow-ups¶
| Item | Review | Status |
|---|---|---|
docker-compose.yml + Dockerfile: Nexus + PostgreSQL 17 with a pg_isready healthcheck, required settings checked up front, pinned image tags, TRUSTED_PROXIES set to the edge containers only; caddy profile (the Cloudflare Tunnel is built in) |
1.3 | Done; image built and the stack booted from an empty database |
Sign-in rate limit: 30 requests a minute per client IP on /sso/* and /discord/*, in every topology |
2.7 | Done, tested live (31st request gets 429) |
Access-token cache per character until a minute before the JWT exp; single flight on a cache miss; the daily sweep still checks every refresh token at CCP |
2.1 | Done (unit tested; no ESI module calls it often yet) |
| Consent withdrawal on Characters; consent records kept and stamped; retention and erasure policy written down (audit entries pseudonymised, not deleted) | 2.4 | Done, endpoint tested live on a test account |
AFFILIATION_INTERVAL_MINUTES (60 to 1440), shown on System Health with the worst case; docs say "within N minutes", not "instant" |
2.2 | Done, tested live |
| Threat model: docs/security/threat-model.md | 2.8 | Done |
| Multi-tenancy decided: one database per tenant, federated by OIDC: docs/decisions/0001-multi-tenancy.md | 2.5 | Done |
"Compile-time checked SQL": dropped as a claim. Queries are runtime sqlx::query, covered by the Postgres integration tests; revisit query! with offline mode if schema drift bites |
1.6 | Decided |
| Vault rotation docs: tokens move to the new key on the daily refresh, not only at sign-in | — | Done |
| Setup wizard and baseline benchmarks | 3 | Setup wizard stays last (build order below). Benchmarks stay with Phase 3 |
The default token categories requested at first sign-in will shrink with the scope model change in the build order. A section will ask for the scopes it needs when a pilot first uses it, instead of one large request up front.
New items¶
UI redesign (not generic)¶
Replace the current "dark dashboard" look with a distinct visual identity.
- [x] Round 1 (six themed directions): rejected as too gimmicky and still generic
- [x] Round 2, five modern-app directions with dark/light toggle: docs/design/redesign-concepts.md. Also rejected: "looks AI generated"
- [x] Options brief (real CCP art, living map, alliance theming, motion, identity): docs/design/visual-direction-options.md
- [x] Slice 1 (pilot as hero, ship renders, accent from the corp / alliance logo, motion), built behind a flag and judged with live data
- [x] Adopted as the look for every screen; the flag and the old home screen are gone
- [x] Design tokens (colour, type, motion) in web/src/index.css: use bg-surface, border-line, text-accent, bg-accent/12, never hex values
- [x] Shell, Overview, Characters and System Health use the tokens
- [ ] Every new module ships in the new style (Access Control is the first)
- [ ] Later: slice 2, the living map of New Eden (option 2 in the options brief)
IT wiki (install, troubleshoot, get help)¶
Documentation for the people who run Nexus, linked from the Discord help section.
- [x] Wiki: docs/wiki/Home.md
- [ ] Create the Discord help forum and tags described in Getting Help
- [ ] Publish the wiki (GitHub Wiki, or serve docs/wiki from the site)
- [ ] Keep it current: every release that changes setup updates the wiki in the same PR
Coalition redesign (next, agreed 2026-12-03)¶
Design: docs/design/coalition-structure.md. Build order:
- [x] 1. Org tree (coalition › alliances › corps) and scoped access; leaders from in-game roles + leadership groups. Done: Admin → Organisation, server-side
can_see/can_lead, tested live against ESI on a test database - [x] 2. Home page per org unit with editable updates. Done: Home Pages (tabs for corp / alliance / coalition, about text, pinned updates, Markdown editor with preview), leaders only, audit-logged
- [x] 3. Automatic tokens: scope categories, one disclosure at first sign-in, per-category switches. Done: disclosure before every EVE sign-in, category picker on Admin → Organisation, switches on Characters, switched-off categories in leaders' member lists
- [x] 4. In-depth character page (also the leadership background-check view). Done:
/pilot/<id>from Characters and member lists, ESI sweep per category into summaries, leader views audit-logged, data deleted when a category is switched off - [x] 5. Leadership tools: member lists, compliance, checks. Done: Members (Management), per-unit member list with checks, registration per corp, CSV export (audit-logged)
- [ ] 6. Setup wizard, last, tested on a fresh
docker compose up
The OIDC provider was next after step 5; it is built (see Phase 2).
Character overview and user management (next, agreed 2026-12-04)¶
Design: docs/design/character-and-user-management.md. Inspired by the Alliance Auth + CorpTools test install; Reporter is ported in (its detection rules stay private).
- [x] 1. Admin → Users (directory, account panel, main / groups / re-check / Discord / sign-out / superadmin) and Admin → Audit Log. Pilots change their own main on Characters
- [x] Cloudflare Tunnel (Admin → Tunnel): Nexus creates the tunnel, hostname and DNS record through the Cloudflare API.
cloudflaredis its own compose service and holds only the connector token. The API token is sealed with the vault key. The public hostname's service ishttp://nexus:8080 - [x] 2. Account overview, first cut: Overview, Skills, Clones, Assets, Wallet (detail tables, 180-day history). Done:
/account/<id>with a character switcher; skills, queue, SP history, clones, assets (with ship and container names, values from CCP's average prices) and wallet journal / transactions stored by the character sweep; leader views audit-logged per tab;/pilot/<id>links open it - [x] Skills and wallet charts: skill points by group with what each skill leads to; wallet Breakdown (ISK in and out by day, by type and by counterparty)
- [x] Corporation and alliance wallets (Management → Corp Wallets): a leader connects a corporation once with an accountant or director; alliances and coalitions add up their connected corporations
- [x] 3. Account overview, rest: Market and contracts, Mail (leaders may read, audited), Notifications, Contacts, Kills, History. Done: new categories Market orders and Notifications; mail text read from EVE on open, never stored, each leader open audit-logged
- [x] 4. Members filters and the Reporter port (checks, report, hostile and watch lists, blacklist, Discord alerts), with HR. Done: 16 checks every 30 minutes, a plain-language Report tab, filters and flags on Members, Admin → Background Checks and Blacklist (blacklisted characters can't sign in), Discord alerts and digest, and the HR queue
Build order (agreed 2026-12-05)¶
What comes after the OIDC provider, in this order:
- OIDC provider and a small read API. The provider is done in this phase: another app can use Sign in with Nexus (authorization code, PKCE, client registry, consent, revoke). Still to build: a versioned, bearer-only REST API so that app can read what the token's scopes allow (character, corporation, alliance, State, groups) without using the pilot UI. The access token from this provider is the credential. No implicit grant, no client-credentials grant, no dynamic registration.
- Scope model change (design, then build).
publicDatais always required. Every other scope is requested by the section that needs it, the first time the pilot uses that section or is asked for it (incremental consent), instead of one big request at first sign-in. Applying through HR requests everything; after HR is done the pilot may switch categories off again. Leaders still see switched-off categories. - Phase 4 operations: timers, structures, fleets and PAPs, doctrines, SRP.
- Alliance Auth import, moved up from Phase 5. Export from a live Alliance Auth install and import it into Nexus, mainly to get a large real data set and see what breaks. Design the import before the data model hardens further.
- Add-ons: decision needed. Choose between (a) add-ons stay separate apps that integrate only through OIDC and the REST API, or (b) installable add-ons inside Nexus, in the style of Alliance Auth. A first add-on, and the live map of New Eden, come after that decision.
- IT / admin operations screen. An admin screen that automates install, update, backup and restore, health, logs, the tunnel, and config checks for the people running Nexus, modelled on existing Alliance Auth admin tooling. Includes automatic database backups and versioned releases and tags.
- Setup wizard, last, tested on a fresh
docker compose up.
Phase 2: Access, Discord, OIDC (in progress)¶
| Item | Status |
|---|---|
Access Control admin (/admin/states): States with rules and permissions; Groups with eligible States, Discord role and permissions; permission matrix. ESI scopes come from Admin → Organisation categories, not from a State. Changes are audit-logged and re-check every pilot within seconds |
Done, tested live |
Groups directory (/groups): open groups to join, requestable groups with manager approval, invite-only groups; managers handle requests and members, admins pick managers. Pilots whose State stops qualifying leave the group automatically |
Done, tested live |
| Discord sync: pilots link on Connected Services (and are added to the server); roles follow their State and Groups, nickname set to the main character; only mapped roles are touched; unmapped roles are stripped; role pickers in Access Control | Done, tested live |
| Cut-down OIDC provider and client registry | Done |
| Bearer REST API for outside apps (versioned; uses the OIDC access token) | Planned. The provider is the credential; the read API is not built |
| Setup wizard | Last in the build order above |
Planned modules¶
These are defined in web/src/nav.ts with live: false, so they stay hidden until their API
exists. To ship one, build the API, add the page to PAGES in web/src/App.tsx, and set
live: true. No page may show sample data.
| Area | Module | Route | Phase |
|---|---|---|---|
| Personal | Connected Services (Discord, and OIDC apps the pilot can revoke) | /services |
done |
| Personal | My SRP Submissions | /srp |
4 |
| Operations | Timer Board | /ops/timers |
4 |
| Operations | Upwell & Equinox Structures | /ops/structures |
4 |
| Operations | Fleets & PAP Analytics | /ops/fleets |
4 |
| Operations | Doctrines & Fittings | /ops/doctrines |
4 |
| Management | HR Recruitment Queue | /hr/queue |
3 |
| Management | Members & Compliance (was ESI Compliance Monitor) | /leadership/members |
done (coalition step 5) |
| Management | SRP Payout Queue | /manage/srp |
4 |
| Admin | OIDC Client Registry | /admin/oidc |
done |
Later phases¶
Planned split:
- Phase 2: see the Phase 2 table above.
- Phase 3: HR and audit (recruitment queue, compliance, pilot audit views).
- Phase 4: Operations (timers, structures, fleets/PAPs, doctrines, SRP).
- Phase 5: SeAT import and multi-tenant mode. The Alliance Auth import moved up: see the build order (agreed 2026-12-05). EVE logins only work with the EVE application that issued them, so an imported pilot signs in once more unless Nexus uses that same application.