# Security & Compliance Specification ## Enterprise Protection Framework 1. **Payment Security**: Strict HMAC-SHA256 verification of Razorpay signatures. Zero credit card or CVV storage. 2. **Authentication Security**: RS512 JWT access tokens (15-min TTL) paired with opaque ULID refresh tokens stored in Redis. 3. **Rate Limiting**: Slowapi rate limiting enforced on sensitive auth (`5 req/min`) and payment (`10 req/min`) endpoints. 4. **Input Validation**: Strict Pydantic schema parsing to prevent SQL injection, XSS, and parameter tampering. 5. **CORS & CSRF**: Whitelisted origins (`http://localhost:3021`, `http://localhost:3022`) with strict credentials handling. 6. **Audit Logs**: Immutable audit log entries (`audit_logs`) tracking administrative user actions and payment state changes.