wraith/frontend
Vantz Stockwell 6d76558bc3 feat: multi-user isolation with admin/user roles
Full per-user data isolation across all tables:
- Migration adds userId FK to hosts, host_groups, credentials, ssh_keys,
  connection_logs. Backfills existing data to admin@wraith.local.
- All services scope queries by userId from JWT (req.user.sub).
  Users can only see/modify their own data. Cross-user access returns 403.
- Two roles: admin (full access + user management) and user (own data only).
- Admin endpoints: list/create/edit/delete users, reset password, reset TOTP.
  Protected by AdminGuard. Admins cannot delete themselves or remove own role.
- JWT payload now includes role. Frontend auth store exposes isAdmin getter.
- Seed script fixed: checks for admin@wraith.local specifically (not any user).
  Uses upsert, seeds with role=admin. Migration cleans up duplicate users.
- Connection logs now attributed to the connecting user via WS auth.
- Deleting a user CASCADEs to all their hosts, credentials, keys, and logs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 12:57:38 -04:00
..
assets/css feat: project scaffold — Docker, NestJS, Nuxt 3, Prisma config 2026-03-12 17:05:37 -04:00
components feat(sftp): SFTP sidebar follows terminal CWD 2026-03-14 12:44:42 -04:00
composables feat(sftp): SFTP sidebar follows terminal CWD 2026-03-14 12:44:42 -04:00
layouts feat: convert Settings to right sidebar panel, remove light mode 2026-03-13 10:25:24 -04:00
pages fix: SFTP list not sent + RDP connect button does nothing 2026-03-14 02:04:33 -04:00
public feat: replace WRAITH text with ghost logo in nav bar and login 2026-03-13 09:16:21 -04:00
stores feat: multi-user isolation with admin/user roles 2026-03-14 12:57:38 -04:00
app.vue feat: Phase 4 — settings, theming, polish 2026-03-12 17:33:12 -04:00
nuxt.config.ts fix: configure PrimeVue Aura dark theme so dialogs render 2026-03-13 08:41:31 -04:00
package-lock.json fix: add @types/jest, fix WsAuthGuard TS error 2026-03-12 17:13:50 -04:00
package.json feat: project scaffold — Docker, NestJS, Nuxt 3, Prisma config 2026-03-12 17:05:37 -04:00
tailwind.config.ts feat: project scaffold — Docker, NestJS, Nuxt 3, Prisma config 2026-03-12 17:05:37 -04:00