Files
mtusi2026lab7-safronov/evidence/attachments/failover.md
T
ricoromaandClaude Opus 5.5 7b2defab01 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>
2026-12-02 07:08:10 +03:00

49 lines
3.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Принявшая реплика остановлена
- Команда: `python3 .claude/skills/run-mtusi-messenger/driver.py --port 8443 attachment-failover --mode stop`, затем то же с `--mode kill` (`make replicas` драйвер выполняет сам в `finally`)
- Дата: 2026-12-02, 03:42:57–03:43:12 UTC; оба прогона — код выхода 0
- Commit: `bb20855` (ветка `feat/lab7-final`); рабочее дерево — правки последнего шага, часть 2 (аудит матрицы, документы, файлы `evidence/`), код образа = `HEAD`
- Стенд: проект compose `mtusi-lab7`, две реплики за HAProxy (mTLS LB → API), снаружи `https://localhost:8443` с CA стенда, телеметрия включена, собран `make run_docker` из рабочего дерева; пользователи синтетические
- Сценарий: `attachments` «Принявшая реплика остановлена»
- Вывод сокращён: убраны снимки `docker compose ps` до и после (все сервисы `Up`, реплики `healthy`). `X-Instance-Id` с лабы 7 — случайный alias процесса, а не ID контейнера (`evidence/security/instance-alias.md`): реплику, вернувшуюся после `stop`, прогон `kill` видит под новым alias `a88edeb704dc8bf7`
## `stop`
```text
mode: stop; fixture sample.png: 111817 bytes
sha256 uploaded: 99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75
sha256 downloaded: 99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75
step expected got x-instance-id
alice uploads 202 202 169929a788d4880a
attachment is ready ready ready
alice sends message 201 201 a207ff38444c7f43
stop-one.sh stop 0 0 169929a788d4880a
bob downloads 200 200 a207ff38444c7f43
bob reads metadata 200 200 a207ff38444c7f43
eve reads metadata 404 404 a207ff38444c7f43
eve downloads 404 404 a207ff38444c7f43
make replicas 0 0
LB slots UP 2 2
PASS: accepted by 169929a788d4880a, served by a207ff38444c7f43 after stop, sha256 matches, outsider gets 404
```
## `kill`
```text
mode: kill; fixture sample.png: 111817 bytes
sha256 uploaded: 99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75
sha256 downloaded: 99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75
step expected got x-instance-id
alice uploads 202 202 a88edeb704dc8bf7
attachment is ready ready ready
alice sends message 201 201 a207ff38444c7f43
stop-one.sh kill 0 0 a88edeb704dc8bf7
bob downloads 200 200 a207ff38444c7f43
bob reads metadata 200 200 a207ff38444c7f43
eve reads metadata 404 404 a207ff38444c7f43
eve downloads 404 404 a207ff38444c7f43
make replicas 0 0
LB slots UP 2 2
PASS: accepted by a88edeb704dc8bf7, served by a207ff38444c7f43 after kill, sha256 matches, outsider gets 404
```