Files
Komediruzecki 7cf544f2ba security: strengthen password hashing and Turnstile enforcement
- Passwords are hashed with PBKDF2-SHA256 at 600k iterations (OWASP current).
  The stored hash is self-describing (`pbkdf2$<iters>$<salt>$<hash>`) and
  verification reads the embedded iteration count, so a future change to the
  cost never invalidates existing hashes and needs no data migration.
- Turnstile no longer fails open on a misconfigured deploy: when
  TURNSTILE_SECRET is unset, verification passes only in local development
  (APP_ENV=development); in any deployed environment it fails closed and logs a
  warning, so a forgotten secret can't silently drop the CAPTCHA.

The app has no existing users, so there is no legacy password data to migrate:
the earlier re-hash-on-login path (and its 100k-hash handling) is intentionally
omitted rather than carried as dead migration code.
2026-07-12 21:10:39 +02:00
..
…