docs: record M4 security checks and scan triage
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user