Lab7 — Docker Desktop, Apple M3 Pro, локальные синтетические данные make check PASS: offline skeleton structure, local refs and Python syntax; application NOT tested. make validate PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested. docker compose config --quiet Код выхода 0. make test CA_FILE=secrets/lab7/ca/ca.crt PASS: lab7 public API scenario; infrastructure and grading evidence remain separate. make test-security CA_FILE=secrets/lab7/ca/ca.crt PASS: trusted HTTPS works; untrusted CA rejected. This does NOT verify internal mTLS, OpenBao or hardening. docker compose run --rm --no-deps verify -m scripts.verify_lab7 PASS app1: correct LB certificate only PASS app2: correct LB certificate only PASS OpenBao api: own secret allowed, cross-role read and policy write denied PASS OpenBao worker: own secret allowed, cross-role read and policy write denied PASS telemetry does not allow ingestion without service credentials python3 tests/grade3_api.py --ca-file secrets/lab7/ca/ca.crt PASS HTTPS rejects an incorrect hostname with the trusted CA PASS attachment cannot be linked into another chat PASS oversized body returns 413 PASS login limit returns 429 with Retry-After tests/grade3_api.py --expiry-only, отдельный стенд SESSION_TTL_SECONDS=8 PASS HTTPS session works before TTL and returns 401 after expiry python3 tests/test_worker_retry.py --ca-file secrets/lab7/ca/ca.crt PASS HTTPS worker retry reached failed with s3_download_error python3 scripts/check_telemetry.py PASS Grafana → Prometheus: API and worker counters and histograms PASS Grafana → Loki → Tempo: messenger-api PASS Grafana → Loki → Tempo: messenger-worker make test-persistence CA_FILE=secrets/lab7/ca/ca.crt ACTION_SCRIPT=scripts/restart.sh PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence. make test-failover CA_FILE=secrets/lab7/ca/ca.crt ACTION_SCRIPT=scripts/stop-one.sh {"observed_instances_before": 2, "successful_writes": 120, "failed_attempts": 0, "first_recovery_seconds": 0.832} PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence. Последовательная остановка реплик через scripts/stop-one.sh и HTTPS readiness PASS HTTPS readiness with app1 stopped PASS HTTPS readiness with app2 stopped docker compose exec -T app1 python -m app.bao python -m scripts.bench_password hash: n=40, p50=12.99 ms, p95=40.42 ms verify: n=40, p50=12.17 ms, p95=40.12 ms Повторная проверка из чистого состояния на отдельном Compose-проекте Публичный HTTPS smoke, тест внешнего TLS, внутренний mTLS, OpenBao, ACL, лимиты, тест worker, проверка телеметрии и истечение сессии повторно прошли. PASS PostgreSQL api: verified TLS, plaintext rejected, role permissions checked PASS PostgreSQL worker: verified TLS, plaintext rejected, role permissions checked PASS Redis: verified TLS, PING allowed, out-of-scope key denied PASS RabbitMQ: verified TLS with worker credentials PASS S3: verified TLS, API and worker cannot write into each other's prefixes PASS OpenBao: API and worker have scoped tokens bounded to 300 seconds; revoked tokens were denied PASS Docker: only three loopback ports; API and worker non-root, zero capabilities, 512 MiB/0.75 CPU PASS Argon2id: 10 test users, 19 MiB/t=2/p=1, unique salts PASS Secret isolation: operator files protected; generated secrets absent from container config, logs and sampled Loki entries PASS Application image excludes local secrets and private keys. PASS: persistence preserved confirmed data and existing session. {"observed_instances_before": 2, "successful_writes": 118, "failed_attempts": 0, "first_recovery_seconds": 1.647} PASS: failover preserved confirmed data and existing session. Последовательно отключены обе реплики, по одной. При отключении app1 первый отдельный readiness-запрос получил 504, повторный запрос получил 200. При отключении app2 readiness получил 200.