Commit Graph

8 Commits

Author SHA1 Message Date
Vantz Stockwell
98e3556cc7 docs: post-MVP Claude Code plugin spec — AI-assisted terminal operations
Claude Code integration as the first Wraith plugin: terminal I/O, SFTP
file access, CodeMirror handoff, and session context awareness. Proves
the plugin architecture and serves as the reference implementation.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-17 05:41:54 -04:00
Vantz Stockwell
850e8e492e docs: spec hardening — Wails fallback plans, crash recovery, resource mgmt
- Wails v3: defined Plan A/B/C for multi-window with Phase 1 spike
- Crash recovery: workspace snapshot persistence + restore-on-restart
- Resource management: session limits, memory budgets, idle handling
- DPAPI: designed-for upgrade path in vault (post-MVP)
- RDP frame transport spike moved to Phase 1 (don't discover late)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-17 05:39:35 -04:00
Vantz Stockwell
587b5396fd docs: spec refinements — RDP key pass-through, SQLite WAL, tab transitions
- RDP input: Windows key + Alt+Tab pass-through toggle per connection
- SQLite: WAL mode + busy_timeout for concurrent read/write safety
- UI: 0.5s CSS transitions on tab active/background state changes

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-17 05:36:33 -04:00
Vantz Stockwell
0641ce34c8 docs: Wraith Desktop design spec — Go + Wails v3 native app
Complete design specification for rebuilding Wraith as a native Windows
desktop application replacing MobaXTerm. Covers architecture, data model,
SSH/SFTP/RDP flows, vault encryption, UI layout, MobaXTerm config
importer, plugin interface, and phased build plan.

Stack: Go + Wails v3 + Vue 3 + SQLite + FreeRDP3 (purego)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-17 05:27:32 -04:00
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
Vantz Stockwell
b11efce6ed feat(security): Argon2id key derivation for vault encryption
BREAKING CHANGE (forward-only): New credentials/keys encrypted with v2
(Argon2id-derived AES-256-GCM). Existing v1 records decrypt transparently.

- Argon2id params: 64 MiB memory, 3 iterations, 4 parallelism (OWASP)
- Per-record 16-byte salt stored in ciphertext format
- v2 format: v2:<salt>:<iv>:<authTag>:<ciphertext>
- Backwards compatible: v1 records still decrypt with raw key
- Admin endpoint POST /api/credentials/migrate-v2 upgrades all v1→v2
- Added docs/FUTURE-FEATURES.md with remaining spec gaps

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 13:40:41 -04:00
Vantz Stockwell
99f3c5caab fix: plan — async host key verification via ssh2 verify callback 2026-03-12 17:02:20 -04:00
Vantz Stockwell
de1bb71173 docs: Wraith spec + implementation plan 2026-03-12 16:59:34 -04:00