9d43e4b113
CRITICAL — Authentication & Access: - TOTP MFA: otpauth-based, QR setup UI, sign-in flow integration, admin disable override, /account/security self-service page - Session Timeouts: 8h absolute (maxAge), 30min idle (updateAge) - Failed Auth Logging: Pino warn for invalid password/user/totp, info for successful login, audit entries for all auth events - Concurrent Session Limit: ActiveSession model, oldest-kick strategy, max 3 per user (configurable in SystemSettings) CRITICAL — HTTP Security: - HSTS: max-age=31536000; includeSubDomains - CSP: script/style/img/font/connect-src with Gemini/OpenAI whitelist - X-XSS-Protection: 0 (CSP replaces legacy) - Auth page cache: no-store, no-cache, must-revalidate - Rate Limiting: 100/15min general API, 5/15min auth (Map-based) Data Protection: - XSS Sanitization: DOMPurify on comment bodies - autocomplete="new-password" on all password/secret fields - SameSite=Strict on all cookies (Credentials-only, no OAuth) - File Upload Magic Bytes validation (PNG/JPEG/WebP/GIF/BMP/TIFF) Logging & Monitoring: - Login/Logout audit entries (Auth entityType) - External API call logging with timing (OpenAI, Gemini) - Input validation failure logging at warn level - Concurrent session tracking in ActiveSession table Documentation: - docs/security-architecture.md (11 sections) - docs/sdlc.md (CI pipeline, security gates, incident response) - .gitea/PULL_REQUEST_TEMPLATE.md (security checklist) Schema: User.totpSecret/totpEnabled, SystemSettings.sessionMaxAge/ sessionIdleTimeout/maxConcurrentSessions, ActiveSession model Tests: 310 engine + 37 staffing pass. TypeScript clean. Co-Authored-By: claude-flow <ruv@ruv.net>
63 lines
1.8 KiB
JSON
63 lines
1.8 KiB
JSON
{
|
|
"name": "@capakraken/web",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "next dev -p 3100",
|
|
"build": "next build",
|
|
"start": "next start -p 3100",
|
|
"lint": "next lint",
|
|
"typecheck": "tsc --noEmit",
|
|
"test:e2e": "playwright test"
|
|
},
|
|
"dependencies": {
|
|
"@capakraken/api": "workspace:*",
|
|
"@capakraken/application": "workspace:*",
|
|
"@capakraken/db": "workspace:*",
|
|
"@capakraken/engine": "workspace:*",
|
|
"@capakraken/shared": "workspace:*",
|
|
"@capakraken/ui": "workspace:*",
|
|
"@dnd-kit/core": "^6.3.1",
|
|
"@dnd-kit/sortable": "^10.0.0",
|
|
"@dnd-kit/utilities": "^3.2.2",
|
|
"@node-rs/argon2": "^2.0.2",
|
|
"@react-pdf/renderer": "^4.3.2",
|
|
"@sentry/nextjs": "^10.45.0",
|
|
"@tanstack/react-query": "^5.62.16",
|
|
"@tanstack/react-virtual": "^3.13.21",
|
|
"@trpc/client": "^11.0.0",
|
|
"@trpc/react-query": "^11.0.0",
|
|
"@trpc/server": "^11.0.0",
|
|
"clsx": "^2.1.1",
|
|
"dompurify": "^3.3.3",
|
|
"framer-motion": "^12.38.0",
|
|
"next": "^15.1.7",
|
|
"next-auth": "^5.0.0-beta.25",
|
|
"otpauth": "^9.5.0",
|
|
"react": "^19.0.0",
|
|
"react-dom": "^19.0.0",
|
|
"react-force-graph-3d": "^1.29.1",
|
|
"react-grid-layout": "^2.2.2",
|
|
"react-resizable": "^3.0.5",
|
|
"recharts": "^3.7.0",
|
|
"tailwind-merge": "^2.6.0",
|
|
"three": "^0.183.2",
|
|
"xlsx": "^0.18.5",
|
|
"zod": "^3.23.8"
|
|
},
|
|
"devDependencies": {
|
|
"@capakraken/tsconfig": "workspace:*",
|
|
"@playwright/test": "^1.49.1",
|
|
"@types/dompurify": "^3.2.0",
|
|
"@types/node": "^22.10.2",
|
|
"@types/react": "^19.0.6",
|
|
"@types/react-dom": "^19.0.3",
|
|
"@types/react-grid-layout": "^2.1.0",
|
|
"@types/three": "^0.183.1",
|
|
"autoprefixer": "^10.4.20",
|
|
"postcss": "^8.4.49",
|
|
"tailwindcss": "^3.4.17",
|
|
"typescript": "^5.6.3"
|
|
}
|
|
}
|