Hardcoded default COOKIE_SECRET with no production guard #18
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: Critical
crates/infra-wiring/src/lib.rshas a hardcoded defaultCOOKIE_SECRETin source code with no production guard. The JWT adapter correctly rejects weak secrets in production mode, but the cookie secret has no equivalent check.An operator who forgets to set
COOKIE_SECRETgets a readable default baked into the binary. Add a production-mode check that panics on startup if the default is used.