Реализовать лабораторную 7

This commit is contained in:
Krep4334
2026-12-01 17:47:59 +03:00
parent 20afc2c790
commit 9ffa60daef
89 changed files with 5054 additions and 69 deletions
+16 -3
View File
@@ -1,5 +1,18 @@
# Доказательства
# Результаты проверок
Храните небольшие обезличенные результаты: команды и stdout проверок, JSON/CSV агрегатов нагрузки, EXPLAIN, dashboard JSON, текст разбора отказа. Укажите дату, commit, аппаратные лимиты и профиль нагрузки.
Дата: 30.11.2026. Локальный Docker Desktop, лимиты CPU/RAM заданы в compose.yaml.
Не добавляйте .env, session tokens, cookies, приватные ключи, credentials, реальные сообщения, raw dumps и signed URLs. Для скриншотов скрывайте секреты. Большие логи/бинарные traces сохраняйте отдельно по правилам преподавателя; одного скриншота без методики недостаточно.
На Windows GNU make отсутствует; выполнены Python-команды из соответствующих targets Makefile.
Проверки относятся к локальному стенду; удалённый CI не запускался.
- smoke.txt и public-security.txt — публичные HTTPS проверки.
- contracts.txt — structure и полный OpenAPI (make check, make validate).
- clean-start.txt — bootstrap отдельного Compose project с новыми томами, CA и secrets.
- clean-security.txt — отрицательные проверки на этом чистом стенде.
- grafana-tls.txt — запросы Grafana к Prometheus, Loki и Tempo через mTLS.
- rotation.txt — ротация, отзыв, expiry и seal/unseal.
- persistence.txt и failover.txt — сохранность и отказ реплики через HTTPS.
- password-benchmark.json — параметры, время и RSS Argon2id.
- dependency-audit.json — scan установленных Python-пакетов.
Повторная сборка после фиксации транзитивных версий прервалась по сетевому timeout files.pythonhosted.org (final-start.txt). Фиксированные версии сняты с уже проверенного образа; последующие функциональные проверки выполнены на нём.
+13
View File
@@ -0,0 +1,13 @@
Container lab7-clean-775b3466-security-check-run-dcb8fd846fd6 Creating
Container lab7-clean-775b3466-security-check-run-dcb8fd846fd6 Created
PASS: HTTPS API, asynchronous images and cross-user ACL
PASS: server CA and hostname verification
PASS: both API replicas require allowed LB certificate; plaintext bypass closed
PASS: broker mTLS identity and separate producer/consumer ACL
PASS: Collector requires allowed service identities
PASS: OpenBao scoped read, cross-service and policy access denied, token TTL bounded
PASS: PostgreSQL TLS, Argon2id and least-privilege worker role
PASS: successful login upgrades legacy scrypt hash to Argon2id
PASS: API S3 identity cannot write final-object prefix
PASS: shared login limit across both replicas with 429/Retry-After
PASS: TLS telemetry query succeeds and logs exclude test password/session token
+339
View File
@@ -0,0 +1,339 @@
Image mtusi-messenger:lab7 Building
#1 [internal] load local bake definitions
#1 reading from stdin 624B 0.1s done
#1 DONE 0.1s
#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 663B done
#2 DONE 0.0s
#3 [internal] load metadata for docker.io/library/python:3.13.5-slim-bookworm@sha256:4c2cf9917bd1cbacc5e9b07320025bdb7cdf2df7b0ceaccb55e9dd7e30987419
#3 DONE 0.0s
#4 [internal] load .dockerignore
#4 transferring context: 212B done
#4 DONE 0.0s
#5 [internal] load build context
#5 transferring context: 71.08kB 0.0s done
#5 DONE 0.1s
#6 [1/6] FROM docker.io/library/python:3.13.5-slim-bookworm@sha256:4c2cf9917bd1cbacc5e9b07320025bdb7cdf2df7b0ceaccb55e9dd7e30987419
#6 resolve docker.io/library/python:3.13.5-slim-bookworm@sha256:4c2cf9917bd1cbacc5e9b07320025bdb7cdf2df7b0ceaccb55e9dd7e30987419 0.0s done
#6 DONE 0.0s
#7 [2/6] WORKDIR /app
#7 CACHED
#8 [5/6] COPY migrations/ ./migrations/
#8 CACHED
#9 [3/6] COPY requirements.txt .
#9 CACHED
#10 [4/6] RUN pip install --no-cache-dir pip==26.2 && pip install --no-cache-dir -r requirements.txt
#10 CACHED
#11 [6/6] COPY src/ ./src/
#11 CACHED
#12 exporting to image
#12 exporting layers done
#12 exporting manifest sha256:119d7926b4d98798df36e385e622d262fe582a03121264d65f652e12fece0453 0.0s done
#12 exporting config sha256:47f47a432996deb4312e59afb3e7a717d0ae415c028470da991d4408de558093 0.0s done
#12 exporting attestation manifest sha256:22a29e30b6c7aa57c168b50b894ad84a653c89a059e999bda9950ba91b93b11f 0.0s done
#12 exporting manifest list sha256:0b3c8b6988dae488bc371213e1ad97e0c8a0b9d68553fe9d3c3f379adf8091d0
#12 exporting manifest list sha256:0b3c8b6988dae488bc371213e1ad97e0c8a0b9d68553fe9d3c3f379adf8091d0 0.0s done
#12 naming to docker.io/library/mtusi-messenger:lab7 done
#12 unpacking to docker.io/library/mtusi-messenger:lab7 0.0s done
#12 DONE 0.1s
#13 resolving provenance for metadata file
#13 DONE 0.0s
Image mtusi-messenger:lab7 Built
Network lab7-clean-775b3466_storage Creating
Network lab7-clean-775b3466_storage Created
Network lab7-clean-775b3466_default Creating
Network lab7-clean-775b3466_default Created
Volume lab7-clean-775b3466_baodata Creating
Volume lab7-clean-775b3466_baodata Created
Volume lab7-clean-775b3466_pgdata Creating
Volume lab7-clean-775b3466_pgdata Created
Volume lab7-clean-775b3466_objects Creating
Volume lab7-clean-775b3466_objects Created
Volume lab7-clean-775b3466_brokerdata Creating
Volume lab7-clean-775b3466_brokerdata Created
Container lab7-clean-775b3466-s3-1 Creating
Container lab7-clean-775b3466-broker-1 Creating
Container lab7-clean-775b3466-cache-1 Creating
Container lab7-clean-775b3466-bao-permissions-1 Creating
Container lab7-clean-775b3466-db-1 Creating
Container lab7-clean-775b3466-bao-permissions-1 Created
Container lab7-clean-775b3466-openbao-1 Creating
Container lab7-clean-775b3466-s3-1 Created
Container lab7-clean-775b3466-s3-tls-1 Creating
Container lab7-clean-775b3466-broker-1 Created
Container lab7-clean-775b3466-broker-tls-1 Creating
Container lab7-clean-775b3466-cache-1 Created
Container lab7-clean-775b3466-cache-tls-1 Creating
Container lab7-clean-775b3466-db-1 Created
Container lab7-clean-775b3466-openbao-1 Created
Container lab7-clean-775b3466-broker-tls-1 Created
Container lab7-clean-775b3466-s3-tls-1 Created
Container lab7-clean-775b3466-cache-tls-1 Created
Container lab7-clean-775b3466-s3-1 Starting
Container lab7-clean-775b3466-cache-1 Starting
Container lab7-clean-775b3466-bao-permissions-1 Starting
Container lab7-clean-775b3466-db-1 Starting
Container lab7-clean-775b3466-broker-1 Starting
Container lab7-clean-775b3466-bao-permissions-1 Started
Container lab7-clean-775b3466-bao-permissions-1 Waiting
Container lab7-clean-775b3466-s3-1 Started
Container lab7-clean-775b3466-s3-tls-1 Starting
Container lab7-clean-775b3466-broker-1 Started
Container lab7-clean-775b3466-broker-tls-1 Starting
Container lab7-clean-775b3466-cache-1 Started
Container lab7-clean-775b3466-cache-tls-1 Starting
Container lab7-clean-775b3466-db-1 Started
Container lab7-clean-775b3466-broker-tls-1 Started
Container lab7-clean-775b3466-s3-tls-1 Started
Container lab7-clean-775b3466-cache-tls-1 Started
Container lab7-clean-775b3466-bao-permissions-1 Exited
Container lab7-clean-775b3466-openbao-1 Starting
Container lab7-clean-775b3466-openbao-1 Started
Container lab7-clean-775b3466-broker-tls-1 Recreate
Container lab7-clean-775b3466-cache-tls-1 Recreate
Container lab7-clean-775b3466-s3-tls-1 Recreate
Container lab7-clean-775b3466-cache-tls-1 Recreated
Container lab7-clean-775b3466-broker-tls-1 Recreated
Container lab7-clean-775b3466-s3-tls-1 Recreated
Container lab7-clean-775b3466-s3-tls-1 Starting
Container lab7-clean-775b3466-broker-tls-1 Starting
Container lab7-clean-775b3466-cache-tls-1 Starting
Container lab7-clean-775b3466-cache-tls-1 Started
Container lab7-clean-775b3466-s3-tls-1 Started
Container lab7-clean-775b3466-broker-tls-1 Started
OpenBao initialized, unsealed and scoped policies configured
Container lab7-clean-775b3466-db-1 Running
Container lab7-clean-775b3466-db-1 Waiting
Container lab7-clean-775b3466-db-1 Healthy
Container lab7-clean-775b3466-migrate-run-91b99c8cf269 Creating
Container lab7-clean-775b3466-migrate-run-91b99c8cf269 Created
Applied 001_initial.sql
Applied 002_idempotency.sql
Applied 003_attachments.sql
Applied 004_jobs.sql
Applied 005_trace_context.sql
Applied 006_login_limits.sql
Scoped database roles configured
Volume lab7-clean-775b3466_logsdata Creating
Volume lab7-clean-775b3466_logsdata Created
Volume lab7-clean-775b3466_tracesdata Creating
Volume lab7-clean-775b3466_tracesdata Created
Volume lab7-clean-775b3466_grafanadata Creating
Volume lab7-clean-775b3466_grafanadata Created
Volume lab7-clean-775b3466_metricsdata Creating
Volume lab7-clean-775b3466_metricsdata Created
Container lab7-clean-775b3466-prometheus-1 Creating
Container lab7-clean-775b3466-s3-1 Running
Container lab7-clean-775b3466-cache-1 Running
Container lab7-clean-775b3466-tempo-1 Creating
Container lab7-clean-775b3466-s3-tls-1 Running
Container lab7-clean-775b3466-loki-1 Creating
Container lab7-clean-775b3466-s3-init-1 Creating
Container lab7-clean-775b3466-broker-1 Running
Container lab7-clean-775b3466-grafana-1 Creating
Container lab7-clean-775b3466-otel-collector-1 Creating
Container lab7-clean-775b3466-cache-tls-1 Running
Container lab7-clean-775b3466-openbao-1 Running
Container lab7-clean-775b3466-broker-tls-1 Running
Container lab7-clean-775b3466-db-1 Running
Container lab7-clean-775b3466-migrate-1 Creating
Container lab7-clean-775b3466-otel-collector-1 Created
Container lab7-clean-775b3466-otel-collector-tls-otlp-1 Creating
Container lab7-clean-775b3466-otel-collector-tls-scrape-1 Creating
Container lab7-clean-775b3466-prometheus-1 Created
Container lab7-clean-775b3466-prometheus-tls-1 Creating
Container lab7-clean-775b3466-grafana-1 Created
Container lab7-clean-775b3466-s3-init-1 Created
Container lab7-clean-775b3466-tempo-1 Created
Container lab7-clean-775b3466-tempo-tls-query-1 Creating
Container lab7-clean-775b3466-tempo-tls-otlp-1 Creating
Container lab7-clean-775b3466-migrate-1 Created
Container lab7-clean-775b3466-worker-1 Creating
Container lab7-clean-775b3466-dispatcher-1 Creating
Container lab7-clean-775b3466-loki-1 Created
Container lab7-clean-775b3466-loki-tls-1 Creating
Container lab7-clean-775b3466-api-b-1 Creating
Container lab7-clean-775b3466-api-a-1 Creating
Container lab7-clean-775b3466-otel-collector-tls-otlp-1 Created
Container lab7-clean-775b3466-otel-collector-tls-scrape-1 Created
Container lab7-clean-775b3466-prometheus-tls-1 Created
Container lab7-clean-775b3466-worker-1 Created
Container lab7-clean-775b3466-tempo-tls-query-1 Created
Container lab7-clean-775b3466-dispatcher-1 Created
Container lab7-clean-775b3466-api-b-1 Created
Container lab7-clean-775b3466-api-b-tls-1 Creating
Container lab7-clean-775b3466-loki-tls-1 Created
Container lab7-clean-775b3466-api-a-1 Created
Container lab7-clean-775b3466-api-a-tls-1 Creating
Container lab7-clean-775b3466-lb-1 Creating
Container lab7-clean-775b3466-tempo-tls-otlp-1 Created
Container lab7-clean-775b3466-api-b-tls-1 Created
Container lab7-clean-775b3466-api-a-tls-1 Created
Container lab7-clean-775b3466-lb-1 Created
Container lab7-clean-775b3466-bao-permissions-1 Starting
Container lab7-clean-775b3466-grafana-1 Starting
Container lab7-clean-775b3466-s3-init-1 Starting
Container lab7-clean-775b3466-prometheus-1 Starting
Container lab7-clean-775b3466-otel-collector-1 Starting
Container lab7-clean-775b3466-loki-1 Starting
Container lab7-clean-775b3466-tempo-1 Starting
Container lab7-clean-775b3466-db-1 Waiting
Container lab7-clean-775b3466-db-1 Healthy
Container lab7-clean-775b3466-migrate-1 Starting
Container lab7-clean-775b3466-tempo-1 Started
Container lab7-clean-775b3466-tempo-tls-query-1 Starting
Container lab7-clean-775b3466-tempo-tls-otlp-1 Starting
Container lab7-clean-775b3466-bao-permissions-1 Started
Container lab7-clean-775b3466-bao-permissions-1 Waiting
Container lab7-clean-775b3466-loki-1 Started
Container lab7-clean-775b3466-loki-tls-1 Starting
Container lab7-clean-775b3466-prometheus-1 Started
Container lab7-clean-775b3466-prometheus-tls-1 Starting
Container lab7-clean-775b3466-otel-collector-1 Started
Container lab7-clean-775b3466-otel-collector-tls-scrape-1 Starting
Container lab7-clean-775b3466-otel-collector-tls-otlp-1 Starting
Container lab7-clean-775b3466-tempo-tls-query-1 Started
Container lab7-clean-775b3466-tempo-tls-otlp-1 Started
Container lab7-clean-775b3466-grafana-1 Started
Container lab7-clean-775b3466-s3-init-1 Started
Container lab7-clean-775b3466-migrate-1 Started
Container lab7-clean-775b3466-migrate-1 Waiting
Container lab7-clean-775b3466-s3-init-1 Waiting
Container lab7-clean-775b3466-s3-init-1 Waiting
Container lab7-clean-775b3466-migrate-1 Waiting
Container lab7-clean-775b3466-migrate-1 Waiting
Container lab7-clean-775b3466-s3-init-1 Waiting
Container lab7-clean-775b3466-migrate-1 Waiting
Container lab7-clean-775b3466-otel-collector-tls-scrape-1 Started
Container lab7-clean-775b3466-bao-permissions-1 Exited
Container lab7-clean-775b3466-otel-collector-tls-otlp-1 Started
Container lab7-clean-775b3466-loki-tls-1 Started
Container lab7-clean-775b3466-prometheus-tls-1 Started
Container lab7-clean-775b3466-migrate-1 Exited
Container lab7-clean-775b3466-migrate-1 Exited
Container lab7-clean-775b3466-dispatcher-1 Starting
Container lab7-clean-775b3466-migrate-1 Exited
Container lab7-clean-775b3466-migrate-1 Exited
Container lab7-clean-775b3466-s3-init-1 Exited
Container lab7-clean-775b3466-api-b-1 Starting
Container lab7-clean-775b3466-s3-init-1 Exited
Container lab7-clean-775b3466-api-a-1 Starting
Container lab7-clean-775b3466-s3-init-1 Exited
Container lab7-clean-775b3466-worker-1 Starting
Container lab7-clean-775b3466-dispatcher-1 Started
Container lab7-clean-775b3466-api-a-1 Started
Container lab7-clean-775b3466-api-a-tls-1 Starting
Container lab7-clean-775b3466-api-b-1 Started
Container lab7-clean-775b3466-api-b-tls-1 Starting
Container lab7-clean-775b3466-api-a-1 Waiting
Container lab7-clean-775b3466-api-b-1 Waiting
Container lab7-clean-775b3466-worker-1 Started
Container lab7-clean-775b3466-api-a-tls-1 Started
Container lab7-clean-775b3466-api-b-tls-1 Started
Container lab7-clean-775b3466-api-a-1 Healthy
Container lab7-clean-775b3466-api-b-1 Healthy
Container lab7-clean-775b3466-lb-1 Starting
Container lab7-clean-775b3466-lb-1 Started
Container lab7-clean-775b3466-prometheus-1 Waiting
Container lab7-clean-775b3466-grafana-1 Waiting
Container lab7-clean-775b3466-broker-1 Waiting
Container lab7-clean-775b3466-tempo-1 Waiting
Container lab7-clean-775b3466-cache-1 Waiting
Container lab7-clean-775b3466-bao-permissions-1 Waiting
Container lab7-clean-775b3466-api-b-tls-1 Waiting
Container lab7-clean-775b3466-tempo-tls-query-1 Waiting
Container lab7-clean-775b3466-dispatcher-1 Waiting
Container lab7-clean-775b3466-s3-tls-1 Waiting
Container lab7-clean-775b3466-s3-1 Waiting
Container lab7-clean-775b3466-s3-init-1 Waiting
Container lab7-clean-775b3466-otel-collector-1 Waiting
Container lab7-clean-775b3466-tempo-tls-otlp-1 Waiting
Container lab7-clean-775b3466-cache-tls-1 Waiting
Container lab7-clean-775b3466-api-b-1 Waiting
Container lab7-clean-775b3466-broker-tls-1 Waiting
Container lab7-clean-775b3466-loki-tls-1 Waiting
Container lab7-clean-775b3466-migrate-1 Waiting
Container lab7-clean-775b3466-otel-collector-tls-otlp-1 Waiting
Container lab7-clean-775b3466-lb-1 Waiting
Container lab7-clean-775b3466-openbao-1 Waiting
Container lab7-clean-775b3466-db-1 Waiting
Container lab7-clean-775b3466-otel-collector-tls-scrape-1 Waiting
Container lab7-clean-775b3466-api-a-1 Waiting
Container lab7-clean-775b3466-loki-1 Waiting
Container lab7-clean-775b3466-prometheus-tls-1 Waiting
Container lab7-clean-775b3466-worker-1 Waiting
Container lab7-clean-775b3466-api-a-tls-1 Waiting
Container lab7-clean-775b3466-s3-tls-1 Healthy
Container lab7-clean-775b3466-dispatcher-1 Healthy
Container lab7-clean-775b3466-tempo-1 Healthy
Container lab7-clean-775b3466-loki-tls-1 Healthy
Container lab7-clean-775b3466-api-b-1 Healthy
Container lab7-clean-775b3466-cache-tls-1 Healthy
Container lab7-clean-775b3466-bao-permissions-1 Exited
Container lab7-clean-775b3466-loki-1 Healthy
Container lab7-clean-775b3466-api-b-tls-1 Healthy
Container lab7-clean-775b3466-tempo-tls-otlp-1 Healthy
Container lab7-clean-775b3466-cache-1 Healthy
Container lab7-clean-775b3466-grafana-1 Healthy
Container lab7-clean-775b3466-otel-collector-1 Healthy
Container lab7-clean-775b3466-migrate-1 Exited
Container lab7-clean-775b3466-s3-init-1 Exited
Container lab7-clean-775b3466-prometheus-tls-1 Healthy
Container lab7-clean-775b3466-prometheus-1 Healthy
Container lab7-clean-775b3466-broker-tls-1 Healthy
Container lab7-clean-775b3466-openbao-1 Healthy
Container lab7-clean-775b3466-otel-collector-tls-scrape-1 Healthy
Container lab7-clean-775b3466-broker-1 Healthy
Container lab7-clean-775b3466-tempo-tls-query-1 Healthy
Container lab7-clean-775b3466-otel-collector-tls-otlp-1 Healthy
Container lab7-clean-775b3466-api-a-tls-1 Healthy
Container lab7-clean-775b3466-s3-1 Healthy
Container lab7-clean-775b3466-lb-1 Healthy
Container lab7-clean-775b3466-worker-1 Healthy
Container lab7-clean-775b3466-api-a-1 Healthy
Container lab7-clean-775b3466-db-1 Healthy
Container lab7-clean-775b3466-otel-collector-tls-otlp-1 Recreate
Container lab7-clean-775b3466-loki-tls-1 Recreate
Container lab7-clean-775b3466-otel-collector-tls-scrape-1 Recreate
Container lab7-clean-775b3466-api-b-tls-1 Recreate
Container lab7-clean-775b3466-tempo-tls-otlp-1 Recreate
Container lab7-clean-775b3466-prometheus-tls-1 Recreate
Container lab7-clean-775b3466-tempo-tls-query-1 Recreate
Container lab7-clean-775b3466-api-a-tls-1 Recreate
Container lab7-clean-775b3466-tempo-tls-otlp-1 Recreated
Container lab7-clean-775b3466-api-a-tls-1 Recreated
Container lab7-clean-775b3466-prometheus-tls-1 Recreated
Container lab7-clean-775b3466-otel-collector-tls-otlp-1 Recreated
Container lab7-clean-775b3466-loki-tls-1 Recreated
Container lab7-clean-775b3466-tempo-tls-query-1 Recreated
Container lab7-clean-775b3466-otel-collector-tls-scrape-1 Recreated
Container lab7-clean-775b3466-api-b-tls-1 Recreated
Container lab7-clean-775b3466-otel-collector-tls-scrape-1 Starting
Container lab7-clean-775b3466-api-a-tls-1 Starting
Container lab7-clean-775b3466-loki-tls-1 Starting
Container lab7-clean-775b3466-tempo-tls-query-1 Starting
Container lab7-clean-775b3466-prometheus-tls-1 Starting
Container lab7-clean-775b3466-api-b-tls-1 Starting
Container lab7-clean-775b3466-tempo-tls-otlp-1 Starting
Container lab7-clean-775b3466-otel-collector-tls-otlp-1 Starting
Container lab7-clean-775b3466-tempo-tls-query-1 Started
Container lab7-clean-775b3466-api-b-tls-1 Started
Container lab7-clean-775b3466-tempo-tls-otlp-1 Started
Container lab7-clean-775b3466-prometheus-tls-1 Started
Container lab7-clean-775b3466-api-a-tls-1 Started
Container lab7-clean-775b3466-otel-collector-tls-otlp-1 Started
Container lab7-clean-775b3466-otel-collector-tls-scrape-1 Started
Container lab7-clean-775b3466-loki-tls-1 Started
HTTPS stack is ready
+2
View File
@@ -0,0 +1,2 @@
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
{"dependencies": [{"name": "argon2-cffi", "version": "25.1.0", "vulns": []}, {"name": "argon2-cffi-bindings", "version": "26.2.0", "vulns": []}, {"name": "boto3", "version": "1.39.3", "vulns": []}, {"name": "botocore", "version": "1.39.3", "vulns": []}, {"name": "certifi", "version": "2026.11.20", "vulns": []}, {"name": "cffi", "version": "2.1.1", "vulns": []}, {"name": "charset-normalizer", "version": "3.5.3", "vulns": []}, {"name": "cryptography", "version": "50.0.0", "vulns": []}, {"name": "googleapis-common-protos", "version": "1.76.0", "vulns": []}, {"name": "idna", "version": "3.20", "vulns": []}, {"name": "jmespath", "version": "1.0.1", "vulns": []}, {"name": "opentelemetry-api", "version": "1.45.2", "vulns": []}, {"name": "opentelemetry-exporter-http-transport", "version": "0.66b2", "vulns": []}, {"name": "opentelemetry-exporter-otlp-common", "version": "0.66b2", "vulns": []}, {"name": "opentelemetry-exporter-otlp-proto-common", "version": "1.45.2", "vulns": []}, {"name": "opentelemetry-exporter-otlp-proto-http", "version": "1.45.2", "vulns": []}, {"name": "opentelemetry-proto", "version": "1.45.2", "vulns": []}, {"name": "opentelemetry-sdk", "version": "1.45.2", "vulns": []}, {"name": "opentelemetry-semantic-conventions", "version": "0.66b2", "vulns": []}, {"name": "pillow", "version": "13.0.0", "vulns": []}, {"name": "pip", "version": "26.2", "vulns": []}, {"name": "protobuf", "version": "7.36.2", "vulns": []}, {"name": "psycopg", "version": "3.2.9", "vulns": []}, {"name": "psycopg-binary", "version": "3.2.9", "vulns": []}, {"name": "psycopg-pool", "version": "3.2.6", "vulns": []}, {"name": "pycparser", "version": "3.12", "vulns": []}, {"name": "python-dateutil", "version": "2.9.0.post0", "vulns": []}, {"name": "redis", "version": "6.2.0", "vulns": []}, {"name": "requests", "version": "2.34.2", "vulns": []}, {"name": "s3transfer", "version": "0.13.0", "vulns": []}, {"name": "six", "version": "1.17.0", "vulns": []}, {"name": "typing-extensions", "version": "4.14.0", "vulns": []}, {"name": "urllib3", "version": "2.8.0", "vulns": []}], "fixes": []}
+3
View File
@@ -0,0 +1,3 @@
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 7, "failed_attempts": 0, "first_recovery_seconds": 4.19}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
+86
View File
@@ -0,0 +1,86 @@
Image mtusi-messenger:lab7 Building
#1 [internal] load local bake definitions
#1 reading from stdin 554B 0.1s done
#1 DONE 0.1s
#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 663B done
#2 DONE 0.0s
#3 [internal] load metadata for docker.io/library/python:3.13.5-slim-bookworm@sha256:4c2cf9917bd1cbacc5e9b07320025bdb7cdf2df7b0ceaccb55e9dd7e30987419
#3 DONE 20.9s
#4 [internal] load .dockerignore
#4 transferring context: 212B done
#4 DONE 0.0s
#5 [internal] load build context
#5 transferring context: 1.71kB done
#5 DONE 0.0s
#6 [1/6] FROM docker.io/library/python:3.13.5-slim-bookworm@sha256:4c2cf9917bd1cbacc5e9b07320025bdb7cdf2df7b0ceaccb55e9dd7e30987419
#6 resolve docker.io/library/python:3.13.5-slim-bookworm@sha256:4c2cf9917bd1cbacc5e9b07320025bdb7cdf2df7b0ceaccb55e9dd7e30987419
#6 resolve docker.io/library/python:3.13.5-slim-bookworm@sha256:4c2cf9917bd1cbacc5e9b07320025bdb7cdf2df7b0ceaccb55e9dd7e30987419 20.1s done
#6 DONE 20.1s
#7 [2/6] WORKDIR /app
#7 CACHED
#8 [3/6] COPY requirements.txt .
#8 DONE 0.0s
#9 [4/6] RUN pip install --no-cache-dir pip==26.2 && pip install --no-cache-dir -r requirements.txt
#9 1.598 Collecting pip==26.2
#9 16.72 WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. (read timeout=15)")': /packages/62/36/a3aed958d60531cb442b7ab4596cda7b3621cfb916f8ae1d6769795c7dc1/pip-26.2-py3-none-any.whl.metadata
#9 32.27 WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. (read timeout=15)")': /packages/62/36/a3aed958d60531cb442b7ab4596cda7b3621cfb916f8ae1d6769795c7dc1/pip-26.2-py3-none-any.whl.metadata
#9 48.32 WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. (read timeout=15)")': /packages/62/36/a3aed958d60531cb442b7ab4596cda7b3621cfb916f8ae1d6769795c7dc1/pip-26.2-py3-none-any.whl.metadata
#9 65.37 WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. (read timeout=15)")': /packages/62/36/a3aed958d60531cb442b7ab4596cda7b3621cfb916f8ae1d6769795c7dc1/pip-26.2-py3-none-any.whl.metadata
#9 84.49 WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. (read timeout=15)")': /packages/62/36/a3aed958d60531cb442b7ab4596cda7b3621cfb916f8ae1d6769795c7dc1/pip-26.2-py3-none-any.whl.metadata
#9 99.55 ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/62/36/a3aed958d60531cb442b7ab4596cda7b3621cfb916f8ae1d6769795c7dc1/pip-26.2-py3-none-any.whl.metadata (Caused by ReadTimeoutError("HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. (read timeout=15)"))
#9 99.55
#9 99.75
#9 99.75 [notice] A new release of pip is available: 25.1.1 -> 26.3
#9 99.75 [notice] To update, run: pip install --upgrade pip
#9 ERROR: process "/bin/sh -c pip install --no-cache-dir pip==26.2 && pip install --no-cache-dir -r requirements.txt" did not complete successfully: exit code: 1
------
> [4/6] RUN pip install --no-cache-dir pip==26.2 && pip install --no-cache-dir -r requirements.txt:
16.72 WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. (read timeout=15)")': /packages/62/36/a3aed958d60531cb442b7ab4596cda7b3621cfb916f8ae1d6769795c7dc1/pip-26.2-py3-none-any.whl.metadata
32.27 WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. (read timeout=15)")': /packages/62/36/a3aed958d60531cb442b7ab4596cda7b3621cfb916f8ae1d6769795c7dc1/pip-26.2-py3-none-any.whl.metadata
48.32 WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. (read timeout=15)")': /packages/62/36/a3aed958d60531cb442b7ab4596cda7b3621cfb916f8ae1d6769795c7dc1/pip-26.2-py3-none-any.whl.metadata
65.37 WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. (read timeout=15)")': /packages/62/36/a3aed958d60531cb442b7ab4596cda7b3621cfb916f8ae1d6769795c7dc1/pip-26.2-py3-none-any.whl.metadata
84.49 WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. (read timeout=15)")': /packages/62/36/a3aed958d60531cb442b7ab4596cda7b3621cfb916f8ae1d6769795c7dc1/pip-26.2-py3-none-any.whl.metadata
99.55 ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/62/36/a3aed958d60531cb442b7ab4596cda7b3621cfb916f8ae1d6769795c7dc1/pip-26.2-py3-none-any.whl.metadata (Caused by ReadTimeoutError("HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. (read timeout=15)"))
99.55
99.75
99.75 [notice] A new release of pip is available: 25.1.1 -> 26.3
99.75 [notice] To update, run: pip install --upgrade pip
------
Dockerfile:6
--------------------
4 | WORKDIR /app
5 | COPY requirements.txt .
6 | >>> RUN pip install --no-cache-dir pip==26.2 && pip install --no-cache-dir -r requirements.txt
7 | COPY migrations/ ./migrations/
8 | COPY src/ ./src/
--------------------
failed to solve: process "/bin/sh -c pip install --no-cache-dir pip==26.2 && pip install --no-cache-dir -r requirements.txt" did not complete successfully: exit code: 1
Traceback (most recent call last):
File "C:\Users\User\Desktop\vp\mtusi2026lab7\scripts\start.py", line 19, in <module>
run("docker", "compose", "build", "migrate")
~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\Desktop\vp\mtusi2026lab7\scripts\start.py", line 13, in run
subprocess.run(args, cwd=ROOT, check=True, timeout=300)
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\AppData\Local\Programs\Python\Python313\Lib\subprocess.py", line 577, in run
raise CalledProcessError(retcode, process.args,
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '('docker', 'compose', 'build', 'migrate')' returned non-zero exit status 1.
+3
View File
@@ -0,0 +1,3 @@
PASS: Grafana queries Prometheus through verified mTLS
PASS: Grafana queries Loki through verified mTLS
PASS: Grafana queries Tempo through verified mTLS
+1
View File
@@ -0,0 +1 @@
{"samples": 20, "operation": "hash_plus_verify", "memory_kib": 19456, "time_cost": 2, "parallelism": 1, "p50_seconds": 0.0423, "p95_seconds": 0.0674, "peak_rss_bytes": 40701952, "server_max_parallel_hashes": 2}
+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.
+1
View File
@@ -0,0 +1 @@
PASS: trusted HTTPS works; untrusted CA rejected. This does NOT verify internal mTLS, OpenBao or hardening.
+21
View File
@@ -0,0 +1,21 @@
Container mtusi2026lab7-api-a-1 Restarting
Container mtusi2026lab7-api-b-1 Restarting
Container mtusi2026lab7-api-a-1 Started
Container mtusi2026lab7-api-b-1 Started
Container mtusi2026lab7-api-b-tls-1 Restarting
Container mtusi2026lab7-api-a-tls-1 Restarting
Container mtusi2026lab7-api-a-tls-1 Started
Container mtusi2026lab7-api-b-tls-1 Started
Rotated API database credential without rebuilding images
PASS: old DB credential rejected on new connection
Container mtusi2026lab7-api-a-1 Restarting
Container mtusi2026lab7-api-a-tls-1 Restarting
Container mtusi2026lab7-api-a-1 Started
Container mtusi2026lab7-api-a-tls-1 Started
Rotated API leaf certificate and revoked previous identity
PASS: revoked leaf rejected by Collector and OpenBao
PASS: expired OpenBao service token rejected
OpenBao initialized, unsealed and scoped policies configured
PASS: sealed OpenBao refuses service authentication
OpenBao initialized, unsealed and scoped policies configured
PASS: original session valid after credential/certificate rotation and unseal
+13
View File
@@ -0,0 +1,13 @@
Container mtusi2026lab7-security-check-run-b6cd245d3893 Creating
Container mtusi2026lab7-security-check-run-b6cd245d3893 Created
PASS: HTTPS API, asynchronous images and cross-user ACL
PASS: server CA and hostname verification
PASS: both API replicas require allowed LB certificate; plaintext bypass closed
PASS: broker mTLS identity and separate producer/consumer ACL
PASS: Collector requires allowed service identities
PASS: OpenBao scoped read, cross-service and policy access denied, token TTL bounded
PASS: PostgreSQL TLS, Argon2id and least-privilege worker role
PASS: successful login upgrades legacy scrypt hash to Argon2id
PASS: API S3 identity cannot write final-object prefix
PASS: shared login limit across both replicas with 429/Retry-After
PASS: TLS telemetry query succeeds and logs exclude test password/session token
+1
View File
@@ -0,0 +1 @@
PASS: lab7 public API scenario; infrastructure and grading evidence remain separate.