cms.c2sgmbh/tests/unit/security
Martin Porwoll 63b97c14f2 feat(security): enhance CSRF, IP allowlist, and rate limiter with strict production checks
- CSRF: Require CSRF_SECRET in production, throw error on missing secret
- IP Allowlist: TRUST_PROXY must be explicitly set to 'true' for proxy headers
- Rate Limiter: Add proper proxy trust handling for client IP detection
- Login: Add browser form redirect support with safe URL validation
- Add custom admin login page with styled form
- Update CLAUDE.md with TRUST_PROXY documentation
- Update tests for new security behavior

BREAKING: Server will not start in production without CSRF_SECRET or PAYLOAD_SECRET

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-18 05:06:15 +00:00
..
csrf.unit.spec.ts fix(ci): improve CSRF bypass for CI and fix unit tests 2025-12-15 13:18:33 +00:00
data-masking.unit.spec.ts fix: clear console mocks between tests in data-masking spec 2025-12-15 10:45:19 +00:00
ip-allowlist.unit.spec.ts feat(security): enhance CSRF, IP allowlist, and rate limiter with strict production checks 2025-12-18 05:06:15 +00:00
rate-limiter.unit.spec.ts feat(security): enhance CSRF, IP allowlist, and rate limiter with strict production checks 2025-12-18 05:06:15 +00:00