docs: update architecture documentation and manifests

Refine technical documentation to reflect current architecture, component structure, and routing conventions for the vcon console.
This commit is contained in:
Team Dark Devil committed 2026-11-17 21:22:55 +06:00
1 parent bb938c33c0
commit 367dd819f8
64 files changed
+910 -2661

No files matched your search

+5 -8
View File
@@ -1,12 +1,9 @@
# Security Engine Manifest
## Purpose
Enforces client rate-limiting, event idempotency verification, and payload size bounds.
Enforces per-client sliding-window rate limits, payload size bounds, and event idempotency deduplication (`core/Security/security.ts`).
## Key Logic
- **Idempotency**: Drops duplicate `clientId + eventId` within a 5-minute TTL window.
- **Rate Limit**: Sliding per-second window configurable per client or globally.
- **Payload Guard**: Rejects payloads exceeding 100KB per event with explicit codes.
## Dependencies
- Native Node.js `Buffer`, `Map`
## 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`).