This commit is contained in:
2026-11-20 15:30:33 +03:00
parent 20afc2c790
commit 36a56b3fe3
187 changed files with 431228 additions and 291 deletions
+15 -3
View File
@@ -1,5 +1,17 @@
# Доказательства
# Доказательства lab7
Храните небольшие обезличенные результаты: команды и stdout проверок, JSON/CSV агрегатов нагрузки, EXPLAIN, dashboard JSON, текст разбора отказа. Укажите дату, commit, аппаратные лимиты и профиль нагрузки.
Каменский Андрей, БПИ2301. Все summaries получены на локальном синтетическом стенде; секретные материалы исключены.
Не добавляйте .env, session tokens, cookies, приватные ключи, credentials, реальные сообщения, raw dumps и signed URLs. Для скриншотов скрывайте секреты. Большие логи/бинарные traces сохраняйте отдельно по правилам преподавателя; одного скриншота без методики недостаточно.
- acceptance-summary.json и checks-*.txt — итоговые команды и фактические результаты.
- security-summary.json — TLS/mTLS, identity, ACL, OpenBao, rehash, rate limit, sessions.
- lifecycle-summary.json — DB/leaf rotation, revoke, sealed/unseal и pipeline.
- s3-rotation-summary.json — реальная смена MinIO identity с отключением старой.
- renew-identities-checks.txt — обслуживание всего набора leaf с прежним CA.
- persistence-summary.json — реальные StartedAt всех runtime containers до/после restart; публичный тест проверяет прежнюю сессию/данные/файл.
- failover-summary.json и failover-events.jsonl — адресный отказ каждого из двух API containers; public failover отдельно в checks-both-failovers.txt.
- argon-budget.json — измеренные параметры/время/RSS в ограниченном API container.
- audit-summary.json — фактические Docker permissions/ports/mounts, выборки telemetry без известных секретов, реальные запросы Grafana к datasource и сверка публичных файлов.
- scan-*.json — Trivy raw reports всех 11 разных runtime images, включая Python dependencies; scan-app-before-os-update.json — сравнение до OS patch. Применимость и остаточные риски: ../SCAN_TRIAGE.md.
- environment.json — реальный image ID, архитектура и ресурсы Docker-хоста.
Проверки выполнялись последовательно, с исправлением найденных проблем и повтором затронутой проверки. Итоговые PASS относятся к сохранённым успешным прогонам; это не заявление, что весь стенд с первого запуска прошёл без исправлений. Обновление distro packages выполнено после первых lifecycle проверок; итоговые бизнес/security/persistence/failover проверки выполнены на обновлённом image. Public tests не изменялись.
+90
View File
@@ -0,0 +1,90 @@
[
{
"check": "contract-lint",
"result": "PASS",
"seconds": 1.15,
"command": [
"make",
"check",
"validate",
"lint",
"PYTHON=.venv/bin/python"
],
"evidence": "checks-contract-lint.txt"
},
{
"check": "public-https",
"result": "PASS",
"seconds": 5.69,
"command": [
"make",
"test",
"test-security"
],
"evidence": "checks-public-https.txt"
},
{
"check": "security",
"result": "PASS",
"seconds": 29.45,
"command": [
"python3",
"tests/lab7_security.py"
],
"evidence": "checks-security.txt"
},
{
"check": "attachments",
"result": "PASS",
"seconds": 6.96,
"command": [
".venv/bin/python",
"tests/attachments.py",
"--base-url",
"https://localhost:8443",
"--ca-file",
"/Users/andrejkamenskij/PycharmProjects/mtusi2026lab7/.local/trust/ca.crt"
],
"evidence": "checks-attachments.txt"
},
{
"check": "persistence",
"result": "PASS",
"seconds": 30.15,
"command": [
"python3",
"scripts/test-persistence.py"
],
"evidence": "checks-persistence.txt"
},
{
"check": "both-failovers",
"result": "PASS",
"seconds": 81.27,
"command": [
"python3",
"scripts/test-failovers.py"
],
"evidence": "checks-both-failovers.txt"
},
{
"check": "argon",
"result": "PASS",
"seconds": 10.38,
"command": [
"python3",
"scripts/argon-budget.py"
],
"evidence": "checks-argon.txt"
},
{
"check": "audit",
"result": "PASS",
"command": [
"python3",
"tests/lab7_audit.py"
],
"evidence": "audit-summary.json",
"note": "Successful direct rerun; Loki sample bounded to the last 120 seconds and 200 records after the initial broad query exceeded its timeout."
}
]
+33
View File
@@ -0,0 +1,33 @@
{
"candidates": [
{
"memory_kib": 19456,
"time_cost": 2,
"parallelism": 1,
"single_p50_seconds": 0.051727104000747204,
"single_max_seconds": 0.08495441701961681,
"concurrency": 2,
"batch_seconds": 0.7861458749976009,
"batch_max_seconds": 0.36627137500909157,
"process_peak_rss_kib": 78780
},
{
"memory_kib": 65536,
"time_cost": 3,
"parallelism": 4,
"single_p50_seconds": 0.6472472294990439,
"single_max_seconds": 0.8055670839967206,
"concurrency": 2,
"batch_seconds": 4.09831758501241,
"batch_max_seconds": 1.2871573340089526,
"process_peak_rss_kib": 210132
}
],
"api_cpu_limit": 0.5,
"api_memory_limit_bytes": 536870912,
"max_hashes_per_api": 2,
"api_replicas": 2,
"global_login_ip_limit_per_minute": 120,
"global_login_account_limit_per_minute": 10,
"measurement": "Six sequential and eight two-thread verifications per candidate; peak RSS is cumulative for this probe process, not container total."
}
+139
View File
@@ -0,0 +1,139 @@
{
"checks": [
{
"check": "container-hardening:api",
"result": "PASS"
},
{
"check": "container-hardening:api",
"result": "PASS"
},
{
"check": "container-hardening:broker",
"result": "PASS"
},
{
"check": "container-hardening:broker-tls",
"result": "PASS"
},
{
"check": "container-hardening:dispatcher",
"result": "PASS"
},
{
"check": "container-hardening:grafana",
"result": "PASS"
},
{
"check": "container-hardening:lb",
"result": "PASS"
},
{
"check": "container-hardening:loki",
"result": "PASS"
},
{
"check": "container-hardening:loki-tls",
"result": "PASS"
},
{
"check": "container-hardening:minio",
"result": "PASS"
},
{
"check": "container-hardening:openbao",
"result": "PASS"
},
{
"check": "container-hardening:otel-collector",
"result": "PASS"
},
{
"check": "container-hardening:otel-tls",
"result": "PASS"
},
{
"check": "container-hardening:postgres",
"result": "PASS"
},
{
"check": "container-hardening:postgres-tls",
"result": "PASS"
},
{
"check": "container-hardening:prometheus",
"result": "PASS"
},
{
"check": "container-hardening:prometheus-tls",
"result": "PASS"
},
{
"check": "container-hardening:reconciler",
"result": "PASS"
},
{
"check": "container-hardening:redis",
"result": "PASS"
},
{
"check": "container-hardening:redis-tls",
"result": "PASS"
},
{
"check": "container-hardening:tempo",
"result": "PASS"
},
{
"check": "container-hardening:tempo-tls",
"result": "PASS"
},
{
"check": "container-hardening:worker",
"result": "PASS"
},
{
"check": "no-secrets:container-logs",
"result": "PASS"
},
{
"check": "no-secrets:metrics",
"result": "PASS"
},
{
"check": "no-secrets:logs",
"result": "PASS"
},
{
"check": "no-secrets:traces",
"result": "PASS"
},
{
"check": "metric-labels-bounded",
"result": "PASS"
},
{
"check": "live-telemetry-all-three-signals",
"result": "PASS",
"sample_trace_id": "c366d93384da2c44460f7b2b086d3a14"
},
{
"check": "grafana-real-datasource-query:prometheus",
"result": "PASS"
},
{
"check": "grafana-real-datasource-query:loki",
"result": "PASS"
},
{
"check": "grafana-real-datasource-query:tempo",
"result": "PASS"
},
{
"check": "public-tests-and-contracts-unchanged",
"result": "PASS",
"files": 16
}
],
"passed": 33
}
+1
View File
@@ -0,0 +1 @@
Saved measured Argon2 budget; evidence/argon-budget.json
+1
View File
@@ -0,0 +1 @@
PASS: PNG/JPEG bytes, metadata, ACL, chat boundaries, limits and idempotency
+4
View File
@@ -0,0 +1,4 @@
Command: python3 tests/lab7_audit.py
Successful rerun after bounding the Loki sample to recent records:
PASS: 33 container/telemetry/public-file audit checks
Details: audit-summary.json
+22
View File
@@ -0,0 +1,22 @@
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 102, "failed_attempts": 6, "first_recovery_seconds": 3.511}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
Container mtusi2026lab7-api-1 Starting
Container mtusi2026lab7-api-1 Started
Container mtusi2026lab7-api-1 Running
Container mtusi2026lab7-api-2 Running
Container mtusi2026lab7-api-2 Waiting
Container mtusi2026lab7-api-1 Waiting
Container mtusi2026lab7-api-2 Healthy
Container mtusi2026lab7-api-1 Healthy
Container mtusi2026lab7-api-1 Starting
Container mtusi2026lab7-api-1 Started
Container mtusi2026lab7-api-2 Starting
Container mtusi2026lab7-api-2 Started
PASS: both exact API containers stopped under writes; sessions, messages and attachment preserved
Container mtusi2026lab7-api-1 Running
Container mtusi2026lab7-api-2 Running
Container mtusi2026lab7-api-2 Waiting
Container mtusi2026lab7-api-1 Waiting
Container mtusi2026lab7-api-2 Healthy
Container mtusi2026lab7-api-1 Healthy
+8
View File
@@ -0,0 +1,8 @@
.venv/bin/python scripts/check_contract.py
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
.venv/bin/python scripts/validate_openapi.py
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
.venv/bin/python -m ruff check src
All checks passed!
.venv/bin/python -m ruff format --check src
68 files already formatted
+2
View File
@@ -0,0 +1,2 @@
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
+4
View File
@@ -0,0 +1,4 @@
python3 tests/smoke.py --base-url "https://localhost:8443" --ca-file "/Users/andrejkamenskij/PycharmProjects/mtusi2026lab7/.local/trust/ca.crt"
PASS: lab7 public API scenario; infrastructure and grading evidence remain separate.
python3 tests/security.py --base-url "https://localhost:8443" --ca-file "/Users/andrejkamenskij/PycharmProjects/mtusi2026lab7/.local/trust/ca.crt"
PASS: trusted HTTPS works; untrusted CA rejected. This does NOT verify internal mTLS, OpenBao or hardening.
+1
View File
@@ -0,0 +1 @@
PASS: 79 security checks; evidence/security-summary.json
+11
View File
@@ -0,0 +1,11 @@
{
"application_image_id": "sha256:7a9510956af023fdf1888ae5a9590a14850e9495e01cd7ee0bf7a4643b5cf4f0",
"application_created": "2026-11-20T11:44:25.25565955Z",
"architecture": "arm64",
"os": "linux",
"docker_cpus": 10,
"docker_memory_bytes": 8218034176,
"python_base": "python:3.13.13-slim-bookworm",
"scan": "aquasec/trivy:0.69.3",
"environment": "isolated mtusi2026lab7 Compose project; lab1/lab6 volumes unchanged"
}
+9
View File
@@ -0,0 +1,9 @@
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 102, "failed_attempts": 6, "first_recovery_seconds": 3.511}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
Container mtusi2026lab7-api-1 Starting
Container mtusi2026lab7-api-1 Started
Container mtusi2026lab7-api-2 Starting
Container mtusi2026lab7-api-2 Started
PASS: both exact API containers stopped under writes; sessions, messages and attachment preserved
+3
View File
@@ -0,0 +1,3 @@
{"container": "9004fd641303", "instance_id": "a0f17973-6edd-40a7-b20f-d13277f4ffdf", "started_at": "2026-11-20T11:53:03.388314512Z", "finished_at": "2026-11-20T11:53:25.023882758Z", "stop_seconds": 1.559, "exit_code": 0}
{"container": "9004fd641303", "instance_id": "1ad1b0c2-0fb1-41f9-a6a0-2f22ed967dc8", "started_at": "2026-11-20T11:53:38.251018792Z", "finished_at": "2026-11-20T11:53:48.962292922Z", "stop_seconds": 2.344, "exit_code": 0}
{"container": "179540d23055", "instance_id": "e39e039b-01c9-4851-8653-44e721e80168", "started_at": "2026-11-20T11:53:03.190875804Z", "finished_at": "2026-11-20T11:54:17.803645797Z", "stop_seconds": 3.826, "exit_code": 0}
+23
View File
@@ -0,0 +1,23 @@
{
"result": "PASS",
"distinct_containers": 2,
"runs": 2,
"events": [
{
"container": "9004fd641303",
"target_instance": "1ad1b0c2-0fb1-41f9-a6a0-2f22ed967dc8",
"successful_writes": 83,
"failed_attempts": 2,
"first_recovery_seconds": 2.98,
"result": "PASS"
},
{
"container": "179540d23055",
"target_instance": "e39e039b-01c9-4851-8653-44e721e80168",
"successful_writes": 80,
"failed_attempts": 4,
"first_recovery_seconds": 5.859,
"result": "PASS"
}
]
}
+30
View File
@@ -0,0 +1,30 @@
{
"checks": [
{
"check": "db-secret-rotation-old-login-denied",
"result": "PASS",
"seconds": 17.15
},
{
"check": "leaf-rotation-crl-old-cert-new-connection-denied",
"result": "PASS"
},
{
"check": "pipeline-after-credential-and-certificate-rotation",
"result": "PASS"
},
{
"check": "sealed-bao-stops-worker-within-ttl",
"result": "PASS"
},
{
"check": "sealed-bao-api-fails-closed",
"result": "PASS"
},
{
"check": "unseal-recovers-api-session-and-pipeline",
"result": "PASS"
}
],
"passed": 6
}
+2
View File
@@ -0,0 +1,2 @@
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
+120
View File
@@ -0,0 +1,120 @@
{
"result": "PASS",
"restarted_containers": [
{
"service": "api:9004fd641303",
"before": "2026-11-20T11:51:47.077986296Z",
"after": "2026-11-20T11:53:03.388314512Z"
},
{
"service": "api:179540d23055",
"before": "2026-11-20T11:51:46.605278004Z",
"after": "2026-11-20T11:53:03.190875804Z"
},
{
"service": "broker:4fa62c7e10b5",
"before": "2026-11-20T11:36:37.952276376Z",
"after": "2026-11-20T11:52:54.274354716Z"
},
{
"service": "broker-tls:a663811c9465",
"before": "2026-11-20T11:51:42.222085627Z",
"after": "2026-11-20T11:53:00.94694722Z"
},
{
"service": "dispatcher:27de2f11799b",
"before": "2026-11-20T11:51:46.562693546Z",
"after": "2026-11-20T11:53:02.89669097Z"
},
{
"service": "grafana:34b103d6d027",
"before": "2026-11-20T11:51:42.234677419Z",
"after": "2026-11-20T11:52:55.253765883Z"
},
{
"service": "lb:c11e43eac80a",
"before": "2026-11-20T11:52:02.371410387Z",
"after": "2026-11-20T11:53:03.108103096Z"
},
{
"service": "loki:5ea94b516831",
"before": "2026-11-20T11:36:42.313584169Z",
"after": "2026-11-20T11:52:55.875132509Z"
},
{
"service": "loki-tls:c1db4dfde841",
"before": "2026-11-20T11:51:42.218266794Z",
"after": "2026-11-20T11:52:59.740269094Z"
},
{
"service": "minio:8061bc04e663",
"before": "2026-11-20T11:51:43.356812919Z",
"after": "2026-11-20T11:52:54.543336508Z"
},
{
"service": "openbao:46b03c05cb50",
"before": "2026-11-20T11:51:43.355356128Z",
"after": "2026-11-20T11:52:55.391808384Z"
},
{
"service": "otel-collector:ddece026c631",
"before": "2026-11-20T11:51:42.136444711Z",
"after": "2026-11-20T11:52:55.448021259Z"
},
{
"service": "otel-tls:03583f67b78a",
"before": "2026-11-20T11:51:42.934082169Z",
"after": "2026-11-20T11:52:59.655005094Z"
},
{
"service": "postgres:d3c47311f49c",
"before": "2026-11-20T11:36:38.778613501Z",
"after": "2026-11-20T11:52:55.178434217Z"
},
{
"service": "postgres-tls:37be4144384f",
"before": "2026-11-20T11:51:42.235103794Z",
"after": "2026-11-20T11:52:59.633902261Z"
},
{
"service": "prometheus:5fbd0d030466",
"before": "2026-11-20T11:51:42.251354836Z",
"after": "2026-11-20T11:52:54.080592925Z"
},
{
"service": "prometheus-tls:cca68d1de812",
"before": "2026-11-20T11:51:43.107274961Z",
"after": "2026-11-20T11:52:59.680127969Z"
},
{
"service": "reconciler:db3c37e36fc1",
"before": "2026-11-20T11:51:46.606813713Z",
"after": "2026-11-20T11:53:02.804329429Z"
},
{
"service": "redis:00fad51a34cd",
"before": "2026-11-20T11:36:38.087665376Z",
"after": "2026-11-20T11:52:53.831623174Z"
},
{
"service": "redis-tls:69d27bf91dde",
"before": "2026-11-20T11:51:42.235193794Z",
"after": "2026-11-20T11:52:59.634450261Z"
},
{
"service": "tempo:874d56821316",
"before": "2026-11-20T11:36:41.459137711Z",
"after": "2026-11-20T11:52:55.590433467Z"
},
{
"service": "tempo-tls:d62f406cca12",
"before": "2026-11-20T11:51:42.267101461Z",
"after": "2026-11-20T11:52:59.714720594Z"
},
{
"service": "worker:469f8f212472",
"before": "2026-11-20T11:51:46.605327421Z",
"after": "2026-11-20T11:53:02.744429595Z"
}
]
}
+66
View File
@@ -0,0 +1,66 @@
[
{
"file": "tests/image_probe.py",
"sha256": "a9a4f89181c8e0fda6ce42e1a1af32fb42d8e3ae519e314207127c9b9b448b13"
},
{
"file": "tests/client.py",
"sha256": "8d50976fc7c7bbb81e88a152f613c61ab25eaf53dba33c6a9dfab19f868d546d"
},
{
"file": "tests/security.py",
"sha256": "6560a56cc22981c9f06043709bfabe7a47fa7eab57e62741e95534ac5ddff8a7"
},
{
"file": "tests/README.md",
"sha256": "e0bfa7e196797f6a5bf6e44d8ad2ffeb82651927ff5d8484eb1c2dda1ec7dec5"
},
{
"file": "tests/load.py",
"sha256": "6d3511ea719c7a7e841083e73d435c86dcbfd9f4e5c2a07d62eb9614b01d9933"
},
{
"file": "tests/resilience.py",
"sha256": "1f96663a174b3978d24eff66f2741f5f8c9b788d3242261d37a972720c52788b"
},
{
"file": "tests/smoke.py",
"sha256": "52ac38eb343ff7d43e7543588e1da58ca06c9fce74b2b0d0bf0e4982bc23c1db"
},
{
"file": "tests/fixtures/README.md",
"sha256": "c001783760b4f87a7a8441a7ba55f5d080ff48e1397d3581d72a88d7691f96c2"
},
{
"file": "tests/fixtures/sample.png",
"sha256": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75"
},
{
"file": "contracts/examples.json",
"sha256": "381cc18c03789e935b391d007fb5843964be9cfd9f7530cb6b1996ed4a1c4c37"
},
{
"file": "contracts/jobs.schema.json",
"sha256": "9ccf9b11466c0c3a26a941520ac5ff543241fc4935e3a6eebb01ef303779b10d"
},
{
"file": "contracts/README.md",
"sha256": "72df27a559f88ffa3fd8c3c79d3c32f6db2c5986a0602677c51994c434a3fc4f"
},
{
"file": "contracts/observability.md",
"sha256": "882c120c0e153a06c9cc824a802e317c58eb6590bc3d3a576f2e0a96f8597b62"
},
{
"file": "contracts/attachment-states.md",
"sha256": "cf0519e137410e4b34ab632aadb8ad8a381d4b73033e27b354c58eeacbdf86d6"
},
{
"file": "contracts/openapi.json",
"sha256": "51dd0b8199aee7be81437056144c5fca9d82c2b4387dae62585cadf230ee749a"
},
{
"file": "contracts/infrastructure.json",
"sha256": "90b706e85ee2fcaa54e1113e98206555e0cd678caf03204c9ac363a6f1323d30"
}
]
+100
View File
@@ -0,0 +1,100 @@
Container mtusi2026lab7-openbao-1 Stopping
Container mtusi2026lab7-prometheus-tls-1 Stopping
Container mtusi2026lab7-otel-tls-1 Stopping
Container mtusi2026lab7-worker-1 Stopping
Container mtusi2026lab7-grafana-1 Stopping
Container mtusi2026lab7-tempo-tls-1 Stopping
Container mtusi2026lab7-lb-1 Stopping
Container mtusi2026lab7-minio-1 Stopping
Container mtusi2026lab7-broker-tls-1 Stopping
Container mtusi2026lab7-postgres-tls-1 Stopping
Container mtusi2026lab7-redis-tls-1 Stopping
Container mtusi2026lab7-loki-tls-1 Stopping
Container mtusi2026lab7-reconciler-1 Stopping
Container mtusi2026lab7-dispatcher-1 Stopping
Container mtusi2026lab7-prometheus-tls-1 Stopped
Container mtusi2026lab7-prometheus-1 Stopping
Container mtusi2026lab7-broker-tls-1 Stopped
Container mtusi2026lab7-grafana-1 Stopped
Container mtusi2026lab7-minio-1 Stopped
Container mtusi2026lab7-otel-tls-1 Stopped
Container mtusi2026lab7-otel-collector-1 Stopping
Container mtusi2026lab7-lb-1 Stopped
Container mtusi2026lab7-api-1 Stopping
Container mtusi2026lab7-api-2 Stopping
Container mtusi2026lab7-loki-tls-1 Stopped
Container mtusi2026lab7-worker-1 Stopped
Container mtusi2026lab7-redis-tls-1 Stopped
Container mtusi2026lab7-tempo-tls-1 Stopped
Container mtusi2026lab7-postgres-tls-1 Stopped
Container mtusi2026lab7-reconciler-1 Stopped
Container mtusi2026lab7-dispatcher-1 Stopped
Container mtusi2026lab7-prometheus-1 Stopped
Container mtusi2026lab7-openbao-1 Stopped
Container mtusi2026lab7-otel-collector-1 Stopped
Container mtusi2026lab7-api-1 Stopped
Container mtusi2026lab7-api-2 Stopped
Container mtusi2026lab7-volume-init-1 Starting
Container mtusi2026lab7-volume-init-1 Started
Container mtusi2026lab7-otel-collector-1 Starting
Container mtusi2026lab7-redis-tls-1 Starting
Container mtusi2026lab7-broker-tls-1 Starting
Container mtusi2026lab7-grafana-1 Starting
Container mtusi2026lab7-tempo-tls-1 Starting
Container mtusi2026lab7-postgres-tls-1 Starting
Container mtusi2026lab7-loki-tls-1 Starting
Container mtusi2026lab7-volume-init-1 Starting
Container mtusi2026lab7-prometheus-1 Starting
Container mtusi2026lab7-broker-tls-1 Started
Container mtusi2026lab7-loki-tls-1 Started
Container mtusi2026lab7-volume-init-1 Started
Container mtusi2026lab7-volume-init-1 Waiting
Container mtusi2026lab7-volume-init-1 Waiting
Container mtusi2026lab7-redis-tls-1 Started
Container mtusi2026lab7-postgres-tls-1 Started
Container mtusi2026lab7-tempo-tls-1 Started
Container mtusi2026lab7-otel-collector-1 Started
Container mtusi2026lab7-otel-tls-1 Starting
Container mtusi2026lab7-grafana-1 Started
Container mtusi2026lab7-prometheus-1 Started
Container mtusi2026lab7-prometheus-tls-1 Starting
Container mtusi2026lab7-volume-init-1 Exited
Container mtusi2026lab7-minio-1 Starting
Container mtusi2026lab7-volume-init-1 Exited
Container mtusi2026lab7-openbao-1 Starting
Container mtusi2026lab7-otel-tls-1 Started
Container mtusi2026lab7-prometheus-tls-1 Started
Container mtusi2026lab7-openbao-1 Started
Container mtusi2026lab7-minio-1 Started
Container mtusi2026lab7-reconciler-1 Starting
Container mtusi2026lab7-dispatcher-1 Starting
Container mtusi2026lab7-worker-1 Starting
Container mtusi2026lab7-api-2 Starting
Container mtusi2026lab7-dispatcher-1 Started
Container mtusi2026lab7-worker-1 Started
Container mtusi2026lab7-reconciler-1 Started
Container mtusi2026lab7-api-2 Started
Container mtusi2026lab7-api-1 Starting
Container mtusi2026lab7-api-1 Started
Container mtusi2026lab7-api-2 Waiting
Container mtusi2026lab7-api-1 Waiting
Container mtusi2026lab7-api-2 Healthy
Container mtusi2026lab7-api-1 Healthy
Container mtusi2026lab7-lb-1 Starting
Container mtusi2026lab7-lb-1 Started
Container mtusi2026lab7-reconciler-1 Waiting
Container mtusi2026lab7-api-2 Waiting
Container mtusi2026lab7-api-1 Waiting
Container mtusi2026lab7-lb-1 Waiting
Container mtusi2026lab7-dispatcher-1 Waiting
Container mtusi2026lab7-worker-1 Waiting
Container mtusi2026lab7-worker-1 Healthy
Container mtusi2026lab7-reconciler-1 Healthy
Container mtusi2026lab7-lb-1 Healthy
Container mtusi2026lab7-dispatcher-1 Healthy
Container mtusi2026lab7-api-2 Healthy
Container mtusi2026lab7-api-1 Healthy
Prepared local CA, identities and service credentials; values not printed.
Operator unseal completed; material remains outside server containers.
Configured restricted service policies, certificate auth and KV secrets.
Renewed leaf identities with the existing CA; old serials revoked; data preserved.
+8
View File
@@ -0,0 +1,8 @@
{
"result": "PASS",
"checks": [
"new-s3-identity-applied",
"old-s3-key-denied",
"new-job-ready-original-preserved"
]
}
File diff suppressed because it is too large Load Diff
+26779
View File
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+147
View File
@@ -0,0 +1,147 @@
{
"scanner": "aquasec/trivy:0.69.3",
"images": [
{
"image": "mtusi-messenger:lab7",
"report": "scan-app.json",
"severity": {
"LOW": 94,
"HIGH": 43,
"MEDIUM": 120,
"UNKNOWN": 12,
"CRITICAL": 2
},
"findings": 271,
"fix_available": 2
},
{
"image": "mtusi-minio:RELEASE.2025-10-15T17-29-55Z",
"report": "scan-minio.json",
"severity": {
"MEDIUM": 81,
"LOW": 55,
"CRITICAL": 9,
"HIGH": 91,
"UNKNOWN": 2
},
"findings": 238,
"fix_available": 232
},
{
"image": "postgres:16.6-bookworm",
"report": "scan-postgres.json",
"severity": {
"HIGH": 250,
"LOW": 243,
"MEDIUM": 394,
"UNKNOWN": 30,
"CRITICAL": 24
},
"findings": 941,
"fix_available": 431
},
{
"image": "redis:7.4.2-bookworm",
"report": "scan-redis.json",
"severity": {
"HIGH": 120,
"LOW": 125,
"MEDIUM": 226,
"UNKNOWN": 18,
"CRITICAL": 11
},
"findings": 500,
"fix_available": 258
},
{
"image": "haproxy:3.0.12-alpine",
"report": "scan-gateway.json",
"severity": {
"CRITICAL": 3,
"HIGH": 26,
"MEDIUM": 29,
"LOW": 49
},
"findings": 107,
"fix_available": 107
},
{
"image": "openbao/openbao:2.5.0",
"report": "scan-openbao.json",
"severity": {
"HIGH": 84,
"CRITICAL": 9,
"MEDIUM": 72,
"LOW": 45,
"UNKNOWN": 2
},
"findings": 212,
"fix_available": 208
},
{
"image": "otel/opentelemetry-collector-contrib:0.123.0",
"report": "scan-collector.json",
"severity": {
"LOW": 12,
"HIGH": 73,
"MEDIUM": 82,
"CRITICAL": 7,
"UNKNOWN": 2
},
"findings": 176,
"fix_available": 172
},
{
"image": "prom/prometheus:v3.2.1",
"report": "scan-prometheus.json",
"severity": {
"HIGH": 110,
"MEDIUM": 130,
"LOW": 12,
"UNKNOWN": 4,
"CRITICAL": 4
},
"findings": 260,
"fix_available": 254
},
{
"image": "grafana/loki:3.4.2",
"report": "scan-loki.json",
"severity": {
"UNKNOWN": 5,
"HIGH": 58,
"MEDIUM": 64,
"LOW": 5,
"CRITICAL": 2
},
"findings": 134,
"fix_available": 134
},
{
"image": "grafana/tempo:2.7.2",
"report": "scan-tempo.json",
"severity": {
"MEDIUM": 112,
"LOW": 42,
"CRITICAL": 4,
"HIGH": 85,
"UNKNOWN": 2
},
"findings": 245,
"fix_available": 245
},
{
"image": "grafana/grafana:11.6.0",
"report": "scan-grafana.json",
"severity": {
"CRITICAL": 10,
"MEDIUM": 232,
"LOW": 59,
"HIGH": 153,
"UNKNOWN": 4
},
"findings": 458,
"fix_available": 455
}
]
}
File diff suppressed because it is too large Load Diff
+297
View File
@@ -0,0 +1,297 @@
{
"checks": [
{
"check": "bao-own-secret:api",
"result": "PASS"
},
{
"check": "bao-other-secret:api",
"result": "PASS"
},
{
"check": "bao-policy-write:api",
"result": "PASS"
},
{
"check": "bao-renew:api",
"result": "PASS"
},
{
"check": "bao-own-secret:worker",
"result": "PASS"
},
{
"check": "bao-other-secret:worker",
"result": "PASS"
},
{
"check": "bao-policy-write:worker",
"result": "PASS"
},
{
"check": "bao-renew:worker",
"result": "PASS"
},
{
"check": "bao-own-secret:dispatcher",
"result": "PASS"
},
{
"check": "bao-other-secret:dispatcher",
"result": "PASS"
},
{
"check": "bao-policy-write:dispatcher",
"result": "PASS"
},
{
"check": "bao-renew:dispatcher",
"result": "PASS"
},
{
"check": "bao-own-secret:reconciler",
"result": "PASS"
},
{
"check": "bao-other-secret:reconciler",
"result": "PASS"
},
{
"check": "bao-policy-write:reconciler",
"result": "PASS"
},
{
"check": "bao-renew:reconciler",
"result": "PASS"
},
{
"check": "mtls-allow:api:8443:lb",
"result": "PASS"
},
{
"check": "mtls-deny:api:8443:no-cert",
"result": "PASS"
},
{
"check": "mtls-deny:api:8443:intruder",
"result": "PASS"
},
{
"check": "mtls-deny:api:8443:foreign",
"result": "PASS"
},
{
"check": "mtls-deny:api:8443:expired",
"result": "PASS"
},
{
"check": "mtls-deny:api:8443:worker",
"result": "PASS"
},
{
"check": "mtls-allow:broker:6379:worker",
"result": "PASS"
},
{
"check": "mtls-deny:broker:6379:no-cert",
"result": "PASS"
},
{
"check": "mtls-deny:broker:6379:intruder",
"result": "PASS"
},
{
"check": "mtls-deny:broker:6379:foreign",
"result": "PASS"
},
{
"check": "mtls-deny:broker:6379:expired",
"result": "PASS"
},
{
"check": "mtls-allow:otel-collector:4318:api",
"result": "PASS"
},
{
"check": "mtls-deny:otel-collector:4318:no-cert",
"result": "PASS"
},
{
"check": "mtls-deny:otel-collector:4318:intruder",
"result": "PASS"
},
{
"check": "mtls-deny:otel-collector:4318:foreign",
"result": "PASS"
},
{
"check": "mtls-deny:otel-collector:4318:expired",
"result": "PASS"
},
{
"check": "no-plaintext-bypass:api:8080",
"result": "PASS"
},
{
"check": "no-plaintext-bypass:postgres:15432",
"result": "PASS"
},
{
"check": "no-plaintext-bypass:redis:16379",
"result": "PASS"
},
{
"check": "no-plaintext-bypass:broker:16379",
"result": "PASS"
},
{
"check": "no-plaintext-bypass:otel-collector:14318",
"result": "PASS"
},
{
"check": "no-plaintext-bypass:otel-collector:18889",
"result": "PASS"
},
{
"check": "no-plaintext-bypass:loki:13100",
"result": "PASS"
},
{
"check": "no-plaintext-bypass:tempo:13200",
"result": "PASS"
},
{
"check": "no-plaintext-bypass:tempo:14318",
"result": "PASS"
},
{
"check": "no-plaintext-bypass:prometheus:19090",
"result": "PASS"
},
{
"check": "tls-matrix:redis:6379:api",
"result": "PASS"
},
{
"check": "tls-matrix:postgres:5432:operator",
"result": "PASS"
},
{
"check": "tls-matrix:loki:3100:grafana",
"result": "PASS"
},
{
"check": "tls-matrix:tempo:3200:grafana",
"result": "PASS"
},
{
"check": "tls-matrix:prometheus:9090:grafana",
"result": "PASS"
},
{
"check": "tls-matrix:otel-collector:8889:prometheus",
"result": "PASS"
},
{
"check": "tls-matrix:otel-collector:8888:prometheus",
"result": "PASS"
},
{
"check": "tls-matrix:otel-collector:13133:operator",
"result": "PASS"
},
{
"check": "tls-matrix:tempo:4318:otel-collector",
"result": "PASS"
},
{
"check": "db-deny:worker:users",
"result": "PASS"
},
{
"check": "db-deny:worker:ddl",
"result": "PASS"
},
{
"check": "db-deny:worker:roles",
"result": "PASS"
},
{
"check": "db-deny:dispatcher:users",
"result": "PASS"
},
{
"check": "db-deny:dispatcher:ddl",
"result": "PASS"
},
{
"check": "db-deny:dispatcher:roles",
"result": "PASS"
},
{
"check": "redis-admin-deny:api",
"result": "PASS"
},
{
"check": "redis-prefix-deny:api",
"result": "PASS"
},
{
"check": "redis-admin-deny:worker",
"result": "PASS"
},
{
"check": "redis-prefix-deny:worker",
"result": "PASS"
},
{
"check": "consumer-cannot-publish",
"result": "PASS"
},
{
"check": "redis-admin-deny:dispatcher",
"result": "PASS"
},
{
"check": "redis-prefix-deny:dispatcher",
"result": "PASS"
},
{
"check": "producer-cannot-consume",
"result": "PASS"
},
{
"check": "s3-prefix-deny:api",
"result": "PASS"
},
{
"check": "api-cannot-write-variants",
"result": "PASS"
},
{
"check": "s3-prefix-deny:worker",
"result": "PASS"
},
{
"check": "grafana-write-deny:loki",
"result": "PASS"
},
{
"check": "grafana-write-deny:tempo",
"result": "PASS"
},
{
"check": "grafana-write-deny:prometheus",
"result": "PASS"
},
{
"check": "bao-expired-token",
"result": "PASS"
},
{
"check": "bao-revoked-token",
"result": "PASS"
}
],
"passed": 73
}
+322
View File
@@ -0,0 +1,322 @@
{
"checks": [
{
"check": "bao-own-secret:api",
"result": "PASS"
},
{
"check": "bao-other-secret:api",
"result": "PASS"
},
{
"check": "bao-policy-write:api",
"result": "PASS"
},
{
"check": "bao-renew:api",
"result": "PASS"
},
{
"check": "bao-own-secret:worker",
"result": "PASS"
},
{
"check": "bao-other-secret:worker",
"result": "PASS"
},
{
"check": "bao-policy-write:worker",
"result": "PASS"
},
{
"check": "bao-renew:worker",
"result": "PASS"
},
{
"check": "bao-own-secret:dispatcher",
"result": "PASS"
},
{
"check": "bao-other-secret:dispatcher",
"result": "PASS"
},
{
"check": "bao-policy-write:dispatcher",
"result": "PASS"
},
{
"check": "bao-renew:dispatcher",
"result": "PASS"
},
{
"check": "bao-own-secret:reconciler",
"result": "PASS"
},
{
"check": "bao-other-secret:reconciler",
"result": "PASS"
},
{
"check": "bao-policy-write:reconciler",
"result": "PASS"
},
{
"check": "bao-renew:reconciler",
"result": "PASS"
},
{
"check": "mtls-allow:api:8443:lb",
"result": "PASS"
},
{
"check": "mtls-deny:api:8443:no-cert",
"result": "PASS"
},
{
"check": "mtls-deny:api:8443:intruder",
"result": "PASS"
},
{
"check": "mtls-deny:api:8443:foreign",
"result": "PASS"
},
{
"check": "mtls-deny:api:8443:expired",
"result": "PASS"
},
{
"check": "mtls-deny:api:8443:worker",
"result": "PASS"
},
{
"check": "mtls-allow:broker:6379:worker",
"result": "PASS"
},
{
"check": "mtls-deny:broker:6379:no-cert",
"result": "PASS"
},
{
"check": "mtls-deny:broker:6379:intruder",
"result": "PASS"
},
{
"check": "mtls-deny:broker:6379:foreign",
"result": "PASS"
},
{
"check": "mtls-deny:broker:6379:expired",
"result": "PASS"
},
{
"check": "mtls-allow:otel-collector:4318:api",
"result": "PASS"
},
{
"check": "mtls-deny:otel-collector:4318:no-cert",
"result": "PASS"
},
{
"check": "mtls-deny:otel-collector:4318:intruder",
"result": "PASS"
},
{
"check": "mtls-deny:otel-collector:4318:foreign",
"result": "PASS"
},
{
"check": "mtls-deny:otel-collector:4318:expired",
"result": "PASS"
},
{
"check": "no-plaintext-bypass:api:8080",
"result": "PASS"
},
{
"check": "no-plaintext-bypass:postgres:15432",
"result": "PASS"
},
{
"check": "no-plaintext-bypass:redis:16379",
"result": "PASS"
},
{
"check": "no-plaintext-bypass:broker:16379",
"result": "PASS"
},
{
"check": "no-plaintext-bypass:otel-collector:14318",
"result": "PASS"
},
{
"check": "no-plaintext-bypass:otel-collector:18889",
"result": "PASS"
},
{
"check": "no-plaintext-bypass:loki:13100",
"result": "PASS"
},
{
"check": "no-plaintext-bypass:tempo:13200",
"result": "PASS"
},
{
"check": "no-plaintext-bypass:tempo:14318",
"result": "PASS"
},
{
"check": "no-plaintext-bypass:prometheus:19090",
"result": "PASS"
},
{
"check": "tls-matrix:redis:6379:api",
"result": "PASS"
},
{
"check": "tls-matrix:postgres:5432:operator",
"result": "PASS"
},
{
"check": "tls-matrix:loki:3100:grafana",
"result": "PASS"
},
{
"check": "tls-matrix:tempo:3200:grafana",
"result": "PASS"
},
{
"check": "tls-matrix:prometheus:9090:grafana",
"result": "PASS"
},
{
"check": "tls-matrix:otel-collector:8889:prometheus",
"result": "PASS"
},
{
"check": "tls-matrix:otel-collector:8888:prometheus",
"result": "PASS"
},
{
"check": "tls-matrix:otel-collector:13133:operator",
"result": "PASS"
},
{
"check": "tls-matrix:tempo:4318:otel-collector",
"result": "PASS"
},
{
"check": "db-deny:worker:users",
"result": "PASS"
},
{
"check": "db-deny:worker:ddl",
"result": "PASS"
},
{
"check": "db-deny:worker:roles",
"result": "PASS"
},
{
"check": "db-deny:dispatcher:users",
"result": "PASS"
},
{
"check": "db-deny:dispatcher:ddl",
"result": "PASS"
},
{
"check": "db-deny:dispatcher:roles",
"result": "PASS"
},
{
"check": "redis-admin-deny:api",
"result": "PASS"
},
{
"check": "redis-prefix-deny:api",
"result": "PASS"
},
{
"check": "redis-admin-deny:worker",
"result": "PASS"
},
{
"check": "redis-prefix-deny:worker",
"result": "PASS"
},
{
"check": "consumer-cannot-publish",
"result": "PASS"
},
{
"check": "redis-admin-deny:dispatcher",
"result": "PASS"
},
{
"check": "redis-prefix-deny:dispatcher",
"result": "PASS"
},
{
"check": "producer-cannot-consume",
"result": "PASS"
},
{
"check": "s3-prefix-deny:api",
"result": "PASS"
},
{
"check": "api-cannot-write-variants",
"result": "PASS"
},
{
"check": "s3-prefix-deny:worker",
"result": "PASS"
},
{
"check": "grafana-write-deny:loki",
"result": "PASS"
},
{
"check": "grafana-write-deny:tempo",
"result": "PASS"
},
{
"check": "grafana-write-deny:prometheus",
"result": "PASS"
},
{
"check": "bao-expired-token",
"result": "PASS"
},
{
"check": "bao-revoked-token",
"result": "PASS"
},
{
"check": "external-wrong-hostname-denied",
"result": "PASS"
},
{
"check": "bearer-not-x-user-id",
"result": "PASS"
},
{
"check": "successful-login-rehash",
"result": "PASS"
},
{
"check": "shared-account-rate-limit",
"result": "PASS",
"replicas": 2
},
{
"check": "shared-ip-rate-limit-spoofed-headers-denied",
"result": "PASS"
},
{
"check": "session-expiry",
"result": "PASS"
}
],
"passed": 79
}