wraith/backend
Vantz Stockwell 93811b59cb fix(security): auth hardening — httpOnly cookies, Argon2id passwords, TOTP encryption, rate limiting
C-2: JWT moved from localStorage to httpOnly cookie (eliminates XSS token theft)
C-3: WebSocket auth via short-lived single-use tickets (JWT no longer in URLs)
H-1: JWT expiry reduced from 7 days to 4 hours
H-3: TOTP secrets encrypted at rest with vault EncryptionService (auto-migrates plaintext)
H-6: Rate limiting via @nestjs/throttler (60 req/min global, tighten on auth)
H-8: Constant-time login — Argon2id verify runs against dummy hash for non-existent users
H-9: Password hashing upgraded from bcrypt(10) to Argon2id (auto-upgrades on login)
H-10: Credential list API no longer returns encrypted blobs
H-16: Admin pages use Nuxt route middleware instead of client-side guard
Plus: auth bootstrap plugin, cookie-parser middleware, all frontend Authorization headers removed

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-14 14:24:35 -04:00
..
prisma feat: multi-user isolation with admin/user roles 2026-03-14 12:57:38 -04:00
src fix(security): auth hardening — httpOnly cookies, Argon2id passwords, TOTP encryption, rate limiting 2026-03-14 14:24:35 -04:00
test feat: AES-256-GCM encryption service + auth module (JWT, guards, seed) 2026-03-12 17:07:14 -04:00
nest-cli.json feat: project scaffold — Docker, NestJS, Nuxt 3, Prisma config 2026-03-12 17:05:37 -04:00
package-lock.json feat(security): Argon2id key derivation for vault encryption 2026-03-14 13:40:41 -04:00
package.json fix(security): auth hardening — httpOnly cookies, Argon2id passwords, TOTP encryption, rate limiting 2026-03-14 14:24:35 -04:00
seed.js feat: multi-user isolation with admin/user roles 2026-03-14 12:57:38 -04:00
tsconfig.build.json feat: project scaffold — Docker, NestJS, Nuxt 3, Prisma config 2026-03-12 17:05:37 -04:00
tsconfig.json feat: project scaffold — Docker, NestJS, Nuxt 3, Prisma config 2026-03-12 17:05:37 -04:00