ЛР 7 — БПИ2303 — Лазарев — на 3
Application / app (pull_request) Canceled after 0s
Skeleton contracts / contracts (pull_request) Canceled after 0s

Перенесена реализация lab6; бизнес-API без изменений, транспорт — HTTPS.

- Внешний HTTPS (public-ca) на 127.0.0.1:8443; HSTS, TLS >= 1.2.
- Обязательное mTLS LB -> каждая API-реплика: API проверяет цепочку
  internal-ca и SAN клиента (allowlist: lb); health только на 127.0.0.1.
- TLS с проверкой сервера ко всем зависимостям: PostgreSQL verify-full
  (pg_hba только hostssl), HTTPS S3, AMQPS, OTLP/HTTPS с client cert,
  mTLS Collector -> Prometheus/Loki/Tempo, Grafana -> datasources, scrape.
- OpenBao 2.7.2 не в dev-mode: Raft на volume, init/unseal оператором,
  auth/cert с ролью и policy на сервис, TTL 15 мин + renew/re-login.
- Отдельные роли PostgreSQL с грантами по таблицам; разные ключи S3 и
  пользователи брокера выдаются из OpenBao.
- Argon2id (m=19 MiB, t=2, p=1, замер на стенде) и rehash при входе.
- Случайный X-Instance-Id; hardening контейнеров (non-root, cap_drop ALL,
  no-new-privileges, read-only, лимиты); TCP_NODELAY на сокете API.
- Модель угроз, trust matrix, отрицательные тесты TLS/mTLS, API, OpenBao,
  hardening; evidence, в т.ч. прогон из чистого clone.
This commit is contained in:
2026-11-18 23:59:35 +03:00
parent 20afc2c790
commit 9cc80d2529
146 changed files with 21935 additions and 85 deletions
+21
View File
@@ -3,3 +3,24 @@
Храните небольшие обезличенные результаты: команды и stdout проверок, JSON/CSV агрегатов нагрузки, EXPLAIN, dashboard JSON, текст разбора отказа. Укажите дату, commit, аппаратные лимиты и профиль нагрузки.
Не добавляйте .env, session tokens, cookies, приватные ключи, credentials, реальные сообщения, raw dumps и signed URLs. Для скриншотов скрывайте секреты. Большие логи/бинарные traces сохраняйте отдельно по правилам преподавателя; одного скриншота без методики недостаточно.
## Lab7 — состав (2026-11-18, MacBook Air M3, Docker Desktop 28.0.4, VM 8 vCPU / 7.7 GiB)
| Файл | Что | Команда |
| --- | --- | --- |
| run-all.txt | сводный прогон всех проверок | `WITH_LAB6=1 ./student-tests/run_all.sh` |
| clean-clone-run.txt | тот же прогон из чистой копии репозитория со свежими секретами/PKI/OpenBao | см. REPORT.md «Доказательства» |
| make-*.txt | `make check`, HTTPS smoke, внешний TLS trust | run_all |
| lab7-tls-matrix.json/.txt | 67 положительных/отрицательных TLS/mTLS проверок изнутри стенда | `checks lab7_tls_matrix.py` |
| lab7-api-security.json/.txt | 33 проверки внешнего API (TLS, ACL, logout/expiry, rate limit, лимиты, Argon2id) | `lab7_api_security.py` |
| lab7-openbao.json/.txt | 83 проверки OpenBao (статус, policies allow/deny, sealed-сценарий) | `lab7_openbao.py` |
| lab7-hardening.json/.txt | 182 проверки docker inspect / образа / репозитория / телеметрии | `lab7_hardening.py` |
| argon2-bench.json | замер профилей Argon2id в контейнере API | `argon2_bench.py` |
| test-persistence.txt, persistence-ps-*.txt | рестарт всех хранилищ (вкл. OpenBao + unseal), состояния до/после | `make test-persistence` |
| test-failover.txt | последовательная остановка api-1 и api-2 с alias-ами реплик | `make test-failover` |
| load*.json | нагрузка POST по HTTPS (до/после TCP_NODELAY) | `tests/load.py` |
| prometheus-up.txt | все scrape-цели `up=1` по HTTPS + client cert | obslib |
| obs-correlation.json, dashboard-check.json, worker-outage.txt | регрессии lab5/lab6 поверх TLS | run_all `WITH_LAB6=1` |
Токены, пароли, ключи и unseal material в evidence не сохраняются (тесты печатают только статусы,
имена полей и SHA-256-префиксы).
+120
View File
@@ -0,0 +1,120 @@
{
"measured_at": "2026-11-18T20:02:28Z",
"python": "3.12.7",
"machine": "aarch64",
"cgroup_cpu_limit": 0.5,
"cgroup_memory_limit_mib": 640,
"n_per_profile": 15,
"profiles": [
{
"name": "owasp-min m=19MiB t=2 p=1 (выбран)",
"memory_kib": 19456,
"iterations": 2,
"parallelism": 1,
"hash_ms": {
"p50": 13.0,
"p95": 64.8,
"max": 65.7
},
"verify_ms": {
"p50": 13.2,
"p95": 63.2
},
"max_rss_growth_mib": 18.2,
"concurrency2_hashes_per_s": 27.2,
"sample_prefix": [
"argon2id",
"v=19",
"m=19456,t=2,p=1"
]
},
{
"name": "owasp-alt m=46MiB t=1 p=1",
"memory_kib": 47104,
"iterations": 1,
"parallelism": 1,
"hash_ms": {
"p50": 21.6,
"p95": 71.3,
"max": 71.5
},
"verify_ms": {
"p50": 21.6,
"p95": 78.6
},
"max_rss_growth_mib": 46.0,
"concurrency2_hashes_per_s": 14.4,
"sample_prefix": [
"argon2id",
"v=19",
"m=47104,t=1,p=1"
]
},
{
"name": "m=19MiB t=3 p=1",
"memory_kib": 19456,
"iterations": 3,
"parallelism": 1,
"hash_ms": {
"p50": 23.4,
"p95": 108.6,
"max": 183.1
},
"verify_ms": {
"p50": 69.7,
"p95": 105.5
},
"max_rss_growth_mib": 0.0,
"concurrency2_hashes_per_s": 16.6,
"sample_prefix": [
"argon2id",
"v=19",
"m=19456,t=3,p=1"
]
},
{
"name": "m=64MiB t=3 p=1",
"memory_kib": 65536,
"iterations": 3,
"parallelism": 1,
"hash_ms": {
"p50": 186.4,
"p95": 207.8,
"max": 303.9
},
"verify_ms": {
"p50": 183.9,
"p95": 212.8
},
"max_rss_growth_mib": 0.0,
"concurrency2_hashes_per_s": 3.7,
"sample_prefix": [
"argon2id",
"v=19",
"m=65536,t=3,p=1"
]
},
{
"name": "m=19MiB t=2 p=2",
"memory_kib": 19456,
"iterations": 2,
"parallelism": 2,
"hash_ms": {
"p50": 8.0,
"p95": 80.8,
"max": 83.2
},
"verify_ms": {
"p50": 15.9,
"p95": 92.4
},
"max_rss_growth_mib": 0.0,
"concurrency2_hashes_per_s": 15.0,
"sample_prefix": [
"argon2id",
"v=19",
"m=19456,t=2,p=2"
]
}
]
}
+19
View File
@@ -0,0 +1,19 @@
== promtool check config (prom/prometheus:v3.13.5@sha256:aafa9d694e6a883c02db516d9f6e5b84e14195f49a2a6456a4cca815edda72b9)
Checking /etc/prometheus/prometheus.yml
SUCCESS: 1 rule files found
SUCCESS: /etc/prometheus/prometheus.yml is valid prometheus config file syntax
Checking /etc/prometheus/rules/messenger.yml
SUCCESS: 26 rules found
== promtool check web-config (TLS + обязательный client cert)
/etc/prometheus/web.yml SUCCESS
== promtool test rules
SUCCESS
== otelcol validate (otel/opentelemetry-collector-contrib:0.163.2@sha256:7f22d2a6748110ffb6a59bc0df448bccbf501cdb667d610ede4c61d3863d5849)
collector config OK
== loki -verify-config (grafana/loki:3.6.19@sha256:0f9cbc340cbe33ee498e654075034336962057db072f57b37f253e14d476443a)
loki config OK
== dashboard JSON is up to date with scripts/build_dashboard.py
dashboard OK
+88
View File
@@ -0,0 +1,88 @@
# Прогон из чистой копии репозитория (без secrets/, .env, материала оператора), 2026-11-18
# COMPOSE_PROJECT_NAME=mtusi-lab7-clean, отдельный OPERATOR_DIR; init-secrets -> check_rules -> build --no-cache -> bao-init -> up --wait -> WITH_LAB6=1 run_all.sh
created CA public-ca (key in operator dir)
created CA internal-ca (key in operator dir)
issued lb-public (public-ca, 30 days)
issued grafana-public (public-ca, 30 days)
issued lb (internal-ca, 30 days)
issued api (internal-ca, 30 days)
issued worker (internal-ca, 30 days)
issued relay (internal-ca, 30 days)
issued janitor (internal-ca, 30 days)
issued migrate (internal-ca, 30 days)
issued s3-init (internal-ca, 30 days)
issued ops (internal-ca, 30 days)
issued grafana (internal-ca, 30 days)
issued db (internal-ca, 30 days)
issued s3 (internal-ca, 30 days)
issued broker (internal-ca, 30 days)
issued otel-collector (internal-ca, 30 days)
issued prometheus (internal-ca, 30 days)
issued loki (internal-ca, 30 days)
issued tempo (internal-ca, 30 days)
issued openbao (internal-ca, 30 days)
issued intruder (internal-ca, 30 days)
issued rogue-lb (rogue-ca, 30 days)
== promtool check config (prom/prometheus:v3.13.5@sha256:aafa9d694e6a883c02db516d9f6e5b84e14195f49a2a6456a4cca815edda72b9)
== promtool check web-config (TLS + обязательный client cert)
== promtool test rules
== otelcol validate (otel/opentelemetry-collector-contrib:0.163.2@sha256:7f22d2a6748110ffb6a59bc0df448bccbf501cdb667d610ede4c61d3863d5849)
== loki -verify-config (grafana/loki:3.6.19@sha256:0f9cbc340cbe33ee498e654075034336962057db072f57b37f253e14d476443a)
== dashboard JSON is up to date with scripts/build_dashboard.py
openbao initialized; root token and 3 unseal shares saved to <scratch>/clean/operator/openbao/init.json (operator only)
openbao unsealed (2 of 3 shares)
openbao configured: kv v2 'kv/', audit file->stdout, auth/cert roles: api worker relay janitor migrate s3-init ops
Container mtusi-lab7-clean-migrate-1 Exited
Container mtusi-lab7-clean-migrate-1 Exited
Container mtusi-lab7-clean-migrate-1 Exited
Container mtusi-lab7-clean-migrate-1 Exited
Container mtusi-lab7-clean-migrate-1 Exited
Container mtusi-lab7-clean-s3-init-1 Exited
Container mtusi-lab7-clean-s3-init-1 Exited
Container mtusi-lab7-clean-s3-init-1 Exited
Container mtusi-lab7-clean-migrate-1 Exited
Container mtusi-lab7-clean-s3-init-1 Exited
mtusi-lab7-clean-api-1 Up 11 seconds (healthy)
mtusi-lab7-clean-api-2 Up 11 seconds (healthy)
mtusi-lab7-clean-broker-1 Up 31 seconds (healthy)
mtusi-lab7-clean-db-1 Up 31 seconds (healthy)
mtusi-lab7-clean-grafana-1 Up 30 seconds (healthy)
mtusi-lab7-clean-janitor-1 Up 11 seconds (healthy)
mtusi-lab7-clean-lb-1 Up 10 seconds (healthy)
mtusi-lab7-clean-migrate-1 Exited (0) 27 seconds ago
mtusi-lab7-clean-openbao-1 Up 48 seconds (healthy)
mtusi-lab7-clean-prometheus-1 Up 31 seconds (healthy)
mtusi-lab7-clean-relay-1 Up 23 seconds (healthy)
mtusi-lab7-clean-s3-1 Up 31 seconds (healthy)
mtusi-lab7-clean-s3-init-1 Exited (0) 11 seconds ago
mtusi-lab7-clean-worker-1 Up 11 seconds (healthy)
mtusi-lab7-clean-worker-2 Up 11 seconds (healthy)
== make-check (2026-11-18T20:51:58Z)
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
== make-test (2026-11-18T20:51:58Z)
PASS: lab7 public API scenario; infrastructure and grading evidence remain separate.
== make-test-security (2026-11-18T20:51:59Z)
PASS: trusted HTTPS works; untrusted CA rejected. This does NOT verify internal mTLS, OpenBao or hardening.
== lab7-tls-matrix (2026-11-18T20:51:59Z)
PASS: 67 checks, 0 failed
== lab7-api-security (2026-11-18T20:52:00Z)
PASS: 33 checks, 0 failed
== lab7-openbao (2026-11-18T20:52:36Z)
PASS: 83 checks, 0 failed
== lab7-hardening (2026-11-18T20:53:23Z)
PASS: 182 checks, 0 failed
== test-persistence (2026-11-18T20:53:44Z)
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
== test-failover (2026-11-18T20:54:33Z)
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
== load (2026-11-18T20:54:56Z)
== scan-secrets (2026-11-18T20:55:26Z)
== check-rules (2026-11-18T20:55:26Z)
== obs-correlation (2026-11-18T20:55:29Z)
PASS: correlation request->trace->log and upload->relay->worker
== dashboard-check (2026-11-18T20:55:39Z)
== worker-outage (2026-11-18T20:56:20Z)
PASS: worker outage, api+broker restart, ready, duplicate delivery no-op
== done: ALL PASS
+(eval):1> echo 'CLEAN_EXIT=0'
CLEAN_EXIT=0
+598
View File
@@ -0,0 +1,598 @@
{
"dashboard": {
"uid": "messenger-overview",
"title": "Messenger — наблюдаемость (lab6)",
"provisioned": true,
"folder": "Messenger",
"panels": 56
},
"datasources": [
"loki",
"prometheus",
"tempo"
],
"datasource_health": {
"prometheus": "OK",
"loki": "OK",
"tempo": "OK"
},
"panels": [
{
"panel": "RPS бизнес-запросов",
"ref": "A",
"datasource": "prometheus",
"series": 1,
"ok": true
},
{
"panel": "5xx, доля (2m)",
"ref": "A",
"datasource": "prometheus",
"series": 1,
"ok": true
},
{
"panel": "p95 API (5m)",
"ref": "A",
"datasource": "prometheus",
"series": 1,
"ok": true
},
{
"panel": "SLO доступности, 7d",
"ref": "A",
"datasource": "prometheus",
"series": 1,
"ok": true
},
{
"panel": "Остаток error budget, 7d",
"ref": "A",
"datasource": "prometheus",
"series": 1,
"ok": true
},
{
"panel": "Time to ready p95",
"ref": "A",
"datasource": "prometheus",
"series": 1,
"ok": true
},
{
"panel": "Ready lag очереди",
"ref": "A",
"datasource": "prometheus",
"series": 1,
"ok": true
},
{
"panel": "Alerts firing",
"ref": "A",
"datasource": "prometheus",
"series": 1,
"ok": true
},
{
"panel": "История alerts (pending/firing -> resolved)",
"ref": "A",
"datasource": "prometheus",
"series": 0,
"ok": true
},
{
"panel": "RPS по маршруту",
"ref": "A",
"datasource": "prometheus",
"series": 10,
"ok": true
},
{
"panel": "Ответы по классу статуса",
"ref": "A",
"datasource": "prometheus",
"series": 1,
"ok": true
},
{
"panel": "Доля 5xx: API и LB",
"ref": "A",
"datasource": "prometheus",
"series": 1,
"ok": true
},
{
"panel": "Доля 5xx: API и LB",
"ref": "B",
"datasource": "prometheus",
"series": 1,
"ok": true
},
{
"panel": "Задержка API p50/p95/p99 (из histogram)",
"ref": "A",
"datasource": "prometheus",
"series": 1,
"ok": true
},
{
"panel": "Задержка API p50/p95/p99 (из histogram)",
"ref": "B",
"datasource": "prometheus",
"series": 1,
"ok": true
},
{
"panel": "Задержка API p50/p95/p99 (из histogram)",
"ref": "C",
"datasource": "prometheus",
"series": 1,
"ok": true
},
{
"panel": "p95 по маршруту",
"ref": "A",
"datasource": "prometheus",
"series": 10,
"ok": true
},
{
"panel": "5xx по причине (error.type)",
"ref": "A",
"datasource": "prometheus",
"series": 0,
"ok": true
},
{
"panel": "Запросы в обработке (saturation API)",
"ref": "A",
"datasource": "prometheus",
"series": 6,
"ok": true
},
{
"panel": "HAProxy: UP-реплики и очередь LB",
"ref": "A",
"datasource": "prometheus",
"series": 1,
"ok": true
},
{
"panel": "HAProxy: UP-реплики и очередь LB",
"ref": "B",
"datasource": "prometheus",
"series": 1,
"ok": true
},
{
"panel": "Задания по исходу (в минуту)",
"ref": "A",
"datasource": "prometheus",
"series": 1,
"ok": true
},
{
"panel": "Длительность обработки job p50/p95/p99",
"ref": "A",
"datasource": "prometheus",
"series": 1,
"ok": true
},
{
"panel": "Длительность обработки job p50/p95/p99",
"ref": "B",
"datasource": "prometheus",
"series": 1,
"ok": true
},
{
"panel": "Длительность обработки job p50/p95/p99",
"ref": "C",
"datasource": "prometheus",
"series": 1,
"ok": true
},
{
"panel": "Time to ready p50/p95/p99",
"ref": "A",
"datasource": "prometheus",
"series": 1,
"ok": true
},
{
"panel": "Time to ready p50/p95/p99",
"ref": "B",
"datasource": "prometheus",
"series": 1,
"ok": true
},
{
"panel": "Time to ready p50/p95/p99",
"ref": "C",
"datasource": "prometheus",
"series": 1,
"ok": true
},
{
"panel": "Глубина очереди: PostgreSQL и RabbitMQ",
"ref": "A",
"datasource": "prometheus",
"series": 2,
"ok": true
},
{
"panel": "Глубина очереди: PostgreSQL и RabbitMQ",
"ref": "B",
"datasource": "prometheus",
"series": 1,
"ok": true
},
{
"panel": "Глубина очереди: PostgreSQL и RabbitMQ",
"ref": "C",
"datasource": "prometheus",
"series": 1,
"ok": true
},
{
"panel": "Глубина очереди: PostgreSQL и RabbitMQ",
"ref": "D",
"datasource": "prometheus",
"series": 1,
"ok": true
},
{
"panel": "Глубина очереди: PostgreSQL и RabbitMQ",
"ref": "E",
"datasource": "prometheus",
"series": 1,
"ok": true
},
{
"panel": "Возраст старейшего задания и lag",
"ref": "A",
"datasource": "prometheus",
"series": 2,
"ok": true
},
{
"panel": "Возраст старейшего задания и lag",
"ref": "B",
"datasource": "prometheus",
"series": 1,
"ok": true
},
{
"panel": "Возраст старейшего задания и lag",
"ref": "C",
"datasource": "prometheus",
"series": 1,
"ok": true
},
{
"panel": "Ожидание в очереди p95 (до claim)",
"ref": "A",
"datasource": "prometheus",
"series": 1,
"ok": true
},
{
"panel": "Ожидание в очереди p95 (до claim)",
"ref": "B",
"datasource": "prometheus",
"series": 1,
"ok": true
},
{
"panel": "Saturation worker: занятость потребителей",
"ref": "A",
"datasource": "prometheus",
"series": 1,
"ok": true
},
{
"panel": "Saturation worker: занятость потребителей",
"ref": "B",
"datasource": "prometheus",
"series": 1,
"ok": true
},
{
"panel": "Relay: публикации outbox",
"ref": "A",
"datasource": "prometheus",
"series": 1,
"ok": true
},
{
"panel": "Пул соединений API: used / idle / max",
"ref": "A",
"datasource": "prometheus",
"series": 12,
"ok": true
},
{
"panel": "Пул соединений API: used / idle / max",
"ref": "B",
"datasource": "prometheus",
"series": 1,
"ok": true
},
{
"panel": "Ожидающие соединение и таймауты пула",
"ref": "A",
"datasource": "prometheus",
"series": 6,
"ok": true
},
{
"panel": "Ожидающие соединение и таймауты пула",
"ref": "B",
"datasource": "prometheus",
"series": 2,
"ok": true
},
{
"panel": "Ожидание соединения пула p95",
"ref": "A",
"datasource": "prometheus",
"series": 1,
"ok": true
},
{
"panel": "Операции БД p95 по операции (API)",
"ref": "A",
"datasource": "prometheus",
"series": 12,
"ok": true
},
{
"panel": "Операции БД worker/relay p95",
"ref": "A",
"datasource": "prometheus",
"series": 5,
"ok": true
},
{
"panel": "Ошибки операций БД",
"ref": "A",
"datasource": "prometheus",
"series": 0,
"ok": true
},
{
"panel": "S3 p95 по операции",
"ref": "A",
"datasource": "prometheus",
"series": 4,
"ok": true
},
{
"panel": "S3 ошибки",
"ref": "A",
"datasource": "prometheus",
"series": 0,
"ok": true
},
{
"panel": "CPU, ядер (cgroup контейнера)",
"ref": "A",
"datasource": "prometheus",
"series": 6,
"ok": true
},
{
"panel": "CPU saturation: доля лимита",
"ref": "A",
"datasource": "prometheus",
"series": 6,
"ok": true
},
{
"panel": "Память контейнеров приложений",
"ref": "A",
"datasource": "prometheus",
"series": 14,
"ok": true
},
{
"panel": "Память: доля лимита",
"ref": "A",
"datasource": "prometheus",
"series": 14,
"ok": true
},
{
"panel": "Память telemetry-стека (RSS)",
"ref": "A",
"datasource": "prometheus",
"series": 3,
"ok": true
},
{
"panel": "Память telemetry-стека (RSS)",
"ref": "B",
"datasource": "prometheus",
"series": 2,
"ok": true
},
{
"panel": "Память telemetry-стека (RSS)",
"ref": "C",
"datasource": "prometheus",
"series": 2,
"ok": true
},
{
"panel": "Память telemetry-стека (RSS)",
"ref": "D",
"datasource": "prometheus",
"series": 1,
"ok": true
},
{
"panel": "CPU telemetry-стека",
"ref": "A",
"datasource": "prometheus",
"series": 3,
"ok": true
},
{
"panel": "CPU telemetry-стека",
"ref": "B",
"datasource": "prometheus",
"series": 1,
"ok": true
},
{
"panel": "Collector: принято / отправлено / потеряно (spans)",
"ref": "A",
"datasource": "prometheus",
"series": 1,
"ok": true
},
{
"panel": "Collector: принято / отправлено / потеряно (spans)",
"ref": "B",
"datasource": "prometheus",
"series": 1,
"ok": true
},
{
"panel": "Collector: принято / отправлено / потеряно (spans)",
"ref": "C",
"datasource": "prometheus",
"series": 0,
"ok": true
},
{
"panel": "Collector: принято / отправлено / потеряно (spans)",
"ref": "D",
"datasource": "prometheus",
"series": 0,
"ok": true
},
{
"panel": "Collector: принято / отправлено / потеряно (spans)",
"ref": "E",
"datasource": "prometheus",
"series": 1,
"ok": true
},
{
"panel": "Collector: логи",
"ref": "A",
"datasource": "prometheus",
"series": 1,
"ok": true
},
{
"panel": "Collector: логи",
"ref": "B",
"datasource": "prometheus",
"series": 1,
"ok": true
},
{
"panel": "Collector: логи",
"ref": "C",
"datasource": "prometheus",
"series": 0,
"ok": true
},
{
"panel": "Collector: логи",
"ref": "D",
"datasource": "prometheus",
"series": 0,
"ok": true
},
{
"panel": "Collector: очередь экспортёров",
"ref": "A",
"datasource": "prometheus",
"series": 3,
"ok": true
},
{
"panel": "Collector: очередь экспортёров",
"ref": "B",
"datasource": "prometheus",
"series": 3,
"ok": true
},
{
"panel": "SDK приложений: потери на стороне процесса",
"ref": "A",
"datasource": "prometheus",
"series": 0,
"ok": true
},
{
"panel": "SDK приложений: потери на стороне процесса",
"ref": "B",
"datasource": "prometheus",
"series": 0,
"ok": true
},
{
"panel": "SDK приложений: потери на стороне процесса",
"ref": "C",
"datasource": "prometheus",
"series": 0,
"ok": true
},
{
"panel": "SDK: заполнение очереди BatchSpanProcessor",
"ref": "A",
"datasource": "prometheus",
"series": 14,
"ok": true
},
{
"panel": "SDK: заполнение очереди BatchSpanProcessor",
"ref": "B",
"datasource": "prometheus",
"series": 1,
"ok": true
},
{
"panel": "Логи WARN/ERROR приложений (Loki)",
"ref": "A",
"datasource": "loki",
"lines": 20,
"ok": true
},
{
"panel": "HTTP 5xx (event=http.request)",
"ref": "A",
"datasource": "loki",
"lines": 20,
"ok": true
},
{
"panel": "Последние трассы обработки заданий (Tempo)",
"ref": "A",
"datasource": "tempo",
"traces": 5,
"ok": true
},
{
"panel": "Медленные запросы API > 1 s (Tempo)",
"ref": "A",
"datasource": "tempo",
"traces": 0,
"ok": true
},
{
"panel": "Трассы с ошибкой (Tempo)",
"ref": "A",
"datasource": "tempo",
"traces": 5,
"ok": true
}
],
"query_errors": [],
"empty_required_panels": [],
"pass": true
}
+84
View File
@@ -0,0 +1,84 @@
warmup: {'requests': 564, 'ok': 564, 'codes': {'200': 242, '201': 242, '202': 80}, 'error_ratio_5xx': 0.0, 'ok_rps': 14.1, 'p50_ms': 11.3, 'p95_ms': 26.6, 'p99_ms': 43.7}
ok RPS бизнес-запросов prometheus 1
ok 5xx, доля (2m) prometheus 1
ok p95 API (5m) prometheus 1
ok SLO доступности, 7d prometheus 1
ok Остаток error budget, 7d prometheus 1
ok Time to ready p95 prometheus 1
ok Ready lag очереди prometheus 1
ok Alerts firing prometheus 1
ok История alerts (pending/firing -> resolved) prometheus 0
ok RPS по маршруту prometheus 10
ok Ответы по классу статуса prometheus 1
ok Доля 5xx: API и LB prometheus 1
ok Доля 5xx: API и LB prometheus 1
ok Задержка API p50/p95/p99 (из histogram) prometheus 1
ok Задержка API p50/p95/p99 (из histogram) prometheus 1
ok Задержка API p50/p95/p99 (из histogram) prometheus 1
ok p95 по маршруту prometheus 10
ok 5xx по причине (error.type) prometheus 0
ok Запросы в обработке (saturation API) prometheus 6
ok HAProxy: UP-реплики и очередь LB prometheus 1
ok HAProxy: UP-реплики и очередь LB prometheus 1
ok Задания по исходу (в минуту) prometheus 1
ok Длительность обработки job p50/p95/p99 prometheus 1
ok Длительность обработки job p50/p95/p99 prometheus 1
ok Длительность обработки job p50/p95/p99 prometheus 1
ok Time to ready p50/p95/p99 prometheus 1
ok Time to ready p50/p95/p99 prometheus 1
ok Time to ready p50/p95/p99 prometheus 1
ok Глубина очереди: PostgreSQL и RabbitMQ prometheus 2
ok Глубина очереди: PostgreSQL и RabbitMQ prometheus 1
ok Глубина очереди: PostgreSQL и RabbitMQ prometheus 1
ok Глубина очереди: PostgreSQL и RabbitMQ prometheus 1
ok Глубина очереди: PostgreSQL и RabbitMQ prometheus 1
ok Возраст старейшего задания и lag prometheus 2
ok Возраст старейшего задания и lag prometheus 1
ok Возраст старейшего задания и lag prometheus 1
ok Ожидание в очереди p95 (до claim) prometheus 1
ok Ожидание в очереди p95 (до claim) prometheus 1
ok Saturation worker: занятость потребителей prometheus 1
ok Saturation worker: занятость потребителей prometheus 1
ok Relay: публикации outbox prometheus 1
ok Пул соединений API: used / idle / max prometheus 12
ok Пул соединений API: used / idle / max prometheus 1
ok Ожидающие соединение и таймауты пула prometheus 6
ok Ожидающие соединение и таймауты пула prometheus 2
ok Ожидание соединения пула p95 prometheus 1
ok Операции БД p95 по операции (API) prometheus 12
ok Операции БД worker/relay p95 prometheus 5
ok Ошибки операций БД prometheus 0
ok S3 p95 по операции prometheus 4
ok S3 ошибки prometheus 0
ok CPU, ядер (cgroup контейнера) prometheus 6
ok CPU saturation: доля лимита prometheus 6
ok Память контейнеров приложений prometheus 14
ok Память: доля лимита prometheus 14
ok Память telemetry-стека (RSS) prometheus 3
ok Память telemetry-стека (RSS) prometheus 2
ok Память telemetry-стека (RSS) prometheus 2
ok Память telemetry-стека (RSS) prometheus 1
ok CPU telemetry-стека prometheus 3
ok CPU telemetry-стека prometheus 1
ok Collector: принято / отправлено / потеряно (spans) prometheus 1
ok Collector: принято / отправлено / потеряно (spans) prometheus 1
ok Collector: принято / отправлено / потеряно (spans) prometheus 0
ok Collector: принято / отправлено / потеряно (spans) prometheus 0
ok Collector: принято / отправлено / потеряно (spans) prometheus 1
ok Collector: логи prometheus 1
ok Collector: логи prometheus 1
ok Collector: логи prometheus 0
ok Collector: логи prometheus 0
ok Collector: очередь экспортёров prometheus 3
ok Collector: очередь экспортёров prometheus 3
ok SDK приложений: потери на стороне процесса prometheus 0
ok SDK приложений: потери на стороне процесса prometheus 0
ok SDK приложений: потери на стороне процесса prometheus 0
ok SDK: заполнение очереди BatchSpanProcessor prometheus 14
ok SDK: заполнение очереди BatchSpanProcessor prometheus 1
ok Логи WARN/ERROR приложений (Loki) loki 20
ok HTTP 5xx (event=http.request) loki 20
ok Последние трассы обработки заданий (Tempo) tempo 5
ok Медленные запросы API > 1 s (Tempo) tempo 0
ok Трассы с ошибкой (Tempo) tempo 5
{"dashboard": {"uid": "messenger-overview", "title": "Messenger — наблюдаемость (lab6)", "provisioned": true, "folder": "Messenger", "panels": 56}, "datasource_health": {"prometheus": "OK", "loki": "OK", "tempo": "OK"}, "query_errors": [], "empty_required_panels": [], "pass": true}
+173
View File
@@ -0,0 +1,173 @@
{
"checked_at": "2026-11-18T20:27:20Z",
"base_url": "https://localhost:8443",
"total": 33,
"failed": 0,
"results": [
{
"check": "tls.trusted_ca_and_hostname",
"pass": true,
"detail": "TLSv1.3"
},
{
"check": "tls.wrong_hostname_rejected",
"pass": true,
"detail": "Hostname mismatch, certificate is not valid for 'evil.example'."
},
{
"check": "tls.internal_ca_does_not_validate_ingress",
"pass": true,
"detail": "unable to get local issuer certificate"
},
{
"check": "tls.tls11_refused",
"pass": true,
"detail": "tls_error TLSV1_ALERT_PROTOCOL_VERSION"
},
{
"check": "setup.attachment_ready",
"pass": true,
"detail": "ready"
},
{
"check": "outsider.chat_404",
"pass": true,
"detail": "404"
},
{
"check": "outsider.history_404",
"pass": true,
"detail": "404"
},
{
"check": "outsider.attachment_metadata_404",
"pass": true,
"detail": "404"
},
{
"check": "outsider.attachment_content_404",
"pass": true,
"detail": "404"
},
{
"check": "outsider.attachment_thumbnail_404",
"pass": true,
"detail": "404"
},
{
"check": "outsider.attach_foreign_file_404",
"pass": true,
"detail": "404"
},
{
"check": "outsider.post_into_foreign_chat_404",
"pass": true,
"detail": "404"
},
{
"check": "outsider.chat_list_hides_foreign",
"pass": true,
"detail": ""
},
{
"check": "spoof.x_user_id_ignored",
"pass": true,
"detail": "me=eve"
},
{
"check": "spoof.x_user_id_alone_401",
"pass": true,
"detail": ""
},
{
"check": "auth.basic_on_business_endpoint_401",
"pass": true,
"detail": ""
},
{
"check": "auth.unknown_token_401",
"pass": true,
"detail": "Bearer realm=\"messenger\""
},
{
"check": "auth.same_401_unknown_user_and_wrong_password",
"pass": true,
"detail": ""
},
{
"check": "auth.error_has_no_credentials_or_internals",
"pass": true,
"detail": ""
},
{
"check": "logout.204",
"pass": true,
"detail": ""
},
{
"check": "logout.token_revoked_401",
"pass": true,
"detail": ""
},
{
"check": "logout.repeat_401",
"pass": true,
"detail": ""
},
{
"check": "expiry.expired_session_401",
"pass": true,
"detail": "rows=1"
},
{
"check": "argon2.stored_format",
"pass": true,
"detail": "$argon2id$v=19$m=19456,t=2,p=1$<salt>$<hash>"
},
{
"check": "argon2.unique_salt",
"pass": true,
"detail": ""
},
{
"check": "argon2.rehash_legacy_scrypt_on_login",
"pass": true,
"detail": "$argon2id$v=19$m=19456,t=2,p=1"
},
{
"check": "limits.json_body_over_1mib_413",
"pass": true,
"detail": "payload_too_large"
},
{
"check": "limits.upload_over_10mib_413",
"pass": true,
"detail": "payload_too_large"
},
{
"check": "headers.instance_alias_random",
"pass": true,
"detail": "r-4676e5ef75"
},
{
"check": "headers.no_server_banner",
"pass": true,
"detail": "None"
},
{
"check": "headers.hsts",
"pass": true,
"detail": ""
},
{
"check": "ratelimit.login_429_with_retry_after",
"pass": true,
"detail": "first 429 at attempt 19, Retry-After=10, code=rate_limited"
},
{
"check": "ratelimit.recovers_after_window",
"pass": true,
"detail": ""
}
]
}
+34
View File
@@ -0,0 +1,34 @@
PASS tls.trusted_ca_and_hostname TLSv1.3
PASS tls.wrong_hostname_rejected Hostname mismatch, certificate is not valid for 'evil.example'.
PASS tls.internal_ca_does_not_validate_ingress unable to get local issuer certificate
PASS tls.tls11_refused tls_error TLSV1_ALERT_PROTOCOL_VERSION
PASS setup.attachment_ready ready
PASS outsider.chat_404 404
PASS outsider.history_404 404
PASS outsider.attachment_metadata_404 404
PASS outsider.attachment_content_404 404
PASS outsider.attachment_thumbnail_404 404
PASS outsider.attach_foreign_file_404 404
PASS outsider.post_into_foreign_chat_404 404
PASS outsider.chat_list_hides_foreign
PASS spoof.x_user_id_ignored me=eve
PASS spoof.x_user_id_alone_401
PASS auth.basic_on_business_endpoint_401
PASS auth.unknown_token_401 Bearer realm="messenger"
PASS auth.same_401_unknown_user_and_wrong_password
PASS auth.error_has_no_credentials_or_internals
PASS logout.204
PASS logout.token_revoked_401
PASS logout.repeat_401
PASS expiry.expired_session_401 rows=1
PASS argon2.stored_format $argon2id$v=19$m=19456,t=2,p=1$<salt>$<hash>
PASS argon2.unique_salt
PASS argon2.rehash_legacy_scrypt_on_login $argon2id$v=19$m=19456,t=2,p=1
PASS limits.json_body_over_1mib_413 payload_too_large
PASS limits.upload_over_10mib_413 payload_too_large
PASS headers.instance_alias_random r-4676e5ef75
PASS headers.no_server_banner None
PASS headers.hsts
PASS ratelimit.login_429_with_retry_after first 429 at attempt 19, Retry-After=10, code=rate_limited
PASS ratelimit.recovers_after_window
PASS: 33 checks, 0 failed
+917
View File
@@ -0,0 +1,917 @@
{
"checked_at": "2026-11-18T20:59:25Z",
"total": 182,
"failed": 0,
"results": [
{
"check": "api(1).not_privileged",
"pass": true,
"detail": ""
},
{
"check": "api(1).no_host_namespaces",
"pass": true,
"detail": "mtusi-lab7_apinet//private"
},
{
"check": "api(1).no_docker_socket",
"pass": true,
"detail": ""
},
{
"check": "api(1).no_new_privileges",
"pass": true,
"detail": ""
},
{
"check": "api(1).memory_cpu_limits",
"pass": true,
"detail": "mem=640MiB cpu=0.50"
},
{
"check": "api(1).cap_drop_all",
"pass": true,
"detail": ""
},
{
"check": "api(1).cap_add_only_documented",
"pass": true,
"detail": ""
},
{
"check": "api(1).non_root_uid",
"pass": true,
"detail": "10001:10001"
},
{
"check": "api(1).read_only_rootfs",
"pass": true,
"detail": ""
},
{
"check": "api(1).no_vault_token_in_env",
"pass": true,
"detail": ""
},
{
"check": "api(1).no_secret_values_in_env",
"pass": true,
"detail": ""
},
{
"check": "api(1).only_own_tls_identity_mounted",
"pass": true,
"detail": "/run/secrets/internal-ca.crt,/run/secrets/service.crt,/run/secrets/service.key"
},
{
"check": "api(2).not_privileged",
"pass": true,
"detail": ""
},
{
"check": "api(2).no_host_namespaces",
"pass": true,
"detail": "mtusi-lab7_apinet//private"
},
{
"check": "api(2).no_docker_socket",
"pass": true,
"detail": ""
},
{
"check": "api(2).no_new_privileges",
"pass": true,
"detail": ""
},
{
"check": "api(2).memory_cpu_limits",
"pass": true,
"detail": "mem=640MiB cpu=0.50"
},
{
"check": "api(2).cap_drop_all",
"pass": true,
"detail": ""
},
{
"check": "api(2).cap_add_only_documented",
"pass": true,
"detail": ""
},
{
"check": "api(2).non_root_uid",
"pass": true,
"detail": "10001:10001"
},
{
"check": "api(2).read_only_rootfs",
"pass": true,
"detail": ""
},
{
"check": "api(2).no_vault_token_in_env",
"pass": true,
"detail": ""
},
{
"check": "api(2).no_secret_values_in_env",
"pass": true,
"detail": ""
},
{
"check": "api(2).only_own_tls_identity_mounted",
"pass": true,
"detail": "/run/secrets/internal-ca.crt,/run/secrets/service.crt,/run/secrets/service.key"
},
{
"check": "broker(1).not_privileged",
"pass": true,
"detail": ""
},
{
"check": "broker(1).no_host_namespaces",
"pass": true,
"detail": "mtusi-lab7_backend//private"
},
{
"check": "broker(1).no_docker_socket",
"pass": true,
"detail": ""
},
{
"check": "broker(1).no_new_privileges",
"pass": true,
"detail": ""
},
{
"check": "broker(1).memory_cpu_limits",
"pass": true,
"detail": "mem=512MiB cpu=1.00"
},
{
"check": "broker(1).cap_drop_all",
"pass": true,
"detail": "add=CHOWN,DAC_OVERRIDE,FOWNER,SETGID,SETUID"
},
{
"check": "broker(1).cap_add_only_documented",
"pass": true,
"detail": "CHOWN,DAC_OVERRIDE,FOWNER,SETGID,SETUID"
},
{
"check": "broker(1).no_vault_token_in_env",
"pass": true,
"detail": ""
},
{
"check": "broker(1).no_secret_values_in_env",
"pass": true,
"detail": ""
},
{
"check": "db(1).not_privileged",
"pass": true,
"detail": ""
},
{
"check": "db(1).no_host_namespaces",
"pass": true,
"detail": "mtusi-lab7_backend//private"
},
{
"check": "db(1).no_docker_socket",
"pass": true,
"detail": ""
},
{
"check": "db(1).no_new_privileges",
"pass": true,
"detail": ""
},
{
"check": "db(1).memory_cpu_limits",
"pass": true,
"detail": "mem=512MiB cpu=1.00"
},
{
"check": "db(1).cap_drop_all",
"pass": true,
"detail": "add=CHOWN,DAC_OVERRIDE,FOWNER,SETGID,SETUID"
},
{
"check": "db(1).cap_add_only_documented",
"pass": true,
"detail": "CHOWN,DAC_OVERRIDE,FOWNER,SETGID,SETUID"
},
{
"check": "db(1).no_vault_token_in_env",
"pass": true,
"detail": ""
},
{
"check": "db(1).no_secret_values_in_env",
"pass": true,
"detail": ""
},
{
"check": "grafana(1).not_privileged",
"pass": true,
"detail": ""
},
{
"check": "grafana(1).no_host_namespaces",
"pass": true,
"detail": "mtusi-lab7_grafana-ui//private"
},
{
"check": "grafana(1).no_docker_socket",
"pass": true,
"detail": ""
},
{
"check": "grafana(1).no_new_privileges",
"pass": true,
"detail": ""
},
{
"check": "grafana(1).memory_cpu_limits",
"pass": true,
"detail": "mem=384MiB cpu=0.50"
},
{
"check": "grafana(1).cap_drop_all",
"pass": true,
"detail": ""
},
{
"check": "grafana(1).cap_add_only_documented",
"pass": true,
"detail": ""
},
{
"check": "grafana(1).published_3000/tcp",
"pass": true,
"detail": "127.0.0.1:3000"
},
{
"check": "grafana(1).no_vault_token_in_env",
"pass": true,
"detail": ""
},
{
"check": "grafana(1).no_secret_values_in_env",
"pass": true,
"detail": ""
},
{
"check": "janitor(1).not_privileged",
"pass": true,
"detail": ""
},
{
"check": "janitor(1).no_host_namespaces",
"pass": true,
"detail": "mtusi-lab7_backend//private"
},
{
"check": "janitor(1).no_docker_socket",
"pass": true,
"detail": ""
},
{
"check": "janitor(1).no_new_privileges",
"pass": true,
"detail": ""
},
{
"check": "janitor(1).memory_cpu_limits",
"pass": true,
"detail": "mem=160MiB cpu=0.25"
},
{
"check": "janitor(1).cap_drop_all",
"pass": true,
"detail": ""
},
{
"check": "janitor(1).cap_add_only_documented",
"pass": true,
"detail": ""
},
{
"check": "janitor(1).non_root_uid",
"pass": true,
"detail": "10001:10001"
},
{
"check": "janitor(1).read_only_rootfs",
"pass": true,
"detail": ""
},
{
"check": "janitor(1).no_vault_token_in_env",
"pass": true,
"detail": ""
},
{
"check": "janitor(1).no_secret_values_in_env",
"pass": true,
"detail": ""
},
{
"check": "janitor(1).only_own_tls_identity_mounted",
"pass": true,
"detail": "/run/secrets/service.key,/run/secrets/internal-ca.crt,/run/secrets/service.crt"
},
{
"check": "lb(1).not_privileged",
"pass": true,
"detail": ""
},
{
"check": "lb(1).no_host_namespaces",
"pass": true,
"detail": "mtusi-lab7_apinet//private"
},
{
"check": "lb(1).no_docker_socket",
"pass": true,
"detail": ""
},
{
"check": "lb(1).no_new_privileges",
"pass": true,
"detail": ""
},
{
"check": "lb(1).memory_cpu_limits",
"pass": true,
"detail": "mem=128MiB cpu=0.50"
},
{
"check": "lb(1).cap_drop_all",
"pass": true,
"detail": ""
},
{
"check": "lb(1).cap_add_only_documented",
"pass": true,
"detail": ""
},
{
"check": "lb(1).read_only_rootfs",
"pass": true,
"detail": ""
},
{
"check": "lb(1).published_8443/tcp",
"pass": true,
"detail": "127.0.0.1:8443"
},
{
"check": "lb(1).no_vault_token_in_env",
"pass": true,
"detail": ""
},
{
"check": "lb(1).no_secret_values_in_env",
"pass": true,
"detail": ""
},
{
"check": "loki(1).not_privileged",
"pass": true,
"detail": ""
},
{
"check": "loki(1).no_host_namespaces",
"pass": true,
"detail": "mtusi-lab7_telemetry//private"
},
{
"check": "loki(1).no_docker_socket",
"pass": true,
"detail": ""
},
{
"check": "loki(1).no_new_privileges",
"pass": true,
"detail": ""
},
{
"check": "loki(1).memory_cpu_limits",
"pass": true,
"detail": "mem=512MiB cpu=0.50"
},
{
"check": "loki(1).cap_drop_all",
"pass": true,
"detail": ""
},
{
"check": "loki(1).cap_add_only_documented",
"pass": true,
"detail": ""
},
{
"check": "loki(1).read_only_rootfs",
"pass": true,
"detail": ""
},
{
"check": "loki(1).no_vault_token_in_env",
"pass": true,
"detail": ""
},
{
"check": "loki(1).no_secret_values_in_env",
"pass": true,
"detail": ""
},
{
"check": "openbao(1).not_privileged",
"pass": true,
"detail": ""
},
{
"check": "openbao(1).no_host_namespaces",
"pass": true,
"detail": "mtusi-lab7_vault//private"
},
{
"check": "openbao(1).no_docker_socket",
"pass": true,
"detail": ""
},
{
"check": "openbao(1).no_new_privileges",
"pass": true,
"detail": ""
},
{
"check": "openbao(1).memory_cpu_limits",
"pass": true,
"detail": "mem=256MiB cpu=0.50"
},
{
"check": "openbao(1).cap_drop_all",
"pass": true,
"detail": ""
},
{
"check": "openbao(1).cap_add_only_documented",
"pass": true,
"detail": ""
},
{
"check": "openbao(1).read_only_rootfs",
"pass": true,
"detail": ""
},
{
"check": "openbao(1).no_vault_token_in_env",
"pass": true,
"detail": ""
},
{
"check": "openbao(1).no_secret_values_in_env",
"pass": true,
"detail": ""
},
{
"check": "otel-collector(1).not_privileged",
"pass": true,
"detail": ""
},
{
"check": "otel-collector(1).no_host_namespaces",
"pass": true,
"detail": "mtusi-lab7_telemetry//private"
},
{
"check": "otel-collector(1).no_docker_socket",
"pass": true,
"detail": ""
},
{
"check": "otel-collector(1).no_new_privileges",
"pass": true,
"detail": ""
},
{
"check": "otel-collector(1).memory_cpu_limits",
"pass": true,
"detail": "mem=256MiB cpu=0.50"
},
{
"check": "otel-collector(1).cap_drop_all",
"pass": true,
"detail": ""
},
{
"check": "otel-collector(1).cap_add_only_documented",
"pass": true,
"detail": ""
},
{
"check": "otel-collector(1).read_only_rootfs",
"pass": true,
"detail": ""
},
{
"check": "otel-collector(1).no_vault_token_in_env",
"pass": true,
"detail": ""
},
{
"check": "otel-collector(1).no_secret_values_in_env",
"pass": true,
"detail": ""
},
{
"check": "prometheus(1).not_privileged",
"pass": true,
"detail": ""
},
{
"check": "prometheus(1).no_host_namespaces",
"pass": true,
"detail": "mtusi-lab7_telemetry//private"
},
{
"check": "prometheus(1).no_docker_socket",
"pass": true,
"detail": ""
},
{
"check": "prometheus(1).no_new_privileges",
"pass": true,
"detail": ""
},
{
"check": "prometheus(1).memory_cpu_limits",
"pass": true,
"detail": "mem=512MiB cpu=0.50"
},
{
"check": "prometheus(1).cap_drop_all",
"pass": true,
"detail": ""
},
{
"check": "prometheus(1).cap_add_only_documented",
"pass": true,
"detail": ""
},
{
"check": "prometheus(1).read_only_rootfs",
"pass": true,
"detail": ""
},
{
"check": "prometheus(1).no_vault_token_in_env",
"pass": true,
"detail": ""
},
{
"check": "prometheus(1).no_secret_values_in_env",
"pass": true,
"detail": ""
},
{
"check": "relay(1).not_privileged",
"pass": true,
"detail": ""
},
{
"check": "relay(1).no_host_namespaces",
"pass": true,
"detail": "mtusi-lab7_backend//private"
},
{
"check": "relay(1).no_docker_socket",
"pass": true,
"detail": ""
},
{
"check": "relay(1).no_new_privileges",
"pass": true,
"detail": ""
},
{
"check": "relay(1).memory_cpu_limits",
"pass": true,
"detail": "mem=128MiB cpu=0.25"
},
{
"check": "relay(1).cap_drop_all",
"pass": true,
"detail": ""
},
{
"check": "relay(1).cap_add_only_documented",
"pass": true,
"detail": ""
},
{
"check": "relay(1).non_root_uid",
"pass": true,
"detail": "10001:10001"
},
{
"check": "relay(1).read_only_rootfs",
"pass": true,
"detail": ""
},
{
"check": "relay(1).no_vault_token_in_env",
"pass": true,
"detail": ""
},
{
"check": "relay(1).no_secret_values_in_env",
"pass": true,
"detail": ""
},
{
"check": "relay(1).only_own_tls_identity_mounted",
"pass": true,
"detail": "/run/secrets/service.key,/run/secrets/internal-ca.crt,/run/secrets/service.crt"
},
{
"check": "s3(1).not_privileged",
"pass": true,
"detail": ""
},
{
"check": "s3(1).no_host_namespaces",
"pass": true,
"detail": "mtusi-lab7_backend//private"
},
{
"check": "s3(1).no_docker_socket",
"pass": true,
"detail": ""
},
{
"check": "s3(1).no_new_privileges",
"pass": true,
"detail": ""
},
{
"check": "s3(1).memory_cpu_limits",
"pass": true,
"detail": "mem=768MiB cpu=1.00"
},
{
"check": "s3(1).cap_drop_all",
"pass": true,
"detail": "add=CHOWN,SETGID,SETUID"
},
{
"check": "s3(1).cap_add_only_documented",
"pass": true,
"detail": "CHOWN,SETGID,SETUID"
},
{
"check": "s3(1).no_vault_token_in_env",
"pass": true,
"detail": ""
},
{
"check": "s3(1).no_secret_values_in_env",
"pass": true,
"detail": ""
},
{
"check": "tempo(1).not_privileged",
"pass": true,
"detail": ""
},
{
"check": "tempo(1).no_host_namespaces",
"pass": true,
"detail": "mtusi-lab7_telemetry//private"
},
{
"check": "tempo(1).no_docker_socket",
"pass": true,
"detail": ""
},
{
"check": "tempo(1).no_new_privileges",
"pass": true,
"detail": ""
},
{
"check": "tempo(1).memory_cpu_limits",
"pass": true,
"detail": "mem=512MiB cpu=0.50"
},
{
"check": "tempo(1).cap_drop_all",
"pass": true,
"detail": ""
},
{
"check": "tempo(1).cap_add_only_documented",
"pass": true,
"detail": ""
},
{
"check": "tempo(1).read_only_rootfs",
"pass": true,
"detail": ""
},
{
"check": "tempo(1).no_vault_token_in_env",
"pass": true,
"detail": ""
},
{
"check": "tempo(1).no_secret_values_in_env",
"pass": true,
"detail": ""
},
{
"check": "worker(1).not_privileged",
"pass": true,
"detail": ""
},
{
"check": "worker(1).no_host_namespaces",
"pass": true,
"detail": "mtusi-lab7_backend//private"
},
{
"check": "worker(1).no_docker_socket",
"pass": true,
"detail": ""
},
{
"check": "worker(1).no_new_privileges",
"pass": true,
"detail": ""
},
{
"check": "worker(1).memory_cpu_limits",
"pass": true,
"detail": "mem=1024MiB cpu=1.00"
},
{
"check": "worker(1).cap_drop_all",
"pass": true,
"detail": ""
},
{
"check": "worker(1).cap_add_only_documented",
"pass": true,
"detail": ""
},
{
"check": "worker(1).non_root_uid",
"pass": true,
"detail": "10001:10001"
},
{
"check": "worker(1).read_only_rootfs",
"pass": true,
"detail": ""
},
{
"check": "worker(1).no_vault_token_in_env",
"pass": true,
"detail": ""
},
{
"check": "worker(1).no_secret_values_in_env",
"pass": true,
"detail": ""
},
{
"check": "worker(1).only_own_tls_identity_mounted",
"pass": true,
"detail": "/run/secrets/internal-ca.crt,/run/secrets/service.crt,/run/secrets/service.key"
},
{
"check": "worker(2).not_privileged",
"pass": true,
"detail": ""
},
{
"check": "worker(2).no_host_namespaces",
"pass": true,
"detail": "mtusi-lab7_backend//private"
},
{
"check": "worker(2).no_docker_socket",
"pass": true,
"detail": ""
},
{
"check": "worker(2).no_new_privileges",
"pass": true,
"detail": ""
},
{
"check": "worker(2).memory_cpu_limits",
"pass": true,
"detail": "mem=1024MiB cpu=1.00"
},
{
"check": "worker(2).cap_drop_all",
"pass": true,
"detail": ""
},
{
"check": "worker(2).cap_add_only_documented",
"pass": true,
"detail": ""
},
{
"check": "worker(2).non_root_uid",
"pass": true,
"detail": "10001:10001"
},
{
"check": "worker(2).read_only_rootfs",
"pass": true,
"detail": ""
},
{
"check": "worker(2).no_vault_token_in_env",
"pass": true,
"detail": ""
},
{
"check": "worker(2).no_secret_values_in_env",
"pass": true,
"detail": ""
},
{
"check": "worker(2).only_own_tls_identity_mounted",
"pass": true,
"detail": "/run/secrets/internal-ca.crt,/run/secrets/service.crt,/run/secrets/service.key"
},
{
"check": "api(6506bf).health_listener_only_health",
"pass": true,
"detail": "{\"GET /health/ready\": \"200\", \"GET /api/v1/chats\": \"404\", \"POST /api/v1/users\": \"404\", \"GET /api/v1/users/me\": \"404\"}"
},
{
"check": "api(c66490).health_listener_only_health",
"pass": true,
"detail": "{\"GET /health/ready\": \"200\", \"GET /api/v1/chats\": \"404\", \"POST /api/v1/users\": \"404\", \"GET /api/v1/users/me\": \"404\"}"
},
{
"check": "image.no_key_or_secret_files",
"pass": true,
"detail": " no_secrets_dir "
},
{
"check": "image.no_secrets_dir",
"pass": true,
"detail": ""
},
{
"check": "image.history_without_secret_values",
"pass": true,
"detail": ""
},
{
"check": "image.default_user_non_root",
"pass": true,
"detail": "10001:10001"
},
{
"check": "repo.scan_secrets_clean",
"pass": true,
"detail": "checked 125 secret values from 50 files; files with leaks: none"
},
{
"check": "telemetry.loki_search_positive_control",
"pass": true,
"detail": "matching lines: 2"
},
{
"check": "telemetry.loki_no_bearer_token",
"pass": true,
"detail": "hits=0"
},
{
"check": "telemetry.loki_no_password",
"pass": true,
"detail": "hits=0"
},
{
"check": "telemetry.loki_no_token_prefix",
"pass": true,
"detail": "hits=0"
},
{
"check": "telemetry.tempo_no_token_or_password",
"pass": true,
"detail": "checked 5 traces"
}
]
}
+183
View File
@@ -0,0 +1,183 @@
PASS api(1).not_privileged
PASS api(1).no_host_namespaces mtusi-lab7_apinet//private
PASS api(1).no_docker_socket
PASS api(1).no_new_privileges
PASS api(1).memory_cpu_limits mem=640MiB cpu=0.50
PASS api(1).cap_drop_all
PASS api(1).cap_add_only_documented
PASS api(1).non_root_uid 10001:10001
PASS api(1).read_only_rootfs
PASS api(1).no_vault_token_in_env
PASS api(1).no_secret_values_in_env
PASS api(1).only_own_tls_identity_mounted /run/secrets/internal-ca.crt,/run/secrets/service.crt,/run/secrets/service.key
PASS api(2).not_privileged
PASS api(2).no_host_namespaces mtusi-lab7_apinet//private
PASS api(2).no_docker_socket
PASS api(2).no_new_privileges
PASS api(2).memory_cpu_limits mem=640MiB cpu=0.50
PASS api(2).cap_drop_all
PASS api(2).cap_add_only_documented
PASS api(2).non_root_uid 10001:10001
PASS api(2).read_only_rootfs
PASS api(2).no_vault_token_in_env
PASS api(2).no_secret_values_in_env
PASS api(2).only_own_tls_identity_mounted /run/secrets/internal-ca.crt,/run/secrets/service.crt,/run/secrets/service.key
PASS broker(1).not_privileged
PASS broker(1).no_host_namespaces mtusi-lab7_backend//private
PASS broker(1).no_docker_socket
PASS broker(1).no_new_privileges
PASS broker(1).memory_cpu_limits mem=512MiB cpu=1.00
PASS broker(1).cap_drop_all add=CHOWN,DAC_OVERRIDE,FOWNER,SETGID,SETUID
PASS broker(1).cap_add_only_documented CHOWN,DAC_OVERRIDE,FOWNER,SETGID,SETUID
PASS broker(1).no_vault_token_in_env
PASS broker(1).no_secret_values_in_env
PASS db(1).not_privileged
PASS db(1).no_host_namespaces mtusi-lab7_backend//private
PASS db(1).no_docker_socket
PASS db(1).no_new_privileges
PASS db(1).memory_cpu_limits mem=512MiB cpu=1.00
PASS db(1).cap_drop_all add=CHOWN,DAC_OVERRIDE,FOWNER,SETGID,SETUID
PASS db(1).cap_add_only_documented CHOWN,DAC_OVERRIDE,FOWNER,SETGID,SETUID
PASS db(1).no_vault_token_in_env
PASS db(1).no_secret_values_in_env
PASS grafana(1).not_privileged
PASS grafana(1).no_host_namespaces mtusi-lab7_grafana-ui//private
PASS grafana(1).no_docker_socket
PASS grafana(1).no_new_privileges
PASS grafana(1).memory_cpu_limits mem=384MiB cpu=0.50
PASS grafana(1).cap_drop_all
PASS grafana(1).cap_add_only_documented
PASS grafana(1).published_3000/tcp 127.0.0.1:3000
PASS grafana(1).no_vault_token_in_env
PASS grafana(1).no_secret_values_in_env
PASS janitor(1).not_privileged
PASS janitor(1).no_host_namespaces mtusi-lab7_backend//private
PASS janitor(1).no_docker_socket
PASS janitor(1).no_new_privileges
PASS janitor(1).memory_cpu_limits mem=160MiB cpu=0.25
PASS janitor(1).cap_drop_all
PASS janitor(1).cap_add_only_documented
PASS janitor(1).non_root_uid 10001:10001
PASS janitor(1).read_only_rootfs
PASS janitor(1).no_vault_token_in_env
PASS janitor(1).no_secret_values_in_env
PASS janitor(1).only_own_tls_identity_mounted /run/secrets/service.key,/run/secrets/internal-ca.crt,/run/secrets/service.crt
PASS lb(1).not_privileged
PASS lb(1).no_host_namespaces mtusi-lab7_apinet//private
PASS lb(1).no_docker_socket
PASS lb(1).no_new_privileges
PASS lb(1).memory_cpu_limits mem=128MiB cpu=0.50
PASS lb(1).cap_drop_all
PASS lb(1).cap_add_only_documented
PASS lb(1).read_only_rootfs
PASS lb(1).published_8443/tcp 127.0.0.1:8443
PASS lb(1).no_vault_token_in_env
PASS lb(1).no_secret_values_in_env
PASS loki(1).not_privileged
PASS loki(1).no_host_namespaces mtusi-lab7_telemetry//private
PASS loki(1).no_docker_socket
PASS loki(1).no_new_privileges
PASS loki(1).memory_cpu_limits mem=512MiB cpu=0.50
PASS loki(1).cap_drop_all
PASS loki(1).cap_add_only_documented
PASS loki(1).read_only_rootfs
PASS loki(1).no_vault_token_in_env
PASS loki(1).no_secret_values_in_env
PASS openbao(1).not_privileged
PASS openbao(1).no_host_namespaces mtusi-lab7_vault//private
PASS openbao(1).no_docker_socket
PASS openbao(1).no_new_privileges
PASS openbao(1).memory_cpu_limits mem=256MiB cpu=0.50
PASS openbao(1).cap_drop_all
PASS openbao(1).cap_add_only_documented
PASS openbao(1).read_only_rootfs
PASS openbao(1).no_vault_token_in_env
PASS openbao(1).no_secret_values_in_env
PASS otel-collector(1).not_privileged
PASS otel-collector(1).no_host_namespaces mtusi-lab7_telemetry//private
PASS otel-collector(1).no_docker_socket
PASS otel-collector(1).no_new_privileges
PASS otel-collector(1).memory_cpu_limits mem=256MiB cpu=0.50
PASS otel-collector(1).cap_drop_all
PASS otel-collector(1).cap_add_only_documented
PASS otel-collector(1).read_only_rootfs
PASS otel-collector(1).no_vault_token_in_env
PASS otel-collector(1).no_secret_values_in_env
PASS prometheus(1).not_privileged
PASS prometheus(1).no_host_namespaces mtusi-lab7_telemetry//private
PASS prometheus(1).no_docker_socket
PASS prometheus(1).no_new_privileges
PASS prometheus(1).memory_cpu_limits mem=512MiB cpu=0.50
PASS prometheus(1).cap_drop_all
PASS prometheus(1).cap_add_only_documented
PASS prometheus(1).read_only_rootfs
PASS prometheus(1).no_vault_token_in_env
PASS prometheus(1).no_secret_values_in_env
PASS relay(1).not_privileged
PASS relay(1).no_host_namespaces mtusi-lab7_backend//private
PASS relay(1).no_docker_socket
PASS relay(1).no_new_privileges
PASS relay(1).memory_cpu_limits mem=128MiB cpu=0.25
PASS relay(1).cap_drop_all
PASS relay(1).cap_add_only_documented
PASS relay(1).non_root_uid 10001:10001
PASS relay(1).read_only_rootfs
PASS relay(1).no_vault_token_in_env
PASS relay(1).no_secret_values_in_env
PASS relay(1).only_own_tls_identity_mounted /run/secrets/service.key,/run/secrets/internal-ca.crt,/run/secrets/service.crt
PASS s3(1).not_privileged
PASS s3(1).no_host_namespaces mtusi-lab7_backend//private
PASS s3(1).no_docker_socket
PASS s3(1).no_new_privileges
PASS s3(1).memory_cpu_limits mem=768MiB cpu=1.00
PASS s3(1).cap_drop_all add=CHOWN,SETGID,SETUID
PASS s3(1).cap_add_only_documented CHOWN,SETGID,SETUID
PASS s3(1).no_vault_token_in_env
PASS s3(1).no_secret_values_in_env
PASS tempo(1).not_privileged
PASS tempo(1).no_host_namespaces mtusi-lab7_telemetry//private
PASS tempo(1).no_docker_socket
PASS tempo(1).no_new_privileges
PASS tempo(1).memory_cpu_limits mem=512MiB cpu=0.50
PASS tempo(1).cap_drop_all
PASS tempo(1).cap_add_only_documented
PASS tempo(1).read_only_rootfs
PASS tempo(1).no_vault_token_in_env
PASS tempo(1).no_secret_values_in_env
PASS worker(1).not_privileged
PASS worker(1).no_host_namespaces mtusi-lab7_backend//private
PASS worker(1).no_docker_socket
PASS worker(1).no_new_privileges
PASS worker(1).memory_cpu_limits mem=1024MiB cpu=1.00
PASS worker(1).cap_drop_all
PASS worker(1).cap_add_only_documented
PASS worker(1).non_root_uid 10001:10001
PASS worker(1).read_only_rootfs
PASS worker(1).no_vault_token_in_env
PASS worker(1).no_secret_values_in_env
PASS worker(1).only_own_tls_identity_mounted /run/secrets/internal-ca.crt,/run/secrets/service.crt,/run/secrets/service.key
PASS worker(2).not_privileged
PASS worker(2).no_host_namespaces mtusi-lab7_backend//private
PASS worker(2).no_docker_socket
PASS worker(2).no_new_privileges
PASS worker(2).memory_cpu_limits mem=1024MiB cpu=1.00
PASS worker(2).cap_drop_all
PASS worker(2).cap_add_only_documented
PASS worker(2).non_root_uid 10001:10001
PASS worker(2).read_only_rootfs
PASS worker(2).no_vault_token_in_env
PASS worker(2).no_secret_values_in_env
PASS worker(2).only_own_tls_identity_mounted /run/secrets/internal-ca.crt,/run/secrets/service.crt,/run/secrets/service.key
PASS api(6506bf).health_listener_only_health {"GET /health/ready": "200", "GET /api/v1/chats": "404", "POST /api/v1/users": "404", "GET /api/v1/users/me": "404"}
PASS api(c66490).health_listener_only_health {"GET /health/ready": "200", "GET /api/v1/chats": "404", "POST /api/v1/users": "404", "GET /api/v1/users/me": "404"}
PASS image.no_key_or_secret_files no_secrets_dir
PASS image.no_secrets_dir
PASS image.history_without_secret_values
PASS image.default_user_non_root 10001:10001
PASS repo.scan_secrets_clean checked 125 secret values from 50 files; files with leaks: none
PASS telemetry.loki_search_positive_control matching lines: 2
PASS telemetry.loki_no_bearer_token hits=0
PASS telemetry.loki_no_password hits=0
PASS telemetry.loki_no_token_prefix hits=0
PASS telemetry.tempo_no_token_or_password checked 5 traces
PASS: 182 checks, 0 failed
+422
View File
@@ -0,0 +1,422 @@
{
"checked_at": "2026-11-18T20:28:13Z",
"total": 83,
"failed": 0,
"results": [
{
"check": "status.initialized_unsealed",
"pass": true,
"detail": ""
},
{
"check": "status.storage_raft_persistent",
"pass": true,
"detail": "raft"
},
{
"check": "status.shares_threshold",
"pass": true,
"detail": "t=2 n=3"
},
{
"check": "status.not_dev_mode",
"pass": true,
"detail": "[\"bao\",\"server\",\"-config=/openbao/config/openbao.hcl\"] null"
},
{
"check": "api.login_policies",
"pass": true,
"detail": "default,messenger-api"
},
{
"check": "api.token_ttl_bounded",
"pass": true,
"detail": "ttl=900"
},
{
"check": "api.read_own_path_200",
"pass": true,
"detail": ""
},
{
"check": "api.own_fields_exact",
"pass": true,
"detail": "POSTGRES_PASSWORD,S3_ACCESS_KEY_ID,S3_SECRET_ACCESS_KEY"
},
{
"check": "api.deny_read_other_service",
"pass": true,
"detail": "403"
},
{
"check": "api.deny_read_migrate_admin",
"pass": true,
"detail": "403"
},
{
"check": "api.deny_list_metadata",
"pass": true,
"detail": "403"
},
{
"check": "api.deny_write_own_secret",
"pass": true,
"detail": "403"
},
{
"check": "api.deny_write_policy",
"pass": true,
"detail": "403"
},
{
"check": "api.deny_create_token",
"pass": true,
"detail": "403"
},
{
"check": "api.deny_seal",
"pass": true,
"detail": "403"
},
{
"check": "api.deny_list_auth_roles",
"pass": true,
"detail": "403"
},
{
"check": "api.renew_self",
"pass": true,
"detail": ""
},
{
"check": "api.revoked_token_denied",
"pass": true,
"detail": "403"
},
{
"check": "api.no_token_in_env",
"pass": true,
"detail": ""
},
{
"check": "api.only_tls_identity_mounted",
"pass": true,
"detail": "internal-ca.crt,service.crt,service.key"
},
{
"check": "api.db_role_not_privileged",
"pass": true,
"detail": "api_svc TLSv1.3"
},
{
"check": "worker.login_policies",
"pass": true,
"detail": "default,messenger-worker"
},
{
"check": "worker.token_ttl_bounded",
"pass": true,
"detail": "ttl=900"
},
{
"check": "worker.read_own_path_200",
"pass": true,
"detail": ""
},
{
"check": "worker.own_fields_exact",
"pass": true,
"detail": "BROKER_URL,POSTGRES_PASSWORD,S3_ACCESS_KEY_ID,S3_SECRET_ACCESS_KEY"
},
{
"check": "worker.deny_read_other_service",
"pass": true,
"detail": "403"
},
{
"check": "worker.deny_read_migrate_admin",
"pass": true,
"detail": "403"
},
{
"check": "worker.deny_list_metadata",
"pass": true,
"detail": "403"
},
{
"check": "worker.deny_write_own_secret",
"pass": true,
"detail": "403"
},
{
"check": "worker.deny_write_policy",
"pass": true,
"detail": "403"
},
{
"check": "worker.deny_create_token",
"pass": true,
"detail": "403"
},
{
"check": "worker.deny_seal",
"pass": true,
"detail": "403"
},
{
"check": "worker.deny_list_auth_roles",
"pass": true,
"detail": "403"
},
{
"check": "worker.renew_self",
"pass": true,
"detail": ""
},
{
"check": "worker.revoked_token_denied",
"pass": true,
"detail": "403"
},
{
"check": "worker.no_token_in_env",
"pass": true,
"detail": ""
},
{
"check": "worker.only_tls_identity_mounted",
"pass": true,
"detail": "internal-ca.crt,service.crt,service.key"
},
{
"check": "worker.db_role_not_privileged",
"pass": true,
"detail": "worker_svc TLSv1.3"
},
{
"check": "relay.login_policies",
"pass": true,
"detail": "default,messenger-relay"
},
{
"check": "relay.token_ttl_bounded",
"pass": true,
"detail": "ttl=900"
},
{
"check": "relay.read_own_path_200",
"pass": true,
"detail": ""
},
{
"check": "relay.own_fields_exact",
"pass": true,
"detail": "BROKER_URL,POSTGRES_PASSWORD"
},
{
"check": "relay.deny_read_other_service",
"pass": true,
"detail": "403"
},
{
"check": "relay.deny_read_migrate_admin",
"pass": true,
"detail": "403"
},
{
"check": "relay.deny_list_metadata",
"pass": true,
"detail": "403"
},
{
"check": "relay.deny_write_own_secret",
"pass": true,
"detail": "403"
},
{
"check": "relay.deny_write_policy",
"pass": true,
"detail": "403"
},
{
"check": "relay.deny_create_token",
"pass": true,
"detail": "403"
},
{
"check": "relay.deny_seal",
"pass": true,
"detail": "403"
},
{
"check": "relay.deny_list_auth_roles",
"pass": true,
"detail": "403"
},
{
"check": "relay.renew_self",
"pass": true,
"detail": ""
},
{
"check": "relay.revoked_token_denied",
"pass": true,
"detail": "403"
},
{
"check": "relay.no_token_in_env",
"pass": true,
"detail": ""
},
{
"check": "relay.only_tls_identity_mounted",
"pass": true,
"detail": "internal-ca.crt,service.crt,service.key"
},
{
"check": "relay.db_role_not_privileged",
"pass": true,
"detail": "relay_svc TLSv1.3"
},
{
"check": "janitor.login_policies",
"pass": true,
"detail": "default,messenger-janitor"
},
{
"check": "janitor.token_ttl_bounded",
"pass": true,
"detail": "ttl=900"
},
{
"check": "janitor.read_own_path_200",
"pass": true,
"detail": ""
},
{
"check": "janitor.own_fields_exact",
"pass": true,
"detail": "POSTGRES_PASSWORD,S3_ACCESS_KEY_ID,S3_SECRET_ACCESS_KEY"
},
{
"check": "janitor.deny_read_other_service",
"pass": true,
"detail": "403"
},
{
"check": "janitor.deny_read_migrate_admin",
"pass": true,
"detail": "403"
},
{
"check": "janitor.deny_list_metadata",
"pass": true,
"detail": "403"
},
{
"check": "janitor.deny_write_own_secret",
"pass": true,
"detail": "403"
},
{
"check": "janitor.deny_write_policy",
"pass": true,
"detail": "403"
},
{
"check": "janitor.deny_create_token",
"pass": true,
"detail": "403"
},
{
"check": "janitor.deny_seal",
"pass": true,
"detail": "403"
},
{
"check": "janitor.deny_list_auth_roles",
"pass": true,
"detail": "403"
},
{
"check": "janitor.renew_self",
"pass": true,
"detail": ""
},
{
"check": "janitor.revoked_token_denied",
"pass": true,
"detail": "403"
},
{
"check": "janitor.no_token_in_env",
"pass": true,
"detail": ""
},
{
"check": "janitor.only_tls_identity_mounted",
"pass": true,
"detail": "internal-ca.crt,service.crt,service.key"
},
{
"check": "janitor.db_role_not_privileged",
"pass": true,
"detail": "janitor_svc TLSv1.3"
},
{
"check": "worker.has_own_s3_key",
"pass": true,
"detail": ""
},
{
"check": "worker.no_admin_or_api_s3_key",
"pass": true,
"detail": ""
},
{
"check": "worker.db_no_users_sessions_messages",
"pass": true,
"detail": ""
},
{
"check": "api.db_no_ddl_truncate",
"pass": true,
"detail": ""
},
{
"check": "sealed.after_restart_sealed",
"pass": true,
"detail": ""
},
{
"check": "sealed.running_api_keeps_serving",
"pass": true,
"detail": ""
},
{
"check": "sealed.restarted_replica_not_healthy",
"pass": true,
"detail": "unhealthy"
},
{
"check": "sealed.restarted_replica_waits_for_openbao",
"pass": true,
"detail": ""
},
{
"check": "sealed.lb_serves_from_other_replica",
"pass": true,
"detail": "r-752aa9a6c1"
},
{
"check": "sealed.replica_healthy_after_unseal",
"pass": true,
"detail": "11.5s after unseal (total 42s)"
},
{
"check": "sealed.kv_persisted_after_restart",
"pass": true,
"detail": ""
}
]
}
+84
View File
@@ -0,0 +1,84 @@
PASS status.initialized_unsealed
PASS status.storage_raft_persistent raft
PASS status.shares_threshold t=2 n=3
PASS status.not_dev_mode ["bao","server","-config=/openbao/config/openbao.hcl"] null
PASS api.login_policies default,messenger-api
PASS api.token_ttl_bounded ttl=900
PASS api.read_own_path_200
PASS api.own_fields_exact POSTGRES_PASSWORD,S3_ACCESS_KEY_ID,S3_SECRET_ACCESS_KEY
PASS api.deny_read_other_service 403
PASS api.deny_read_migrate_admin 403
PASS api.deny_list_metadata 403
PASS api.deny_write_own_secret 403
PASS api.deny_write_policy 403
PASS api.deny_create_token 403
PASS api.deny_seal 403
PASS api.deny_list_auth_roles 403
PASS api.renew_self
PASS api.revoked_token_denied 403
PASS api.no_token_in_env
PASS api.only_tls_identity_mounted internal-ca.crt,service.crt,service.key
PASS api.db_role_not_privileged api_svc TLSv1.3
PASS worker.login_policies default,messenger-worker
PASS worker.token_ttl_bounded ttl=900
PASS worker.read_own_path_200
PASS worker.own_fields_exact BROKER_URL,POSTGRES_PASSWORD,S3_ACCESS_KEY_ID,S3_SECRET_ACCESS_KEY
PASS worker.deny_read_other_service 403
PASS worker.deny_read_migrate_admin 403
PASS worker.deny_list_metadata 403
PASS worker.deny_write_own_secret 403
PASS worker.deny_write_policy 403
PASS worker.deny_create_token 403
PASS worker.deny_seal 403
PASS worker.deny_list_auth_roles 403
PASS worker.renew_self
PASS worker.revoked_token_denied 403
PASS worker.no_token_in_env
PASS worker.only_tls_identity_mounted internal-ca.crt,service.crt,service.key
PASS worker.db_role_not_privileged worker_svc TLSv1.3
PASS relay.login_policies default,messenger-relay
PASS relay.token_ttl_bounded ttl=900
PASS relay.read_own_path_200
PASS relay.own_fields_exact BROKER_URL,POSTGRES_PASSWORD
PASS relay.deny_read_other_service 403
PASS relay.deny_read_migrate_admin 403
PASS relay.deny_list_metadata 403
PASS relay.deny_write_own_secret 403
PASS relay.deny_write_policy 403
PASS relay.deny_create_token 403
PASS relay.deny_seal 403
PASS relay.deny_list_auth_roles 403
PASS relay.renew_self
PASS relay.revoked_token_denied 403
PASS relay.no_token_in_env
PASS relay.only_tls_identity_mounted internal-ca.crt,service.crt,service.key
PASS relay.db_role_not_privileged relay_svc TLSv1.3
PASS janitor.login_policies default,messenger-janitor
PASS janitor.token_ttl_bounded ttl=900
PASS janitor.read_own_path_200
PASS janitor.own_fields_exact POSTGRES_PASSWORD,S3_ACCESS_KEY_ID,S3_SECRET_ACCESS_KEY
PASS janitor.deny_read_other_service 403
PASS janitor.deny_read_migrate_admin 403
PASS janitor.deny_list_metadata 403
PASS janitor.deny_write_own_secret 403
PASS janitor.deny_write_policy 403
PASS janitor.deny_create_token 403
PASS janitor.deny_seal 403
PASS janitor.deny_list_auth_roles 403
PASS janitor.renew_self
PASS janitor.revoked_token_denied 403
PASS janitor.no_token_in_env
PASS janitor.only_tls_identity_mounted internal-ca.crt,service.crt,service.key
PASS janitor.db_role_not_privileged janitor_svc TLSv1.3
PASS worker.has_own_s3_key
PASS worker.no_admin_or_api_s3_key
PASS worker.db_no_users_sessions_messages
PASS api.db_no_ddl_truncate
PASS sealed.after_restart_sealed
PASS sealed.running_api_keeps_serving
PASS sealed.restarted_replica_not_healthy unhealthy
PASS sealed.restarted_replica_waits_for_openbao
PASS sealed.lb_serves_from_other_replica r-752aa9a6c1
PASS sealed.replica_healthy_after_unseal 11.5s after unseal (total 42s)
PASS sealed.kv_persisted_after_restart
PASS: 83 checks, 0 failed
+607
View File
@@ -0,0 +1,607 @@
{
"checked_at": "2026-11-18T20:26:44Z",
"total": 67,
"failed": 0,
"results": [
{
"link": "LB->API",
"case": "replicas_resolved",
"pass": true,
"detail": 2
},
{
"link": "LB->API[0]",
"case": "no client cert",
"expect": "fail",
"observed": "fail",
"detail": "tls_alert:TLSV13_ALERT_CERTIFICATE_REQUIRED",
"pass": true,
"note": ""
},
{
"link": "LB->API[0]",
"case": "client cert of rogue CA, SAN lb",
"expect": "fail",
"observed": "fail",
"detail": "tls_alert:TLSV1_ALERT_UNKNOWN_CA",
"pass": true,
"note": ""
},
{
"link": "LB->API[0]",
"case": "trusted CA, identity intruder",
"expect": "fail",
"observed": "fail",
"detail": "closed_after_handshake_no_http_response",
"pass": true,
"note": ""
},
{
"link": "LB->API[0]",
"case": "plaintext HTTP to 8443",
"expect": "fail",
"observed": "fail",
"detail": "reset_by_server",
"pass": true,
"note": ""
},
{
"link": "LB->API[0]",
"case": "health listener 8081 from network",
"expect": "fail",
"observed": "fail",
"detail": "connection_refused",
"pass": true,
"note": ""
},
{
"link": "LB->API[0]",
"case": "server cert, wrong expected hostname",
"expect": "fail",
"observed": "fail",
"detail": "server_cert_rejected_by_client:Hostname mismatch, certificate is not valid for 'db'.",
"pass": true,
"note": ""
},
{
"link": "LB->API[0]",
"case": "identity lb -> /health/ready",
"expect": "ok",
"observed": "ok",
"detail": 200,
"pass": true,
"note": "status=200"
},
{
"link": "LB->API[0]",
"case": "identity lb, no Bearer -> business API",
"expect": "ok",
"observed": "ok",
"detail": 401,
"pass": true,
"note": "mTLS не заменяет сессию: ожидается 401, получено 401"
},
{
"link": "LB->API[1]",
"case": "no client cert",
"expect": "fail",
"observed": "fail",
"detail": "tls_alert:TLSV13_ALERT_CERTIFICATE_REQUIRED",
"pass": true,
"note": ""
},
{
"link": "LB->API[1]",
"case": "client cert of rogue CA, SAN lb",
"expect": "fail",
"observed": "fail",
"detail": "tls_alert:TLSV1_ALERT_UNKNOWN_CA",
"pass": true,
"note": ""
},
{
"link": "LB->API[1]",
"case": "trusted CA, identity intruder",
"expect": "fail",
"observed": "fail",
"detail": "closed_after_handshake_no_http_response",
"pass": true,
"note": ""
},
{
"link": "LB->API[1]",
"case": "plaintext HTTP to 8443",
"expect": "fail",
"observed": "fail",
"detail": "reset_by_server",
"pass": true,
"note": ""
},
{
"link": "LB->API[1]",
"case": "health listener 8081 from network",
"expect": "fail",
"observed": "fail",
"detail": "connection_refused",
"pass": true,
"note": ""
},
{
"link": "LB->API[1]",
"case": "server cert, wrong expected hostname",
"expect": "fail",
"observed": "fail",
"detail": "server_cert_rejected_by_client:Hostname mismatch, certificate is not valid for 'db'.",
"pass": true,
"note": ""
},
{
"link": "LB->API[1]",
"case": "identity lb -> /health/ready",
"expect": "ok",
"observed": "ok",
"detail": 200,
"pass": true,
"note": "status=200"
},
{
"link": "LB->API[1]",
"case": "identity lb, no Bearer -> business API",
"expect": "ok",
"observed": "ok",
"detail": 401,
"pass": true,
"note": "mTLS не заменяет сессию: ожидается 401, получено 401"
},
{
"link": "API/worker->PostgreSQL",
"case": "sslmode=disable (plaintext)",
"expect": "fail",
"observed": "fail",
"detail": "connection failed: connection to server at \"192.168.0.3\", port 5432 failed: fatal: pg_hba.conf rejects connection for h",
"pass": true,
"note": ""
},
{
"link": "API/worker->PostgreSQL",
"case": "verify-full, rogue CA as trust",
"expect": "fail",
"observed": "fail",
"detail": "server_cert_rejected_by_client",
"pass": true,
"note": ""
},
{
"link": "API/worker->PostgreSQL",
"case": "verify-full by IP (SAN mismatch)",
"expect": "fail",
"observed": "fail",
"detail": "server_cert_rejected_by_client",
"pass": true,
"note": ""
},
{
"link": "API/worker->PostgreSQL",
"case": "verify-full, internal CA, wrong pwd",
"expect": "ok",
"observed": "ok",
"detail": "tls_ok_then_password_rejected",
"pass": true,
"note": "TLS проверен; дальше SCRAM отклоняет неверный пароль"
},
{
"link": "API/worker->S3",
"case": "plaintext HTTP",
"expect": "fail",
"observed": "fail",
"detail": "http_400_plain_http_sent_to_https_port",
"pass": true,
"note": ""
},
{
"link": "API/worker->S3",
"case": "HTTPS, rogue CA as trust",
"expect": "fail",
"observed": "fail",
"detail": "server_cert_rejected_by_client:unable to get local issuer certificate",
"pass": true,
"note": ""
},
{
"link": "API/worker->S3",
"case": "HTTPS verified, anonymous list",
"expect": "ok",
"observed": "ok",
"detail": 403,
"pass": true,
"note": "TLS ok; анонимно: 403 (ожидается 403)"
},
{
"link": "API/worker->broker",
"case": "plaintext AMQP 5672",
"expect": "fail",
"observed": "fail",
"detail": "connection_refused",
"pass": true,
"note": ""
},
{
"link": "API/worker->broker",
"case": "AMQPS, rogue CA as trust",
"expect": "fail",
"observed": "fail",
"detail": "server_cert_rejected_by_client:self-signed certificate in certificate chain",
"pass": true,
"note": ""
},
{
"link": "API/worker->broker",
"case": "AMQPS, client cert of rogue CA",
"expect": "fail",
"observed": "fail",
"detail": "tls_alert:TLSV1_ALERT_UNKNOWN_CA",
"pass": true,
"note": "verify_peer: предъявленный чужой сертификат отвергается"
},
{
"link": "API/worker->broker",
"case": "AMQPS verified (без cert), Connection.Start",
"expect": "ok",
"observed": "ok",
"detail": "amqp_connection_start",
"pass": true,
"note": "далее аутентификация паролем + ACL vhost (проверка прав — broker_permissions)"
},
{
"link": "API/worker->broker",
"case": "AMQPS, user worker, wrong password",
"expect": "fail",
"observed": "fail",
"detail": "auth_refused",
"pass": true,
"note": ""
},
{
"link": "Prometheus->broker metrics",
"case": "HTTPS 15691 without client cert",
"expect": "fail",
"observed": "fail",
"detail": "tls_alert:TLSV13_ALERT_CERTIFICATE_REQUIRED",
"pass": true,
"note": ""
},
{
"link": "Prometheus->broker metrics",
"case": "plaintext 15692 from network",
"expect": "fail",
"observed": "fail",
"detail": "connection_refused",
"pass": true,
"note": ""
},
{
"link": "API/worker->Collector",
"case": "plaintext",
"expect": "fail",
"observed": "fail",
"detail": "http_400_plain_http_sent_to_https_port",
"pass": true,
"note": ""
},
{
"link": "API/worker->Collector",
"case": "TLS without client cert",
"expect": "fail",
"observed": "fail",
"detail": "tls_alert:TLSV13_ALERT_CERTIFICATE_REQUIRED",
"pass": true,
"note": ""
},
{
"link": "API/worker->Collector",
"case": "TLS, client cert of rogue CA",
"expect": "fail",
"observed": "fail",
"detail": "tls_alert:TLSV1_ALERT_UNKNOWN_CA",
"pass": true,
"note": ""
},
{
"link": "API/worker->Collector",
"case": "TLS, wrong expected hostname",
"expect": "fail",
"observed": "fail",
"detail": "server_cert_rejected_by_client:Hostname mismatch, certificate is not valid for 'api'.",
"pass": true,
"note": ""
},
{
"link": "Collector/Grafana->Prometheus",
"case": "plaintext",
"expect": "fail",
"observed": "fail",
"detail": "http_400_plain_http_sent_to_https_port",
"pass": true,
"note": ""
},
{
"link": "Collector/Grafana->Prometheus",
"case": "TLS without client cert",
"expect": "fail",
"observed": "fail",
"detail": "tls_alert:TLSV13_ALERT_CERTIFICATE_REQUIRED",
"pass": true,
"note": ""
},
{
"link": "Collector/Grafana->Prometheus",
"case": "TLS, client cert of rogue CA",
"expect": "fail",
"observed": "fail",
"detail": "tls_alert:TLSV1_ALERT_UNKNOWN_CA",
"pass": true,
"note": ""
},
{
"link": "Collector/Grafana->Prometheus",
"case": "TLS, wrong expected hostname",
"expect": "fail",
"observed": "fail",
"detail": "server_cert_rejected_by_client:Hostname mismatch, certificate is not valid for 'api'.",
"pass": true,
"note": ""
},
{
"link": "Collector/Grafana->Loki",
"case": "plaintext",
"expect": "fail",
"observed": "fail",
"detail": "http_400_plain_http_sent_to_https_port",
"pass": true,
"note": ""
},
{
"link": "Collector/Grafana->Loki",
"case": "TLS without client cert",
"expect": "fail",
"observed": "fail",
"detail": "tls_alert:TLSV13_ALERT_CERTIFICATE_REQUIRED",
"pass": true,
"note": ""
},
{
"link": "Collector/Grafana->Loki",
"case": "TLS, client cert of rogue CA",
"expect": "fail",
"observed": "fail",
"detail": "tls_alert:TLSV1_ALERT_UNKNOWN_CA",
"pass": true,
"note": ""
},
{
"link": "Collector/Grafana->Loki",
"case": "TLS, wrong expected hostname",
"expect": "fail",
"observed": "fail",
"detail": "server_cert_rejected_by_client:Hostname mismatch, certificate is not valid for 'api'.",
"pass": true,
"note": ""
},
{
"link": "Grafana->Tempo",
"case": "plaintext",
"expect": "fail",
"observed": "fail",
"detail": "http_400_plain_http_sent_to_https_port",
"pass": true,
"note": ""
},
{
"link": "Grafana->Tempo",
"case": "TLS without client cert",
"expect": "fail",
"observed": "fail",
"detail": "tls_alert:TLSV13_ALERT_CERTIFICATE_REQUIRED",
"pass": true,
"note": ""
},
{
"link": "Grafana->Tempo",
"case": "TLS, client cert of rogue CA",
"expect": "fail",
"observed": "fail",
"detail": "tls_alert:SSLEOFError",
"pass": true,
"note": ""
},
{
"link": "Grafana->Tempo",
"case": "TLS, wrong expected hostname",
"expect": "fail",
"observed": "fail",
"detail": "server_cert_rejected_by_client:Hostname mismatch, certificate is not valid for 'api'.",
"pass": true,
"note": ""
},
{
"link": "Collector->Tempo OTLP gRPC",
"case": "plaintext",
"expect": "fail",
"observed": "fail",
"detail": "closed_without_plaintext_response",
"pass": true,
"note": ""
},
{
"link": "Collector->Tempo OTLP gRPC",
"case": "TLS without client cert",
"expect": "fail",
"observed": "fail",
"detail": "tls_alert:TLSV13_ALERT_CERTIFICATE_REQUIRED",
"pass": true,
"note": ""
},
{
"link": "Collector->Tempo OTLP gRPC",
"case": "TLS, client cert of rogue CA",
"expect": "fail",
"observed": "fail",
"detail": "tls_alert:TLSV1_ALERT_UNKNOWN_CA",
"pass": true,
"note": ""
},
{
"link": "Collector->Tempo OTLP gRPC",
"case": "TLS, wrong expected hostname",
"expect": "fail",
"observed": "fail",
"detail": "server_cert_rejected_by_client:Hostname mismatch, certificate is not valid for 'api'.",
"pass": true,
"note": ""
},
{
"link": "Prometheus->LB metrics",
"case": "plaintext",
"expect": "fail",
"observed": "fail",
"detail": "closed_without_plaintext_response",
"pass": true,
"note": ""
},
{
"link": "Prometheus->LB metrics",
"case": "TLS without client cert",
"expect": "fail",
"observed": "fail",
"detail": "tls_alert:TLSV13_ALERT_CERTIFICATE_REQUIRED",
"pass": true,
"note": ""
},
{
"link": "Prometheus->LB metrics",
"case": "TLS, client cert of rogue CA",
"expect": "fail",
"observed": "fail",
"detail": "tls_alert:TLSV1_ALERT_UNKNOWN_CA",
"pass": true,
"note": ""
},
{
"link": "Prometheus->LB metrics",
"case": "TLS, wrong expected hostname",
"expect": "fail",
"observed": "fail",
"detail": "server_cert_rejected_by_client:Hostname mismatch, certificate is not valid for 'api'.",
"pass": true,
"note": ""
},
{
"link": "internal-only port",
"case": "otel-collector:4317 from network",
"expect": "fail",
"observed": "fail",
"detail": "connection_refused",
"pass": true,
"note": ""
},
{
"link": "internal-only port",
"case": "otel-collector:8888 from network",
"expect": "fail",
"observed": "fail",
"detail": "connection_refused",
"pass": true,
"note": ""
},
{
"link": "internal-only port",
"case": "otel-collector:13133 from network",
"expect": "fail",
"observed": "fail",
"detail": "connection_refused",
"pass": true,
"note": ""
},
{
"link": "internal-only port",
"case": "loki:9095 from network",
"expect": "fail",
"observed": "fail",
"detail": "connection_refused",
"pass": true,
"note": ""
},
{
"link": "internal-only port",
"case": "tempo:9096 from network",
"expect": "fail",
"observed": "fail",
"detail": "connection_refused",
"pass": true,
"note": ""
},
{
"link": "API/worker->Collector",
"case": "trusted CA, foreign identity (intruder)",
"expect": "documented",
"observed": "ok",
"detail": 405,
"pass": true,
"note": "level 3: CA-only mTLS; разграничение identity — уровень 4 (см. trust-matrix)"
},
{
"link": "services->OpenBao",
"case": "plaintext HTTP",
"expect": "fail",
"observed": "fail",
"detail": "http_400_plain_http_sent_to_https_port",
"pass": true,
"note": ""
},
{
"link": "services->OpenBao",
"case": "TLS, rogue CA as trust",
"expect": "fail",
"observed": "fail",
"detail": "server_cert_rejected_by_client:unable to get local issuer certificate",
"pass": true,
"note": ""
},
{
"link": "services->OpenBao",
"case": "TLS verified, /v1/sys/health",
"expect": "ok",
"observed": "ok",
"detail": 200,
"pass": true,
"note": ""
},
{
"link": "services->OpenBao",
"case": "cert login as role api with intruder cert",
"expect": "fail",
"observed": "fail",
"detail": "http_400",
"pass": true,
"note": ""
},
{
"link": "services->OpenBao",
"case": "cert login as role api with lb cert",
"expect": "fail",
"observed": "fail",
"detail": "http_400",
"pass": true,
"note": "сертификат того же CA, но SAN не api -> роль не подходит"
},
{
"link": "services->OpenBao",
"case": "cert login without client cert",
"expect": "fail",
"observed": "fail",
"detail": "http_400",
"pass": true,
"note": ""
}
]
}
+68
View File
@@ -0,0 +1,68 @@
API replicas: 2
PASS LB->API[0] no client cert expect=fail got=fail tls_alert:TLSV13_ALERT_CERTIFICATE_REQUIRED
PASS LB->API[0] client cert of rogue CA, SAN lb expect=fail got=fail tls_alert:TLSV1_ALERT_UNKNOWN_CA
PASS LB->API[0] trusted CA, identity intruder expect=fail got=fail closed_after_handshake_no_http_response
PASS LB->API[0] plaintext HTTP to 8443 expect=fail got=fail reset_by_server
PASS LB->API[0] health listener 8081 from network expect=fail got=fail connection_refused
PASS LB->API[0] server cert, wrong expected hostname expect=fail got=fail server_cert_rejected_by_client:Hostname mismatch, certificate is not valid for 'db'.
PASS LB->API[0] identity lb -> /health/ready expect=ok got=ok 200
PASS LB->API[0] identity lb, no Bearer -> business API expect=ok got=ok 401
PASS LB->API[1] no client cert expect=fail got=fail tls_alert:TLSV13_ALERT_CERTIFICATE_REQUIRED
PASS LB->API[1] client cert of rogue CA, SAN lb expect=fail got=fail tls_alert:TLSV1_ALERT_UNKNOWN_CA
PASS LB->API[1] trusted CA, identity intruder expect=fail got=fail closed_after_handshake_no_http_response
PASS LB->API[1] plaintext HTTP to 8443 expect=fail got=fail reset_by_server
PASS LB->API[1] health listener 8081 from network expect=fail got=fail connection_refused
PASS LB->API[1] server cert, wrong expected hostname expect=fail got=fail server_cert_rejected_by_client:Hostname mismatch, certificate is not valid for 'db'.
PASS LB->API[1] identity lb -> /health/ready expect=ok got=ok 200
PASS LB->API[1] identity lb, no Bearer -> business API expect=ok got=ok 401
PASS API/worker->PostgreSQL sslmode=disable (plaintext) expect=fail got=fail connection failed: connection to server at "192.168.0.3", port 5432 failed: fatal: pg_hba.conf rejects connection for h
PASS API/worker->PostgreSQL verify-full, rogue CA as trust expect=fail got=fail server_cert_rejected_by_client
PASS API/worker->PostgreSQL verify-full by IP (SAN mismatch) expect=fail got=fail server_cert_rejected_by_client
PASS API/worker->PostgreSQL verify-full, internal CA, wrong pwd expect=ok got=ok tls_ok_then_password_rejected
PASS API/worker->S3 plaintext HTTP expect=fail got=fail http_400_plain_http_sent_to_https_port
PASS API/worker->S3 HTTPS, rogue CA as trust expect=fail got=fail server_cert_rejected_by_client:unable to get local issuer certificate
PASS API/worker->S3 HTTPS verified, anonymous list expect=ok got=ok 403
PASS API/worker->broker plaintext AMQP 5672 expect=fail got=fail connection_refused
PASS API/worker->broker AMQPS, rogue CA as trust expect=fail got=fail server_cert_rejected_by_client:self-signed certificate in certificate chain
PASS API/worker->broker AMQPS, client cert of rogue CA expect=fail got=fail tls_alert:TLSV1_ALERT_UNKNOWN_CA
PASS API/worker->broker AMQPS verified (без cert), Connection.Start expect=ok got=ok amqp_connection_start
PASS API/worker->broker AMQPS, user worker, wrong password expect=fail got=fail auth_refused
PASS Prometheus->broker metrics HTTPS 15691 without client cert expect=fail got=fail tls_alert:TLSV13_ALERT_CERTIFICATE_REQUIRED
PASS Prometheus->broker metrics plaintext 15692 from network expect=fail got=fail connection_refused
PASS API/worker->Collector plaintext expect=fail got=fail http_400_plain_http_sent_to_https_port
PASS API/worker->Collector TLS without client cert expect=fail got=fail tls_alert:TLSV13_ALERT_CERTIFICATE_REQUIRED
PASS API/worker->Collector TLS, client cert of rogue CA expect=fail got=fail tls_alert:TLSV1_ALERT_UNKNOWN_CA
PASS API/worker->Collector TLS, wrong expected hostname expect=fail got=fail server_cert_rejected_by_client:Hostname mismatch, certificate is not valid for 'api'.
PASS Collector/Grafana->Prometheus plaintext expect=fail got=fail http_400_plain_http_sent_to_https_port
PASS Collector/Grafana->Prometheus TLS without client cert expect=fail got=fail tls_alert:TLSV13_ALERT_CERTIFICATE_REQUIRED
PASS Collector/Grafana->Prometheus TLS, client cert of rogue CA expect=fail got=fail tls_alert:TLSV1_ALERT_UNKNOWN_CA
PASS Collector/Grafana->Prometheus TLS, wrong expected hostname expect=fail got=fail server_cert_rejected_by_client:Hostname mismatch, certificate is not valid for 'api'.
PASS Collector/Grafana->Loki plaintext expect=fail got=fail http_400_plain_http_sent_to_https_port
PASS Collector/Grafana->Loki TLS without client cert expect=fail got=fail tls_alert:TLSV13_ALERT_CERTIFICATE_REQUIRED
PASS Collector/Grafana->Loki TLS, client cert of rogue CA expect=fail got=fail tls_alert:TLSV1_ALERT_UNKNOWN_CA
PASS Collector/Grafana->Loki TLS, wrong expected hostname expect=fail got=fail server_cert_rejected_by_client:Hostname mismatch, certificate is not valid for 'api'.
PASS Grafana->Tempo plaintext expect=fail got=fail http_400_plain_http_sent_to_https_port
PASS Grafana->Tempo TLS without client cert expect=fail got=fail tls_alert:TLSV13_ALERT_CERTIFICATE_REQUIRED
PASS Grafana->Tempo TLS, client cert of rogue CA expect=fail got=fail tls_alert:SSLEOFError
PASS Grafana->Tempo TLS, wrong expected hostname expect=fail got=fail server_cert_rejected_by_client:Hostname mismatch, certificate is not valid for 'api'.
PASS Collector->Tempo OTLP gRPC plaintext expect=fail got=fail closed_without_plaintext_response
PASS Collector->Tempo OTLP gRPC TLS without client cert expect=fail got=fail tls_alert:TLSV13_ALERT_CERTIFICATE_REQUIRED
PASS Collector->Tempo OTLP gRPC TLS, client cert of rogue CA expect=fail got=fail tls_alert:TLSV1_ALERT_UNKNOWN_CA
PASS Collector->Tempo OTLP gRPC TLS, wrong expected hostname expect=fail got=fail server_cert_rejected_by_client:Hostname mismatch, certificate is not valid for 'api'.
PASS Prometheus->LB metrics plaintext expect=fail got=fail closed_without_plaintext_response
PASS Prometheus->LB metrics TLS without client cert expect=fail got=fail tls_alert:TLSV13_ALERT_CERTIFICATE_REQUIRED
PASS Prometheus->LB metrics TLS, client cert of rogue CA expect=fail got=fail tls_alert:TLSV1_ALERT_UNKNOWN_CA
PASS Prometheus->LB metrics TLS, wrong expected hostname expect=fail got=fail server_cert_rejected_by_client:Hostname mismatch, certificate is not valid for 'api'.
PASS internal-only port otel-collector:4317 from network expect=fail got=fail connection_refused
PASS internal-only port otel-collector:8888 from network expect=fail got=fail connection_refused
PASS internal-only port otel-collector:13133 from network expect=fail got=fail connection_refused
PASS internal-only port loki:9095 from network expect=fail got=fail connection_refused
PASS internal-only port tempo:9096 from network expect=fail got=fail connection_refused
INFO API/worker->Collector intruder cert: ('ok', 405)
PASS services->OpenBao plaintext HTTP expect=fail got=fail http_400_plain_http_sent_to_https_port
PASS services->OpenBao TLS, rogue CA as trust expect=fail got=fail server_cert_rejected_by_client:unable to get local issuer certificate
PASS services->OpenBao TLS verified, /v1/sys/health expect=ok got=ok 200
PASS services->OpenBao cert login as role api with intruder cert expect=fail got=fail http_400
PASS services->OpenBao cert login as role api with lb cert expect=fail got=fail http_400
PASS services->OpenBao cert login without client cert expect=fail got=fail http_400
PASS: 67 checks, 0 failed
+17
View File
@@ -0,0 +1,17 @@
{
"lab": 7,
"workload": "closed-loop POST messages; no automatic retries",
"requested_duration_seconds": 30.0,
"elapsed_seconds": 30.007,
"concurrency": 4,
"successful_requests": 9588,
"failed_requests": 0,
"error_ratio": 0.0,
"successful_rps": 319.526,
"successful_latency_ms": {
"p50": 8.292,
"p95": 37.698,
"p99": 77.457
},
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
}
+17
View File
@@ -0,0 +1,17 @@
{
"lab": 7,
"workload": "closed-loop POST messages; no automatic retries",
"requested_duration_seconds": 30.0,
"elapsed_seconds": 30.029,
"concurrency": 4,
"successful_requests": 2429,
"failed_requests": 0,
"error_ratio": 0.0,
"successful_rps": 80.888,
"successful_latency_ms": {
"p50": 48.835,
"p95": 52.869,
"p99": 75.113
},
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
}
+17
View File
@@ -0,0 +1,17 @@
{
"lab": 7,
"workload": "closed-loop POST messages; no automatic retries",
"requested_duration_seconds": 30.0,
"elapsed_seconds": 30.008,
"concurrency": 4,
"successful_requests": 9084,
"failed_requests": 0,
"error_ratio": 0.0,
"successful_rps": 302.72,
"successful_latency_ms": {
"p50": 7.827,
"p95": 43.767,
"p99": 82.808
},
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
}
+17
View File
@@ -0,0 +1,17 @@
{
"lab": 7,
"workload": "closed-loop POST messages; no automatic retries",
"requested_duration_seconds": 30.0,
"elapsed_seconds": 30.008,
"concurrency": 4,
"successful_requests": 9084,
"failed_requests": 0,
"error_ratio": 0.0,
"successful_rps": 302.72,
"successful_latency_ms": {
"p50": 7.827,
"p95": 43.767,
"p99": 82.808
},
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
}
+2
View File
@@ -0,0 +1,2 @@
python3 scripts/check_contract.py
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
+2
View File
@@ -0,0 +1,2 @@
python3 tests/security.py --base-url "https://localhost:8443" --ca-file "/Users/uralazarev/Documents/mtusi2026lab7/secrets/pki/public-ca.crt"
PASS: trusted HTTPS works; untrusted CA rejected. This does NOT verify internal mTLS, OpenBao or hardening.
+2
View File
@@ -0,0 +1,2 @@
python3 tests/smoke.py --base-url "https://localhost:8443" --ca-file "/Users/uralazarev/Documents/mtusi2026lab7/secrets/pki/public-ca.crt"
PASS: lab7 public API scenario; infrastructure and grading evidence remain separate.
+238
View File
@@ -0,0 +1,238 @@
{
"scenario": "lab6 signal correlation: request -> trace -> log, upload -> relay -> worker",
"date_utc": "2026-11-18T20:30:27+00:00",
"steps": [
{
"t": 0.2,
"utc": "20:30:18.797",
"step": "message sent",
"request_id": "e755c640d7c64606817798996b38e737",
"trace_id": "a5395a7a0d14fddbe988dd3fbc8052c3",
"instance": "r-f7dd6d1932"
},
{
"t": 2.25,
"utc": "20:30:20.844",
"step": "message trace in Tempo",
"spans": 4,
"server_ms": 5.068,
"db_spans": [
"db get_session_user",
"db get_chat_for",
"db add_message"
]
},
{
"t": 2.28,
"utc": "20:30:20.875",
"step": "structured API log in Loki",
"event": "http.request",
"trace_id": "a5395a7a0d14fddbe988dd3fbc8052c3",
"span_id": "96d2ff4278525fc6",
"severity": "INFO",
"service_name": "messenger-api",
"line": "POST /api/v1/chats/{chat_id}/messages -> 201 4.7ms request_id=e755c640d7c64606817798996b38e737"
},
{
"t": 2.63,
"utc": "20:30:21.223",
"step": "upload accepted and ready",
"attachment_id": "530ec172-4a69-4d17-b809-7c4f1323c9af",
"trace_id": "f257a257a05eb9b2129200a8a2e3763f",
"status": "ready"
},
{
"t": 5.78,
"utc": "20:30:24.380",
"step": "one trace upload -> relay -> worker",
"spans": 26,
"services": [
"messenger-api",
"messenger-relay",
"messenger-worker"
],
"job_id": "2febd212-9808-4ff5-bf84-f3e5b6f8a705",
"outbox_traceparent": "00-f257a257a05eb9b2129200a8a2e3763f-974c4ff4bf81a0a4-03",
"process_parent_is_send": true,
"send_parent_is_create": true,
"worker_s3_puts": 4,
"api_to_worker_gap_ms": 6.8,
"process_ms": 146.945,
"outcome": "ready"
},
{
"t": 5.8,
"utc": "20:30:24.393",
"step": "worker structured logs in Loki by trace_id",
"events": [
"job.claimed",
"job.completed"
],
"job_id": "2febd212-9808-4ff5-bf84-f3e5b6f8a705",
"span_id": "daa51e4f3cc7737a",
"line": "job 2febd212-9808-4ff5-bf84-f3e5b6f8a705 attempt 1 -> ready in 131ms"
},
{
"t": 9.21,
"utc": "20:30:27.803",
"step": "no secrets/bodies in telemetry, no ID labels in metrics",
"leaks": {
"loki:message_text": 0,
"loki:password": 0,
"loki:token": 0,
"loki:filename": 0,
"tempo:message_text": 0,
"tempo:password": 0,
"tempo:token": 0,
"tempo:filename": 0
},
"metric_labels": [
"__name__",
"db_client_connection_pool_name",
"db_client_connection_state",
"db_operation_name",
"db_system_name",
"deployment_environment_name",
"error_type",
"http_request_method",
"http_response_status_class",
"http_response_status_code",
"http_route",
"instance",
"job",
"le",
"messenger_job_outcome",
"messenger_job_status",
"messenger_job_type",
"messenger_s3_operation",
"otel_component_name",
"otel_component_type",
"otel_span_parent_origin",
"otel_span_sampling_result",
"outcome",
"reason",
"server_address",
"server_port",
"service_version",
"telemetry_sdk_language",
"telemetry_sdk_name",
"telemetry_sdk_version"
]
}
],
"message_trace_tree": [
"POST /api/v1/chats/{chat_id}/messages messenger-api + 0.0ms 5.1ms SERVER",
" db get_session_user messenger-api + 0.1ms 0.8ms CLIENT",
" db get_chat_for messenger-api + 1.0ms 0.8ms CLIENT",
" db add_message messenger-api + 1.9ms 2.3ms CLIENT"
],
"message": {
"request_id": "e755c640d7c64606817798996b38e737",
"trace_id": "a5395a7a0d14fddbe988dd3fbc8052c3",
"loki_labels": [
"code_file_path",
"code_function_name",
"code_line_number",
"deployment_environment_name",
"detected_level",
"duration_ms",
"event",
"flags",
"http_request_method",
"http_response_status_code",
"http_route",
"observed_timestamp",
"request_id",
"scope_name",
"service_instance_id",
"service_name",
"service_version",
"severity_number",
"severity_text",
"span_id",
"telemetry_sdk_language",
"telemetry_sdk_name",
"telemetry_sdk_version",
"trace_id"
]
},
"upload_trace_tree": [
"POST /api/v1/chats/{chat_id}/attachments messenger-api + 0.0ms 15.6ms SERVER",
" db get_session_user messenger-api + 0.1ms 1.0ms CLIENT",
" db get_chat_for messenger-api + 1.2ms 0.8ms CLIENT",
" http.receive_body messenger-api + 2.2ms 0.2ms INTERNAL",
" image.validate messenger-api + 2.5ms 0.9ms INTERNAL",
" db create_pending_attachment messenger-api + 3.5ms 2.6ms CLIENT",
" s3 PutObject messenger-api + 6.2ms 3.3ms CLIENT",
" db enqueue_attachment messenger-api + 9.6ms 5.3ms CLIENT",
" db jobs.enqueue messenger-api + 10.0ms 3.6ms CLIENT",
" attachment.process.v1 create messenger-api + 12.3ms 1.2ms PRODUCER",
" attachments send messenger-relay + 16.4ms 3.9ms PRODUCER",
" attachments.process.v1 process messenger-worker + 22.3ms 146.9ms CONSUMER",
" db jobs.claim messenger-worker + 31.3ms 3.8ms CLIENT",
" db jobs.heartbeat messenger-worker + 36.5ms 0.3ms CLIENT",
" worker.fetch_staging messenger-worker + 37.3ms 2.4ms INTERNAL",
" s3 GetObject messenger-worker + 37.4ms 2.0ms CLIENT",
" db jobs.heartbeat messenger-worker + 39.8ms 0.2ms CLIENT",
" worker.transform messenger-worker + 40.3ms 117.8ms INTERNAL",
" db jobs.heartbeat messenger-worker + 158.4ms 0.3ms CLIENT",
" s3 PutObject messenger-worker + 159.2ms 2.4ms CLIENT",
" s3 PutObject messenger-worker + 161.7ms 0.8ms CLIENT",
" s3 PutObject messenger-worker + 162.6ms 0.8ms CLIENT",
" s3 PutObject messenger-worker + 163.5ms 0.8ms CLIENT",
" db jobs.heartbeat messenger-worker + 164.7ms 0.3ms CLIENT",
" db jobs.complete messenger-worker + 165.3ms 1.6ms CLIENT",
" s3 DeleteObject messenger-worker + 167.8ms 0.9ms CLIENT"
],
"upload": {
"attachment_id": "530ec172-4a69-4d17-b809-7c4f1323c9af",
"job_id": "2febd212-9808-4ff5-bf84-f3e5b6f8a705",
"trace_id": "f257a257a05eb9b2129200a8a2e3763f",
"worker_log_events": [
"job.claimed",
"job.completed"
]
},
"leaks": {
"loki:message_text": 0,
"loki:password": 0,
"loki:token": 0,
"loki:filename": 0,
"tempo:message_text": 0,
"tempo:password": 0,
"tempo:token": 0,
"tempo:filename": 0
},
"metric_labels": [
"__name__",
"db_client_connection_pool_name",
"db_client_connection_state",
"db_operation_name",
"db_system_name",
"deployment_environment_name",
"error_type",
"http_request_method",
"http_response_status_class",
"http_response_status_code",
"http_route",
"instance",
"job",
"le",
"messenger_job_outcome",
"messenger_job_status",
"messenger_job_type",
"messenger_s3_operation",
"otel_component_name",
"otel_component_type",
"otel_span_parent_origin",
"otel_span_sampling_result",
"outcome",
"reason",
"server_address",
"server_port",
"service_version",
"telemetry_sdk_language",
"telemetry_sdk_name",
"telemetry_sdk_version"
]
}
+33
View File
@@ -0,0 +1,33 @@
# message trace a5395a7a0d14fddbe988dd3fbc8052c3
POST /api/v1/chats/{chat_id}/messages messenger-api + 0.0ms 5.1ms SERVER
db get_session_user messenger-api + 0.1ms 0.8ms CLIENT
db get_chat_for messenger-api + 1.0ms 0.8ms CLIENT
db add_message messenger-api + 1.9ms 2.3ms CLIENT
# upload trace f257a257a05eb9b2129200a8a2e3763f
POST /api/v1/chats/{chat_id}/attachments messenger-api + 0.0ms 15.6ms SERVER
db get_session_user messenger-api + 0.1ms 1.0ms CLIENT
db get_chat_for messenger-api + 1.2ms 0.8ms CLIENT
http.receive_body messenger-api + 2.2ms 0.2ms INTERNAL
image.validate messenger-api + 2.5ms 0.9ms INTERNAL
db create_pending_attachment messenger-api + 3.5ms 2.6ms CLIENT
s3 PutObject messenger-api + 6.2ms 3.3ms CLIENT
db enqueue_attachment messenger-api + 9.6ms 5.3ms CLIENT
db jobs.enqueue messenger-api + 10.0ms 3.6ms CLIENT
attachment.process.v1 create messenger-api + 12.3ms 1.2ms PRODUCER
attachments send messenger-relay + 16.4ms 3.9ms PRODUCER
attachments.process.v1 process messenger-worker + 22.3ms 146.9ms CONSUMER
db jobs.claim messenger-worker + 31.3ms 3.8ms CLIENT
db jobs.heartbeat messenger-worker + 36.5ms 0.3ms CLIENT
worker.fetch_staging messenger-worker + 37.3ms 2.4ms INTERNAL
s3 GetObject messenger-worker + 37.4ms 2.0ms CLIENT
db jobs.heartbeat messenger-worker + 39.8ms 0.2ms CLIENT
worker.transform messenger-worker + 40.3ms 117.8ms INTERNAL
db jobs.heartbeat messenger-worker + 158.4ms 0.3ms CLIENT
s3 PutObject messenger-worker + 159.2ms 2.4ms CLIENT
s3 PutObject messenger-worker + 161.7ms 0.8ms CLIENT
s3 PutObject messenger-worker + 162.6ms 0.8ms CLIENT
s3 PutObject messenger-worker + 163.5ms 0.8ms CLIENT
db jobs.heartbeat messenger-worker + 164.7ms 0.3ms CLIENT
db jobs.complete messenger-worker + 165.3ms 1.6ms CLIENT
s3 DeleteObject messenger-worker + 167.8ms 0.9ms CLIENT
+8
View File
@@ -0,0 +1,8 @@
[ 0.20s] message sent {"request_id": "e755c640d7c64606817798996b38e737", "trace_id": "a5395a7a0d14fddbe988dd3fbc8052c3", "instance": "r-f7dd6d1932"}
[ 2.25s] message trace in Tempo {"spans": 4, "server_ms": 5.068, "db_spans": ["db get_session_user", "db get_chat_for", "db add_message"]}
[ 2.28s] structured API log in Loki {"event": "http.request", "trace_id": "a5395a7a0d14fddbe988dd3fbc8052c3", "span_id": "96d2ff4278525fc6", "severity": "INFO", "service_name": "messenger-api", "line": "POST /api/v1/chats/{chat_id}/messages -> 201 4.7ms request_id=e755c640d7c64606817798996b38e737"}
[ 2.63s] upload accepted and ready {"attachment_id": "530ec172-4a69-4d17-b809-7c4f1323c9af", "trace_id": "f257a257a05eb9b2129200a8a2e3763f", "status": "ready"}
[ 5.78s] one trace upload -> relay -> worker {"spans": 26, "services": ["messenger-api", "messenger-relay", "messenger-worker"], "job_id": "2febd212-9808-4ff5-bf84-f3e5b6f8a705", "outbox_traceparent": "00-f257a257a05eb9b2129200a8a2e3763f-974c4ff4bf81a0a4-03", "process_parent_is_send": true, "send_parent_is_create": true, "worker_s3_puts": 4, "api_to_worker_gap_ms": 6.8, "process_ms": 146.945, "outcome": "ready"}
[ 5.80s] worker structured logs in Loki by trace_id {"events": ["job.claimed", "job.completed"], "job_id": "2febd212-9808-4ff5-bf84-f3e5b6f8a705", "span_id": "daa51e4f3cc7737a", "line": "job 2febd212-9808-4ff5-bf84-f3e5b6f8a705 attempt 1 -> ready in 131ms"}
[ 9.21s] no secrets/bodies in telemetry, no ID labels in metrics {"leaks": {"loki:message_text": 0, "loki:password": 0, "loki:token": 0, "loki:filename": 0, "tempo:message_text": 0, "tempo:password": 0, "tempo:token": 0, "tempo:filename": 0}, "metric_labels": ["__name__", "db_client_connection_pool_name", "db_client_connection_state", "db_operation_name", "db_system_name", "deployment_environment_name", "error_type", "http_request_method", "http_response_status_class", "http_response_status_code", "http_route", "instance", "job", "le", "messenger_job_outcome", "messenger_job_status", "messenger_job_type", "messenger_s3_operation", "otel_component_name", "otel_component_type", "otel_span_parent_origin", "otel_span_sampling_result", "outcome", "reason", "server_address", "server_port", "service_version", "telemetry_sdk_language", "telemetry_sdk_name", "telemetry_sdk_version"]}
PASS: correlation request->trace->log and upload->relay->worker
+16
View File
@@ -0,0 +1,16 @@
mtusi-lab7-api-1 Up 7 seconds (healthy)
mtusi-lab7-api-2 Up 7 seconds (healthy)
mtusi-lab7-broker-1 Up 46 seconds (healthy)
mtusi-lab7-db-1 Up 47 seconds (healthy)
mtusi-lab7-grafana-1 Up 10 seconds (healthy)
mtusi-lab7-janitor-1 Up Less than a second (health: starting)
mtusi-lab7-lb-1 Up Less than a second (health: starting)
mtusi-lab7-loki-1 Up 47 seconds
mtusi-lab7-openbao-1 Up 46 seconds (healthy)
mtusi-lab7-otel-collector-1 Up 10 seconds
mtusi-lab7-prometheus-1 Up 47 seconds (healthy)
mtusi-lab7-relay-1 Up 9 seconds (healthy)
mtusi-lab7-s3-1 Up 30 seconds (healthy)
mtusi-lab7-tempo-1 Up 47 seconds
mtusi-lab7-worker-1 Up 9 seconds (healthy)
mtusi-lab7-worker-2 Up 9 seconds (healthy)
+16
View File
@@ -0,0 +1,16 @@
mtusi-lab7-api-1 Up 11 seconds (healthy)
mtusi-lab7-api-2 Up 10 seconds (healthy)
mtusi-lab7-broker-1 Up 12 minutes (healthy)
mtusi-lab7-db-1 Up 8 minutes (healthy)
mtusi-lab7-grafana-1 Up 12 minutes (healthy)
mtusi-lab7-janitor-1 Up 11 seconds (healthy)
mtusi-lab7-lb-1 Up 10 seconds (healthy)
mtusi-lab7-loki-1 Up 12 minutes
mtusi-lab7-openbao-1 Up 2 minutes (healthy)
mtusi-lab7-otel-collector-1 Up 12 minutes
mtusi-lab7-prometheus-1 Up 12 minutes (healthy)
mtusi-lab7-relay-1 Up 12 seconds (healthy)
mtusi-lab7-s3-1 Up 11 minutes (healthy)
mtusi-lab7-tempo-1 Up 12 minutes
mtusi-lab7-worker-1 Up 11 seconds (healthy)
mtusi-lab7-worker-2 Up 10 seconds (healthy)
+7
View File
@@ -0,0 +1,7 @@
haproxy lb:8404 1
loki loki:3100 1
otelcol-contrib 00cecf88-3117-40c3-aeeb-1c212dc8d9e3 1
prometheus localhost:9090 1
rabbitmq broker:15691 1
rabbitmq-node broker:15691 1
tempo tempo:3200 1
+61
View File
@@ -0,0 +1,61 @@
== make-check (2026-11-18T20:26:42Z)
PASS
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
== make-test (2026-11-18T20:26:42Z)
PASS
PASS: lab7 public API scenario; infrastructure and grading evidence remain separate.
== make-test-security (2026-11-18T20:26:43Z)
PASS
PASS: trusted HTTPS works; untrusted CA rejected. This does NOT verify internal mTLS, OpenBao or hardening.
== lab7-tls-matrix (2026-11-18T20:26:43Z)
PASS
PASS: 67 checks, 0 failed
== lab7-api-security (2026-11-18T20:26:44Z)
PASS
PASS: 33 checks, 0 failed
== lab7-openbao (2026-11-18T20:27:21Z)
PASS
PASS: 83 checks, 0 failed
== lab7-hardening (2026-11-18T20:28:13Z)
PASS
PASS: 180 checks, 0 failed
== test-persistence (2026-11-18T20:28:35Z)
PASS
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
== test-failover (2026-11-18T20:29:23Z)
PASS
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
Container mtusi-lab7-api-1 Created
Container mtusi-lab7-api-2 Running
Container mtusi-lab7-worker-1 Running
Container mtusi-lab7-worker-2 Running
Container mtusi-lab7-api-1 Starting
Container mtusi-lab7-api-1 Started
Container mtusi-lab7-worker-2 Waiting
Container mtusi-lab7-worker-1 Waiting
Container mtusi-lab7-api-1 Waiting
Container mtusi-lab7-api-2 Waiting
Container mtusi-lab7-worker-2 Healthy
Container mtusi-lab7-worker-1 Healthy
Container mtusi-lab7-api-1 Healthy
Container mtusi-lab7-api-2 Healthy
== load (2026-11-18T20:29:45Z)
PASS
}
== scan-secrets (2026-11-18T20:30:15Z)
PASS
checked 125 secret values from 50 files; files with leaks: none
== check-rules (2026-11-18T20:30:15Z)
PASS
dashboard OK
== obs-correlation (2026-11-18T20:30:18Z)
PASS
PASS: correlation request->trace->log and upload->relay->worker
== dashboard-check (2026-11-18T20:30:27Z)
PASS
{"dashboard": {"uid": "messenger-overview", "title": "Messenger — наблюдаемость (lab6)", "provisioned": true, "folder": "Messenger", "panels": 56}, "datasource_health": {"prometheus": "OK", "loki": "OK", "tempo": "OK"}, "query_errors": [], "empty_required_panels": [], "pass": true}
== worker-outage (2026-11-18T20:31:09Z)
PASS
PASS: worker outage, api+broker restart, ready, duplicate delivery no-op
== done: ALL PASS
EXIT=0
+1
View File
@@ -0,0 +1 @@
checked 125 secret values from 50 files; files with leaks: none
+4
View File
@@ -0,0 +1,4 @@
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "https://localhost:8443" --ca-file "/Users/uralazarev/Documents/mtusi2026lab7/secrets/pki/public-ca.crt"
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 126, "failed_attempts": 0, "first_recovery_seconds": 4.001}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
+3
View File
@@ -0,0 +1,3 @@
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "https://localhost:8443" --ca-file "/Users/uralazarev/Documents/mtusi2026lab7/secrets/pki/public-ca.crt"
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
+11
View File
@@ -0,0 +1,11 @@
[ 1.70s] worker stopped {"running": []}
[ 2.27s] upload while worker is down {"http": 202, "attachment_id": "9628fe62-37bf-4db1-b0a6-304909aba2fd", "status": "queued"}
[ 2.30s] metadata and content while queued {"status": "queued", "content": 409, "thumbnail": 409, "error_code": "conflict"}
[ 2.31s] messages while worker is down {"with_queued_attachment": true, "plain_message_id": "4c5ed20e-1101-48b2-b823-e2f7bac51602"}
[ 7.54s] job is durable in broker {"queue": {"messages": 1, "messages_ready": 1, "messages_unacknowledged": 0, "consumers": 0}, "outbox_published": true, "job_id": "e81a051a-a685-43c4-95f9-0ae1fb1b7027", "job_status": "queued"}
[ 17.67s] api restarted {"status": "queued"}
[ 26.89s] broker restarted with volume {"queue": {"messages": 1, "messages_ready": 1, "messages_unacknowledged": 0, "consumers": 0}, "status": "queued"}
[ 32.84s] worker started
[ 32.90s] ready after worker start {"variants": [["thumbnail", 256, 160], ["crop", 128, 128], ["optimized", 320, 200]], "original_sha256_ok": true, "thumbnail_bytes": 4679}
[ 35.21s] redelivery of the same job is a no-op {"events": ["enqueued", "claimed", "ready", "staging_deleted", "duplicate_ignored"], "invariants": {"variants": ["crop", "optimized", "thumbnail"], "variants_ok": true, "final_objects": 4, "final_objects_ok": true, "staging_left": false, "job_status": "ready", "attempt": 1}}
PASS: worker outage, api+broker restart, ready, duplicate delivery no-op