Files
platform/src/servers/api/auth
brunorezioandClaude Opus 5 8163f04420 fail closed when PUBLIC_BUILD_ENV is unset
Origin validation, every rate limiter and the password-strength check each
treated an unset PUBLIC_BUILD_ENV as "relaxed", so a deployment that forgot the
variable silently ran with CORS reflecting any origin, no brute-force limit on
the sole account, and no password rules. setup.sh writes it, but .env.example
never mentioned it.

The three now share IS_DEV_BUILD, which is true only when PUBLIC_BUILD_ENV is
explicitly "dev" or "development". Anything else, including unset, is hardened.
Documented in .env.example.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-25 23:30:20 +01:00
..
2026-07-25 23:30:20 +01:00
2026-02-26 17:42:59 +00:00
2026-02-16 19:34:35 +00:00
2026-02-26 17:42:59 +00:00
2026-07-25 23:30:20 +01:00
2026-02-23 09:58:08 +00:00
2026-02-26 17:42:59 +00:00
2026-02-16 19:34:35 +00:00