Skip to content

security: add startup security configuration verification#701

Merged
lane711 merged 1 commit intomainfrom
merge-pr-665-startup-security
Mar 26, 2026
Merged

security: add startup security configuration verification#701
lane711 merged 1 commit intomainfrom
merge-pr-665-startup-security

Conversation

@lane711
Copy link
Copy Markdown
Collaborator

@lane711 lane711 commented Mar 26, 2026

Summary

Cherry-picked from #665 by @mmcintosh

Adds security configuration verification at startup to ensure security settings are properly configured before the application begins serving requests.


Attribution

Closes #665

🤖 Generated with Claude Code

Validates security-critical environment variables (JWT_SECRET, CORS_ORIGINS,
ENVIRONMENT) on first request. Logs warnings in development, throws a hard
error in production when JWT_SECRET is missing or uses the default value.
Runs once per worker instance inside the bootstrap middleware.
@lane711 lane711 merged commit 0e18a5a into main Mar 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants