2026-10-23 11:43:49 -05:00
|
|
|
# Security Engine Manifest
|
|
|
|
|
|
|
|
|
|
## Purpose
|
2026-11-17 21:22:55 +06:00
|
|
|
Enforces per-client sliding-window rate limits, payload size bounds, and event idempotency deduplication (`core/Security/security.ts`).
|
2026-10-23 11:43:49 -05:00
|
|
|
|
2026-11-17 21:22:55 +06:00
|
|
|
## Key Responsibilities
|
|
|
|
|
- **Idempotency Deduplication**: Rejects duplicate `clientId:eventId` pairs within a 5-minute TTL window.
|
|
|
|
|
- **Sliding-Window Rate Limiter**: Enforces the lower of the client's configured `rateLimit` and the global `maxEventsPerSec` limit.
|
|
|
|
|
- **Payload Size Guard**: Rejects individual event payloads exceeding `maxPayloadSizeBytes` (default `100 KB`).
|