Remove standalone services (ai-compliance-sdk root, developer-portal, dsms-gateway, dsms-node, night-scheduler) and legacy compliance/dsgvo pages. Add new SDK pipeline modules (academy, document-crawler, dsb-portal, incidents, whistleblower, reporting, sso, multi-tenant, industry-templates). Add drafting engine, legal corpus files (AT/CH/DE), pitch-deck, blog and Förderantrag pages. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
31 lines
1.0 KiB
Python
31 lines
1.0 KiB
Python
"""
|
|
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
|
|
- SDK Protection: Protects SDK endpoints from systematic enumeration
|
|
"""
|
|
|
|
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
|
|
from .sdk_protection import SDKProtectionMiddleware, SDKProtectionConfig
|
|
|
|
__all__ = [
|
|
"RequestIDMiddleware",
|
|
"get_request_id",
|
|
"SecurityHeadersMiddleware",
|
|
"RateLimiterMiddleware",
|
|
"PIIRedactor",
|
|
"redact_pii",
|
|
"InputGateMiddleware",
|
|
"SDKProtectionMiddleware",
|
|
"SDKProtectionConfig",
|
|
]
|