"""
BreakPilot Middleware Stack

This module provides middleware components for the FastAPI backend:
- Request-ID: Adds unique request identifiers for tracing
- Security Headers: Adds security headers to all responses
- Rate Limiter: Protects against abuse (Valkey-based)
- PII Redactor: Redacts sensitive data from logs
- Input Gate: Validates request body size and content types
"""

from .request_id import RequestIDMiddleware, get_request_id
from .security_headers import SecurityHeadersMiddleware
from .rate_limiter import RateLimiterMiddleware
from .pii_redactor import PIIRedactor, redact_pii
from .input_gate import InputGateMiddleware

__all__ = [
    "RequestIDMiddleware",
    "get_request_id",
    "SecurityHeadersMiddleware",
    "RateLimiterMiddleware",
    "PIIRedactor",
    "redact_pii",
    "InputGateMiddleware",
]
