Browse Source
Add CLIENT_KDF_TYPE, CLIENT_KDF_ITERATIONS, CLIENT_KDF_MEMORY, and CLIENT_KDF_PARALLELISM environment variables to allow server admins to set the default KDF for new user registrations. Currently the default KDF is hardcoded to PBKDF2 with 600,000 iterations. Argon2id is memory-hard and significantly more resistant to GPU-based brute-force attacks, but admins have no way to set it as the default without modifying source code. Existing users are unaffected and can change their KDF in account settings. Setting CLIENT_KDF_TYPE=1 enables Argon2id with sensible defaults (3 iterations, 64MB memory, 4 parallelism). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>pull/6983/head
4 changed files with 81 additions and 7 deletions
Loading…
Reference in new issue