fix(security): изоляция агент-контейнера Фаза-0 (пентест AGENT-EXFIL)

--cap-drop=ALL + --security-opt no-new-privileges + --pids-limit=512 (+memory-swap)
во всех 4 точках docker-run (claude_bridge/sonnet/sandbox/canary, лок-степ). Worker
уже non-root → кэпы не нужны; режет пост-эксплуатацию + fork-bomb. Сеть/креды —
следующими фазами (главный фикс exfil). Проверка канарейкой на dev.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
anor
2026-07-19 13:52:34 +10:00
co-authored by Claude Opus 4.8
parent 8b9cc93315
commit a9f4523e69
5 changed files with 15 additions and 1 deletions
+1 -1
View File
@@ -151,7 +151,7 @@ MAX_MESSAGE_LEN = 10_000
# ⚠️ Версия UI — единый источник. БАМПАТЬ ПРИ КАЖДОМ ДЕПЛОЕ (формат: YYYY-MM-DD + буква).
# Фронт берёт её через GET /api/version (chat.html + admin.html, элемент .app-version).
APP_VERSION = "2026-07-19h"
APP_VERSION = "2026-07-19i"
# Audit: path → action name mapping
_AUDIT_MAP = [