feat: audit the whole trust matrix in one command and complete the threat model

- make security_audit runs the existing negative checks per trust-matrix
  row plus an ingress TLS probe and prints one summary
- close the threat model TODOs and stale references
- re-take the coverage exclusion evidence on the lab 7 stand

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-02 07:08:10 +03:00
co-authored by Claude Opus 5.5
parent bb20855f34
commit 7b2defab01
19 changed files with 1564 additions and 12 deletions
+13
View File
@@ -687,6 +687,19 @@ broker_mtls_check:
telemetry_tls_check:
$(PYTHON) .claude/skills/run-mtusi-messenger/driver.py --ca-file "$(CA_FILE)" --port $(HTTPS_OUT_PORT) telemetry-tls-check$(if $(filter 1,$(REPORT)), --report)
# аудит всей матрицы доверия одной командой (infra/audit/audit.py, последний
# шаг лабы 7): каждая строка contracts/trust-matrix.md и строки каналов,
# контейнеров и утечек в телеметрии — проверками выше (TLS, identity, ACL,
# hardening, проба приватности telemetry-check) и пробой внешнего TLS; сводка
# «строка матрицы → проверка → итог». ~4–5 мин на рабочем стенде. Коды 0 / 1 /
# 2 (как у проверок); make — 0 или ненулевой. REPORT=1 — без вердикта, ONLY —
# список проверок через запятую, AUDIT_LOGS=<каталог> — вывод каждой проверки
ONLY ?=
AUDIT_LOGS ?=
.PHONY: security_audit
security_audit:
$(PYTHON) infra/audit/audit.py --ca-file "$(CA_FILE)" --port $(HTTPS_OUT_PORT)$(if $(filter 1,$(REPORT)), --report)$(if $(ONLY), --only $(ONLY))$(if $(AUDIT_LOGS), --logs "$(AUDIT_LOGS)")
# состояние реплик глазами HAProxy: занятые слоты, адрес, статус проверки,
# соединения, запросы, ошибки соединения, повторы и перенаправления. CSV
# статистики читается изнутри контейнера LB: с change telemetry-backends-tls