forked from 0xWheatyz/SPARC
Security: refuse to start with default JWT secret in non-development environments #271
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?
Problem
auth.py ships a fallback secret that is used when JWT_SECRET is unset. If this reaches a production deployment, all tokens can be forged by anyone who knows the default.
Acceptance Criteria
References
Roadmap: P1 Security hardening -- rotate default JWT secret.