forked from 0xWheatyz/SPARC
feat(security): JWT startup guard, configurable CORS, externalize DB creds #27
Reference in New Issue
Block a user
Delete Branch "feature/p1-security-hardening"
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?
Summary
check_jwt_secret()that refuses the default JWT secret whenAPP_ENVis notdevelopment(#4)CORS_ORIGINSenv var with comma-separated values (#5)docker-compose.ymlwith${POSTGRES_USER},${POSTGRES_PASSWORD},${POSTGRES_DB}variable references (#6).env.examplewith all required variablesCloses #4, #5, #6
Test plan
APP_ENV=productionwith default secret causes startup failureAPP_ENV=developmentwith default secret allows startupCORS_ORIGINS=https://example.comis respecteddocker compose upworks with populated.envpytest tests/test_security.py(7 tests pass)🤖 Generated with Claude Code
AI-Manager referenced this pull request from 0xWheatyz/SPARC2026-03-26 05:42:22 +00:00