mirror of
https://github.com/complexcaresolutions/cms.c2sgmbh.git
synced 2026-03-17 20:54:11 +00:00
Add 143 security tests covering all security modules: Unit Tests (125 tests): - rate-limiter.unit.spec.ts: limiter creation, request tracking, blocking, window reset, IP extraction, header generation - csrf.unit.spec.ts: token generation/validation, origin checking, double submit cookie pattern, referer validation - ip-allowlist.unit.spec.ts: CIDR matching, wildcards, endpoint- specific allowlist/blocklist rules, IP extraction - data-masking.unit.spec.ts: field detection, pattern matching, recursive masking, JWT/connection string/private key handling API Integration Tests (18 tests): - security-api.int.spec.ts: rate limiting responses, IP blocking, CSRF protection on state-changing endpoints Test Infrastructure: - tests/helpers/security-test-utils.ts: CSRF token generators, mock request builders, environment setup utilities - vitest.config.mts: updated to include unit tests - package.json: added test:unit and test:security scripts - .github/workflows/security.yml: added security-tests CI job Also updated detect-secrets.sh to ignore .spec.ts and .test.ts files which may contain example secrets for testing purposes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| anleitungen | ||
| CLAUDE_PAYLOAD_CMS.md | ||
| IMPLEMENTIERUNGS-AUFTRAG.md | ||
| INFRASTRUCTURE.md | ||
| PROJECT_STATUS.md | ||
| Prompt phase2 blocks.md | ||
| PROMPT_CONSENT_PAYLOAD.md | ||
| PROMPT_PAYLOAD_API_CONFIG.md | ||
| PROMPT_PHASE1_COLLECTIONS.md | ||
| PROMPT_PHASE4_CONTENT_MIGRATION.md | ||
| PROMPT_PRIVACY_POLICY_PAYLOAD.md | ||
| PROMPT_UNIVERSAL_FEATURES_PAYLOAD.md | ||
| SECURITY_FIXES.md | ||