Commit Graph
4 Commits
Author SHA1 Message Date
Leon Tonhäuser d9d69ed861 fix: comprehensive portal audit - bugfixes, performance, security, logo
Critical bugs:
- Fix bulk-download: UUID idempotency key, input validation, error handling, parallel asset validation
- Fix leuchtkasten 404 link -> album page with search
- Fix revalidatePath [id] -> [albumId]
- Fix PDF crash on null invoiceNumber

Logo:
- Fix dimensions (1000x1000), dark mode support (logo-white.png), max-height constraint

UI bugs:
- Fix unsafe Date method calls (6 files)
- Fix album UUID shown instead of name in catalog
- Fix global search downloads (albumId from asset)
- Add null guard for lightbox asset map

Performance:
- Parallelize admin dashboard queries (Promise.all)
- Lazy-load recharts via next/dynamic
- Add thumbnail caching headers (24h + ETag)
- Reduce duplicate Immich API calls in usage service
- Add DB index on usages(createdAt)
- Add optimizePackageImports for lucide-react, recharts

Security:
- Input validation on bulk-download (max 100 items, UUID format, purpose length)
- Verify security headers present in next.config.ts
2026-08-11 11:50:12 +02:00
Leon TonhäuserandClaude 3316365b73 fix(csp): allow inline scripts so Next.js client forms hydrate
script-src was 'self' with no 'unsafe-inline' and no nonce, so the
browser blocked Next.js App Router's inline hydration scripts (RSC
flight data + bootstrap). React never hydrated, so every client form's
handler never attached and the browser fell back to a native GET submit
— login dumped email/password into the URL and did nothing, and the
registration/reset forms were equally dead. Add 'unsafe-inline' to
script-src; per-request nonces via middleware remain the upgrade path.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-08-11 00:06:39 +02:00
Leon Tonhäuser 21871bb9ff feat: harden portal security and auditability 2026-08-10 21:46:54 +02:00
Leon Tonhäuser 763098b129 chore: bootstrap portal application 2026-08-09 20:14:31 +02:00