feat: implement R4 production hardening

- Add configurable ingestion batch item limits
- Improve client serialization and sanitization
- Add graceful handling for corrupt GZIP partitions in data API
- Expand admin session token scope
- Update project documentation for R4 status
This commit is contained in:
Team Dark Devil committed 2026-11-21 22:15:32 +06:00
1 parent 8132087085
commit ae9b554189
59 files changed
+16879 -1074

No files matched your search

+7 -1
View File
@@ -26,4 +26,10 @@ DATASTACK_ADMIN_EMAIL=admin@datastack.dev
PORT_SOCKET=4000
INGESTION_INTERNAL_URL=http://127.0.0.1:4000
# Optional comma-separated browser CORS origin allowlist for Port 4000 ingestion/Socket.IO (defaults to wildcard if unset)
# DATASTACK_CORS_ORIGINS=https://console.example.com,https://admin.example.com
# DATASTACK_CORS_ORIGINS=https://console.example.com,https://admin.example.com
# Outbound SSRF protection blocks loopback/private/internal URLs by default for webhooks & S3 endpoints.
# Set to true ONLY if intentionally targeting a self-hosted LAN MinIO or private webhook endpoint (cloud metadata IPs remain always blocked).
# DATASTACK_ALLOW_PRIVATE_URLS=false
# Ingestion Batch Array Guard (default: 1000 items per HTTP POST /api/events batch or Socket.IO batch_sync frame; bounded 1..10000)
# DATASTACK_MAX_BATCH_ITEMS=1000