docs: record M4 security checks and scan triage

This commit is contained in:
2026-12-03 20:10:50 +03:00
parent ee28cd7dbd
commit 4e1af89170
9 changed files with 1757 additions and 1 deletions
+98
View File
@@ -471,3 +471,101 @@ REPORT: broker users, rights, mechanisms, listeners (no verdict)
# Отзыв relay с закрытием живого соединения — rotation-check того же стенда
# (evidence/security/rotation-revocation.txt, раздел 10). Бенчи на этом шаге не
# запускались (машина занята пользователем) — quick на машине замеров (промпт Codex).
# --- Повтор на машине замеров ---
# Дата: 2026-12-03 UTC. MacBook Air M4, macOS 26.6.2 (25G83), arm64,
# Docker 28.0.4, ВМ 10 CPU / 10419826688 байт (9,70 ГиБ), Compose 5.6.1,
# Python хоста / .venv 3.13.7; образ приложения Python 3.13.18.
# Стенд: vladimirceva-lab7, https://localhost:8443; две реплики, телеметрия включена.
# Код: исходный commit ee28cd7; правки рабочего дерева — разбор CVE и документы.
# src_sha256: 813f5a036bed303920f288ee801be991627a90f9a2955ebd8014b3e8363e6c62.
# Пины, конфигурации проекта, бизнес-код и пороги не менялись; seccomp daemon builtin.
# Материалы оператора читали только разрешённые штатные команды; значений в выводе нет.
# Домашний каталог — <home>, временный — <tmp>. Прежние прогоны — история.
# Начало UTC: 2026-12-03T17:06:02.601090+00:00; время команды 28.303 с.
$ make broker-mtls-check
python3 scripts/lab7.py --ca-file "<home>/Высоконагруженные/mtusi2026lab7-vladimirceva/.pki/stand/ca.crt" broker-mtls-check
stand network vladimirceva-lab7_default, image mtusi-messenger-vladimirceva:lab7, queue messenger.attachment-jobs
PASS network: AMQP without TLS (TLS port) -> no AMQP reply: no AMQP reply (7 bytes)
PASS network: no client certificate -> TLS refused: TLS refused after handshake: TLSV13_ALERT_CERTIFICATE_REQUIRED, TLSv1.3
PASS network: certificate of another CA (SAN relay) -> TLS refused: TLS refused after handshake: TLSV1_ALERT_UNKNOWN_CA, TLSv1.3
PASS network: server certificate of the stand CA (rabbitmq) -> TLS refused: TLS refused after handshake: SSLV3_ALERT_UNSUPPORTED_CERTIFICATE, TLSv1.3
PASS network: TLS 1.2 only (relay) -> TLS refused: TLS refused at handshake: TLSV1_ALERT_PROTOCOL_VERSION
PASS network: client trusts another CA -> client rejected: client rejected server certificate: self-signed certificate in certificate chain
PASS network: server name outside SAN (api) -> client rejected: client rejected server certificate: Hostname mismatch, certificate is not valid for 'api'.
PASS network: identity of the stand CA outside the list (broker-probe) -> login refused: login refused (closed), TLSv1.3
PASS network: identity haproxy of the stand CA -> login refused: login refused (closed), TLSv1.3
PASS network: PLAIN guest/guest (broker-probe) -> login refused: login refused (closed), TLSv1.3
PASS network: allowed identity relay (control) -> login accepted: login accepted, TLSv1.3
PASS network: mechanisms offered = EXTERNAL: EXTERNAL
PASS host: AMQP without TLS (TLS port) -> no AMQP reply: no AMQP reply (7 bytes)
PASS host: no client certificate -> TLS refused: TLS refused after handshake: TLSV13_ALERT_CERTIFICATE_REQUIRED, TLSv1.3
PASS host: certificate of another CA (SAN relay) -> TLS refused: TLS refused after handshake: TLSV1_ALERT_UNKNOWN_CA, TLSv1.3
PASS host: server certificate of the stand CA (rabbitmq) -> TLS refused: TLS refused after handshake: SSLV3_ALERT_UNSUPPORTED_CERTIFICATE, TLSv1.3
PASS host: TLS 1.2 only (relay) -> TLS refused: TLS refused at handshake: TLSV1_ALERT_PROTOCOL_VERSION
PASS host: client trusts another CA -> client rejected: client rejected server certificate: self-signed certificate in certificate chain
PASS host: server name outside SAN (api) -> client rejected: client rejected server certificate: Hostname mismatch, certificate is not valid for 'api'.
PASS host: identity of the stand CA outside the list (broker-probe) -> login refused: login refused (closed), TLSv1.3
PASS host: identity haproxy of the stand CA -> login refused: login refused (closed), TLSv1.3
PASS host: PLAIN guest/guest (broker-probe) -> login refused: login refused (closed), TLSv1.3
PASS host: allowed identity relay (control) -> login accepted: login accepted, TLSv1.3
PASS host: mechanisms offered = EXTERNAL: EXTERNAL
PASS network: AMQP without TLS on port 5672 -> no AMQP reply: no AMQP reply (connect: ConnectionRefusedError)
probe: relay rights (its environment, identity and network)
PASS relay: declare own queue (configure) -> allowed: allowed
PASS relay: passive check of own queue -> allowed: allowed
PASS relay: publish to own queue via default exchange, confirmed -> allowed: allowed
PASS relay: basic.get from own queue (read) -> ACCESS_REFUSED: ACCESS_REFUSED
PASS relay: declare another queue -> ACCESS_REFUSED: ACCESS_REFUSED
PASS relay: publish to amq.topic -> ACCESS_REFUSED: ACCESS_REFUSED
probe: worker rights (its environment, identity and network)
PASS worker: passive check of own queue -> allowed: allowed
PASS worker: basic.get from own queue (read) -> allowed: allowed
PASS worker: consume own queue -> allowed: allowed
PASS worker: declare own queue (configure) -> ACCESS_REFUSED: ACCESS_REFUSED
PASS worker: delete own queue -> ACCESS_REFUSED: ACCESS_REFUSED
PASS worker: publish via default exchange (write) -> ACCESS_REFUSED: ACCESS_REFUSED
PASS worker: declare another queue -> ACCESS_REFUSED: ACCESS_REFUSED
PASS worker received the relay probe message and rejected it (not a job): 'job message rejected' in its log
PASS broker users = relay, worker (no tags): relay []; worker []
PASS broker permissions = definitions (relay configure+write, worker read): relay ^messenger\.attachment-jobs$ ^amq\.default$ ^$; worker ^$ ^$ ^messenger\.attachment-jobs$
PASS topic permissions = none: none
PASS vhosts = /: /
PASS auth mechanisms = EXTERNAL: {ok,['EXTERNAL']}
PASS AMQP listeners = amqp/ssl on 5671 only: Interface: [::], port: 5671, protocol: amqp/ssl, purpose: AMQP 0-9-1 and AMQP 1.0 over TLS
PASS distribution listener on loopback only: Interface: 127.0.0.1, port: 25672, protocol: clustering, purpose: inter-node and CLI tool communication
PASS explicitly enabled plugins = rabbitmq_auth_mechanism_ssl: rabbitmq_auth_mechanism_ssl
PASS connections: worker present, all relay/worker over TLS 1.3 with EXTERNAL: relay true tlsv1.3 EXTERNAL; worker true tlsv1.3 EXTERNAL
PASS rabbitmq: listening outside loopback: 5671
PASS published port: 127.0.0.1 only, to 5671: 127.0.0.1:5673->5671
broker-mtls-check: PASS (50/50 checks, 28 s)
cleanup: 0 probe container(s) removed, temporary key directory removed: True
# Код make: 0.
# Начало UTC: 2026-12-03T17:06:30.905329+00:00; время команды 7.616 с.
$ make broker-mtls-check REPORT=1
python3 scripts/lab7.py --ca-file "<home>/Высоконагруженные/mtusi2026lab7-vladimirceva/.pki/stand/ca.crt" broker-mtls-check --report
== vhosts
/
== users
relay []
worker []
== permissions
relay ^messenger\.attachment-jobs$ ^amq\.default$ ^$
worker ^$ ^$ ^messenger\.attachment-jobs$
== topic permissions
-
== auth mechanisms
{ok,['EXTERNAL']}
== listeners
Interface: 127.0.0.1, port: 25672, protocol: clustering, purpose: inter-node and CLI tool communication
Interface: [::], port: 5671, protocol: amqp/ssl, purpose: AMQP 0-9-1 and AMQP 1.0 over TLS
== plugins (explicit)
rabbitmq_auth_mechanism_ssl
== connections
relay true tlsv1.3 EXTERNAL
worker true tlsv1.3 EXTERNAL
REPORT: broker users, rights, mechanisms, listeners (no verdict)
# Код make: 0.
+194
View File
@@ -307,3 +307,197 @@ REPORT: container restrictions of the stand (no verdict)
# Итог: ни одно обновление не принесло нового пользователя, пути записи или процесса:
# 674 из 674 сразу после каждого пина и через 11 мин. На Docker Desktop 28 машины
# замеров — повтор (промпт Codex).
# --- Повтор на машине замеров ---
# Дата: 2026-12-02 UTC, 20:48–21:42 (2–3 декабря MSK).
# Окружение: MacBook Air M4, macOS 26.6.2 (25G83), arm64; Docker 28.0.4,
# ВМ 10 CPU / 10419826688 байт (9,70 ГиБ), Compose 5.6.1 (tools/docker-compat/),
# Python хоста / .venv 3.13.7; образ приложения Python 3.13.18.
# Стенд: vladimirceva-lab7, https://localhost:8443; две реплики, телеметрия включена.
# Код: исходный commit ee28cd7; код приложения, пины и конфигурации проекта прежние.
# src_sha256: 813f5a036bed303920f288ee801be991627a90f9a2955ebd8014b3e8363e6c62.
# Домашний каталог заменён на <home>. Прежние прогоны выше — история.
# Первый запуск: все процессы без seccomp, daemon использовал unconfined.
$ docker info --format '{{json .SecurityOptions}}'
["name=seccomp,profile=unconfined","name=cgroupns"]
$ make hardening-check
# Вывод сокращён: сохранены все 20 FAIL и итог.
vladimirceva-lab7-api-1 process Seccomp 2 0 FAIL
vladimirceva-lab7-api-2 process Seccomp 2 0 FAIL
vladimirceva-lab7-cleaner-1 process Seccomp 2 0 FAIL
vladimirceva-lab7-grafana-1 process Seccomp 2 0 FAIL
vladimirceva-lab7-haproxy-1 process Seccomp 2 0 FAIL
vladimirceva-lab7-loki-1 process Seccomp 2 0 FAIL
vladimirceva-lab7-loki-gateway-1 process Seccomp 2 0 FAIL
vladimirceva-lab7-openbao-1 process Seccomp 2 0 FAIL
vladimirceva-lab7-otel-collector-1 process Seccomp 2 0 FAIL
vladimirceva-lab7-otel-gateway-1 process Seccomp 2 0 FAIL
vladimirceva-lab7-postgres-1 process Seccomp 2 0 FAIL
vladimirceva-lab7-prometheus-1 process Seccomp 2 0 FAIL
vladimirceva-lab7-prometheus-gateway-1 process Seccomp 2 0 FAIL
vladimirceva-lab7-rabbitmq-1 process Seccomp 2 0 FAIL
vladimirceva-lab7-relay-1 process Seccomp 2 0 FAIL
vladimirceva-lab7-s3-1 process Seccomp 2 0 FAIL
vladimirceva-lab7-tempo-1 process Seccomp 2 0 FAIL
vladimirceva-lab7-tempo-gateway-1 process Seccomp 2 0 FAIL
vladimirceva-lab7-valkey-1 process Seccomp 2 0 FAIL
vladimirceva-lab7-worker-1 process Seccomp 2 0 FAIL
hardening-check: FAIL (654/674 checks, 13 s)
make: *** [hardening-check] Error 1
# Код make: 2; 20 FAIL — только process Seccomp, ожидается 2, фактически 0.
# Повтор через 661 с: тот же результат.
$ make hardening-check
hardening-check: FAIL (654/674 checks, 13 s)
make: *** [hardening-check] Error 1
# В ~/.docker/daemon.json задан seccomp-profile=builtin (резервная копия вне repo),
# Docker Desktop перезапущен штатной командой docker desktop restart.
# Простого старта прежних контейнеров оказалось недостаточно: они сохраняли Seccomp 0.
# Поэтому после остановки выполнено docker compose create --force-recreate --build;
# volumes сохранены. Затем разрешённые make bao-unseal и make up.
$ docker info --format '{{.NCPU}} {{.MemTotal}} {{json .SecurityOptions}}'
10 10419826688 ["name=seccomp,profile=builtin","name=cgroupns"]
# Проверка /proc/1/status новой реплики (docker exec ... python, только строки Seccomp):
Seccomp: 2
Seccomp_filters: 1
# Сразу после пересоздания: 2026-12-02T21:31:03.345050+00:00
$ make hardening-check
# Вывод сокращён; итог и проба pids из того же прогона.
pids limit probe: one-off worker container
one-off worker threads until refusal < pids limit 64, refused 63 (RuntimeError: can't start new thread)
one-off worker /health/ready via LB meanwhile 200 200
hardening-check: PASS (674/674 checks, 10 s)
# Код make: 0.
# Повтор спустя >=11 мин: 2026-12-02T21:42:04.355299+00:00
$ make hardening-check
pids limit probe: one-off worker container
one-off worker threads until refusal < pids limit 64, refused 63 (RuntimeError: can't start new thread)
one-off worker /health/ready via LB meanwhile 200 200
hardening-check: PASS (674/674 checks, 11 s)
# Код make: 0.
$ make hardening-check REPORT=1
# Вывод сокращён: пользователи, tmpfs, Seccomp, pids и итог.
pids limit probe: one-off worker container
vladimirceva-lab7-api-1 container user messenger:messenger
vladimirceva-lab7-api-1 tmpfs with size, nosuid, nodev yes
vladimirceva-lab7-api-1 pids limit 64
vladimirceva-lab7-api-1 process uid uids 10001
vladimirceva-lab7-api-1 process Seccomp 2
vladimirceva-lab7-api-2 container user messenger:messenger
vladimirceva-lab7-api-2 tmpfs with size, nosuid, nodev yes
vladimirceva-lab7-api-2 pids limit 64
vladimirceva-lab7-api-2 process uid uids 10001
vladimirceva-lab7-api-2 process Seccomp 2
vladimirceva-lab7-cleaner-1 container user messenger:messenger
vladimirceva-lab7-cleaner-1 tmpfs with size, nosuid, nodev yes
vladimirceva-lab7-cleaner-1 pids limit 64
vladimirceva-lab7-cleaner-1 process uid uids 10001
vladimirceva-lab7-cleaner-1 process Seccomp 2
vladimirceva-lab7-grafana-1 container user 472
vladimirceva-lab7-grafana-1 tmpfs with size, nosuid, nodev yes
vladimirceva-lab7-grafana-1 pids limit 256
vladimirceva-lab7-grafana-1 process uid uids 472
vladimirceva-lab7-grafana-1 process Seccomp 2
vladimirceva-lab7-haproxy-1 container user haproxy
vladimirceva-lab7-haproxy-1 tmpfs with size, nosuid, nodev yes
vladimirceva-lab7-haproxy-1 pids limit 64
vladimirceva-lab7-haproxy-1 process uid uids 99
vladimirceva-lab7-haproxy-1 process Seccomp 2
vladimirceva-lab7-loki-1 container user 10001
vladimirceva-lab7-loki-1 tmpfs with size, nosuid, nodev yes
vladimirceva-lab7-loki-1 pids limit 128
vladimirceva-lab7-loki-1 process uid uids 10001
vladimirceva-lab7-loki-1 process Seccomp 2
vladimirceva-lab7-loki-gateway-1 container user haproxy
vladimirceva-lab7-loki-gateway-1 tmpfs with size, nosuid, nodev yes
vladimirceva-lab7-loki-gateway-1 pids limit 64
vladimirceva-lab7-loki-gateway-1 process uid uids 99
vladimirceva-lab7-loki-gateway-1 process Seccomp 2
vladimirceva-lab7-migrate-1 container user messenger:messenger
vladimirceva-lab7-migrate-1 tmpfs with size, nosuid, nodev yes
vladimirceva-lab7-migrate-1 pids limit 64
vladimirceva-lab7-openbao-1 container user openbao
vladimirceva-lab7-openbao-1 tmpfs with size, nosuid, nodev yes
vladimirceva-lab7-openbao-1 pids limit 128
vladimirceva-lab7-openbao-1 process uid uids 100
vladimirceva-lab7-openbao-1 process Seccomp 2
vladimirceva-lab7-otel-collector-1 container user 10001:10001
vladimirceva-lab7-otel-collector-1 tmpfs with size, nosuid, nodev yes
vladimirceva-lab7-otel-collector-1 pids limit 128
vladimirceva-lab7-otel-collector-1 process uid uids 10001
vladimirceva-lab7-otel-collector-1 process Seccomp 2
vladimirceva-lab7-otel-gateway-1 container user haproxy
vladimirceva-lab7-otel-gateway-1 tmpfs with size, nosuid, nodev yes
vladimirceva-lab7-otel-gateway-1 pids limit 64
vladimirceva-lab7-otel-gateway-1 process uid uids 99
vladimirceva-lab7-otel-gateway-1 process Seccomp 2
vladimirceva-lab7-postgres-1 container user 999:999
vladimirceva-lab7-postgres-1 tmpfs with size, nosuid, nodev yes
vladimirceva-lab7-postgres-1 pids limit 256
vladimirceva-lab7-postgres-1 process uid uids 999
vladimirceva-lab7-postgres-1 process Seccomp 2
vladimirceva-lab7-postgres-bootstrap-1 container user messenger:messenger
vladimirceva-lab7-postgres-bootstrap-1 tmpfs with size, nosuid, nodev yes
vladimirceva-lab7-postgres-bootstrap-1 pids limit 64
vladimirceva-lab7-prometheus-1 container user nobody
vladimirceva-lab7-prometheus-1 tmpfs with size, nosuid, nodev yes
vladimirceva-lab7-prometheus-1 pids limit 128
vladimirceva-lab7-prometheus-1 process uid uids 65534
vladimirceva-lab7-prometheus-1 process Seccomp 2
vladimirceva-lab7-prometheus-gateway-1 container user haproxy
vladimirceva-lab7-prometheus-gateway-1 tmpfs with size, nosuid, nodev yes
vladimirceva-lab7-prometheus-gateway-1 pids limit 64
vladimirceva-lab7-prometheus-gateway-1 process uid uids 99
vladimirceva-lab7-prometheus-gateway-1 process Seccomp 2
vladimirceva-lab7-rabbitmq-1 container user 100:101
vladimirceva-lab7-rabbitmq-1 tmpfs with size, nosuid, nodev yes
vladimirceva-lab7-rabbitmq-1 pids limit 512
vladimirceva-lab7-rabbitmq-1 process uid uids 100
vladimirceva-lab7-rabbitmq-1 process Seccomp 2
vladimirceva-lab7-relay-1 container user messenger:messenger
vladimirceva-lab7-relay-1 tmpfs with size, nosuid, nodev yes
vladimirceva-lab7-relay-1 pids limit 64
vladimirceva-lab7-relay-1 process uid uids 10001
vladimirceva-lab7-relay-1 process Seccomp 2
vladimirceva-lab7-s3-1 container user 1000:1000
vladimirceva-lab7-s3-1 tmpfs with size, nosuid, nodev yes
vladimirceva-lab7-s3-1 pids limit 128
vladimirceva-lab7-s3-1 process uid uids 1000
vladimirceva-lab7-s3-1 process Seccomp 2
vladimirceva-lab7-s3-bootstrap-1 container user seaweed
vladimirceva-lab7-s3-bootstrap-1 tmpfs with size, nosuid, nodev yes
vladimirceva-lab7-s3-bootstrap-1 pids limit 128
vladimirceva-lab7-tempo-1 container user 10001:10001
vladimirceva-lab7-tempo-1 tmpfs with size, nosuid, nodev yes
vladimirceva-lab7-tempo-1 pids limit 128
vladimirceva-lab7-tempo-1 process uid uids 10001
vladimirceva-lab7-tempo-1 process Seccomp 2
vladimirceva-lab7-tempo-gateway-1 container user haproxy
vladimirceva-lab7-tempo-gateway-1 tmpfs with size, nosuid, nodev yes
vladimirceva-lab7-tempo-gateway-1 pids limit 64
vladimirceva-lab7-tempo-gateway-1 process uid uids 99
vladimirceva-lab7-tempo-gateway-1 process Seccomp 2
vladimirceva-lab7-valkey-1 container user 999:999
vladimirceva-lab7-valkey-1 tmpfs with size, nosuid, nodev yes
vladimirceva-lab7-valkey-1 pids limit 64
vladimirceva-lab7-valkey-1 process uid uids 999
vladimirceva-lab7-valkey-1 process Seccomp 2
vladimirceva-lab7-worker-1 container user messenger:messenger
vladimirceva-lab7-worker-1 tmpfs with size, nosuid, nodev yes
vladimirceva-lab7-worker-1 pids limit 64
vladimirceva-lab7-worker-1 process uid uids 10001
vladimirceva-lab7-worker-1 process Seccomp 2
REPORT: container restrictions of the stand (no verdict)
# Код make: 0 (без вердикта).
$ make s3-check
# Вывод сокращён: строки gRPC и итог.
stand network (api image) gRPC 18333 without TLS no HTTP/2 answer no HTTP/2 answer ok
stand network (api image) gRPC 18333 TLS without client certificate refused refused ok
stand network (api image) gRPC 18333 client leaf of another CA refused refused ok
stand network (api image) gRPC 18333 stand CA leaf, name not allowed refused refused ok
stand network (api image) gRPC 18333 client leaf of the stand CA HTTP/2 answer HTTP/2 answer ok
checks: 102, failed: 0, bootstrap exit 0
# Код make: 0. На Docker Desktop 28 подтверждены чтение ключей сервисами,
# владельцы tmpfs, отсутствие root/capabilities и ошибок записи, Seccomp 2,
# pids и слушатели; сразу и через >=11 мин — 674/674. Данные не удалялись.
+221
View File
@@ -338,3 +338,224 @@ kv messenger/s3/worker: version=1 versions=1
# (evidence/security/rotation-revocation.txt, раздел 10). make bao-outage на этом шаге не
# повторялся (код OpenBao и клиентов не менялся); на машине замеров — повтор bao-check,
# REPORT=1 и bao-outage (промпт Codex).
# --- Повтор на машине замеров ---
# Дата: 2026-12-03 UTC. MacBook Air M4, macOS 26.6.2 (25G83), arm64,
# Docker 28.0.4, ВМ 10 CPU / 10419826688 байт (9,70 ГиБ), Compose 5.6.1,
# Python хоста / .venv 3.13.7; образ приложения Python 3.13.18.
# Стенд: vladimirceva-lab7, https://localhost:8443; две реплики, телеметрия включена.
# Код: исходный commit ee28cd7; правки рабочего дерева — разбор CVE и документы.
# src_sha256: 813f5a036bed303920f288ee801be991627a90f9a2955ebd8014b3e8363e6c62.
# Роль оператора явно разрешена автором: только штатные команды, материалы
# агента не открывались; в контейнерах их нет. Домашний каталог — <home>,
# временный — <tmp>. Прежние прогоны — история.
# Начало UTC: 2026-12-03T17:06:38.521746+00:00; время команды 10.85 с.
$ make bao-check
python3 scripts/lab7.py --ca-file "<home>/Высоконагруженные/mtusi2026lab7-vladimirceva/.pki/stand/ca.crt" bao-check
stand network vladimirceva-lab7_default, image mtusi-messenger-vladimirceva:lab7
PASS openbao service is in the stand: yes
PASS network: without TLS (Go answers 400, no OpenBao data) -> HTTP 400: HTTP 400
PASS network: no client certificate -> handshake refused: handshake refused [SSL: TLSV13_ALERT_CERTIFICATE_REQUIRED] tlsv13 alert certificate required (_ssl
PASS network: client certificate of another CA -> handshake refused: handshake refused [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:2663)
PASS network: server leaf api as a client -> handshake refused: handshake refused [SSL: SSLV3_ALERT_BAD_CERTIFICATE] ssl/tls alert bad certificate (_ssl.c:2663)
PASS network: TLS 1.2 only -> handshake refused: handshake refused [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:1035)
PASS network: client trusts another CA -> client rejected certificate: client rejected certificate unable to get local issuer certificate
PASS network: server name outside SAN (postgres) -> client rejected certificate: client rejected certificate Hostname mismatch, certificate is not valid for 'postgres'.
PASS network: bao-operator, TLS 1.3 (control) -> HTTP 200: HTTP 200 TLSv1.3
PASS network: cluster port 8201 from the network -> not reachable: not reachable ConnectionRefusedError
PASS network: health port 8210 from the network -> not reachable: not reachable ConnectionRefusedError
PASS host: without TLS (Go answers 400, no OpenBao data) -> HTTP 400: HTTP 400
PASS host: no client certificate -> handshake refused: handshake refused [SSL: TLSV13_ALERT_CERTIFICATE_REQUIRED] tlsv13 alert certificate required (_ssl
PASS host: client certificate of another CA -> handshake refused: handshake refused [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:2580)
PASS host: server leaf api as a client -> handshake refused: handshake refused [SSL: SSLV3_ALERT_BAD_CERTIFICATE] ssl/tls alert bad certificate (_ssl.c:2580)
PASS host: TLS 1.2 only -> handshake refused: handshake refused [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:1010)
PASS host: client trusts another CA -> client rejected certificate: client rejected certificate unable to get local issuer certificate
PASS host: server name outside SAN (postgres) -> client rejected certificate: client rejected certificate Hostname mismatch, certificate is not valid for 'postgres'.
PASS host: bao-operator, TLS 1.3 (control) -> HTTP 200: HTTP 200 TLSv1.3
PASS initialized, unsealed, raft, threshold 3 of 5: True False raft 3 5
PASS not dev-mode (no -dev flag, no dev root token): ["server"]
PASS openbao: listening outside loopback = 8200: 8200
PASS published port: 127.0.0.1 only: 127.0.0.1:8200
PASS login roles in OpenBao = role table: api cleaner migrate relay worker
PASS login refused in every role and without role: haproxy: 400 no token x 6
PASS login refused in every role and without role: bao-operator: 400 no token x 6
PASS login refused in every role and without role: one-off leaf of another name: 400 no token x 6
PASS login refused in every role and without role: leaf with SAN api and another CN: 400 no token x 6
PASS login refused in every role and without role: leaf with two SAN (own and api): 400 no token x 6
PASS login refused in other roles: api-client: 400 no token x 4
PASS api-client without a role name -> token of its own policy only: 200 token api
PASS login refused in other roles: worker: 400 no token x 4
PASS worker without a role name -> token of its own policy only: 200 token worker
PASS login refused in other roles: relay: 400 no token x 4
PASS relay without a role name -> token of its own policy only: 200 token relay
PASS login refused in other roles: cleaner: 400 no token x 4
PASS cleaner without a role name -> token of its own policy only: 200 token cleaner
PASS login refused in other roles: migrate: 400 no token x 4
PASS migrate without a role name -> token of its own policy only: 200 token migrate
PASS api: login with its certificate: 200 token
PASS api: token policies = [api]: ['api']
PASS api: token ttl <= 600 s, renewable: 600 s
PASS api: own paths are read with a version: postgres/api 200 v3; valkey/api 200 v1; s3/api 200 v4
PASS api: 6 paths of other processes -> 403: {403: 6}
PASS api: 12 foreign operations (metadata, list, write, policies, tokens, sys/*) -> 403: 403 x 12
PASS worker: login with its certificate: 200 token
PASS worker: token policies = [worker]: ['worker']
PASS worker: token ttl <= 600 s, renewable: 600 s
PASS worker: own paths are read with a version: postgres/worker 200 v1; s3/worker 200 v1
PASS worker: 7 paths of other processes -> 403: {403: 7}
PASS worker: 12 foreign operations (metadata, list, write, policies, tokens, sys/*) -> 403: 403 x 12
PASS relay: login with its certificate: 200 token
PASS relay: token policies = [relay]: ['relay']
PASS relay: token ttl <= 600 s, renewable: 600 s
PASS relay: own paths are read with a version: postgres/relay 200 v1
PASS relay: 8 paths of other processes -> 403: {403: 8}
PASS relay: 12 foreign operations (metadata, list, write, policies, tokens, sys/*) -> 403: 403 x 12
PASS cleaner: login with its certificate: 200 token
PASS cleaner: token policies = [cleaner]: ['cleaner']
PASS cleaner: token ttl <= 600 s, renewable: 600 s
PASS cleaner: own paths are read with a version: postgres/cleaner 200 v1; s3/cleaner 200 v1
PASS cleaner: 7 paths of other processes -> 403: {403: 7}
PASS cleaner: 12 foreign operations (metadata, list, write, policies, tokens, sys/*) -> 403: 403 x 12
PASS migrate: login with its certificate: 200 token
PASS migrate: token policies = [migrate]: ['migrate']
PASS migrate: token ttl <= 600 s, renewable: 600 s
PASS migrate: own paths are read with a version: postgres/migrate 200 v1
PASS migrate: 8 paths of other processes -> 403: {403: 8}
PASS migrate: 12 foreign operations (metadata, list, write, policies, tokens, sys/*) -> 403: 403 x 12
PASS policies in OpenBao (except root, default) = policy files: api cleaner migrate relay worker
PASS policy file api: no wildcards: none
PASS policy api in OpenBao = file: same
PASS policy file cleaner: no wildcards: none
PASS policy cleaner in OpenBao = file: same
PASS policy file migrate: no wildcards: none
PASS policy migrate in OpenBao = file: same
PASS policy file relay: no wildcards: none
PASS policy relay in OpenBao = file: same
PASS policy file worker: no wildcards: none
PASS policy worker in OpenBao = file: same
PASS KV paths = process secrets: postgres/api postgres/cleaner postgres/migrate postgres/relay postgres/worker s3/api s3/cleaner s3/worker valkey/api
PASS one-off role: token for 3 s: 200 token, 3 s
PASS one-off role: renewed at 2 s, capped by max_ttl 6 s at 4 s: [(200, 3), (200, 2)], warning True
PASS one-off role: token after max_ttl -> 403: 403
PASS revoked leaf: login -> refused: 400 no token
PASS revoked leaf: renewal of the earlier token -> refused: 400
PASS after the CRL: worker still logs in: 200 token
PASS docker inspect: values of process secrets only at postgres-bootstrap, s3-bootstrap, valkey: postgres-bootstrap s3-bootstrap valkey
PASS environment of api, worker, relay, cleaner, migrate: no secret names: none
PASS api: /run/secrets = CA, CRL and its own pairs: api-client.crt api-client.key api.crt api.key ca.crt crl.pem
PASS worker: /run/secrets = CA, CRL and its own pairs: ca.crt crl.pem worker.crt worker.key
PASS relay: /run/secrets = CA, CRL and its own pairs: ca.crt crl.pem relay.crt relay.key
PASS cleaner: /run/secrets = CA, CRL and its own pairs: ca.crt cleaner.crt cleaner.key crl.pem
PASS migrate: /run/secrets = CA, CRL and its own pairs: ca.crt crl.pem migrate.crt migrate.key
PASS OpenBao tokens in docker inspect = 0: 0
PASS root token or unseal shares in docker inspect = 0: 0
PASS operator directory or bao-operator pair in containers = 0: 0
PASS container logs: no secret values, root token or shares: none
PASS audit: worker denied on postgres/api (identity and path)
PASS audit: worker read postgres/worker
PASS audit: tokens in plaintext = 0: 0
bao-check: PASS (101/101 checks, 10 s)
cleanup: 0 probe container(s) removed, probe roles and policies left: 0, temporary directory removed: True
# Код make: 0.
# Начало UTC: 2026-12-03T17:06:49.372390+00:00; время команды 0.617 с.
$ make bao-check REPORT=1
python3 scripts/lab7.py --ca-file "<home>/Высоконагруженные/mtusi2026lab7-vladimirceva/.pki/stand/ca.crt" bao-check --report
OpenBao: initialized=True sealed=False shares=5 threshold=3 version=2.7.3 storage=raft
operator dir: <home>/.config/vladimirceva-lab7/operator/openbao/vladimirceva-lab7
materials: root-token init-info unseal-share-1 unseal-share-2 unseal-share-3 unseal-share-4 unseal-share-5
mount messenger/: type=kv version=2
auth methods: cert/ token/
role api: cn=api-client san=api policies=api default_policy=False type=service ttl=600 max_ttl=3600
role cleaner: cn=cleaner san=cleaner policies=cleaner default_policy=False type=service ttl=600 max_ttl=3600
role migrate: cn=migrate san=migrate policies=migrate default_policy=False type=service ttl=600 max_ttl=3600
role relay: cn=relay san=relay policies=relay default_policy=False type=service ttl=600 max_ttl=3600
role worker: cn=worker san=worker policies=worker default_policy=False type=service ttl=600 max_ttl=3600
policy api: messenger/data/postgres/api [read]
policy api: messenger/data/valkey/api [read]
policy api: messenger/data/s3/api [read]
policy api: auth/token/lookup-self [read]
policy api: auth/token/renew-self [update]
policy api: auth/token/revoke-self [update]
policy cleaner: messenger/data/postgres/cleaner [read]
policy cleaner: messenger/data/s3/cleaner [read]
policy cleaner: auth/token/lookup-self [read]
policy cleaner: auth/token/renew-self [update]
policy cleaner: auth/token/revoke-self [update]
policy migrate: messenger/data/postgres/migrate [read]
policy migrate: auth/token/lookup-self [read]
policy migrate: auth/token/renew-self [update]
policy migrate: auth/token/revoke-self [update]
policy relay: messenger/data/postgres/relay [read]
policy relay: auth/token/lookup-self [read]
policy relay: auth/token/renew-self [update]
policy relay: auth/token/revoke-self [update]
policy worker: messenger/data/postgres/worker [read]
policy worker: messenger/data/s3/worker [read]
policy worker: auth/token/lookup-self [read]
policy worker: auth/token/renew-self [update]
policy worker: auth/token/revoke-self [update]
kv messenger/postgres/api: version=3 versions=3
kv messenger/postgres/cleaner: version=1 versions=1
kv messenger/postgres/migrate: version=1 versions=1
kv messenger/postgres/relay: version=1 versions=1
kv messenger/postgres/worker: version=1 versions=1
kv messenger/s3/api: version=4 versions=4
kv messenger/s3/cleaner: version=1 versions=1
kv messenger/s3/worker: version=1 versions=1
kv messenger/valkey/api: version=1 versions=1
kv paths: 9
== listeners outside loopback of the openbao container
8200
== secret names in the environment of the processes (compose model)
api: none
worker: none
relay: none
cleaner: none
migrate: none
REPORT: OpenBao roles, policies, paths and process secrets (no verdict)
# Код make: 0.
# Начало UTC: 2026-12-03T17:06:49.989976+00:00; время команды 110.818 с.
$ make bao-outage
python3 scripts/lab7.py --ca-file "<home>/Высоконагруженные/mtusi2026lab7-vladimirceva/.pki/stand/ca.crt" bao-outage --base-url "https://localhost:8443"
PASS short token ttl for the drill (30s): configure: 5 changes
PASS openbao stopped: exited
PASS stopped: make test: PASS: lab7 public API scenario; infrastructure and grading evidence remain separate.
PASS stopped: an upload reaches ready: 202 ready
PASS stopped: /health/ready through the LB: 200
PASS stopped: api warns at renewal: 2 lines
PASS stopped: worker warns at renewal: 1 lines
PASS stopped: relay warns at renewal: 1 lines
PASS stopped: cleaner warns at renewal: 1 lines
PASS stopped: a restarted replica is not healthy: starting
PASS stopped: the new process waits and gives up (waited >= 25 s): secret store is unavailable process=api address=https://openbao:8200 error=gaierror waited=28.1s
PASS stopped: the restart policy starts it again: True
PASS stopped: the LB serves the other replica: 200
PASS stopped: a new process (replay, wait 6 s) exits with code 1: 1 secret store is unavailable process=replay address=https://openbao:8200 error=gaierror waited=4.0s
PASS stop while waiting: code 0, under 10 s, early handler: 0, 0.1 s
PASS started again: sealed, not healthy: sealed=True starting
PASS sealed: the restarted replica still waits: starting
PASS sealed: bao-ready (make up) -> code 2, no implicit unseal: 2 bao: OpenBao is sealed: run make bao-unseal
PASS bao-unseal: unsealed OpenBao with 3 shares
PASS unsealed: the waiting replica becomes healthy: healthy
PASS unsealed: worker — one line lost, one line back, logged in again: 1 / 1 / 1
PASS unsealed: relay — one line lost, one line back, logged in again: 1 / 1 / 1
PASS unsealed: cleaner — one line lost, one line back, logged in again: 1 / 1 / 1
PASS KV versions survive the restart
PASS bao-seal: sealed OpenBao: run make bao-unseal to unseal
PASS sealed: make test: PASS: lab7 public API scenario; infrastructure and grading evidence remain separate.
PASS sealed: an upload reaches ready: 202 ready
PASS sealed: a new process does not start: 1 secret store is unavailable process=replay address=https://openbao:8200 error=sealed waited=4.1s
PASS bao-unseal again: unsealed OpenBao with 3 shares
PASS unsealed: the new process starts (secrets loaded, pass done): 0 failed registry listed=3 apply=False
PASS KV versions after seal and unseal
bao-outage: PASS (31/31 checks, 105 s)
restored: OpenBao is unsealed: nothing to do; configure: 5 changes; processes restarted
# Код make: 0.
# Итог: 101/101, scoped policy и версии секретов подтверждены; REPORT=1
# показывает только метаданные. bao-outage — 31/31, 105 с самой проверки:
# работающие процессы обслуживают запросы, новые ждут/выходят по сроку,
# после unseal запускаются, версии KV сохраняются; стенд восстановлен.
+459
View File
@@ -376,3 +376,462 @@ $ make failure-checks FAULT_ARGS=-rP
========== 55 passed, 641 deselected, 1 warning in 630.21s (0:10:30) ===========
[failures] results: {'fault': 0, 'postgres-permissions': 0, 'secrets-log': 0}
# На машине замеров — повтор make rotation-check и CONTROL=skip-crl (промпт Codex).
# --- Повтор на машине замеров ---
# Дата: 2026-12-03 UTC. MacBook Air M4, macOS 26.6.2 (25G83), arm64,
# Docker 28.0.4, ВМ 10 CPU / 10419826688 байт (9,70 ГиБ), Compose 5.6.1,
# Python хоста / .venv 3.13.7; образ приложения Python 3.13.18.
# Стенд: vladimirceva-lab7, https://localhost:8443; две реплики, телеметрия включена.
# Код: исходный commit ee28cd7; правки рабочего дерева — разбор CVE и документы.
# src_sha256: 813f5a036bed303920f288ee801be991627a90f9a2955ebd8014b3e8363e6c62.
# Пины, конфигурации проекта, бизнес-код и пороги не менялись; seccomp daemon builtin.
# Материалы оператора читали только разрешённые штатные команды; значений в выводе нет.
# Домашний каталог — <home>, временный — <tmp>. Прежние прогоны — история.
# Перед учениями: питание AC, Low Power Mode 0, caffeinate; load average < 4.
$ make rotation-check
python3 scripts/lab7.py --ca-file "<home>/Высоконагруженные/mtusi2026lab7-vladimirceva/.pki/stand/ca.crt" rotation-check --base-url "https://localhost:8443"
== rotate-leaf ingress
[ 1.5 s] phase: issue
[ 1.6 s] rotated ingress: serial 01C7658D53DD6029E64E8620FB543D6A -> 01C7658D53DD6029E64E8620FB543DAA; the previous leaf is not revoked yet
[ 1.6 s] phase: owner
[ 1.9 s] haproxy: pair ingress 01C7658D53DD6029E64E8620FB543DAA
[ 2.0 s] phase: revoke previous
[ 2.0 s] revoked ingress: serial 01C7658D53DD6029E64E8620FB543D6A
[ 2.0 s] phase: CRL
[ 2.0 s] ingress: serial 01C7658D53DD6029E64E8620FB543DAA in use
[ 2.0 s] done
PASS ingress: the LB presents the new leaf: 01C7658D53DD6029E64E8620FB543D6A -> 01C7658D53DD6029E64E8620FB543DAA
PASS load during rotate-leaf ingress: every stream made requests: 94 requests
PASS load during rotate-leaf ingress: unsuccessful requests after retry: 0 (first attempts failed 0, longest gap without a success 0.1 s)
PASS haproxy: previous pair accepted by replicas before: HTTP 200 TLSv1.3,HTTP 200 TLSv1.3
== rotate-leaf haproxy
[ 3.5 s] phase: issue
[ 3.6 s] rotated haproxy: serial 01C7658D53DD6029E64E8620FB543D68 -> 01C7658D53DD6029E64E8620FB543DAB; the previous leaf is not revoked yet
[ 3.6 s] phase: owner
[ 3.9 s] haproxy: pair haproxy 01C7658D53DD6029E64E8620FB543DAB
[ 4.0 s] phase: revoke previous
[ 4.1 s] revoked haproxy: serial 01C7658D53DD6029E64E8620FB543D68
[ 4.1 s] phase: CRL
[ 13.0 s] api: done: 2 replicas d3875e9846c6 2d824ad801ed UP in 8s
[ 13.0 s] api: new CRL applied
[ 13.0 s] haproxy: serial 01C7658D53DD6029E64E8620FB543DAB in use
[ 13.0 s] done
PASS haproxy: previous pair refused by every replica: no HTTP (closed: closed after handshake),no HTTP (closed: closed after handshake)
PASS haproxy: new pair accepted: HTTP 200 TLSv1.3,HTTP 200 TLSv1.3
PASS load during rotate-leaf haproxy: every stream made requests: 798 requests
PASS load during rotate-leaf haproxy: unsuccessful requests after retry: 0 (first attempts failed 0, longest gap without a success 0.1 s)
== rotate-secret s3/api
[ 3.3 s] phase: .env
[ 3.3 s] new value written to .env: S3_API_ACCESS_KEY, S3_API_SECRET_KEY
[ 3.3 s] phase: storage
[ 7.1 s] s3-bootstrap: both keys are valid
[ 7.1 s] phase: seed
[ 7.3 s] openbao: messenger/s3/api version 2
[ 7.3 s] phase: processes
[ 14.6 s] api: done: 2 replicas 3276f853fce0 27b70affac36 UP in 6s
[ 14.7 s] api: loaded s3/api version 2
[ 14.7 s] phase: remove previous
[ 17.9 s] s3-bootstrap: done
[ 17.9 s] phase: verify
[ 18.6 s] s3/api: previous value refused (InvalidAccessKeyId), new accepted
[ 18.6 s] s3/api: version 2, services api; window between the refusal of the previous value and the last replaced process: 0 s (both keys were valid until the processes moved); total 18.6 s
[ 18.6 s] done
PASS rotate-secret s3/api: exit 0
PASS load during rotate-secret s3/api: every stream made requests: 830 requests
PASS load during rotate-secret s3/api: unsuccessful requests after retry: 0 (first attempts failed 0, longest gap without a success 0.1 s)
== rotate-secret postgres/api
[ 3.2 s] phase: .env
[ 3.2 s] new value written to .env: POSTGRES_API_PASSWORD
[ 3.2 s] phase: seed
[ 3.4 s] openbao: messenger/postgres/api version 2
[ 3.4 s] phase: storage
[ 4.9 s] postgres-bootstrap: done
[ 5.1 s] phase: processes
[ 13.9 s] api: done: 2 replicas fcc76e9c76cc bbb0f03b20f7 UP in 8s
[ 14.1 s] api: loaded postgres/api version 2
[ 14.1 s] phase: sessions
[ 14.2 s] postgres: sessions of role api and logins older than the change closed: 0, left: 0
[ 14.2 s] phase: verify
[ 14.7 s] postgres/api: previous value refused (28P01), new accepted
[ 14.7 s] postgres/api: version 2, services api; window between the refusal of the previous value and the last replaced process: at most 10.6 s; total 14.7 s
[ 14.7 s] done
PASS rotate-secret postgres/api: exit 0
PASS load during rotate-secret postgres/api: every stream made requests: 654 requests
PASS load during rotate-secret postgres/api: unsuccessful requests after retry: 0 (first attempts failed 1, longest gap without a success 0.1 s)
== bao-seal; rotate-secret s3/api; bao-unseal
sealed OpenBao: run make bao-unseal to unseal
rotation: OpenBao is sealed: run make bao-unseal; nothing changed
unsealed OpenBao with 3 shares
PASS sealed OpenBao: rotate-secret refused before any change: exit 2
PASS .env and KV versions unchanged by the refused rotation
PASS load during sealed OpenBao: every stream made requests: 209 requests
PASS load during sealed OpenBao: unsuccessful requests after retry: 0 (first attempts failed 0, longest gap without a success 0.1 s)
PASS relay: AMQP login with the stolen pair before: open
PASS relay: OpenBao token of the stolen pair reads before: login 200
== revoke-identity relay
[ 1.5 s] phase: revoke
[ 1.6 s] revoked relay: serial 01C7658D53DD6029E64E8620FB543D6F
[ 1.6 s] phase: CRL
[ 1.7 s] openbao: new CRL applied
[ 1.8 s] openbao: role relay: revoked 2 tokens
[ 2.0 s] rabbitmq: new CRL applied
[ 3.3 s] rabbitmq: connections of relay closed: 2
[ 9.7 s] otel-gateway: restarted in 6.4 s
[ 9.7 s] otel-gateway: new CRL applied
[ 9.7 s] phase: late connections
[ 20.6 s] rabbitmq: connections begun before the CRL and opened after it, closed: 1
[ 20.6 s] relay is revoked; seconds from the start to the new CRL: openbao 1.7 s, rabbitmq 2.0 s, otel-gateway 9.7 s
[ 20.6 s] secrets issued to it are still valid; a compromised process: make rotate-secret SECRET=postgres/relay
[ 20.6 s] no new leaf until the operator returns the service: make rotate-leaf IDENTITY=relay
[ 20.6 s] done
PASS revoke-identity relay: exit 0
PASS relay: live AMQP connection closed by the revocation
PASS relay: new AMQP login with the revoked pair refused: refused: SSLError SSLV3_ALERT_CERTIFICATE_REVOKED
PASS relay: OpenBao token issued before the revocation: read 403
PASS relay: OpenBao login with the revoked pair refused: 400
PASS upload while relay is revoked: 202 queued: 202
PASS load during revoke-identity relay: every stream made requests: 895 requests
PASS load during revoke-identity relay: unsuccessful requests after retry: 0 (first attempts failed 0, longest gap without a success 0.1 s)
issued rotation-expiry (client, SAN rotation-expiry): serial 01C7658D53DD6029E64E8620FB543DAC, not after 2026-12-03 16:57:09Z, sha256 14:6D:E7:FE:C9:36:4D:A7:4E:5C:B0:00:2C:4B:4F:6A:F7:68:AD:EC:7E:11:E3:49:F5:38:A7:82:90:AB:B9:A5, <tmp>/vladimirceva-rotation-won3kwq7/rotation-expiry.crt
PASS expiry: broker and OpenBao accept the leaf before its end: accepted, accepted
PASS expiry: broker and OpenBao refuse it after: refused (SSLV3_ALERT_CERTIFICATE_EXPIRED), refused (SSLV3_ALERT_CERTIFICATE_EXPIRED)
== rotate-leaf relay
[ 1.8 s] phase: issue
[ 1.8 s] rotated relay: serial 01C7658D53DD6029E64E8620FB543D6F -> 01C7658D53DD6029E64E8620FB543DAD; the previous leaf is not revoked yet
[ 1.8 s] phase: owner
[ 6.5 s] relay: restarted in 4.7 s
[ 6.6 s] phase: revoke previous
[ 6.6 s] relay: only the stand leaf is valid; nothing to revoke
[ 6.6 s] phase: CRL
[ 6.8 s] openbao: new CRL applied
[ 6.9 s] openbao: role relay: revoked 0 tokens, kept 1
[ 7.1 s] rabbitmq: new CRL applied
[ 7.7 s] rabbitmq: connections of relay closed: 0
[ 14.8 s] otel-gateway: restarted in 7.2 s
[ 14.8 s] otel-gateway: new CRL applied
[ 14.8 s] phase: late connections
[ 24.7 s] rabbitmq: connections begun before the CRL and opened after it, closed: 0
[ 24.7 s] relay: serial 01C7658D53DD6029E64E8620FB543DAD in use
[ 24.7 s] done
PASS rotate-leaf relay: exit 0
PASS upload accepted while relay was revoked: ready: ready
PASS relay: stolen pair still refused after the return: refused: SSLError SSLV3_ALERT_CERTIFICATE_REVOKED
PASS load during rotate-leaf relay: every stream made requests: 1086 requests
PASS load during rotate-leaf relay: unsuccessful requests after retry: 0 (first attempts failed 0, longest gap without a success 0.1 s)
PASS load during the whole drill: every stream made requests: 5982 requests
PASS load during the whole drill: unsuccessful requests after retry: 0 (first attempts failed 1, longest gap without a success 1.0 s)
PASS every confirmed message exactly once: 4687 confirmed, 0 lost or doubled
PASS every accepted upload ready with the same SHA-256: 68 uploads, 0 bad
PASS containers run the same images as before (no build)
PASS pki-status: no revoked stand leaf, no previous valid leaf: revoked -, older -
rotation-check: PASS (41/41 checks, 142 s)
# Код make: 0; начало 2026-12-03T16:55:17Z; конец 2026-12-03T16:57:41Z.
# Начало UTC: 2026-12-03T16:58:47.240115+00:00; время команды 185.626 с.
$ make rotation-check CONTROL=skip-crl
python3 scripts/lab7.py --ca-file "<home>/Высоконагруженные/mtusi2026lab7-vladimirceva/.pki/stand/ca.crt" rotation-check --base-url "https://localhost:8443" --control skip-crl
== rotate-leaf ingress
[ 1.6 s] phase: issue
[ 1.7 s] rotated ingress: serial 01C7658D53DD6029E64E8620FB543DAA -> 01C7658D53DD6029E64E8620FB543DAE; the previous leaf is not revoked yet
[ 1.7 s] phase: owner
[ 2.1 s] haproxy: pair ingress 01C7658D53DD6029E64E8620FB543DAE
[ 2.2 s] phase: revoke previous
[ 2.3 s] revoked ingress: serial 01C7658D53DD6029E64E8620FB543DAA
[ 2.3 s] phase: CRL
[ 2.3 s] ingress: serial 01C7658D53DD6029E64E8620FB543DAE in use
[ 2.3 s] done
PASS ingress: the LB presents the new leaf: 01C7658D53DD6029E64E8620FB543DAA -> 01C7658D53DD6029E64E8620FB543DAE
PASS load during rotate-leaf ingress: every stream made requests: 102 requests
PASS load during rotate-leaf ingress: unsuccessful requests after retry: 0 (first attempts failed 0, longest gap without a success 0.1 s)
PASS haproxy: previous pair accepted by replicas before: HTTP 200 TLSv1.3,HTTP 200 TLSv1.3
== rotate-leaf haproxy
[ 3.3 s] phase: issue
[ 3.4 s] rotated haproxy: serial 01C7658D53DD6029E64E8620FB543DAB -> 01C7658D53DD6029E64E8620FB543DAF; the previous leaf is not revoked yet
[ 3.4 s] phase: owner
[ 3.7 s] haproxy: pair haproxy 01C7658D53DD6029E64E8620FB543DAF
[ 3.8 s] phase: revoke previous
[ 3.9 s] revoked haproxy: serial 01C7658D53DD6029E64E8620FB543DAB
[ 3.9 s] phase: CRL
[ 21.5 s] api: done: 2 replicas d1c1695d6176 c42b8caa1491 UP in 17s
[ 21.5 s] api: new CRL applied
[ 21.5 s] haproxy: serial 01C7658D53DD6029E64E8620FB543DAF in use
[ 21.5 s] done
PASS haproxy: previous pair refused by every replica: no HTTP (closed: closed after handshake),no HTTP (closed: closed after handshake)
PASS haproxy: new pair accepted: HTTP 200 TLSv1.3,HTTP 200 TLSv1.3
PASS load during rotate-leaf haproxy: every stream made requests: 1118 requests
PASS load during rotate-leaf haproxy: unsuccessful requests after retry: 0 (first attempts failed 0, longest gap without a success 0.2 s)
== rotate-secret s3/api
[ 3.7 s] phase: .env
[ 3.7 s] new value written to .env: S3_API_ACCESS_KEY, S3_API_SECRET_KEY
[ 3.7 s] phase: storage
[ 7.4 s] s3-bootstrap: both keys are valid
[ 7.4 s] phase: seed
[ 7.6 s] openbao: messenger/s3/api version 3
[ 7.6 s] phase: processes
[ 18.6 s] api: done: 2 replicas f0e11afccc86 d972d5648119 UP in 10s
[ 18.7 s] api: loaded s3/api version 3
[ 18.7 s] phase: remove previous
[ 22.5 s] s3-bootstrap: done
[ 22.5 s] phase: verify
[ 23.3 s] s3/api: previous value refused (InvalidAccessKeyId), new accepted
[ 23.3 s] s3/api: version 3, services api; window between the refusal of the previous value and the last replaced process: 0 s (both keys were valid until the processes moved); total 23.3 s
[ 23.3 s] done
PASS rotate-secret s3/api: exit 0
PASS load during rotate-secret s3/api: every stream made requests: 997 requests
PASS load during rotate-secret s3/api: unsuccessful requests after retry: 0 (first attempts failed 0, longest gap without a success 0.3 s)
== rotate-secret postgres/api
[ 3.5 s] phase: .env
[ 3.5 s] new value written to .env: POSTGRES_API_PASSWORD
[ 3.5 s] phase: seed
[ 3.7 s] openbao: messenger/postgres/api version 3
[ 3.7 s] phase: storage
[ 5.1 s] postgres-bootstrap: done
[ 5.2 s] phase: processes
[ 14.8 s] api: done: 2 replicas a74e3c5fc923 7ccc8703a51d UP in 9s
[ 14.9 s] api: loaded postgres/api version 3
[ 14.9 s] phase: sessions
[ 15.0 s] postgres: sessions of role api and logins older than the change closed: 0, left: 0
[ 15.0 s] phase: verify
[ 15.7 s] postgres/api: previous value refused (28P01), new accepted
[ 15.7 s] postgres/api: version 3, services api; window between the refusal of the previous value and the last replaced process: at most 11.3 s; total 15.7 s
[ 15.7 s] done
PASS rotate-secret postgres/api: exit 0
PASS load during rotate-secret postgres/api: every stream made requests: 700 requests
PASS load during rotate-secret postgres/api: unsuccessful requests after retry: 0 (first attempts failed 0, longest gap without a success 0.1 s)
== bao-seal; rotate-secret s3/api; bao-unseal
sealed OpenBao: run make bao-unseal to unseal
rotation: OpenBao is sealed: run make bao-unseal; nothing changed
unsealed OpenBao with 3 shares
PASS sealed OpenBao: rotate-secret refused before any change: exit 2
PASS .env and KV versions unchanged by the refused rotation
PASS load during sealed OpenBao: every stream made requests: 173 requests
PASS load during sealed OpenBao: unsuccessful requests after retry: 0 (first attempts failed 0, longest gap without a success 0.1 s)
PASS relay: AMQP login with the stolen pair before: open
PASS relay: OpenBao token of the stolen pair reads before: login 200
== CONTROL skip-crl: pki.sh revoke relay (files only)
revoked relay: serial 01C7658D53DD6029E64E8620FB543DAD
CRL: next update 2027-01-02 17:00:07Z, <home>/Высоконагруженные/mtusi2026lab7-vladimirceva/.pki/stand/crl.pem
the running stand still accepts this leaf: make revoke-identity IDENTITY=relay
PASS revoke-identity relay: exit 0
FAIL relay: live AMQP connection closed by the revocation
FAIL relay: new AMQP login with the revoked pair refused: open
FAIL relay: OpenBao token issued before the revocation: read 200
FAIL relay: OpenBao login with the revoked pair refused: 200
PASS upload while relay is revoked: 202 queued: 202
PASS load during revoke-identity relay: every stream made requests: 860 requests
PASS load during revoke-identity relay: unsuccessful requests after retry: 0 (first attempts failed 0, longest gap without a success 0.1 s)
== CONTROL: applying the revocation to converge the stand
[ 1.9 s] phase: revoke
[ 1.9 s] relay: no valid leaf, applying the current CRL
[ 1.9 s] phase: CRL
[ 2.1 s] openbao: new CRL applied
[ 2.2 s] openbao: role relay: revoked 3 tokens
[ 2.3 s] rabbitmq: new CRL applied
[ 3.3 s] rabbitmq: connections of relay closed: 2
[ 9.2 s] otel-gateway: restarted in 5.9 s
[ 9.2 s] otel-gateway: new CRL applied
[ 9.2 s] phase: late connections
[ 21.3 s] rabbitmq: connections begun before the CRL and opened after it, closed: 1
[ 21.3 s] relay is revoked; seconds from the start to the new CRL: openbao 2.1 s, rabbitmq 2.3 s, otel-gateway 9.2 s
[ 21.3 s] secrets issued to it are still valid; a compromised process: make rotate-secret SECRET=postgres/relay
[ 21.3 s] no new leaf until the operator returns the service: make rotate-leaf IDENTITY=relay
[ 21.3 s] done
issued rotation-expiry (client, SAN rotation-expiry): serial 01C7658D53DD6029E64E8620FB543DB0, not after 2026-12-03 17:01:13Z, sha256 04:5E:24:32:4D:91:1E:44:03:18:21:ED:15:AD:2D:40:DE:78:EC:71:E9:12:D7:47:DE:FE:56:F6:85:E0:58:03, <tmp>/vladimirceva-rotation-ubps5s5l/rotation-expiry.crt
PASS expiry: broker and OpenBao accept the leaf before its end: accepted, accepted
PASS expiry: broker and OpenBao refuse it after: refused (SSLV3_ALERT_CERTIFICATE_EXPIRED), refused (SSLV3_ALERT_CERTIFICATE_EXPIRED)
== rotate-leaf relay
[ 2.1 s] phase: issue
[ 2.2 s] rotated relay: serial 01C7658D53DD6029E64E8620FB543DAD -> 01C7658D53DD6029E64E8620FB543DB1; the previous leaf is not revoked yet
[ 2.2 s] phase: owner
[ 7.3 s] relay: restarted in 5.1 s
[ 7.4 s] phase: revoke previous
[ 7.4 s] relay: only the stand leaf is valid; nothing to revoke
[ 7.5 s] phase: CRL
[ 7.7 s] openbao: new CRL applied
[ 7.9 s] openbao: role relay: revoked 0 tokens, kept 1
[ 8.1 s] rabbitmq: new CRL applied
[ 9.0 s] rabbitmq: connections of relay closed: 0
[ 15.2 s] otel-gateway: restarted in 6.3 s
[ 15.2 s] otel-gateway: new CRL applied
[ 15.2 s] phase: late connections
[ 26.1 s] rabbitmq: connections begun before the CRL and opened after it, closed: 0
[ 26.1 s] relay: serial 01C7658D53DD6029E64E8620FB543DB1 in use
[ 26.1 s] done
PASS rotate-leaf relay: exit 0
PASS upload accepted while relay was revoked: ready: ready
PASS relay: stolen pair still refused after the return: refused: SSLError SSLV3_ALERT_CERTIFICATE_REVOKED
PASS load during rotate-leaf relay: every stream made requests: 1123 requests
PASS load during rotate-leaf relay: unsuccessful requests after retry: 0 (first attempts failed 0, longest gap without a success 0.1 s)
PASS load during the whole drill: every stream made requests: 7393 requests
PASS load during the whole drill: unsuccessful requests after retry: 0 (first attempts failed 0, longest gap without a success 1.9 s)
PASS every confirmed message exactly once: 5782 confirmed, 0 lost or doubled
PASS every accepted upload ready with the same SHA-256: 86 uploads, 0 bad
PASS containers run the same images as before (no build)
PASS pki-status: no revoked stand leaf, no previous valid leaf: revoked -, older -
rotation-check: FAIL (37/41 checks, 184 s)
make: *** [rotation-check] Error 1
# Код make: 2.
# Начало UTC: 2026-12-03T17:01:52.867135+00:00; время команды 25.278 с.
$ make rotate-leaf IDENTITY=worker
[ 2.1 s] phase: issue
[ 2.2 s] rotated worker: serial 01C7658D53DD6029E64E8620FB543D70 -> 01C7658D53DD6029E64E8620FB543DB2; the previous leaf is not revoked yet
[ 2.2 s] phase: owner
[ 4.1 s] worker: restarted in 1.9 s
[ 4.2 s] phase: revoke previous
[ 4.3 s] revoked worker: serial 01C7658D53DD6029E64E8620FB543D70
[ 4.3 s] phase: CRL
[ 4.6 s] openbao: new CRL applied
[ 4.8 s] openbao: role worker: revoked 1 tokens, kept 1
[ 4.9 s] rabbitmq: new CRL applied
[ 5.6 s] rabbitmq: connections of worker closed: 0
[ 8.1 s] otel-gateway: restarted in 2.5 s
[ 8.1 s] otel-gateway: new CRL applied
[ 8.1 s] phase: late connections
[ 25.2 s] rabbitmq: connections begun before the CRL and opened after it, closed: 0
[ 25.2 s] worker: serial 01C7658D53DD6029E64E8620FB543DB2 in use
[ 25.2 s] done
# Код make: 0.
# Начало UTC: 2026-12-03T17:02:18.145911+00:00; время команды 1.878 с.
$ make revoke-identity IDENTITY=cleaner
[ 1.3 s] phase: revoke
[ 1.4 s] revoked cleaner: serial 01C7658D53DD6029E64E8620FB543D7B
[ 1.4 s] phase: CRL
[ 1.6 s] openbao: new CRL applied
[ 1.8 s] openbao: role cleaner: revoked 1 tokens
[ 1.8 s] cleaner is revoked; seconds from the start to the new CRL: openbao 1.6 s
[ 1.8 s] secrets issued to it are still valid; a compromised process: make rotate-secret SECRET=postgres/cleaner; make rotate-secret SECRET=s3/cleaner
[ 1.8 s] no new leaf until the operator returns the service: make rotate-leaf IDENTITY=cleaner
[ 1.8 s] done
# Код make: 0.
# Начало UTC: 2026-12-03T17:02:20.023897+00:00; время команды 6.045 с.
$ make rotate-leaf IDENTITY=cleaner
[ 1.4 s] phase: issue
[ 1.5 s] rotated cleaner: serial 01C7658D53DD6029E64E8620FB543D7B -> 01C7658D53DD6029E64E8620FB543DB3; the previous leaf is not revoked yet
[ 1.5 s] phase: owner
[ 5.6 s] cleaner: restarted in 4.1 s
[ 5.7 s] phase: revoke previous
[ 5.7 s] cleaner: only the stand leaf is valid; nothing to revoke
[ 5.7 s] phase: CRL
[ 5.8 s] openbao: new CRL applied
[ 6.0 s] openbao: role cleaner: revoked 0 tokens, kept 1
[ 6.0 s] cleaner: serial 01C7658D53DD6029E64E8620FB543DB3 in use
[ 6.0 s] done
# Код make: 0.
# Начало UTC: 2026-12-03T17:02:26.069775+00:00; время команды 23.49 с.
$ make rotate-secret SECRET=s3/api
[ 3.4 s] phase: .env
[ 3.4 s] new value written to .env: S3_API_ACCESS_KEY, S3_API_SECRET_KEY
[ 3.4 s] phase: storage
[ 6.6 s] s3-bootstrap: both keys are valid
[ 6.6 s] phase: seed
[ 6.8 s] openbao: messenger/s3/api version 4
[ 6.8 s] phase: processes
[ 18.7 s] api: done: 2 replicas 92d82b41fd2d 9adc5abcf585 UP in 11s
[ 18.8 s] api: loaded s3/api version 4
[ 18.8 s] phase: remove previous
[ 22.6 s] s3-bootstrap: done
[ 22.6 s] phase: verify
[ 23.4 s] s3/api: previous value refused (InvalidAccessKeyId), new accepted
[ 23.4 s] s3/api: version 4, services api; window between the refusal of the previous value and the last replaced process: 0 s (both keys were valid until the processes moved); total 23.4 s
[ 23.4 s] done
# Код make: 0.
# Начало UTC: 2026-12-03T17:02:49.561054+00:00; время команды 57.469 с.
$ make pki-renew
[ 4.1 s] phase: issue
[ 5.6 s] CRL: next update 2027-01-02 17:02:53Z, <home>/Высоконагруженные/mtusi2026lab7-vladimirceva/.pki/stand/crl.pem
[ 8.1 s] phase: owners
[ 10.0 s] every owner already works with its stand leaf
[ 10.0 s] phase: revoke previous
[ 10.0 s] no previous leaf to revoke
[ 10.0 s] phase: CRL
[ 10.2 s] openbao: new CRL applied
[ 10.4 s] openbao: role api: revoked 0 tokens, kept 14
[ 10.5 s] openbao: role cleaner: revoked 0 tokens, kept 1
[ 10.6 s] openbao: role migrate: revoked 0 tokens, kept 0
[ 10.8 s] openbao: role relay: revoked 0 tokens, kept 1
[ 10.9 s] openbao: role worker: revoked 0 tokens, kept 1
[ 11.0 s] rabbitmq: new CRL applied
[ 11.5 s] rabbitmq: connections of relay closed: 0
[ 12.1 s] rabbitmq: connections of worker closed: 0
[ 12.4 s] haproxy: new CRL applied
[ 14.7 s] otel-gateway: restarted in 2.3 s
[ 14.7 s] otel-gateway: new CRL applied
[ 18.0 s] loki-gateway: restarted in 3.3 s
[ 18.0 s] loki-gateway: new CRL applied
[ 30.7 s] tempo-gateway: restarted in 12.7 s
[ 30.7 s] tempo-gateway: new CRL applied
[ 35.3 s] prometheus-gateway: restarted in 4.5 s
[ 35.3 s] prometheus-gateway: new CRL applied
[ 39.6 s] relay: restarted in 4.3 s
[ 39.6 s] relay: new CRL applied
[ 41.1 s] worker: restarted in 1.5 s
[ 41.1 s] worker: new CRL applied
[ 45.7 s] cleaner: restarted in 4.6 s
[ 45.7 s] cleaner: new CRL applied
[ 56.4 s] api: done: 2 replicas 54b39a374f45 595b8ce103bf UP in 9s
[ 56.4 s] api: new CRL applied
[ 56.4 s] phase: late connections
[ 57.4 s] rabbitmq: connections begun before the CRL and opened after it, closed: 0
[ 57.4 s] new CRL applied: openbao 10.2 s, rabbitmq 11.0 s, haproxy 12.4 s, otel-gateway 14.7 s, loki-gateway 18.0 s, tempo-gateway 30.7 s, prometheus-gateway 35.3 s, relay 39.6 s, worker 41.1 s, cleaner 45.7 s, api 56.4 s
[ 57.4 s] done
# Код make: 0.
# Начало UTC: 2026-12-03T17:03:47.030855+00:00; время команды 1.271 с.
$ make pki-status
CA: not after 2029-12-01 20:43:51Z (1094 days, ok), sha256 89:34:CC:B0:90:61:A7:E7:31:69:DD:DB:03:7E:2B:40:06:B3:1A:D9:A0:86:A8:A8:15:60:0C:3E:07:37:9C:88, <home>/.config/vladimirceva-lab7/operator/ca.crt
leaf haproxy: serial 01C7658D53DD6029E64E8620FB543DAF, not after 2027-03-03 16:59:03Z (90 days, ok), sha256 92:21:E2:C2:2F:84:00:E6:E9:72:B9:7A:BE:36:A8:79:DF:E5:29:A0:80:FF:5A:5E:62:FD:07:C4:83:59:97:B5, <home>/Высоконагруженные/mtusi2026lab7-vladimirceva/.pki/stand/haproxy.crt
leaf api: serial 01C7658D53DD6029E64E8620FB543D69, not after 2027-03-02 20:43:51Z (89 days, ok), sha256 C1:33:86:BC:1B:AD:9D:5B:D9:F4:03:4E:53:2B:06:00:F7:94:45:39:2C:49:0D:A9:59:54:69:D6:64:03:18:69, <home>/Высоконагруженные/mtusi2026lab7-vladimirceva/.pki/stand/api.crt
leaf ingress: serial 01C7658D53DD6029E64E8620FB543DAE, not after 2027-03-03 16:58:56Z (90 days, ok), sha256 32:B1:26:A1:B8:D1:0E:33:77:18:90:A5:E1:8B:B1:C3:7A:C1:B1:8A:4C:77:C7:F6:33:5E:C4:85:A2:F4:04:13, <home>/Высоконагруженные/mtusi2026lab7-vladimirceva/.pki/stand/ingress.crt
leaf postgres: serial 01C7658D53DD6029E64E8620FB543D6B, not after 2027-03-02 20:43:51Z (89 days, ok), sha256 D8:B9:26:F9:70:95:5B:48:13:0D:83:8A:B6:2D:0C:53:94:A4:85:71:89:0A:CE:7B:A8:F4:23:9B:F8:2A:29:A3, <home>/Высоконагруженные/mtusi2026lab7-vladimirceva/.pki/stand/postgres.crt
leaf valkey: serial 01C7658D53DD6029E64E8620FB543D6C, not after 2027-03-02 20:43:51Z (89 days, ok), sha256 5B:52:68:61:B1:5D:81:F3:31:33:4B:E8:1E:23:5A:65:E9:BB:91:B5:06:B7:CC:6D:12:66:F4:2A:C6:5C:01:22, <home>/Высоконагруженные/mtusi2026lab7-vladimirceva/.pki/stand/valkey.crt
leaf s3: serial 01C7658D53DD6029E64E8620FB543D6D, not after 2027-03-02 20:43:51Z (89 days, ok), sha256 02:49:45:14:D3:38:9F:F5:0B:00:B5:37:88:7C:E1:9E:31:9B:43:45:2D:54:BE:0D:C2:51:4B:5B:26:B6:C4:AA, <home>/Высоконагруженные/mtusi2026lab7-vladimirceva/.pki/stand/s3.crt
leaf rabbitmq: serial 01C7658D53DD6029E64E8620FB543D6E, not after 2027-03-02 20:43:51Z (89 days, ok), sha256 8E:CD:AB:69:5A:F7:67:78:43:1A:1B:37:80:20:CE:63:70:D4:20:E5:18:EE:61:F9:70:7F:D8:8D:F0:0F:27:C4, <home>/Высоконагруженные/mtusi2026lab7-vladimirceva/.pki/stand/rabbitmq.crt
leaf relay: serial 01C7658D53DD6029E64E8620FB543DB1, not after 2027-03-03 17:01:18Z (90 days, ok), sha256 66:96:2E:B2:2E:8C:4F:1D:54:A2:F0:43:7B:4E:66:51:31:DA:5D:DE:1D:CF:0B:9B:5F:EF:CB:D2:94:FF:94:3C, <home>/Высоконагруженные/mtusi2026lab7-vladimirceva/.pki/stand/relay.crt
leaf worker: serial 01C7658D53DD6029E64E8620FB543DB2, not after 2027-03-03 17:01:55Z (90 days, ok), sha256 C2:93:10:48:40:8C:43:BC:47:6D:F5:C0:2D:42:26:09:02:1F:26:31:E1:EA:86:08:0A:44:58:89:24:18:0B:87, <home>/Высоконагруженные/mtusi2026lab7-vladimirceva/.pki/stand/worker.crt
leaf otel-collector: serial 01C7658D53DD6029E64E8620FB543D71, not after 2027-03-02 20:43:51Z (89 days, ok), sha256 C4:AF:92:BB:3C:27:9C:66:2C:CE:42:04:F5:48:8B:1C:49:A4:EB:66:CB:94:73:A1:0A:D7:A7:D1:E7:42:FC:91, <home>/Высоконагруженные/mtusi2026lab7-vladimirceva/.pki/stand/otel-collector.crt
leaf api-client: serial 01C7658D53DD6029E64E8620FB543D72, not after 2027-03-02 20:43:51Z (89 days, ok), sha256 96:F8:4D:5A:2F:2E:D1:EE:6B:38:F2:4A:2C:18:86:B4:21:C1:A0:15:A8:E0:08:40:ED:E5:55:77:B7:7B:4D:7A, <home>/Высоконагруженные/mtusi2026lab7-vladimirceva/.pki/stand/api-client.crt
leaf loki: serial 01C7658D53DD6029E64E8620FB543D73, not after 2027-03-02 20:43:51Z (89 days, ok), sha256 52:8B:A7:81:D8:BE:AE:77:09:8C:DC:21:31:65:BD:BC:66:A8:A1:6B:FD:41:81:84:2F:54:64:7B:D8:32:3C:F9, <home>/Высоконагруженные/mtusi2026lab7-vladimirceva/.pki/stand/loki.crt
leaf tempo: serial 01C7658D53DD6029E64E8620FB543D74, not after 2027-03-02 20:43:51Z (89 days, ok), sha256 41:9B:BD:6F:C5:B5:BF:81:DB:28:A4:A7:01:42:39:1B:93:42:13:16:81:F0:85:26:03:5E:31:12:AF:05:4D:E0, <home>/Высоконагруженные/mtusi2026lab7-vladimirceva/.pki/stand/tempo.crt
leaf prometheus: serial 01C7658D53DD6029E64E8620FB543D75, not after 2027-03-02 20:43:51Z (89 days, ok), sha256 94:57:72:17:2E:4C:AE:0E:B4:51:81:B1:C9:BB:C7:19:75:F2:C7:59:4E:D5:DE:0E:72:FE:63:6E:AD:0C:B0:89, <home>/Высоконагруженные/mtusi2026lab7-vladimirceva/.pki/stand/prometheus.crt
leaf grafana: serial 01C7658D53DD6029E64E8620FB543D76, not after 2027-03-02 20:43:51Z (89 days, ok), sha256 D5:68:A2:21:F4:CD:B4:00:A2:70:28:D5:62:C5:17:C7:05:09:7C:0A:66:1D:26:4F:C4:C2:3A:F4:7D:1B:9F:98, <home>/Высоконагруженные/mtusi2026lab7-vladimirceva/.pki/stand/grafana.crt
leaf otel-collector-client: serial 01C7658D53DD6029E64E8620FB543D77, not after 2027-03-02 20:43:51Z (89 days, ok), sha256 AB:56:E3:A1:44:52:D9:86:37:9A:C6:3B:FD:B7:3A:F0:9F:0C:6B:54:F4:86:69:3C:E6:96:2D:85:2C:BA:9D:05, <home>/Высоконагруженные/mtusi2026lab7-vladimirceva/.pki/stand/otel-collector-client.crt
leaf prometheus-client: serial 01C7658D53DD6029E64E8620FB543D78, not after 2027-03-02 20:43:51Z (89 days, ok), sha256 6E:6C:E6:0B:CB:1E:B6:41:67:D0:FC:BA:BA:1A:C7:83:41:55:CC:D4:3B:4B:CF:E9:17:89:D7:55:26:3A:48:22, <home>/Высоконагруженные/mtusi2026lab7-vladimirceva/.pki/stand/prometheus-client.crt
leaf grafana-client: serial 01C7658D53DD6029E64E8620FB543D79, not after 2027-03-02 20:43:51Z (89 days, ok), sha256 83:41:2F:18:8B:A4:30:84:09:B5:17:EF:70:EA:DD:0C:4B:02:85:BA:E5:8C:FF:42:F1:0B:7F:25:A9:8D:1C:9A, <home>/Высоконагруженные/mtusi2026lab7-vladimirceva/.pki/stand/grafana-client.crt
leaf openbao: serial 01C7658D53DD6029E64E8620FB543D7A, not after 2027-03-02 20:43:51Z (89 days, ok), sha256 2A:B9:6B:20:13:14:A5:FD:54:C1:5D:A5:65:4A:A2:C2:C4:5B:EA:DA:75:18:75:8A:72:30:80:84:06:7D:2C:AE, <home>/Высоконагруженные/mtusi2026lab7-vladimirceva/.pki/stand/openbao.crt
leaf cleaner: serial 01C7658D53DD6029E64E8620FB543DB3, not after 2027-03-03 17:02:21Z (90 days, ok), sha256 0A:7E:E1:E5:31:F4:72:9A:F4:9F:47:3D:42:29:ED:E0:8A:41:B5:51:3A:22:E7:88:2A:FC:1D:F7:08:E5:62:AE, <home>/Высоконагруженные/mtusi2026lab7-vladimirceva/.pki/stand/cleaner.crt
leaf migrate: serial 01C7658D53DD6029E64E8620FB543D7C, not after 2027-03-02 20:43:52Z (89 days, ok), sha256 A0:CE:87:74:90:72:00:EC:F6:7F:02:FC:D2:D4:57:D9:B5:EA:D0:F0:A6:F5:41:31:ED:E4:5F:CA:1A:E2:D6:69, <home>/Высоконагруженные/mtusi2026lab7-vladimirceva/.pki/stand/migrate.crt
leaf bao-operator: serial 01C7658D53DD6029E64E8620FB543D7D, not after 2027-03-02 20:43:52Z (89 days, ok), sha256 0A:45:85:89:50:88:2E:14:69:D6:B6:69:B9:57:37:E3:13:A8:4A:D8:9E:1E:71:26:1E:30:29:72:47:58:C4:95, <home>/Высоконагруженные/mtusi2026lab7-vladimirceva/.pki/stand/bao-operator.crt
older leaf broker-probe: 4 still valid and not revoked besides the stand leaf
older leaf mtls-probe: 4 still valid and not revoked besides the stand leaf
older leaf s3-grpc-denied: 6 still valid and not revoked besides the stand leaf
older leaf s3-grpc-probe: 6 still valid and not revoked besides the stand leaf
older leaf telemetry-probe: 12 still valid and not revoked besides the stand leaf
CRL: next update 2027-01-02 17:02:53Z (30 days, ok), revoked 20, <home>/Высоконагруженные/mtusi2026lab7-vladimirceva/.pki/stand/crl.pem
# Код make: 0.
# Начало UTC: 2026-12-03T17:03:48.302220+00:00; время команды 0.165 с.
$ make jobs-audit
class stuck_time 0
class attempt_number 0
class state_mismatch 0
class false_success 0
class future_updated_at 0
class verified_damaged 0
info failed_with_source 3
info ready_without_variants 0
damaged 0
# Код make: 0.
# Итог: 41/41, 142 с; 4687 подтверждённых сообщений без потерь/дублей,
# 68 вложений с тем же SHA-256; 0 неуспешных после повтора, 1 первая попытка
# неуспешна; наибольшее окно без успеха 1,0 с. skip-crl — ровно 4 FAIL,
# 37/41 за 184 с; код проверки 1 / make 2, стенд после контроля сведён.
# Отдельные ротации — код 0; pki-status без REVOKED/held identity стенда,
# jobs-audit damaged 0. --platform у Docker 28 нет: перед ротациями make up
# уже выполнен, тег рабочего образа затем не пересобирался.
+225
View File
@@ -301,3 +301,228 @@ $ make security-audit REPORT=1
security-audit: REPORT (15/15 rows, 11 checks, 192 s); verdict not applied (code 0)
# Итог: на новых пинах вся матрица — PASS, 15 из 15 строк, код 0; отчёт без вердикта —
# те же 15 строк. На машине замеров — повтор (промпт Codex).
# --- Повтор на машине замеров ---
# Дата: 2026-12-02 UTC, 20:48–21:42 (2–3 декабря MSK).
# Окружение: MacBook Air M4, macOS 26.6.2 (25G83), arm64; Docker 28.0.4,
# ВМ 10 CPU / 10419826688 байт (9,70 ГиБ), Compose 5.6.1 (tools/docker-compat/),
# Python хоста / .venv 3.13.7; образ приложения Python 3.13.18.
# Стенд: vladimirceva-lab7, https://localhost:8443; две реплики, телеметрия включена.
# Код: исходный commit ee28cd7; код приложения, пины и конфигурации проекта прежние.
# src_sha256: 813f5a036bed303920f288ee801be991627a90f9a2955ebd8014b3e8363e6c62.
# Домашний каталог заменён на <home>. Прежние прогоны выше — история.
# Первый прогон при unconfined (полный вывод сохранён вне репозитория):
$ make security-audit
# Сокращено: проверки и итог; все три строки матрицы FAIL связаны с hardening.
check ingress-tls ...
check ingress-tls: PASS (code 0, 0 s)
check test-security ...
check test-security: PASS (code 0, 0 s)
check mtls-check ...
check mtls-check: PASS (code 0, 15 s)
check storage-tls-check ...
check storage-tls-check: PASS (code 0, 2 s)
check storage-roles-check ...
check storage-roles-check: PASS (code 0, 13 s)
check s3-check ...
check s3-check: PASS (code 0, 4 s)
check broker-mtls-check ...
check broker-mtls-check: PASS (code 0, 27 s)
check telemetry-tls-check ...
check telemetry-tls-check: PASS (code 0, 12 s)
check bao-check ...
check bao-check: PASS (code 0, 10 s)
check telemetry-leaks ...
check telemetry-leaks: PASS (code 0, 35 s); 16 log records, 34164 bytes of traces
check hardening-check ...
check hardening-check: FAIL (code 1, 13 s)
summary: matrix row → check → result
Оператор → OpenBao/Grafana/S3 admin: FAIL
Каналы scrape, health и bootstrap: FAIL
Контейнеры: capabilities, root, корень, pids: FAIL
security-audit: FAIL (12/15 rows, 11 checks, 130 s)
make: *** [security-audit] Error 1
# Код make: 2; сам аудит вернул 1 (нарушение), не «нет данных».
# После builtin и пересоздания контейнеров:
$ make security-audit
python3 infra/audit/audit.py --base-url "https://localhost:8443" --ca-file "<home>/Высоконагруженные/mtusi2026lab7-vladimirceva/.pki/stand/ca.crt"
check ingress-tls ...
check ingress-tls: PASS (code 0, 0 s)
check test-security ...
check test-security: PASS (code 0, 0 s)
check mtls-check ...
check mtls-check: PASS (code 0, 15 s)
check storage-tls-check ...
check storage-tls-check: PASS (code 0, 2 s)
check storage-roles-check ...
check storage-roles-check: PASS (code 0, 15 s)
check s3-check ...
check s3-check: PASS (code 0, 4 s)
check broker-mtls-check ...
check broker-mtls-check: PASS (code 0, 28 s)
check telemetry-tls-check ...
check telemetry-tls-check: PASS (code 0, 12 s)
check bao-check ...
check bao-check: PASS (code 0, 10 s)
check telemetry-leaks ...
check telemetry-leaks: PASS (code 0, 32 s); 17 log records, 36068 bytes of traces
check hardening-check ...
check hardening-check: PASS (code 0, 11 s)
summary: matrix row → check → result
[trust matrix]
Клиент → ingress/LB: PASS
- TLS ≥ 1.2, CA и hostname, нет HTTP → ingress-tls: PASS
- CA стенда — ответ, пустое хранилище корней — отказ → test-security: PASS
outside the audit: сессии, предел входа и тела — make student-test, make failure-checks; ротация ingress — make rotation-check
LB → API (все реплики): PASS
- mTLS 1.3, allowlist haproxy, чужой сервер api → mtls-check: PASS
outside the audit: ротация leaf haproxy / api — make rotation-check
API/worker → PostgreSQL: PASS
- TLS 1.3 verify-full, нет сессий без TLS → storage-tls-check: PASS
- роли процессов = матрица, DDL и чужое — 42501 → storage-roles-check: PASS
- пароль роли только из OpenBao → bao-check: PASS
outside the audit: ротация пароля — make rotation-check; права worker — make worker-compromise
API/worker → S3: PASS
- HTTPS, чужой CA и имя — отказ → storage-tls-check: PASS
- пользователи и префиксы, gRPC шлюза — mTLS и CN → s3-check: PASS
- ключи только из OpenBao → bao-check: PASS
outside the audit: ротация ключа — make rotation-check; префиксы worker — make worker-compromise
API/worker → broker: PASS
- mTLS 1.3, EXTERNAL, права relay / worker → broker-mtls-check: PASS
outside the audit: отзыв identity у брокера — make rotation-check
API/worker → Collector: PASS
- mTLS шлюза OTLP, allowlist api / worker / relay → telemetry-tls-check: PASS
outside the audit: отзыв worker у шлюза — make worker-compromise
Collector → telemetry backends: PASS
- mTLS шлюзов, allowlist и права по пути → telemetry-tls-check: PASS
Grafana → data sources: PASS
- grafana-client только чтение, 403 шлюза → telemetry-tls-check: PASS
API/worker/agent → OpenBao: PASS
- mTLS, cert auth, политика на процесс → bao-check: PASS
outside the audit: отзыв токенов и CRL под нагрузкой — make rotation-check
Оператор → OpenBao/Grafana/S3 admin: PASS
- OpenBao с хоста по mTLS, root token не у сервисов → bao-check: PASS
- Grafana только HTTPS по localhost → telemetry-tls-check: PASS
- служебные порты S3 из сети закрыты → s3-check: PASS
- CLI брокера только в контейнере → broker-mtls-check: PASS
- публикации только 127.0.0.1 → hardening-check: PASS
API → Redis/Valkey, если используется: PASS
- TLS 1.3, нет порта без TLS → storage-tls-check: PASS
- ACL api, default — отказ → storage-roles-check: PASS
outside the audit: ротация пароля — make rotation-check
Replication/кластерные каналы, если добавлены: PASS
- N/A: порт кластера OpenBao 8201 из сети закрыт → bao-check: PASS
- N/A: master / volume / filer S3 только loopback → s3-check: PASS
[outside the table]
Каналы scrape, health и bootstrap: PASS
- :8404 LB, :8888 / :8889, :8405, :14318 → telemetry-tls-check: PASS
- health 8210 OpenBao из сети закрыт → bao-check: PASS
- распределение Erlang на loopback → broker-mtls-check: PASS
- слушатели хранилищ вне loopback — только TLS → storage-tls-check: PASS
- слушатели всех контейнеров = таблица → hardening-check: PASS
Контейнеры: capabilities, root, корень, pids: PASS
- docker inspect, процессы, EROFS, pids → hardening-check: PASS
outside the audit: уязвимости образов — make scan
Утечки в телеметрии: PASS
- Loki и Tempo без пароля, токена, тел, Authorization → telemetry-leaks: PASS
- журналы шлюзов без PEM и ключей → telemetry-tls-check: PASS
- секреты не в окружении, аудит OpenBao без токенов → bao-check: PASS
outside the audit: журналы процессов без секретов — make failure-checks (secrets-log)
security-audit: PASS (15/15 rows, 11 checks, 128 s)
# Код make: 0.
$ make security-audit REPORT=1
python3 infra/audit/audit.py --base-url "https://localhost:8443" --ca-file "<home>/Высоконагруженные/mtusi2026lab7-vladimirceva/.pki/stand/ca.crt" --report
check ingress-tls ...
check ingress-tls: PASS (code 0, 0 s)
check test-security ...
check test-security: PASS (code 0, 0 s)
check mtls-check ...
check mtls-check: PASS (code 0, 15 s)
check storage-tls-check ...
check storage-tls-check: PASS (code 0, 2 s)
check storage-roles-check ...
check storage-roles-check: PASS (code 0, 14 s)
check s3-check ...
check s3-check: PASS (code 0, 4 s)
check broker-mtls-check ...
check broker-mtls-check: PASS (code 0, 27 s)
check telemetry-tls-check ...
check telemetry-tls-check: PASS (code 0, 17 s)
check bao-check ...
check bao-check: PASS (code 0, 10 s)
check telemetry-leaks ...
check telemetry-leaks: PASS (code 0, 32 s); 18 log records, 37970 bytes of traces
check hardening-check ...
check hardening-check: PASS (code 0, 11 s)
summary: matrix row → check → result
[trust matrix]
Клиент → ingress/LB: PASS
- TLS ≥ 1.2, CA и hostname, нет HTTP → ingress-tls: PASS
- CA стенда — ответ, пустое хранилище корней — отказ → test-security: PASS
outside the audit: сессии, предел входа и тела — make student-test, make failure-checks; ротация ingress — make rotation-check
LB → API (все реплики): PASS
- mTLS 1.3, allowlist haproxy, чужой сервер api → mtls-check: PASS
outside the audit: ротация leaf haproxy / api — make rotation-check
API/worker → PostgreSQL: PASS
- TLS 1.3 verify-full, нет сессий без TLS → storage-tls-check: PASS
- роли процессов = матрица, DDL и чужое — 42501 → storage-roles-check: PASS
- пароль роли только из OpenBao → bao-check: PASS
outside the audit: ротация пароля — make rotation-check; права worker — make worker-compromise
API/worker → S3: PASS
- HTTPS, чужой CA и имя — отказ → storage-tls-check: PASS
- пользователи и префиксы, gRPC шлюза — mTLS и CN → s3-check: PASS
- ключи только из OpenBao → bao-check: PASS
outside the audit: ротация ключа — make rotation-check; префиксы worker — make worker-compromise
API/worker → broker: PASS
- mTLS 1.3, EXTERNAL, права relay / worker → broker-mtls-check: PASS
outside the audit: отзыв identity у брокера — make rotation-check
API/worker → Collector: PASS
- mTLS шлюза OTLP, allowlist api / worker / relay → telemetry-tls-check: PASS
outside the audit: отзыв worker у шлюза — make worker-compromise
Collector → telemetry backends: PASS
- mTLS шлюзов, allowlist и права по пути → telemetry-tls-check: PASS
Grafana → data sources: PASS
- grafana-client только чтение, 403 шлюза → telemetry-tls-check: PASS
API/worker/agent → OpenBao: PASS
- mTLS, cert auth, политика на процесс → bao-check: PASS
outside the audit: отзыв токенов и CRL под нагрузкой — make rotation-check
Оператор → OpenBao/Grafana/S3 admin: PASS
- OpenBao с хоста по mTLS, root token не у сервисов → bao-check: PASS
- Grafana только HTTPS по localhost → telemetry-tls-check: PASS
- служебные порты S3 из сети закрыты → s3-check: PASS
- CLI брокера только в контейнере → broker-mtls-check: PASS
- публикации только 127.0.0.1 → hardening-check: PASS
API → Redis/Valkey, если используется: PASS
- TLS 1.3, нет порта без TLS → storage-tls-check: PASS
- ACL api, default — отказ → storage-roles-check: PASS
outside the audit: ротация пароля — make rotation-check
Replication/кластерные каналы, если добавлены: PASS
- N/A: порт кластера OpenBao 8201 из сети закрыт → bao-check: PASS
- N/A: master / volume / filer S3 только loopback → s3-check: PASS
[outside the table]
Каналы scrape, health и bootstrap: PASS
- :8404 LB, :8888 / :8889, :8405, :14318 → telemetry-tls-check: PASS
- health 8210 OpenBao из сети закрыт → bao-check: PASS
- распределение Erlang на loopback → broker-mtls-check: PASS
- слушатели хранилищ вне loopback — только TLS → storage-tls-check: PASS
- слушатели всех контейнеров = таблица → hardening-check: PASS
Контейнеры: capabilities, root, корень, pids: PASS
- docker inspect, процессы, EROFS, pids → hardening-check: PASS
outside the audit: уязвимости образов — make scan
Утечки в телеметрии: PASS
- Loki и Tempo без пароля, токена, тел, Authorization → telemetry-leaks: PASS
- журналы шлюзов без PEM и ключей → telemetry-tls-check: PASS
- секреты не в окружении, аудит OpenBao без токенов → bao-check: PASS
outside the audit: журналы процессов без секретов — make failure-checks (secrets-log)
security-audit: REPORT (15/15 rows, 11 checks, 132 s); verdict not applied (code 0)
# Код make: 0. Все 15 строк и 11 проверок пройдены; REPORT=1 без вердикта.
+214
View File
@@ -584,3 +584,217 @@ $ make test-isolated; make failure-checks FAULT_ARGS=-rP # 19:17Z, 19:25Z
# Итог: на PostgreSQL 18.7 права ролей — те же (матрица src/db_roles.py), у worker — только
# таблицы конвейера по колонкам, DDL и программы сервера — отказ; отдельные стенды без
# «permission denied». На машине замеров — повтор (промпт Codex).
# --- Повтор на машине замеров ---
# Дата: 2026-12-03 UTC. MacBook Air M4, macOS 26.6.2 (25G83), arm64,
# Docker 28.0.4, ВМ 10 CPU / 10419826688 байт (9,70 ГиБ), Compose 5.6.1,
# Python хоста / .venv 3.13.7; образ приложения Python 3.13.18.
# Стенд: vladimirceva-lab7, https://localhost:8443; две реплики, телеметрия включена.
# Код: исходный commit ee28cd7; правки рабочего дерева — разбор CVE и документы.
# src_sha256: 813f5a036bed303920f288ee801be991627a90f9a2955ebd8014b3e8363e6c62.
# Пины, конфигурации проекта, бизнес-код и пороги не менялись; seccomp daemon builtin.
# Материалы оператора читали только разрешённые штатные команды; значений в выводе нет.
# Домашний каталог — <home>, временный — <tmp>. Прежние прогоны — история.
# Начало UTC: 2026-12-03T17:05:36.856897+00:00; время команды 17.806 с.
$ make storage-roles-check
python3 scripts/lab7.py --ca-file "<home>/Высоконагруженные/mtusi2026lab7-vladimirceva/.pki/stand/ca.crt" storage-roles-check
probe: api (its environment and network)
probe: worker (its environment and network)
probe: relay (its environment and network)
probe: cleaner (its environment and network)
probe: migrate (its environment and network)
PASS api: postgres role -> api: api
PASS api: role attributes and server roles -> none: none
PASS api: role memberships -> none: none
PASS api: database privileges beyond CONNECT -> none: none
PASS api: CONNECT to other databases -> none: none
PASS api: CREATE TABLE in public -> denied (42501): denied (42501)
PASS api: ALTER TABLE attachments -> denied (42501): denied (42501)
PASS api: DROP TABLE attachment_variants -> denied (42501): denied (42501)
PASS api: SELECT attachment_job_replays -> denied (42501): denied (42501)
PASS api: DELETE attachments -> denied (42501): denied (42501)
PASS api: UPDATE attachment_jobs SET state -> denied (42501): denied (42501)
PASS api: valkey without AUTH -> NOAUTH: NOAUTH
PASS api: valkey AUTH default with the api password -> WRONGPASS: WRONGPASS
PASS api: valkey api FLUSHALL -> NOPERM: NOPERM
PASS api: valkey api CONFIG GET maxmemory -> NOPERM: NOPERM
PASS api: valkey api KEYS * -> NOPERM: NOPERM
PASS api: valkey api SCAN 0 -> NOPERM: NOPERM
PASS api: valkey api INFO -> NOPERM: NOPERM
PASS api: valkey api ACL LIST -> NOPERM: NOPERM
PASS api: valkey api GET foreign key -> NOPERM: NOPERM
PASS api: valkey api EVAL redis.call FLUSHALL -> NOPERM (script): NOPERM (script)
PASS api: valkey api EVAL with foreign key -> NOPERM: NOPERM
PASS api: valkey api SET / GET / DEL own key -> OK OK OK: OK OK OK
PASS worker: postgres role -> worker: worker
PASS worker: role attributes and server roles -> none: none
PASS worker: role memberships -> none: none
PASS worker: database privileges beyond CONNECT -> none: none
PASS worker: CONNECT to other databases -> none: none
PASS worker: CREATE TABLE in public -> denied (42501): denied (42501)
PASS worker: ALTER TABLE attachments -> denied (42501): denied (42501)
PASS worker: DROP TABLE attachment_variants -> denied (42501): denied (42501)
PASS worker: INSERT users -> denied (42501): denied (42501)
PASS worker: INSERT messages -> denied (42501): denied (42501)
PASS worker: SELECT sessions -> denied (42501): denied (42501)
PASS worker: SELECT users -> denied (42501): denied (42501)
PASS worker: UPDATE attachments SET filename -> denied (42501): denied (42501)
PASS worker: UPDATE attachments SET status (rolled back) -> allowed: allowed
PASS relay: postgres role -> relay: relay
PASS relay: role attributes and server roles -> none: none
PASS relay: role memberships -> none: none
PASS relay: database privileges beyond CONNECT -> none: none
PASS relay: CONNECT to other databases -> none: none
PASS relay: CREATE TABLE in public -> denied (42501): denied (42501)
PASS relay: ALTER TABLE attachments -> denied (42501): denied (42501)
PASS relay: DROP TABLE attachment_variants -> denied (42501): denied (42501)
PASS relay: INSERT attachment_variants -> denied (42501): denied (42501)
PASS cleaner: postgres role -> cleaner: cleaner
PASS cleaner: role attributes and server roles -> none: none
PASS cleaner: role memberships -> none: none
PASS cleaner: database privileges beyond CONNECT -> none: none
PASS cleaner: CONNECT to other databases -> none: none
PASS cleaner: CREATE TABLE in public -> denied (42501): denied (42501)
PASS cleaner: ALTER TABLE attachments -> denied (42501): denied (42501)
PASS cleaner: DROP TABLE attachment_variants -> denied (42501): denied (42501)
PASS cleaner: SELECT users -> denied (42501): denied (42501)
PASS migrate: postgres role -> migrate: migrate
PASS migrate: role attributes and server roles -> none: none
PASS migrate: role memberships -> none: none
PASS migrate: database privileges beyond CONNECT -> none: none
PASS migrate: CONNECT to other databases -> none: none
PASS migrate: CREATE TABLE in public (rolled back) -> allowed: allowed
PASS api: catalog privileges = matrix: = matrix
PASS cleaner: catalog privileges = matrix: = matrix
PASS relay: catalog privileges = matrix: = matrix
PASS worker: catalog privileges = matrix: = matrix
PASS catalog: grants on tables to other roles = none: none
PASS catalog: grants on tables to PUBLIC = none: none
PASS valkey: ACL LOG denials of user api from the probe: 9
s3: separate keys per process (api, worker, cleaner) — make s3-check
storage-roles-check: PASS (68/68 checks, 17 s)
cleanup: 0 probe container(s) removed, probe table exists: f, probe key exists: 0
# Код make: 0.
# Начало UTC: 2026-12-03T17:05:54.664452+00:00; время команды 7.934 с.
$ make storage-roles-check REPORT=1
python3 scripts/lab7.py --ca-file "<home>/Высоконагруженные/mtusi2026lab7-vladimirceva/.pki/stand/ca.crt" storage-roles-check --report
probe: api (its environment and network)
probe: worker (its environment and network)
probe: relay (its environment and network)
probe: cleaner (its environment and network)
probe: migrate (its environment and network)
== api
postgres role api
role attributes and server roles none
role memberships none
database privileges beyond CONNECT none
CONNECT to other databases none
CREATE in schema public no
DDL (CREATE TABLE, rolled back) denied (42501)
server programs (COPY TO PROGRAM, by catalog) denied
table alembic_version -
table attachment_job_replays -
table attachment_jobs SELECT INSERT
table attachment_variants SELECT
table attachments SELECT INSERT UPDATE(status updated_at)
table chat_members SELECT INSERT
table chats SELECT INSERT
table idempotency_keys SELECT INSERT UPDATE(request_hash message_id created_at)
table message_attachments SELECT INSERT
table messages SELECT INSERT
table sessions SELECT INSERT DELETE
table users SELECT INSERT UPDATE(password_hash)
valkey user api
valkey ACL WHOAMI NOPERM
valkey commands (operator) -@all +get +set +eval +evalsha +ttl +expire +incr +decr +del
valkey keys (operator) ~messenger:v1:messenger:*
== worker
postgres role worker
role attributes and server roles none
role memberships none
database privileges beyond CONNECT none
CONNECT to other databases none
CREATE in schema public no
DDL (CREATE TABLE, rolled back) denied (42501)
server programs (COPY TO PROGRAM, by catalog) denied
table alembic_version -
table attachment_job_replays -
table attachment_jobs SELECT UPDATE(state next_attempt_at published_at lease_until last_error updated_at)
table attachment_variants SELECT INSERT
table attachments SELECT UPDATE(status updated_at error_code)
table chat_members -
table chats -
table idempotency_keys -
table message_attachments -
table messages -
table sessions -
table users -
== relay
postgres role relay
role attributes and server roles none
role memberships none
database privileges beyond CONNECT none
CONNECT to other databases none
CREATE in schema public no
DDL (CREATE TABLE, rolled back) denied (42501)
server programs (COPY TO PROGRAM, by catalog) denied
table alembic_version -
table attachment_job_replays INSERT
table attachment_jobs SELECT UPDATE(state attempt attempt_base next_attempt_at published_at lease_until last_error updated_at)
table attachment_variants -
table attachments SELECT UPDATE(status updated_at error_code)
table chat_members -
table chats -
table idempotency_keys -
table message_attachments -
table messages -
table sessions -
table users -
== cleaner
postgres role cleaner
role attributes and server roles none
role memberships none
database privileges beyond CONNECT none
CONNECT to other databases none
CREATE in schema public no
DDL (CREATE TABLE, rolled back) denied (42501)
server programs (COPY TO PROGRAM, by catalog) denied
table alembic_version -
table attachment_job_replays -
table attachment_jobs -
table attachment_variants SELECT
table attachments SELECT DELETE UPDATE(updated_at lost_at staging_key)
table chat_members -
table chats -
table idempotency_keys -
table message_attachments -
table messages -
table sessions -
table users -
== migrate
postgres role migrate
role attributes and server roles none
role memberships none
database privileges beyond CONNECT none
CONNECT to other databases none
CREATE in schema public yes
DDL (CREATE TABLE, rolled back) allowed
server programs (COPY TO PROGRAM, by catalog) denied
table alembic_version SELECT INSERT UPDATE DELETE TRUNCATE
table attachment_job_replays SELECT INSERT UPDATE DELETE TRUNCATE
table attachment_jobs SELECT INSERT UPDATE DELETE TRUNCATE
table attachment_variants SELECT INSERT UPDATE DELETE TRUNCATE
table attachments SELECT INSERT UPDATE DELETE TRUNCATE
table chat_members SELECT INSERT UPDATE DELETE TRUNCATE
table chats SELECT INSERT UPDATE DELETE TRUNCATE
table idempotency_keys SELECT INSERT UPDATE DELETE TRUNCATE
table message_attachments SELECT INSERT UPDATE DELETE TRUNCATE
table messages SELECT INSERT UPDATE DELETE TRUNCATE
table sessions SELECT INSERT UPDATE DELETE TRUNCATE
table users SELECT INSERT UPDATE DELETE TRUNCATE
REPORT: capabilities of each process credentials (no verdict)
cleanup: 0 probe container(s) removed, probe table exists: f, probe key exists: 0
# Код make: 0.
+263
View File
@@ -491,3 +491,266 @@ result: 0 — all 430 mandatory findings triaged
# 2026-12-16; три accepted — 2026-12-31. Остаточное решения «до конца выдержки» —
# security/THREAT_MODEL.md, «Остаточные риски». На машине замеров — повтор make scan
# (промпт Codex).
# --- 14. Повтор на машине замеров ---
# Дата: 2026-12-02 UTC, 20:46–21:23 (2–3 декабря MSK).
# Окружение: MacBook Air M4, macOS 26.6.2 (25G83), arm64; Docker 28.0.4,
# ВМ 10 CPU / 10419826688 байт (9,70 ГиБ), Compose 5.6.1 через tools/docker-compat/,
# Python хоста / .venv 3.13.7; образ приложения Python 3.13.18.
# Код: commit ee28cd7; при повторе — добавлена только запись разбора новой CVE.
# src_sha256: 813f5a036bed303920f288ee801be991627a90f9a2955ebd8014b3e8363e6c62.
# Пины, uv.lock и код приложения не менялись. Стенд для scan не требуется.
# Домашний каталог заменён на <home>. Прежние прогоны выше — история.
$ make scan
uv run --frozen python infra/scan/scan.py --cache-dir "<home>/.cache/vladimirceva-lab7/trivy"
scan: 2026-12-02T20:46:45Z, commit ee28cd7, platform linux/arm64
trivy: aquasec/trivy:0.76.2@sha256:8f6bb947dbc528902e11f2f5be52f7b519f6a39d5d148f41166f2040499768fb; db v2 updated 2026-12-02T19:16:36Z, next 2026-12-03T19:16:36Z, downloaded 2026-12-02T20:47:26Z
pip-audit: 2.10.1, source pypi (PyPI JSON API), queried 2026-12-02T20:47:57Z; uv.lock: 527 hashes of 98 releases match PyPI file digests
Images (C/H/M/L/U — findings by severity):
image services os C H M L U mand rows/ids triaged open secrets
-------------------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------ ------------- - -- --- --- -- ------------- ------- ---- -------
mtusi-messenger-vladimirceva:scan (sha256:9b12a6570ce7) api,cleaner,migrate,postgres-bootstrap,relay,worker debian 13.8 5 83 99 87 9 88/48 88 0 0
chrislusf/seaweedfs:4.48@sha256:4e61d15fd35994cb1e43e1e553dff106794841fd9a99ade2fc8c8bfce4d7872d s3,s3-bootstrap alpine 3.24.2 1 19 35 53 1 20/13 17 3 0
grafana/grafana:13.3.2@sha256:81556409ba48b2b922e0adb69a2511337d8ba7578f11962eefa6149a2d815101 grafana alpine 3.24.4 0 23 55 9 4 23/11 20 3 0
grafana/loki:3.7.10@sha256:b43c257ccfc925d4a50b8717cac61a3b51df8c48d01847936057e5c4075a24a7 loki debian 13.7 0 0 1 0 0 0/0 0 0 0
grafana/tempo:3.1.1@sha256:64e2fbd56d9c2b3412a4b430a58ea59e91a670b1e75f920a0c702213ad145044 tempo debian 12.15 0 2 7 0 4 2/2 2 0 0
haproxy:3.4.8-trixie@sha256:3e4e390ccc7208326607be371f4d14f6296af5cdb414315fadff50c5d785a478 haproxy,loki-gateway,otel-gateway,prometheus-gateway,tempo-gateway debian 13.8 0 53 83 85 9 53/14 53 0 0
openbao/openbao:2.7.3@sha256:ba4b133eb9586630024e71a617e66f37f29cc3534cdd46a6233e098ceded8dc9 openbao alpine 3.24.4 0 9 19 8 0 9/4 6 3 0
otel/opentelemetry-collector-contrib:0.164.0@sha256:340c9ca6a36617084c6661bdc4f0fe92b7cda5a805d61673ec8db375fddc522b otel-collector - 0 2 2 0 1 2/2 2 0 0
postgres:18.7-trixie@sha256:64c8b0d31e4ab6ea665e8426ea406a94bf52de3c05b3a4a8bf713704eefa9328 postgres debian 13.8 2 98 161 173 16 100/48 100 0 0
prom/prometheus:v3.15.1@sha256:fa3302279710be2f21a8301ec17a8b4f2301fd829bd113839b3b6b02b6f191a2 prometheus - 0 2 7 0 2 2/1 2 0 0
rabbitmq:4.3.7-alpine@sha256:b1f997f74103d08fc1f20a13890dc44fe6cfa51d528cf521b480ada988d3ffa5 rabbitmq alpine 3.23.7 0 7 13 8 0 7/3 4 3 0
valkey/valkey:9.1.4-trixie@sha256:3ab0eca823ebbf0fe352476ebac330ac9e5f14b592b9a954eab296d341e81b0e valkey debian 13.7 0 52 102 82 9 52/15 52 0 0
Python dependencies (pip-audit):
uv.lock group packages findings triaged open
------------- -------- -------- ------- ----
runtime 57 42 42 0
dev 98 42 42 0
Triage entries: 29
key verdict targets covered review_by state
-------------------------------- ------------ ------------------------------------------------------------------------------------------------------------------------ ------- ---------- -----
debian-util-linux-mount-nsenter not_affected haproxy,mtusi-messenger-vladimirceva,postgres,valkey/valkey 144 2027-03-02 ok
debian-systemd-homed not_affected haproxy,mtusi-messenger-vladimirceva,postgres,valkey/valkey 10 2027-03-02 ok
debian-libacl-symlink not_affected haproxy,mtusi-messenger-vladimirceva,postgres,valkey/valkey 4 2027-03-02 ok
debian-ncurses-infocmp not_affected haproxy,mtusi-messenger-vladimirceva,postgres,valkey/valkey 14 2027-03-02 ok
debian-perl-archive-tar not_affected haproxy,mtusi-messenger-vladimirceva,postgres,valkey/valkey 7 2027-03-02 ok
debian-sqlite-fts5-session not_affected haproxy,mtusi-messenger-vladimirceva,postgres,valkey/valkey 12 2027-03-02 ok
openssl-quic not_affected chrislusf/seaweedfs,grafana/grafana,haproxy,mtusi-messenger-vladimirceva,openbao/openbao,postgres,rabbitmq,valkey/valkey 38 2027-03-02 ok
zstd-decompression-output not_affected haproxy,mtusi-messenger-vladimirceva,postgres,valkey/valkey 5 2026-12-16 ok
zlib-gzwrite not_affected chrislusf/seaweedfs,valkey/valkey 2 2026-12-16 ok
pip-vendored-not-imported not_affected mtusi-messenger-vladimirceva 5 2027-03-02 ok
pillow-formats-not-opened not_affected mtusi-messenger-vladimirceva,uv.lock 50 2027-03-02 ok
pillow-operations-not-used not_affected mtusi-messenger-vladimirceva,uv.lock 52 2027-03-02 ok
pillow-png-jpeg-decode accepted mtusi-messenger-vladimirceva,uv.lock 11 2026-12-31 ok
gosu-not-executed not_affected postgres 26 2027-03-02 ok
gnupg-tpm2daemon not_affected postgres 7 2027-03-02 ok
libxml2-sql-xml accepted postgres 6 2026-12-31 ok
libxml2-python-bindings not_affected postgres 1 2027-03-02 ok
go-jose-jwk not_affected chrislusf/seaweedfs,grafana/tempo,openbao/openbao,otel/opentelemetry-collector-contrib 5 2027-03-02 ok
go-x-net-html not_affected chrislusf/seaweedfs,grafana/grafana,grafana/tempo,otel/opentelemetry-collector-contrib,prom/prometheus 13 2027-03-02 ok
grafana-disabled-mysql-plugin not_affected grafana/grafana 5 2027-03-02 ok
grafana-tempo-plugin-server-code not_affected grafana/grafana 2 2027-03-02 ok
grafana-openfga-zanzana-off not_affected grafana/grafana 1 2027-03-02 ok
weed-x509-intermediate-denylist not_affected chrislusf/seaweedfs 1 2027-03-02 ok
weed-ech-not-configured not_affected chrislusf/seaweedfs 1 2027-03-02 ok
weed-range-after-signature mitigated chrislusf/seaweedfs 1 2027-03-02 ok
weed-http2-settings-dos accepted chrislusf/seaweedfs 2 2026-12-31 ok
seaweedfs-musl-regcomp not_affected chrislusf/seaweedfs 2 2027-03-02 ok
seaweedfs-brotli-decoder not_affected chrislusf/seaweedfs 1 2027-03-02 ok
seaweedfs-curl-http2-upload mitigated chrislusf/seaweedfs 2 2027-03-02 ok
Mandatory findings without triage: 12
chrislusf/seaweedfs CVE-2026-140044 HIGH busybox 1.37.0-r31 status fixed fixed 1.37.0-r32
chrislusf/seaweedfs CVE-2026-140044 HIGH busybox-binsh 1.37.0-r31 status fixed fixed 1.37.0-r32
chrislusf/seaweedfs CVE-2026-140044 HIGH ssl_client 1.37.0-r31 status fixed fixed 1.37.0-r32
grafana/grafana CVE-2026-140044 HIGH busybox 1.37.0-r31 status fixed fixed 1.37.0-r32
grafana/grafana CVE-2026-140044 HIGH busybox-binsh 1.37.0-r31 status fixed fixed 1.37.0-r32
grafana/grafana CVE-2026-140044 HIGH ssl_client 1.37.0-r31 status fixed fixed 1.37.0-r32
openbao/openbao CVE-2026-140044 HIGH busybox 1.37.0-r31 status fixed fixed 1.37.0-r32
openbao/openbao CVE-2026-140044 HIGH busybox-binsh 1.37.0-r31 status fixed fixed 1.37.0-r32
openbao/openbao CVE-2026-140044 HIGH ssl_client 1.37.0-r31 status fixed fixed 1.37.0-r32
rabbitmq CVE-2026-140044 HIGH busybox 1.37.0-r30 status fixed fixed 1.37.0-r31
rabbitmq CVE-2026-140044 HIGH busybox-binsh 1.37.0-r30 status fixed fixed 1.37.0-r31
rabbitmq CVE-2026-140044 HIGH ssl_client 1.37.0-r30 status fixed fixed 1.37.0-r31
result: 1 — 12 of 442 mandatory findings without valid triage
make: *** [scan] Error 1
# Код make: 2; код scan.py: 1. Новая база дала CVE-2026-140044: 12 строк
# в busybox / busybox-binsh / ssl_client четырёх образов (442 вместо 430).
# Разбор: первичная запись CNA описывает OpenRC-скрипт запуска BusyBox httpd,
# который при HTTPD_OPTS без настроек публикует / от root. Источник:
# https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/140xxx/CVE-2026-140044.json
# В образах нет busybox-extras-openrc, openrc и /etc/init.d/httpd; сервисы их
# не запускают. Ни наличие ash, ни ssl_client сами этот путь не открывают.
# Проба образов (команда с argv оформлена кавычками для повторения):
$ docker run --rm --name vladimirceva-lab7-triage-probe-0 --network none --read-only --cap-drop ALL --security-opt no-new-privileges --user 1000:1000 --pids-limit 64 --cpus 0.25 --memory 64m --entrypoint sh chrislusf/seaweedfs:4.48@sha256:4e61d15fd35994cb1e43e1e553dff106794841fd9a99ade2fc8c8bfce4d7872d -c 'for pkg in busybox-extras-openrc openrc; do if apk info -e "$pkg" >/dev/null 2>&1; then printf "%s: present\n" "$pkg"; else printf "%s: absent\n" "$pkg"; fi; done; if [ -e /etc/init.d/httpd ]; then printf "httpd.initd: present\n"; else printf "httpd.initd: absent\n"; fi; id -u; sed -n "/^Seccomp:/p" /proc/self/status'
busybox-extras-openrc: absent
openrc: absent
httpd.initd: absent
1000
Seccomp: 2
# exit_code=0
$ docker run --rm --name vladimirceva-lab7-triage-probe-1 --network none --read-only --cap-drop ALL --security-opt no-new-privileges --user 1000:1000 --pids-limit 64 --cpus 0.25 --memory 64m --entrypoint sh grafana/grafana:13.3.2@sha256:81556409ba48b2b922e0adb69a2511337d8ba7578f11962eefa6149a2d815101 -c 'for pkg in busybox-extras-openrc openrc; do if apk info -e "$pkg" >/dev/null 2>&1; then printf "%s: present\n" "$pkg"; else printf "%s: absent\n" "$pkg"; fi; done; if [ -e /etc/init.d/httpd ]; then printf "httpd.initd: present\n"; else printf "httpd.initd: absent\n"; fi; id -u; sed -n "/^Seccomp:/p" /proc/self/status'
busybox-extras-openrc: absent
openrc: absent
httpd.initd: absent
1000
Seccomp: 2
# exit_code=0
$ docker run --rm --name vladimirceva-lab7-triage-probe-2 --network none --read-only --cap-drop ALL --security-opt no-new-privileges --user 1000:1000 --pids-limit 64 --cpus 0.25 --memory 64m --entrypoint sh openbao/openbao:2.7.3@sha256:ba4b133eb9586630024e71a617e66f37f29cc3534cdd46a6233e098ceded8dc9 -c 'for pkg in busybox-extras-openrc openrc; do if apk info -e "$pkg" >/dev/null 2>&1; then printf "%s: present\n" "$pkg"; else printf "%s: absent\n" "$pkg"; fi; done; if [ -e /etc/init.d/httpd ]; then printf "httpd.initd: present\n"; else printf "httpd.initd: absent\n"; fi; id -u; sed -n "/^Seccomp:/p" /proc/self/status'
busybox-extras-openrc: absent
openrc: absent
httpd.initd: absent
1000
Seccomp: 2
# exit_code=0
$ docker run --rm --name vladimirceva-lab7-triage-probe-3 --network none --read-only --cap-drop ALL --security-opt no-new-privileges --user 1000:1000 --pids-limit 64 --cpus 0.25 --memory 64m --entrypoint sh rabbitmq:4.3.7-alpine@sha256:b1f997f74103d08fc1f20a13890dc44fe6cfa51d528cf521b480ada988d3ffa5 -c 'for pkg in busybox-extras-openrc openrc; do if apk info -e "$pkg" >/dev/null 2>&1; then printf "%s: present\n" "$pkg"; else printf "%s: absent\n" "$pkg"; fi; done; if [ -e /etc/init.d/httpd ]; then printf "httpd.initd: present\n"; else printf "httpd.initd: absent\n"; fi; id -u; sed -n "/^Seccomp:/p" /proc/self/status'
busybox-extras-openrc: absent
openrc: absent
httpd.initd: absent
1000
Seccomp: 2
# exit_code=0
# Итог пробы: у каждого из четырёх образов отсутствуют уязвимый пакет, OpenRC
# и init-скрипт httpd. Проба запущена UID 1000, без сети/capabilities, Seccomp 2.
# Добавлена busybox-openrc-httpd-not-installed: not_affected, только этот ID,
# эти четыре образа и три пакета; review_by 2026-12-08. Исправление CNA от
# 2026-12-01 ещё не прошло выдержку 7 суток. Прочие записи не ослаблялись.
$ uv run pytest -m unit student-tests/unit/test_scan.py -q
68 passed in 0.07s
$ make scan SCAN_OUT=/tmp/lab7-scan-after-triage
uv run --frozen python infra/scan/scan.py --cache-dir "<home>/.cache/vladimirceva-lab7/trivy" --out "/tmp/lab7-scan-after-triage"
scan: 2026-12-02T21:20:35Z, commit ee28cd7 (uncommitted changes), platform linux/arm64
trivy: aquasec/trivy:0.76.2@sha256:8f6bb947dbc528902e11f2f5be52f7b519f6a39d5d148f41166f2040499768fb; db v2 updated 2026-12-02T19:16:36Z, next 2026-12-03T19:16:36Z, downloaded 2026-12-02T20:47:26Z
pip-audit: 2.10.1, source pypi (PyPI JSON API), queried 2026-12-02T21:21:29Z; uv.lock: 527 hashes of 98 releases match PyPI file digests
Images (C/H/M/L/U — findings by severity):
image services os C H M L U mand rows/ids triaged open secrets
-------------------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------ ------------- - -- --- --- -- ------------- ------- ---- -------
mtusi-messenger-vladimirceva:scan (sha256:9b12a6570ce7) api,cleaner,migrate,postgres-bootstrap,relay,worker debian 13.8 5 83 99 87 9 88/48 88 0 0
chrislusf/seaweedfs:4.48@sha256:4e61d15fd35994cb1e43e1e553dff106794841fd9a99ade2fc8c8bfce4d7872d s3,s3-bootstrap alpine 3.24.2 1 19 35 53 1 20/13 20 0 0
grafana/grafana:13.3.2@sha256:81556409ba48b2b922e0adb69a2511337d8ba7578f11962eefa6149a2d815101 grafana alpine 3.24.4 0 23 55 9 4 23/11 23 0 0
grafana/loki:3.7.10@sha256:b43c257ccfc925d4a50b8717cac61a3b51df8c48d01847936057e5c4075a24a7 loki debian 13.7 0 0 1 0 0 0/0 0 0 0
grafana/tempo:3.1.1@sha256:64e2fbd56d9c2b3412a4b430a58ea59e91a670b1e75f920a0c702213ad145044 tempo debian 12.15 0 2 7 0 4 2/2 2 0 0
haproxy:3.4.8-trixie@sha256:3e4e390ccc7208326607be371f4d14f6296af5cdb414315fadff50c5d785a478 haproxy,loki-gateway,otel-gateway,prometheus-gateway,tempo-gateway debian 13.8 0 53 83 85 9 53/14 53 0 0
openbao/openbao:2.7.3@sha256:ba4b133eb9586630024e71a617e66f37f29cc3534cdd46a6233e098ceded8dc9 openbao alpine 3.24.4 0 9 19 8 0 9/4 9 0 0
otel/opentelemetry-collector-contrib:0.164.0@sha256:340c9ca6a36617084c6661bdc4f0fe92b7cda5a805d61673ec8db375fddc522b otel-collector - 0 2 2 0 1 2/2 2 0 0
postgres:18.7-trixie@sha256:64c8b0d31e4ab6ea665e8426ea406a94bf52de3c05b3a4a8bf713704eefa9328 postgres debian 13.8 2 98 161 173 16 100/48 100 0 0
prom/prometheus:v3.15.1@sha256:fa3302279710be2f21a8301ec17a8b4f2301fd829bd113839b3b6b02b6f191a2 prometheus - 0 2 7 0 2 2/1 2 0 0
rabbitmq:4.3.7-alpine@sha256:b1f997f74103d08fc1f20a13890dc44fe6cfa51d528cf521b480ada988d3ffa5 rabbitmq alpine 3.23.7 0 7 13 8 0 7/3 7 0 0
valkey/valkey:9.1.4-trixie@sha256:3ab0eca823ebbf0fe352476ebac330ac9e5f14b592b9a954eab296d341e81b0e valkey debian 13.7 0 52 102 82 9 52/15 52 0 0
Python dependencies (pip-audit):
uv.lock group packages findings triaged open
------------- -------- -------- ------- ----
runtime 57 42 42 0
dev 98 42 42 0
Triage entries: 30
key verdict targets covered review_by state
---------------------------------- ------------ ------------------------------------------------------------------------------------------------------------------------ ------- ---------- -----
busybox-openrc-httpd-not-installed not_affected chrislusf/seaweedfs,grafana/grafana,openbao/openbao,rabbitmq 12 2026-12-08 ok
debian-util-linux-mount-nsenter not_affected haproxy,mtusi-messenger-vladimirceva,postgres,valkey/valkey 144 2027-03-02 ok
debian-systemd-homed not_affected haproxy,mtusi-messenger-vladimirceva,postgres,valkey/valkey 10 2027-03-02 ok
debian-libacl-symlink not_affected haproxy,mtusi-messenger-vladimirceva,postgres,valkey/valkey 4 2027-03-02 ok
debian-ncurses-infocmp not_affected haproxy,mtusi-messenger-vladimirceva,postgres,valkey/valkey 14 2027-03-02 ok
debian-perl-archive-tar not_affected haproxy,mtusi-messenger-vladimirceva,postgres,valkey/valkey 7 2027-03-02 ok
debian-sqlite-fts5-session not_affected haproxy,mtusi-messenger-vladimirceva,postgres,valkey/valkey 12 2027-03-02 ok
openssl-quic not_affected chrislusf/seaweedfs,grafana/grafana,haproxy,mtusi-messenger-vladimirceva,openbao/openbao,postgres,rabbitmq,valkey/valkey 38 2027-03-02 ok
zstd-decompression-output not_affected haproxy,mtusi-messenger-vladimirceva,postgres,valkey/valkey 5 2026-12-16 ok
zlib-gzwrite not_affected chrislusf/seaweedfs,valkey/valkey 2 2026-12-16 ok
pip-vendored-not-imported not_affected mtusi-messenger-vladimirceva 5 2027-03-02 ok
pillow-formats-not-opened not_affected mtusi-messenger-vladimirceva,uv.lock 50 2027-03-02 ok
pillow-operations-not-used not_affected mtusi-messenger-vladimirceva,uv.lock 52 2027-03-02 ok
pillow-png-jpeg-decode accepted mtusi-messenger-vladimirceva,uv.lock 11 2026-12-31 ok
gosu-not-executed not_affected postgres 26 2027-03-02 ok
gnupg-tpm2daemon not_affected postgres 7 2027-03-02 ok
libxml2-sql-xml accepted postgres 6 2026-12-31 ok
libxml2-python-bindings not_affected postgres 1 2027-03-02 ok
go-jose-jwk not_affected chrislusf/seaweedfs,grafana/tempo,openbao/openbao,otel/opentelemetry-collector-contrib 5 2027-03-02 ok
go-x-net-html not_affected chrislusf/seaweedfs,grafana/grafana,grafana/tempo,otel/opentelemetry-collector-contrib,prom/prometheus 13 2027-03-02 ok
grafana-disabled-mysql-plugin not_affected grafana/grafana 5 2027-03-02 ok
grafana-tempo-plugin-server-code not_affected grafana/grafana 2 2027-03-02 ok
grafana-openfga-zanzana-off not_affected grafana/grafana 1 2027-03-02 ok
weed-x509-intermediate-denylist not_affected chrislusf/seaweedfs 1 2027-03-02 ok
weed-ech-not-configured not_affected chrislusf/seaweedfs 1 2027-03-02 ok
weed-range-after-signature mitigated chrislusf/seaweedfs 1 2027-03-02 ok
weed-http2-settings-dos accepted chrislusf/seaweedfs 2 2026-12-31 ok
seaweedfs-musl-regcomp not_affected chrislusf/seaweedfs 2 2027-03-02 ok
seaweedfs-brotli-decoder not_affected chrislusf/seaweedfs 1 2027-03-02 ok
seaweedfs-curl-http2-upload mitigated chrislusf/seaweedfs 2 2027-03-02 ok
Mandatory findings without triage: 0
result: 0 — all 442 mandatory findings triaged
# Код make: 0. 442 обязательных = 358 строк в образах + 84 строки uv.lock,
# все разобраны; 30 записей, новых секретов 0; устаревших и истёкших записей нет.
$ make scan REPORT=1
uv run --frozen python infra/scan/scan.py --cache-dir "<home>/.cache/vladimirceva-lab7/trivy" --report
scan: 2026-12-02T21:22:14Z, commit ee28cd7 (uncommitted changes), platform linux/arm64
trivy: aquasec/trivy:0.76.2@sha256:8f6bb947dbc528902e11f2f5be52f7b519f6a39d5d148f41166f2040499768fb; db v2 updated 2026-12-02T19:16:36Z, next 2026-12-03T19:16:36Z, downloaded 2026-12-02T20:47:26Z
pip-audit: 2.10.1, source pypi (PyPI JSON API), queried 2026-12-02T21:22:49Z; uv.lock: 527 hashes of 98 releases match PyPI file digests
Images (C/H/M/L/U — findings by severity):
image services os C H M L U mand rows/ids triaged open secrets
-------------------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------ ------------- - -- --- --- -- ------------- ------- ---- -------
mtusi-messenger-vladimirceva:scan (sha256:9b12a6570ce7) api,cleaner,migrate,postgres-bootstrap,relay,worker debian 13.8 5 83 99 87 9 88/48 88 0 0
chrislusf/seaweedfs:4.48@sha256:4e61d15fd35994cb1e43e1e553dff106794841fd9a99ade2fc8c8bfce4d7872d s3,s3-bootstrap alpine 3.24.2 1 19 35 53 1 20/13 20 0 0
grafana/grafana:13.3.2@sha256:81556409ba48b2b922e0adb69a2511337d8ba7578f11962eefa6149a2d815101 grafana alpine 3.24.4 0 23 55 9 4 23/11 23 0 0
grafana/loki:3.7.10@sha256:b43c257ccfc925d4a50b8717cac61a3b51df8c48d01847936057e5c4075a24a7 loki debian 13.7 0 0 1 0 0 0/0 0 0 0
grafana/tempo:3.1.1@sha256:64e2fbd56d9c2b3412a4b430a58ea59e91a670b1e75f920a0c702213ad145044 tempo debian 12.15 0 2 7 0 4 2/2 2 0 0
haproxy:3.4.8-trixie@sha256:3e4e390ccc7208326607be371f4d14f6296af5cdb414315fadff50c5d785a478 haproxy,loki-gateway,otel-gateway,prometheus-gateway,tempo-gateway debian 13.8 0 53 83 85 9 53/14 53 0 0
openbao/openbao:2.7.3@sha256:ba4b133eb9586630024e71a617e66f37f29cc3534cdd46a6233e098ceded8dc9 openbao alpine 3.24.4 0 9 19 8 0 9/4 9 0 0
otel/opentelemetry-collector-contrib:0.164.0@sha256:340c9ca6a36617084c6661bdc4f0fe92b7cda5a805d61673ec8db375fddc522b otel-collector - 0 2 2 0 1 2/2 2 0 0
postgres:18.7-trixie@sha256:64c8b0d31e4ab6ea665e8426ea406a94bf52de3c05b3a4a8bf713704eefa9328 postgres debian 13.8 2 98 161 173 16 100/48 100 0 0
prom/prometheus:v3.15.1@sha256:fa3302279710be2f21a8301ec17a8b4f2301fd829bd113839b3b6b02b6f191a2 prometheus - 0 2 7 0 2 2/1 2 0 0
rabbitmq:4.3.7-alpine@sha256:b1f997f74103d08fc1f20a13890dc44fe6cfa51d528cf521b480ada988d3ffa5 rabbitmq alpine 3.23.7 0 7 13 8 0 7/3 7 0 0
valkey/valkey:9.1.4-trixie@sha256:3ab0eca823ebbf0fe352476ebac330ac9e5f14b592b9a954eab296d341e81b0e valkey debian 13.7 0 52 102 82 9 52/15 52 0 0
Python dependencies (pip-audit):
uv.lock group packages findings triaged open
------------- -------- -------- ------- ----
runtime 57 42 42 0
dev 98 42 42 0
Triage entries: 30
key verdict targets covered review_by state
---------------------------------- ------------ ------------------------------------------------------------------------------------------------------------------------ ------- ---------- -----
busybox-openrc-httpd-not-installed not_affected chrislusf/seaweedfs,grafana/grafana,openbao/openbao,rabbitmq 12 2026-12-08 ok
debian-util-linux-mount-nsenter not_affected haproxy,mtusi-messenger-vladimirceva,postgres,valkey/valkey 144 2027-03-02 ok
debian-systemd-homed not_affected haproxy,mtusi-messenger-vladimirceva,postgres,valkey/valkey 10 2027-03-02 ok
debian-libacl-symlink not_affected haproxy,mtusi-messenger-vladimirceva,postgres,valkey/valkey 4 2027-03-02 ok
debian-ncurses-infocmp not_affected haproxy,mtusi-messenger-vladimirceva,postgres,valkey/valkey 14 2027-03-02 ok
debian-perl-archive-tar not_affected haproxy,mtusi-messenger-vladimirceva,postgres,valkey/valkey 7 2027-03-02 ok
debian-sqlite-fts5-session not_affected haproxy,mtusi-messenger-vladimirceva,postgres,valkey/valkey 12 2027-03-02 ok
openssl-quic not_affected chrislusf/seaweedfs,grafana/grafana,haproxy,mtusi-messenger-vladimirceva,openbao/openbao,postgres,rabbitmq,valkey/valkey 38 2027-03-02 ok
zstd-decompression-output not_affected haproxy,mtusi-messenger-vladimirceva,postgres,valkey/valkey 5 2026-12-16 ok
zlib-gzwrite not_affected chrislusf/seaweedfs,valkey/valkey 2 2026-12-16 ok
pip-vendored-not-imported not_affected mtusi-messenger-vladimirceva 5 2027-03-02 ok
pillow-formats-not-opened not_affected mtusi-messenger-vladimirceva,uv.lock 50 2027-03-02 ok
pillow-operations-not-used not_affected mtusi-messenger-vladimirceva,uv.lock 52 2027-03-02 ok
pillow-png-jpeg-decode accepted mtusi-messenger-vladimirceva,uv.lock 11 2026-12-31 ok
gosu-not-executed not_affected postgres 26 2027-03-02 ok
gnupg-tpm2daemon not_affected postgres 7 2027-03-02 ok
libxml2-sql-xml accepted postgres 6 2026-12-31 ok
libxml2-python-bindings not_affected postgres 1 2027-03-02 ok
go-jose-jwk not_affected chrislusf/seaweedfs,grafana/tempo,openbao/openbao,otel/opentelemetry-collector-contrib 5 2027-03-02 ok
go-x-net-html not_affected chrislusf/seaweedfs,grafana/grafana,grafana/tempo,otel/opentelemetry-collector-contrib,prom/prometheus 13 2027-03-02 ok
grafana-disabled-mysql-plugin not_affected grafana/grafana 5 2027-03-02 ok
grafana-tempo-plugin-server-code not_affected grafana/grafana 2 2027-03-02 ok
grafana-openfga-zanzana-off not_affected grafana/grafana 1 2027-03-02 ok
weed-x509-intermediate-denylist not_affected chrislusf/seaweedfs 1 2027-03-02 ok
weed-ech-not-configured not_affected chrislusf/seaweedfs 1 2027-03-02 ok
weed-range-after-signature mitigated chrislusf/seaweedfs 1 2027-03-02 ok
weed-http2-settings-dos accepted chrislusf/seaweedfs 2 2026-12-31 ok
seaweedfs-musl-regcomp not_affected chrislusf/seaweedfs 2 2027-03-02 ok
seaweedfs-brotli-decoder not_affected chrislusf/seaweedfs 1 2027-03-02 ok
seaweedfs-curl-http2-upload mitigated chrislusf/seaweedfs 2 2027-03-02 ok
...
# Перечень 442 отдельных строк находок сокращён; итог ниже — из того же вывода.
result: report only (no verdict) — mandatory 442, triaged 442, open 0
# Код make: 0 (без вердикта); mandatory 442, triaged 442, open 0.