лаба 3
Skeleton contracts / contracts (pull_request) Blocked by required conditions

This commit is contained in:
2026-12-07 00:40:17 +03:00
parent 20afc2c790
commit 5976ab02ff
217 changed files with 16359 additions and 39 deletions
+8
View File
@@ -18,3 +18,11 @@ __pycache__
node_modules node_modules
evidence evidence
.DS_Store .DS_Store
.idea
secrets/
certs/
openbao-local/
infra/rabbitmq/rabbitmq.conf
**/__pycache__
*.pyc
evidence/
+26 -12
View File
@@ -1,24 +1,25 @@
# Copy to .env for your LOCAL synthetic test environment; never commit .env. # Copy to .env for your LOCAL synthetic test environment; never commit .env.
# These are logical interface suggestions; map actual framework names in REPORT.md. # These are logical interface suggestions; map actual framework names in REPORT.md.
APP_HOST=0.0.0.0 APP_HOST=127.0.0.1
APP_PORT=8080 APP_PORT=8080
APP_ENV=lab APP_ENV=lab
SESSION_TTL_SECONDS=3600 SESSION_TTL_SECONDS=3600
# Choose credentials locally. File paths contain no secret values. # Choose credentials locally. File paths contain no secret values.
DATABASE_URL_FILE=/run/secrets/database_url DATABASE_URL_FILE=/run/app-secrets/database_url
# Optional on 3, required use on 4 in lab2; Redis OR Valkey: # Optional on 3, required use on 4 in lab2; Redis OR Valkey:
SESSION_STORE=postgres SESSION_STORE=redis
CACHE_URL_FILE=/run/secrets/cache_url CACHE_URL_FILE=/run/app-secrets/cache_url
API_REPLICAS=2 API_REPLICAS=2
IDEMPOTENCY_TTL_SECONDS=86400 IDEMPOTENCY_TTL_SECONDS=86400
S3_ENDPOINT=https://s3:9000 S3_ENDPOINT=https://s3:9000
S3_REGION=us-east-1 S3_REGION=us-east-1
S3_BUCKET=messenger-attachments S3_BUCKET=messenger-attachments
S3_ACCESS_KEY_ID_FILE=/run/secrets/s3_access_key_id S3_ACCESS_KEY_ID_FILE=/run/app-secrets/s3_access_key_id
S3_SECRET_ACCESS_KEY_FILE=/run/secrets/s3_secret_access_key S3_SECRET_ACCESS_KEY_FILE=/run/app-secrets/s3_secret_access_key
MAX_UPLOAD_BYTES=10485760 MAX_UPLOAD_BYTES=10485760
MAX_IMAGE_PIXELS=40000000 MAX_IMAGE_PIXELS=40000000
BROKER_URL_FILE=/run/secrets/broker_url RABBITMQ_HOST=rabbitmq
RABBITMQ_PASSWORD_FILE=/run/app-secrets/rabbitmq_password
WORKER_CONCURRENCY=2 WORKER_CONCURRENCY=2
JOB_MAX_ATTEMPTS=5 JOB_MAX_ATTEMPTS=5
JOB_TIMEOUT_SECONDS=60 JOB_TIMEOUT_SECONDS=60
@@ -30,12 +31,25 @@ OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
OTEL_RESOURCE_ATTRIBUTES=deployment.environment.name=lab OTEL_RESOURCE_ATTRIBUTES=deployment.environment.name=lab
# TLS and OpenBao: actual paths/ports depend on your implemented trust matrix. # TLS and OpenBao: actual paths/ports depend on your implemented trust matrix.
PUBLIC_BASE_URL=https://localhost:8443 PUBLIC_BASE_URL=https://localhost:8443
TLS_CA_FILE=/run/secrets/ca.crt TLS_CA_FILE=/run/ca/ca.crt
TLS_CERT_FILE=/run/secrets/service.crt TLS_CERT_FILE=/run/tls/tls.crt
TLS_KEY_FILE=/run/secrets/service.key TLS_KEY_FILE=/run/tls/tls.key
BAO_ADDR=https://openbao:8200 BAO_ADDR=https://openbao:8200
BAO_CACERT=/run/secrets/bao-ca.crt BAO_CACERT=/run/ca/ca.crt
# No root token here. Bootstrap operator -> short-lived service auth -> scoped token. # No root token here. Bootstrap operator -> short-lived service auth -> scoped token.
ARGON2_MEMORY_KIB=19456 ARGON2_MEMORY_KIB=32768
ARGON2_ITERATIONS=2 ARGON2_ITERATIONS=2
ARGON2_PARALLELISM=1 ARGON2_PARALLELISM=1
# Logical settings; actual runtime values are defined in compose.yaml
# and src/security.py. Not every variable is read directly by the app.
LOGIN_WINDOW_SECONDS=60
LOGIN_USERNAME_LIMIT=5
LOGIN_IP_LIMIT=60
TELEMETRY_ENABLED=1
TELEMETRY_TRACE_SAMPLE_RATIO=1.0
TELEMETRY_BENCHMARK_ENABLED=0
# Generated locally by scripts/bootstrap.sh.
GRAFANA_ADMIN_PASSWORD=
+7
View File
@@ -30,3 +30,10 @@ coverage/
.vscode/ .vscode/
# Keep small, sanitized evidence summaries in evidence/ under version control. # Keep small, sanitized evidence summaries in evidence/ under version control.
# Inspect git diff --cached: ignore rules are not a secret scanner. # Inspect git diff --cached: ignore rules are not a secret scanner.
# Generated local security configuration
/infra/rabbitmq/rabbitmq.conf
/certs/
/openbao-local/
openbao-local/
+27
View File
@@ -0,0 +1,27 @@
FROM python:3.13.15-slim
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY alembic.ini .
COPY migrations ./migrations
COPY src ./src
COPY scripts ./scripts
COPY tests ./tests
RUN useradd --create-home --uid 10001 appuser
USER appuser
EXPOSE 8080
HEALTHCHECK --interval=10s --timeout=3s --start-period=5s --retries=3 \
CMD python -c "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8080/health/ready', timeout=2)" || exit 1
CMD ["uvicorn", "src.main:app", "--host", "127.0.0.1", "--port", "8080"]
+225 -15
View File
@@ -1,37 +1,247 @@
# Отчёт — лабораторная 7 # Отчёт — лабораторная 7
- Автор, группа: TODO ## Безопасность, mTLS и OpenBao
- Целевая оценка; выбранный трек 5, если нужен: TODO
- Commit/PR: TODO после публикации - **Автор, группа:** Травкин Станислав, БВТ2304.
- Использованные источники, библиотеки и помощь ИИ: TODO - **Целевая оценка:** 3.
- **Ветка:** `solution/bvt2304-travkin`.
- **Commit/PR:** итоговый коммит и PR будут созданы после проверки отчёта.
- **Источники и инструменты:** README и контракты курса, реализация lab6, документация используемых компонентов; Python, FastAPI, SQLAlchemy, Alembic, asyncpg, argon2-cffi, redis, pika, boto3, Pillow, Docker Compose, OpenSSL, OpenTelemetry. ChatGPT использовался для проектирования, подготовки кода и команд, диагностики, тестирования и оформления отчёта. Команды выполнялись на локальном стенде.
## Запуск из чистого clone ## Запуск из чистого clone
TODO: версии runtime/образов, prerequisites, команды создания локальных secrets/.env, build, миграций, запуска, ожидания готовности, тестов и остановки. Указать необходимые действия оператора. Не вставлять секреты. Отдельно указать безопасную остановку и команду намеренного удаления учебных данных. ### Окружение
WSL2 Ubuntu, PyCharm, Python 3.13.15, Docker Engine 29.8.0, Docker Compose 5.5.1, OpenSSL 3.0.2. Образы: PostgreSQL 17.6, Redis 8.2.2, RabbitMQ 4.1.4-management-alpine, MinIO RELEASE.2025-09-07T16-13-09Z, Nginx 1.29-alpine, OpenBao 2.3.2, Collector Contrib 0.120.0 (тег), Prometheus 3.2.1, Grafana 11.5.2, Loki 3.4.2, Tempo 2.7.1.
Необходимы Git, Python 3.13, Docker Compose, OpenSSL, доступ к registry и sudo для подготовки прав TLS keys.
```bash
git clone -b solution/bvt2304-travkin ssh://git@gitea.privcloud.tech:2222/casablancawastaken/mtusi2026lab7.git
cd mtusi2026lab7
python3.13 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
make check
make validate
bash scripts/bootstrap.sh
docker compose config --quiet
docker compose build
docker compose up -d openbao
```
Bootstrap создаёт локальный CA, leaf certificates, mTLS allowlist, инфраструктурные credentials, конфигурации аутентификации и `.env`. Секреты не поставляются в Git.
После готовности OpenBao выполнить **только для нового хранилища**:
```bash
bash scripts/init-openbao.sh
bash scripts/unseal-openbao.sh
bash scripts/configure-openbao.sh
bash scripts/seed-openbao.sh
docker compose up -d --no-build
docker compose ps -a
```
Операторские материалы сохраняются вне репозитория в `$HOME/.local/share/lab7-openbao-operator/init.json` (каталог 700, файл 600). Для независимого стенда можно задать `BAO_OPERATOR_FILE`. Три unseal shares, порог два. Root token используется оператором, не приложениями.
Дождаться готовности API и завершения `migrate` и `s3-init` с кодом 0:
```bash
curl --fail --cacert certs/ca/ca.crt https://localhost:8443/health/ready
export BASE_URL=https://localhost:8443
export CA_FILE="$PWD/certs/ca/ca.crt"
make test BASE_URL="$BASE_URL" CA_FILE="$CA_FILE"
make test-security BASE_URL="$BASE_URL" CA_FILE="$CA_FILE"
python student-tests/test_public_tls.py
```
API: `https://localhost:8443`. Grafana: `https://localhost:3000`. MinIO Console: `https://localhost:9001`. Последние два опубликованы только на loopback. OpenBao доступен по `https://openbao:8200` внутри Docker-сети. Для браузера требуется доверие локальному CA; отключать TLS verification не нужно. Административные credentials находятся в локальных `.env` и `secrets/`.
Обычный перезапуск: `bash scripts/restart.sh`. После полной остановки:
```bash
docker compose up -d openbao
bash scripts/unseal-openbao.sh
docker compose up -d
```
Повторные init и seed не нужны. Безопасная остановка: `docker compose down`. Намеренное удаление учебных Docker volumes: `docker compose down -v` (удаляет данные). OpenBao использует отдельный bind mount `openbao-local/data`, который эта команда не удаляет; его полный сброс требует отдельного осознанного удаления storage и подготовки новых операторских материалов.
## Архитектура и решения ## Архитектура и решения
TODO: схема процессов/хранилищ, источник истины, транзакционные границы, ограничения. Что перенесено из lab6, что изменено в этой работе. Соответствие переменных из .env.example реальной конфигурации. Из lab6 перенесены бизнес-API, модели, миграции, обработка вложений, идемпотентность, worker, dispatcher и наблюдаемость. Добавлены PKI, HTTPS, mTLS, Argon2id, rate limiting, Redis ACL, scoped identities, OpenBao и hardening.
```text
Client -- HTTPS :8443 --> Nginx
| mandatory mTLS
+--------+--------+
v v
API-1 proxy API-2 proxy
| loopback HTTP | loopback HTTP
v v
API-1 API-2
+--------+--------+
+-- TLS --> PostgreSQL / Redis / MinIO
Dispatcher -- TLS --> PostgreSQL / RabbitMQ
Worker ----- TLS --> PostgreSQL / RabbitMQ / MinIO
API / Worker / Dispatcher -- TLS + cert auth --> OpenBao
API / Worker / Dispatcher -- TLS + Basic Auth --> Collector
Collector -- TLS --> Loki / Tempo
Prometheus -- TLS --> Collector metrics
Grafana -- TLS --> Prometheus / Loki / Tempo
```
PostgreSQL — источник истины для пользователей, чатов, сообщений, метаданных вложений и задач. Redis хранит сессии и общие rate-limit counters. MinIO хранит оригиналы и производные изображения. RabbitMQ доставляет фоновые задачи. Dispatcher публикует задачи на основании состояния PostgreSQL; повторная доставка учитывается через идемпотентность, generation и execution_id. Бизнес-изменения фиксируются транзакциями PostgreSQL; S3 и broker не входят в единую распределённую транзакцию. Обе API-реплики используют общие хранилища.
`.env.example` документирует настройки; фактические runtime values определены в `compose.yaml` и коде. Сессии используют Redis, Uvicorn слушает loopback, секреты приложений находятся в `/run/app-secrets`, CA — `/run/ca/ca.crt`. Argon2id фиксируется в `src/security.py`.
### Модель угроз и доверие
- [Модель угроз](docs/threat-model.md).
- [Матрица доверия](contracts/trust-matrix.md): 12 обязательных связей и дополнительные служебные каналы.
CA RSA 3072 действует 365 дней; leaf RSA 2048 — 90 дней, с SAN и EKU. LB проверяет CA и SAN `api.internal`; API sidecars требуют клиентский сертификат и allowlist fingerprint LB. HTTP до Uvicorn ограничен loopback.
OpenBao работает в server mode с persistent file storage. Четыре cert identities: `bao-api-1`, `bao-api-2`, `bao-worker`, `bao-dispatcher`. API имеют общую scoped policy, worker и dispatcher — отдельные. Token TTL 900 s, max TTL 3600 s. При старте читается только собственный KV path; credentials записываются в tmpfs, token не сохраняется. Новый запуск при sealed OpenBao завершается ошибкой.
## Доказательства критериев ## Доказательства критериев
Все файлы доказательств находятся в `evidence/`, собственные тесты — в `student-tests/`. Публичные тесты и обязательный контракт не ослаблялись.
| Критерий README | Команда/сценарий | Наблюдаемый результат | Файл доказательства | | Критерий README | Команда/сценарий | Наблюдаемый результат | Файл доказательства |
| --- | --- | --- | --- | | --- | --- | --- | --- |
| Публичный smoke | make test | TODO | TODO | | Публичный HTTPS smoke | make test с BASE_URL и CA_FILE | PASS | grade3-smoke-final.txt |
| Остальные пункты уровня 3 | TODO | TODO | TODO | | Внешний TLS | make test-security; test_public_tls.py | TLS 1.3, неверные CA и hostname отклонены | grade3-public-security.txt; grade3-public-tls-negative.txt |
| Все пункты уровня 4, если заявлен | TODO | TODO | TODO | | Argon2id | benchmark_argon2.py; проверка хешей | m=32768, t=2, p=1, уникальные salt | grade3-argon2-container.txt; grade3-argon2-runtime.txt |
| Выбранный трек 5, если заявлен | TODO | TODO | TODO | | mTLS обеих API | test_mtls.py | LB 200; без cert и чужой CA 400; запрещённая identity 403 | grade3-mtls-security.txt |
| Нет обхода API | audit_network.py | HTTP 8080 недоступен по сети | grade3-network-audit-final.txt |
TODO: добавить отдельную строку для каждого заявленного критерия. PASS без команды и наблюдения не является доказательством. Проверка инфраструктурного hook требует подтверждения, какие реальные процессы/хранилища перезапущены. | PostgreSQL TLS и ACL | test_data_security.py | TLS 1.3; plaintext, неверный CA/hostname и лишние права запрещены | grade3-data-security.txt; grade3-postgres-roles.txt |
| Redis TLS и ACL | test_data_security.py | Сессии и Lua counters работают; чужие keys и CONFIG запрещены | grade3-data-security.txt |
| MinIO TLS и scoped access | test_minio_security.py | Разрешённые операции проходят, лишние запрещены | grade3-minio-security.txt |
| RabbitMQ TLS и ACL | test_rabbitmq_security.py | Раздельные producer/consumer permissions | grade3-rabbitmq-security.txt |
| Collector TLS/auth | test_collector_security.py | Авторизованный ingest проходит, anonymous отклонён | grade3-collector-security.txt |
| Loki/Tempo TLS/ACL | test_telemetry_backends.py; test_telemetry_queries.py | Ingest и queries работают с нужными identities | grade3-telemetry-backends.txt; grade3-telemetry-queries.txt |
| Prometheus TLS | test_prometheus_security.py | Три HTTPS targets UP | grade3-prometheus-security.txt |
| Grafana TLS/data sources | test_grafana_security.py | Prometheus/Loki health и Tempo TraceQL query проходят | grade3-grafana-security.txt |
| OpenBao scoped policies | test_openbao_security.py | Own read разрешён; foreign path/write запрещены | grade3-openbao-security.txt |
| OpenBao TLS | test_openbao_tls.py | Неверные CA/hostname и отсутствие identity отклонены | grade3-openbao-tls.txt |
| OpenBao persistence | Пересоздание, unseal, повторная авторизация | Cluster ID и данные сохранены | grade3-openbao-persistence.txt; grade3-openbao-recovery.txt |
| OpenBao fail-closed | Новый API при sealed OpenBao | Запуск отклонён | grade3-openbao-fail-closed.txt |
| Нет root token в app | Проверка окружения, tmpfs, policies | Только scoped credentials | grade3-openbao-integration.txt |
| Hardening | test_container_hardening.py | 22 контейнера проверены | grade3-hardening-runtime.txt |
| Порты | audit_network.py; Docker inspect | Ingress 8443, локальные 3000/9001 | grade3-published-ports.txt; grade3-network-audit-final.txt |
| Секреты | audit_secrets.py | 253 файла, 44 шаблона, 0 совпадений на момент проверки | grade3-final-secret-audit.txt |
| Образы | audit_images.py | 5 образов, 13 слоёв, 11237 файлов на чистом стенде, 0 совпадений | grade3-clean-image-audit.txt; grade3-image-content-audit.txt |
| Зависимости | pip-audit | Известные уязвимости не обнаружены на момент проверки | grade3-dependency-audit.txt |
| Username limit | test_rate_limit.py | 5 попыток, затем 429/Retry-After; TTL восстанавливает доступ | grade3-rate-limit-username.txt |
| IP limit | test_rate_limit_ip.py | 60 попыток, затем 429; spoofed X-Forwarded-For не обходит лимит | grade3-rate-limit-ip.txt |
| Upload limits | test_upload_limits.py | 413 при превышении лимита, 415 для неподдерживаемого типа | grade3-upload-limits.txt |
| Чужие чаты и вложения | make test | Доступ запрещён; X-User-Id не меняет identity | grade3-smoke-final.txt |
| Logout | make test | Старый token отклонён | grade3-smoke-final.txt |
| Session expiry | test_session_expiry.py | До TTL 200, после 401 | grade3-session-expiry.txt |
| PKI bootstrap | generate-certs.sh | Проверены CA chain, SAN, EKU | grade3-certificates.txt |
| Persistence | make test-persistence | Данные и существующая сессия сохранены | grade3-persistence.txt |
| Failover API-1 | make test-failover | 91 успешная запись; recovery 2.157 s | grade3-failover-first.txt |
| Failover API-2 | make test-failover | 93 успешные записи; recovery 2.12 s | grade3-failover-second.txt |
## Эксперименты и отказы ## Эксперименты и отказы
TODO: гипотеза, hardware/лимиты, версии, объём данных, профиль нагрузки, concurrency/arrival rate, длительность/прогрев, повторы, успешные RPS, ошибки, p50/p95/p99, CPU/RAM. Сохранить raw summary без tokens и объяснить ограничения измерения. ### Argon2id
Гипотеза: параметры выше минимума OWASP (19456 KiB, t=2, p=1) обеспечат приемлемую стоимость проверки пароля. WSL2: 20 логических CPU, около 11 GiB RAM. API ограничен 1 CPU и 512 MiB RAM. Методика: прогрев, 10 измерений на конфигурацию, медиана в API-контейнере.
| Memory, KiB | Time cost | Parallelism | Hash, ms | Verify, ms |
| --- | --- | --- | --- | --- |
| 19456 | 2 | 1 | 51.58 | 51.69 |
| 32768 | 2 | 1 | 94.14 | 98.93 |
| 65536 | 3 | 1 | 267.54 | 273.54 |
| 65536 | 3 | 4 | 343.41 | 302.98 |
Выбрано 32768 KiB, t=2, p=1, salt 16 bytes, hash 32 bytes. Медиана около 100 ms. Это последовательный benchmark, не нагрузочный тест параллельных login-запросов.
### Rate limiting и сессии
Общие Redis counters: 5 запросов на username и 60 на IP за 60 секунд, атомарное обновление Lua. Проверены обе реплики, HTTP 429 и Retry-After, восстановление после TTL. Сессии имеют TTL 3600 s, чтение не продлевает TTL, logout удаляет токен. API ограничивает upload 10 MiB и 40 млн пикселей, Nginx — 12 MiB.
### Persistence и failover
```bash
make test-persistence ACTION_SCRIPT=scripts/restart.sh BASE_URL=https://localhost:8443 CA_FILE="$PWD/certs/ca/ca.crt"
make test-failover ACTION_SCRIPT=scripts/stop-one.sh BASE_URL=https://localhost:8443 CA_FILE="$PWD/certs/ca/ca.crt"
```
Persistence: перезапущены API, worker, dispatcher, Nginx, TLS proxies, PostgreSQL, Redis, RabbitMQ, MinIO, OpenBao и наблюдаемость. Volumes сохранены. OpenBao распечатан без повторного init/seed. `migrate` и `s3-init` повторно завершились с кодом 0. Подтверждённые данные и существующая сессия сохранены; отдельное доказательство сохранности вложений в этом тесте не заявляется. Доказательства: `grade3-persistence-before.txt`, `grade3-persistence-after.txt`, `grade3-persistence.txt`.
Failover: публичный тест выбирает реплику по X-Instance-Id, hook останавливает её и TLS proxy. После первого теста реплика восстановлена, проверены обе реплики, затем проведён второй тест.
| Воздействие | Что ожидаем | Что наблюдали | Время восстановления / потеря данных | | Воздействие | Что ожидаем | Что наблюдали | Время восстановления / потеря данных |
| --- | --- | --- | --- | | --- | --- | --- | --- |
| TODO | TODO | TODO | TODO | | Перезапуск стенда | Сохранность данных и сессии | PASS | 72.389 s — длительность всего теста; потерь не обнаружено |
| Остановка API-1 | Работа через API-2 | 91 успешная запись, 2 неудачные попытки | 2.157 s; подтверждённые записи сохранены |
| Остановка API-2 | Работа через API-1 | 93 успешные записи, 2 неудачные попытки | 2.12 s; подтверждённые записи сохранены |
| Sealed OpenBao | Новый API не стартует | PASS, fail-closed | Восстановление после unseal |
В обоих failover-тестах до отказа наблюдались две реплики; тестовый цикл записи длился 15 s. Дублирования и потери подтверждённых сообщений не обнаружено. Неудачные попытки не равнозначны потере данных. После восстановления HTTPS smoke прошёл. Raw evidence: `grade3-failover-first.txt`, `grade3-failover-second.txt`, сопутствующие файлы состояния контейнеров и health probes. Полноценный нагрузочный эксперимент с RPS, p95/p99 и исследовательским сравнением не заявляется.
### Hardening и scan triage
Проверено 22 контейнера, включая два одноразовых. Приложения работают с UID 10001, без capabilities, с no-new-privileges, CPU/RAM limits и pids_limit 256. Нет privileged mode, host network и Docker socket mounts. Сетевые порты проверены probes.
`pip-audit` не обнаружил известных уязвимостей Python-зависимостей. Проверка файловой системы пяти образов не выявила секретных путей. Первичный аудит обнаружил MinIO Access Key ID в evidence и логах s3-init; совпадений с проверяемыми секретными ключами и паролями не выявлено. Вывод идентификаторов устранён, evidence обезличен, s3-init пересоздан. Повторный аудит: 0 совпадений. Дополнительно проверены конфигурации, история и содержимое слоёв пяти актуальных прикладных образов. Полный CVE-скан сторонних образов не проводился.
### Жизненный цикл credentials
Оператор создаёт CA и leaf certificates; CA private key не передаётся приложениям. При истечении leaf требуется перевыпуск и обновление trust binding; для LB — fingerprint allowlist, для OpenBao — cert identity. Статические DB/Redis/S3/broker/telemetry credentials не имеют автоматического TTL; смена требует согласованного обновления зависимости, KV и потребителя. При старте приложение повторяет cert auth. После рестарта OpenBao выполняется unseal. Автоматический CA rollover, ротация и эксперимент с отзывом не заявляются.
### Дополнительный аудит сохранённой телеметрии
`student-tests/audit_telemetry.py` выполняет запросы через Grafana с проверкой CA и hostname. Проверены 46 известных шаблонов credentials и маркеры приватных ключей.
| Источник | Объём проверки | Результат | Evidence |
| --- | --- | --- | --- |
| Loki | 3377 записей, 3 service_name, окно 7 суток | 0 совпадений | grade3-loki-secret-audit-final.txt |
| Tempo | 3259 найденных trace ID за 10 минут, 100 тел трасс | 0 совпадений | grade3-tempo-secret-audit.txt |
| Prometheus | 4121 набор labels за 7 суток | 0 совпадений | grade3-prometheus-secret-audit.txt |
Первоначальный запрос Tempo завершился HTTP 500; ошибка сохранена в `grade3-telemetry-audit-initial-failure.txt`. Повторная проверка с ограниченным окном и выборкой завершилась успешно. Это не исчерпывающий аудит raw storage, всех трасс, потоков без service_name или exemplars.
### Расширенный аудит образов
`student-tests/audit_images.py` проверяет конфигурацию и историю образов, имена и содержимое файлов в экспортированных слоях. На основном стенде: 5 образов, 13 уникальных слоёв, 10819 файлов, 44 шаблона, 0 совпадений (`grade3-image-content-audit.txt`). На чистом стенде после исправления зависимостей: 5 образов, 13 слоёв, 11237 файлов, 41 шаблон, 0 совпадений (`grade3-clean-image-audit.txt`). Проверяются актуальные собранные образы, а не все исторические образы Docker-хоста. Повторный `pip-audit` не выявил известных уязвимостей (`grade3-clean-dependency-audit.txt`).
### Воспроизводимость из чистого clone
Проверка выполнена в отдельном Git-клоне снимка подготовленных изменений, проект Compose `lab7verify`, независимые volumes, CA, секреты и операторский файл. Порты 18443, 13000 и 19001 опубликованы на loopback. Основной стенд оставался доступным. Сборка пяти прикладных образов выполнена с использованием доступного Docker cache.
Обнаружены и устранены проблемы: системный Python 3.10 несовместим с выбранными зависимостями (использован Python 3.13); добавлен `openapi-spec-validator==0.7.2` в requirements.txt; healthcheck RabbitMQ изменён с timeout 15s/start_period 40s на 30s/120s, без ослабления check_running. Первый общий запуск потребовал повторной команды. Холодный запуск RabbitMQ с отдельным пустым томом после исправления: 67.392 s загрузка брокера, 87.131 s до завершения команды ожидания; обе durable queues созданы, TLS включён. Затем восстановлен исходный том проверочного стенда.
| Проверка | Результат | Evidence |
| --- | --- | --- |
| Изоляция, bootstrap и сборка | PASS | grade3-clean-isolation.txt; grade3-clean-bootstrap.txt; grade3-clean-build.txt |
| OpenBao init/unseal/config/seed | PASS | grade3-clean-openbao-init.txt; grade3-clean-openbao-unseal.txt; grade3-clean-openbao-config.txt; grade3-clean-openbao-seed.txt |
| Первый запуск и восстановление | Первоначальная ошибка RabbitMQ, повторный запуск PASS | grade3-clean-startup-initial.txt; grade3-clean-startup-recovery.txt |
| Холодный запуск RabbitMQ | PASS | grade3-clean-rabbitmq-cold-start.txt; grade3-clean-rabbitmq-cold-start-details.txt |
| Итоговое состояние | 20 running, migrate и s3-init exit 0 | grade3-clean-final-containers.txt |
| Smoke и внешний TLS | PASS | grade3-clean-final-smoke.txt; grade3-clean-final-security.txt |
| Независимые CA | Взаимное недоверие подтверждено | grade3-clean-ca-isolation.txt |
| Сеть и hardening | PASS, 22 контейнера | grade3-clean-network-audit.txt; grade3-clean-hardening.txt |
| Секреты | 0 совпадений, 41 шаблон | grade3-clean-secret-audit.txt |
Проверочный стенд остановлен без удаления volumes. Доказательства перенесены в основной репозиторий. Финальные make check, make validate, make test, make test-security и аудит 253 файлов основного проекта (44 шаблона, 0 совпадений) прошли успешно. Основной стенд не пересоздавался ради обновления отчёта; новые образы и исправленный healthcheck проверены на независимом стенде.
## Ограничения и следующие шаги ## Ограничения и следующие шаги
TODO: какие отказы выдерживаются и какие нет; что не реализовано; где учебное упрощение; какое улучшение подтверждено, а какое пока гипотеза. - Один Docker-хост, нет HA-кластеров хранилищ и балансировщика; проверен отказ каждой API отдельно, не одновременный отказ обеих.
- OpenBao требует операторского unseal. Уже запущенные приложения могут работать с ранее полученными статическими credentials при sealed OpenBao.
- Компрометация хоста/Docker daemon вне модели защиты. Bootstrap credentials остаются в закрытом локальном каталоге; unseal shares хранятся совместно в учебном операторском файле.
- Redis хранит рабочие session tokens. Rate limit не исключает распределённый login DoS и временную блокировку username. Параллельная нагрузка Argon2id отдельно не измерялась.
- PostgreSQL local trust ограничен Unix socket внутри контейнера; Prometheus Basic Auth не предоставляет endpoint RBAC.
- Расширенное mTLS RabbitMQ/Collector, автоматическая ротация и полный image scan не реализованы в заявленном объёме.
- Аудит секретов ограничен известными локальными значениями и шаблонами приватных ключей; проверка образов охватывает слои пяти актуальных прикладных образов, но не все сторонние и ранее собранные образы.
- Чистое развёртывание проверено в независимом клоне. Первый общий запуск потребовал повторной команды из-за RabbitMQ; после изменения healthcheck отдельно проверен холодный запуск брокера с пустым томом. Полный запуск всех сервисов с нуля после последнего изменения healthcheck не повторялся.
## Итог
Реализован защищённый вариант мессенджера lab6 с HTTPS, обязательным mTLS LB → API, TLS инфраструктурных связей, Argon2id, rate limiting, scoped identities и OpenBao. Публичный HTTPS smoke, отрицательные проверки безопасности, persistence и последовательный failover обеих API-реплик успешно пройдены. Дополнительно выполнены чистое развёртывание, аудит сохранённой телеметрии и слоёв прикладных образов. Задания на оценки 4 и 5 не выполнялись. Работа представляется на оценку 3.
+149
View File
@@ -0,0 +1,149 @@
# A generic, single database configuration.
[alembic]
# path to migration scripts.
# this is typically a path given in POSIX (e.g. forward slashes)
# format, relative to the token %(here)s which refers to the location of this
# ini file
script_location = %(here)s/migrations
# template used to generate migration file names; The default value is %%(rev)s_%%(slug)s
# Uncomment the line below if you want the files to be prepended with date and time
# see https://alembic.sqlalchemy.org/en/latest/tutorial.html#editing-the-ini-file
# for all available tokens
# file_template = %%(year)d_%%(month).2d_%%(day).2d_%%(hour).2d%%(minute).2d-%%(rev)s_%%(slug)s
# Or organize into date-based subdirectories (requires recursive_version_locations = true)
# file_template = %%(year)d/%%(month).2d/%%(day).2d_%%(hour).2d%%(minute).2d_%%(second).2d_%%(rev)s_%%(slug)s
# sys.path path, will be prepended to sys.path if present.
# defaults to the current working directory. for multiple paths, the path separator
# is defined by "path_separator" below.
prepend_sys_path = .
# timezone to use when rendering the date within the migration file
# as well as the filename.
# If specified, requires the tzdata library which can be installed by adding
# `alembic[tz]` to the pip requirements.
# string value is passed to ZoneInfo()
# leave blank for localtime
# timezone =
# max length of characters to apply to the "slug" field
# truncate_slug_length = 40
# set to 'true' to run the environment during
# the 'revision' command, regardless of autogenerate
# revision_environment = false
# set to 'true' to allow .pyc and .pyo files without
# a source .py file to be detected as revisions in the
# versions/ directory
# sourceless = false
# version location specification; This defaults
# to <script_location>/versions. When using multiple version
# directories, initial revisions must be specified with --version-path.
# The path separator used here should be the separator specified by "path_separator"
# below.
# version_locations = %(here)s/bar:%(here)s/bat:%(here)s/alembic/versions
# path_separator; This indicates what character is used to split lists of file
# paths, including version_locations and prepend_sys_path within configparser
# files such as alembic.ini.
# The default rendered in new alembic.ini files is "os", which uses os.pathsep
# to provide os-dependent path splitting.
#
# Note that in order to support legacy alembic.ini files, this default does NOT
# take place if path_separator is not present in alembic.ini. If this
# option is omitted entirely, fallback logic is as follows:
#
# 1. Parsing of the version_locations option falls back to using the legacy
# "version_path_separator" key, which if absent then falls back to the legacy
# behavior of splitting on spaces and/or commas.
# 2. Parsing of the prepend_sys_path option falls back to the legacy
# behavior of splitting on spaces, commas, or colons.
#
# Valid values for path_separator are:
#
# path_separator = :
# path_separator = ;
# path_separator = space
# path_separator = newline
#
# Use os.pathsep. Default configuration used for new projects.
path_separator = os
# set to 'true' to search source files recursively
# in each "version_locations" directory
# new in Alembic version 1.10
# recursive_version_locations = false
# the output encoding used when revision files
# are written from script.py.mako
# output_encoding = utf-8
# database URL. This is consumed by the user-maintained env.py script only.
# other means of configuring database URLs may be customized within the env.py
# file.
sqlalchemy.url =
[post_write_hooks]
# post_write_hooks defines scripts or Python functions that are run
# on newly generated revision scripts. See the documentation for further
# detail and examples
# format using "black" - use the console_scripts runner, against the "black" entrypoint
# hooks = black
# black.type = console_scripts
# black.entrypoint = black
# black.options = -l 79 REVISION_SCRIPT_FILENAME
# lint with attempts to fix using "ruff" - use the module runner, against the "ruff" module
# hooks = ruff
# ruff.type = module
# ruff.module = ruff
# ruff.options = check --fix REVISION_SCRIPT_FILENAME
# Alternatively, use the exec runner to execute a binary found on your PATH
# hooks = ruff
# ruff.type = exec
# ruff.executable = ruff
# ruff.options = check --fix REVISION_SCRIPT_FILENAME
# Logging configuration. This is also consumed by the user-maintained
# env.py script only.
[loggers]
keys = root,sqlalchemy,alembic
[handlers]
keys = console
[formatters]
keys = generic
[logger_root]
level = WARNING
handlers = console
qualname =
[logger_sqlalchemy]
level = WARNING
handlers =
qualname = sqlalchemy.engine
[logger_alembic]
level = INFO
handlers =
qualname = alembic
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic
[formatter_generic]
format = %(levelname)-5.5s [%(name)s] %(message)s
datefmt = %H:%M:%S
+646
View File
@@ -0,0 +1,646 @@
x-api: &api
build:
context: .
dockerfile: Dockerfile
environment: &api-environment
APP_ENV: lab
OTEL_EXPORTER_OTLP_ENDPOINT: https://otel-collector:4318
OTEL_USERNAME: messenger_api
TELEMETRY_ENABLED: "${TELEMETRY_ENABLED:-1}"
TELEMETRY_TRACE_SAMPLE_RATIO: "${TELEMETRY_TRACE_SAMPLE_RATIO:-1.0}"
TELEMETRY_BENCHMARK_ENABLED: "${TELEMETRY_BENCHMARK_ENABLED:-0}"
SESSION_TTL_SECONDS: 3600
DATABASE_URL_FILE: /run/app-secrets/database_url
CACHE_URL_FILE: /run/app-secrets/cache_url
S3_ENDPOINT: https://s3:9000
S3_REGION: us-east-1
S3_BUCKET: messenger-attachments
S3_ACCESS_KEY_ID_FILE: /run/app-secrets/s3_access_key_id
S3_SECRET_ACCESS_KEY_FILE: /run/app-secrets/s3_secret_access_key
MAX_UPLOAD_BYTES: 10485760
MAX_IMAGE_PIXELS: 40000000
RABBITMQ_HOST: rabbitmq
RABBITMQ_PASSWORD_FILE: /run/app-secrets/rabbitmq_password
volumes:
- ./certs/ca/ca.crt:/run/ca/ca.crt:ro
depends_on:
migrate:
condition: service_completed_successfully
redis:
condition: service_healthy
s3-init:
condition: service_completed_successfully
entrypoint: ["python", "/app/scripts/bao-entrypoint.py"]
tmpfs:
- /run/app-secrets:rw,noexec,nosuid,nodev,size=1m,mode=0700,uid=10001,gid=10001
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
restart: unless-stopped
stop_grace_period: 15s
mem_limit: 512m
cpus: 1.0
pids_limit: 256
services:
openbao:
image: openbao/openbao:2.3.2
user: "100:1000"
entrypoint: ["bao"]
command: ["server", "-config=/config/openbao.hcl"]
environment:
BAO_ADDR: https://openbao:8200
BAO_CACERT: /run/ca/ca.crt
volumes:
- ./infra/openbao/openbao.hcl:/config/openbao.hcl:ro
- ./certs/runtime/openbao:/run/tls:ro
- ./certs/ca/ca.crt:/run/ca/ca.crt:ro
- ./openbao-local/data:/openbao/data
cap_drop:
- ALL
restart: unless-stopped
mem_limit: 256m
cpus: 0.5
pids_limit: 256
security_opt:
- no-new-privileges:true
postgres:
image: postgres:17.6
command:
- postgres
- -c
- ssl=on
- -c
- ssl_cert_file=/run/tls/tls.crt
- -c
- ssl_key_file=/run/tls/tls.key
- -c
- hba_file=/etc/postgresql/pg_hba.conf
- -c
- ssl_min_protocol_version=TLSv1.2
- -c
- password_encryption=scram-sha-256
environment:
POSTGRES_DB: messenger
POSTGRES_USER: lab2
POSTGRES_PASSWORD_FILE: /run/secrets/postgres_password
secrets:
- postgres_password
- db_migrate_password
- db_api_password
- db_worker_password
- db_dispatcher_password
volumes:
- postgres_data:/var/lib/postgresql/data
- ./certs/runtime/postgres:/run/tls:ro
- ./infra/postgres/pg_hba.conf:/etc/postgresql/pg_hba.conf:ro
- ./infra/postgres/init-roles.sh:/docker-entrypoint-initdb.d/10-roles.sh:ro
- ./infra/postgres/grants.sql:/config/grants.sql:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -h postgres -U lab2 -d messenger"]
interval: 5s
timeout: 3s
retries: 10
restart: unless-stopped
cpus: 1.0
mem_limit: 768m
pids_limit: 256
security_opt:
- no-new-privileges:true
redis:
image: redis:8.2.2
command: ["redis-server", "/config/redis.conf"]
secrets:
- redis_acl
- redis_api_password
volumes:
- redis_data:/data
- ./infra/redis/redis.conf:/config/redis.conf:ro
- ./certs/runtime/redis:/run/tls:ro
- ./certs/ca/ca.crt:/run/ca/ca.crt:ro
healthcheck:
test:
- CMD-SHELL
- 'REDISCLI_AUTH="$$(cat /run/secrets/redis_api_password)" redis-cli --tls --cacert /run/ca/ca.crt --sni redis -h redis --user messenger_api ping | grep -qx PONG'
interval: 5s
timeout: 3s
retries: 10
restart: unless-stopped
cpus: 0.5
mem_limit: 256m
pids_limit: 256
security_opt:
- no-new-privileges:true
s3:
image: dappros/minio:RELEASE.2025-09-07T16-13-09Z
command: server /data --console-address ":9001" --certs-dir /run/minio-certs
environment:
MINIO_ROOT_USER_FILE: /run/secrets/minio_root_user
MINIO_ROOT_PASSWORD_FILE: /run/secrets/minio_root_password
secrets:
- minio_root_user
- minio_root_password
volumes:
- s3_data:/data
- ./certs/services/s3/tls.crt:/run/minio-certs/public.crt:ro
- ./certs/services/s3/tls.key:/run/minio-certs/private.key:ro
- ./certs/ca/ca.crt:/run/minio-certs/CAs/ca.crt:ro
ports:
- "127.0.0.1:9001:9001"
healthcheck:
test:
- CMD-SHELL
- 'curl --fail --silent --show-error --cacert /run/minio-certs/CAs/ca.crt https://s3:9000/minio/health/ready >/dev/null'
interval: 10s
timeout: 5s
retries: 10
start_period: 15s
restart: unless-stopped
cpus: 1.0
mem_limit: 512m
pids_limit: 256
security_opt:
- no-new-privileges:true
s3-init:
image: dappros/minio:RELEASE.2025-09-07T16-13-09Z
entrypoint: [ "/bin/sh", "/config/init.sh" ]
volumes:
- ./infra/minio/init.sh:/config/init.sh:ro
- ./infra/minio/api-policy.json:/config/api-policy.json:ro
- ./infra/minio/worker-policy.json:/config/worker-policy.json:ro
- ./certs/ca/ca.crt:/run/ca/ca.crt:ro
secrets:
- minio_root_user
- minio_root_password
- s3_api_access_key_id
- s3_api_secret_access_key
- s3_worker_access_key_id
- s3_worker_secret_access_key
depends_on:
s3:
condition: service_healthy
restart: "no"
cpus: 0.5
mem_limit: 256m
pids_limit: 256
security_opt:
- no-new-privileges:true
migrate:
build:
context: .
dockerfile: Dockerfile
command: ["alembic", "upgrade", "head"]
volumes:
- ./certs/ca/ca.crt:/run/ca/ca.crt:ro
secrets:
- source: database_url_migrate
target: database_url
depends_on:
postgres:
condition: service_healthy
restart: "no"
cpus: 1.0
mem_limit: 512m
pids_limit: 256
security_opt:
- no-new-privileges:true
api-1:
<<: *api
environment:
<<: *api-environment
BAO_IDENTITY: bao-api-1
BAO_ROLE: api
INSTANCE_ID: api-1
volumes:
- ./certs/ca/ca.crt:/run/ca/ca.crt:ro
- ./certs/runtime/bao-api-1:/run/bao-client:ro
command: ["uvicorn", "src.main:app", "--host", "127.0.0.1", "--port", "8080", "--proxy-headers", "--forwarded-allow-ips", "127.0.0.1"]
api-2:
<<: *api
environment:
<<: *api-environment
BAO_IDENTITY: bao-api-2
BAO_ROLE: api
INSTANCE_ID: api-2
volumes:
- ./certs/ca/ca.crt:/run/ca/ca.crt:ro
- ./certs/runtime/bao-api-2:/run/bao-client:ro
command: ["uvicorn", "src.main:app", "--host", "127.0.0.1", "--port", "8080", "--proxy-headers", "--forwarded-allow-ips", "127.0.0.1"]
api-1-proxy:
image: nginx:1.29-alpine
network_mode: "service:api-1"
entrypoint: ["nginx", "-g", "daemon off;"]
volumes:
- ./certs/generated/api-proxy.conf:/etc/nginx/nginx.conf:ro
- ./certs/services/api-1:/run/tls:ro
- ./certs/ca/ca.crt:/run/ca/ca.crt:ro
depends_on:
api-1:
condition: service_healthy
restart: true
restart: unless-stopped
cpus: 0.25
mem_limit: 128m
pids_limit: 256
security_opt:
- no-new-privileges:true
api-2-proxy:
image: nginx:1.29-alpine
network_mode: "service:api-2"
entrypoint: ["nginx", "-g", "daemon off;"]
volumes:
- ./certs/generated/api-proxy.conf:/etc/nginx/nginx.conf:ro
- ./certs/services/api-2:/run/tls:ro
- ./certs/ca/ca.crt:/run/ca/ca.crt:ro
depends_on:
api-2:
condition: service_healthy
restart: true
restart: unless-stopped
cpus: 0.25
mem_limit: 128m
pids_limit: 256
security_opt:
- no-new-privileges:true
nginx:
image: nginx:1.29-alpine
ports:
- "8443:8443"
volumes:
- ./infra/nginx.conf:/etc/nginx/nginx.conf:ro
- ./certs/services/nginx:/etc/nginx/tls:ro
- ./certs/services/lb-client:/etc/nginx/client:ro
- ./certs/ca/ca.crt:/etc/nginx/ca/ca.crt:ro
depends_on:
- api-1-proxy
- api-2-proxy
restart: unless-stopped
cpus: 0.5
mem_limit: 256m
pids_limit: 256
security_opt:
- no-new-privileges:true
rabbitmq:
image: rabbitmq:4.1.4-management-alpine
hostname: rabbitmq
extra_hosts:
- "rabbitmq:127.0.0.1"
environment:
ERL_EPMD_ADDRESS: 127.0.0.1
RABBITMQ_CONFIG_FILE: /etc/rabbitmq/rabbitmq
secrets:
- rabbitmq_definitions
volumes:
- rabbitmq_data:/var/lib/rabbitmq
- ./infra/rabbitmq/tls.conf:/etc/rabbitmq/rabbitmq.conf:ro
- ./infra/rabbitmq/enabled_plugins:/etc/rabbitmq/enabled_plugins:ro
- ./certs/runtime/rabbitmq:/run/tls:ro
- ./certs/ca/ca.crt:/run/ca/ca.crt:ro
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "-q", "check_running"]
interval: 10s
timeout: 30s
retries: 10
start_period: 120s
restart: unless-stopped
mem_limit: 512m
cpus: 0.5
pids_limit: 256
security_opt:
- no-new-privileges:true
dispatcher:
<<: *api
environment:
<<: *api-environment
BAO_IDENTITY: bao-dispatcher
BAO_ROLE: dispatcher
RABBITMQ_USERNAME: messenger_producer
OTEL_USERNAME: messenger_dispatcher
command: [ "python", "-m", "src.dispatcher" ]
depends_on:
migrate:
condition: service_completed_successfully
rabbitmq:
condition: service_healthy
s3-init:
condition: service_completed_successfully
healthcheck:
disable: true
volumes:
- ./certs/ca/ca.crt:/run/ca/ca.crt:ro
- ./certs/runtime/bao-dispatcher:/run/bao-client:ro
worker:
<<: *api
environment:
<<: *api-environment
BAO_IDENTITY: bao-worker
BAO_ROLE: worker
RABBITMQ_USERNAME: messenger_consumer
OTEL_USERNAME: messenger_worker
command: [ "python", "-m", "src.worker" ]
depends_on:
migrate:
condition: service_completed_successfully
rabbitmq:
condition: service_healthy
s3-init:
condition: service_completed_successfully
healthcheck:
disable: true
volumes:
- ./certs/ca/ca.crt:/run/ca/ca.crt:ro
- ./certs/runtime/bao-worker:/run/bao-client:ro
otel-collector:
image: otel/opentelemetry-collector-contrib:0.120.0
command: ["--config=/etc/otelcol/config.yaml"]
volumes:
- ./infra/otel/config.yaml:/etc/otelcol/config.yaml:ro
- ./certs/runtime/otel-collector:/run/tls:ro
- ./certs/ca/ca.crt:/run/ca/ca.crt:ro
secrets:
- otel_htpasswd
- otel_backend_authorization
depends_on:
- loki-proxy
- tempo-proxy
restart: unless-stopped
mem_limit: 256m
cpus: 0.5
pids_limit: 256
security_opt:
- no-new-privileges:true
otel-collector-proxy:
image: nginx:1.29-alpine
network_mode: "service:otel-collector"
entrypoint: ["nginx", "-g", "daemon off;"]
volumes:
- ./infra/telemetry-proxy/otel-collector.conf:/etc/nginx/nginx.conf:ro
- ./certs/services/otel-collector:/run/tls:ro
secrets:
- prometheus_scrape_htpasswd
depends_on:
otel-collector:
condition: service_started
restart: true
restart: unless-stopped
mem_limit: 128m
cpus: 0.25
pids_limit: 256
security_opt:
- no-new-privileges:true
prometheus:
image: prom/prometheus:v3.2.1
command:
- --config.file=/etc/prometheus/prometheus.yml
- --web.config.file=/run/secrets/prometheus_web
- --storage.tsdb.path=/prometheus
- --storage.tsdb.retention.time=7d
- --storage.tsdb.retention.size=1GB
volumes:
- ./infra/prometheus/prometheus.yaml:/etc/prometheus/prometheus.yml:ro
- ./infra/prometheus/rules.yaml:/etc/prometheus/rules.yml:ro
- ./certs/runtime/prometheus:/run/tls:ro
- ./certs/ca/ca.crt:/run/ca/ca.crt:ro
- prometheus_data:/prometheus
secrets:
- prometheus_web
- prometheus_scrape_password
depends_on:
- otel-collector-proxy
restart: unless-stopped
mem_limit: 512m
cpus: 0.5
pids_limit: 256
security_opt:
- no-new-privileges:true
loki-proxy:
image: nginx:1.29-alpine
network_mode: "service:loki"
entrypoint: ["nginx", "-g", "daemon off;"]
volumes:
- ./infra/telemetry-proxy/loki.conf:/etc/nginx/nginx.conf:ro
- ./certs/services/loki:/run/tls:ro
secrets:
- otel_backend_htpasswd
- grafana_datasource_htpasswd
depends_on:
loki:
condition: service_started
restart: true
restart: unless-stopped
cpus: 0.25
mem_limit: 128m
pids_limit: 256
security_opt:
- no-new-privileges:true
loki:
image: grafana/loki:3.4.2
command: ["-config.file=/etc/loki/config.yaml"]
volumes:
- ./infra/loki/loki.yaml:/etc/loki/config.yaml:ro
- loki_data:/loki
restart: unless-stopped
mem_limit: 512m
cpus: 0.5
pids_limit: 256
security_opt:
- no-new-privileges:true
tempo-proxy:
image: nginx:1.29-alpine
network_mode: "service:tempo"
entrypoint: ["nginx", "-g", "daemon off;"]
volumes:
- ./infra/telemetry-proxy/tempo.conf:/etc/nginx/nginx.conf:ro
- ./certs/services/tempo:/run/tls:ro
secrets:
- otel_backend_htpasswd
- grafana_datasource_htpasswd
depends_on:
tempo:
condition: service_started
restart: true
restart: unless-stopped
cpus: 0.25
mem_limit: 128m
pids_limit: 256
security_opt:
- no-new-privileges:true
tempo:
image: grafana/tempo:2.7.1
command: ["-config.file=/etc/tempo/config.yaml"]
volumes:
- ./infra/tempo/tempo.yaml:/etc/tempo/config.yaml:ro
- tempo_data:/var/tempo
restart: unless-stopped
mem_limit: 512m
cpus: 0.5
pids_limit: 256
security_opt:
- no-new-privileges:true
grafana:
pids_limit: 256
security_opt:
- no-new-privileges:true
image: grafana/grafana:11.5.2
environment:
GF_SERVER_PROTOCOL: https
GF_SERVER_CERT_FILE: /run/tls/tls.crt
GF_SERVER_CERT_KEY: /run/tls/tls.key
GF_SERVER_ROOT_URL: https://localhost:3000/
GF_SECURITY_COOKIE_SECURE: "true"
GF_AUTH_ANONYMOUS_ENABLED: "false"
GF_SECURITY_ADMIN_USER: admin
GF_SECURITY_ADMIN_PASSWORD: ${GRAFANA_ADMIN_PASSWORD:?Set GRAFANA_ADMIN_PASSWORD in .env}
GF_USERS_ALLOW_SIGN_UP: "false"
GF_ANALYTICS_REPORTING_ENABLED: "false"
volumes:
- ./certs/runtime/grafana:/run/tls:ro
- grafana_data:/var/lib/grafana
- ./infra/grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards:ro
- ./secrets/grafana_datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml:ro
- ./infra/grafana/dashboards:/var/lib/grafana/dashboards:ro
ports:
- "127.0.0.1:3000:3000"
depends_on:
- prometheus
- loki
- tempo
restart: unless-stopped
mem_limit: 384m
cpus: 0.5
secrets:
prometheus_scrape_password:
file: ./secrets/prometheus_scrape_password
prometheus_web:
file: ./secrets/prometheus_web.yaml
otel_backend_authorization:
file: ./secrets/otel_backend_authorization
prometheus_scrape_htpasswd:
file: ./secrets/prometheus_scrape_htpasswd
otel_backend_htpasswd:
file: ./secrets/otel_backend_htpasswd
grafana_datasource_htpasswd:
file: ./secrets/grafana_datasource_htpasswd
otel_api_password:
file: ./secrets/otel_api_password
otel_worker_password:
file: ./secrets/otel_worker_password
otel_dispatcher_password:
file: ./secrets/otel_dispatcher_password
otel_htpasswd:
file: ./secrets/otel_htpasswd
postgres_password:
file: ./secrets/postgres_password
database_url_api:
file: ./secrets/database_url_api
database_url_worker:
file: ./secrets/database_url_worker
database_url_dispatcher:
file: ./secrets/database_url_dispatcher
database_url_migrate:
file: ./secrets/database_url_migrate
db_api_password:
file: ./secrets/db_api_password
db_worker_password:
file: ./secrets/db_worker_password
db_dispatcher_password:
file: ./secrets/db_dispatcher_password
db_migrate_password:
file: ./secrets/db_migrate_password
redis_acl:
file: ./secrets/redis_acl
redis_api_password:
file: ./secrets/redis_api_password
cache_url:
file: ./secrets/cache_url
minio_root_user:
file: ./secrets/minio_root_user
minio_root_password:
file: ./secrets/minio_root_password
s3_api_access_key_id:
file: ./secrets/s3_api_access_key_id
s3_api_secret_access_key:
file: ./secrets/s3_api_secret_access_key
s3_worker_access_key_id:
file: ./secrets/s3_worker_access_key_id
s3_worker_secret_access_key:
file: ./secrets/s3_worker_secret_access_key
rabbitmq_producer_password:
file: ./secrets/rabbitmq_producer_password
rabbitmq_consumer_password:
file: ./secrets/rabbitmq_consumer_password
rabbitmq_definitions:
file: ./secrets/rabbitmq_definitions.json
volumes:
prometheus_data:
loki_data:
tempo_data:
grafana_data:
postgres_data:
redis_data:
s3_data:
rabbitmq_data:
+56 -12
View File
@@ -4,18 +4,18 @@
| Связь | Минимум на 3 | Дополнительно на 4 | Доказательство / конфиг | | Связь | Минимум на 3 | Дополнительно на 4 | Доказательство / конфиг |
| --- | --- | --- | --- | | --- | --- | --- | --- |
| Клиент → ingress/LB | TLS, CA + hostname, Bearer | Проверка expiry/revocation сессии и общего login rate limit | TODO | | Клиент → ingress/LB | TLS, CA + hostname, Bearer | Проверка expiry/revocation сессии и общего login rate limit | HTTPS localhost:8443; CA certs/ca/ca.crt; SAN localhost/127.0.0.1; Bearer TTL 3600 s. Leaf 90 дней. make test и make test-security с CA_FILE; logout/expiry и rate limit. infra/nginx.conf; evidence/grade3-public-security.txt; grade3-public-tls.txt; grade3-session-expiry.txt. |
| LB → API (все реплики) | mTLS + allowlist LB identity | Ротация leaf без обхода проверки | TODO | | LB → API (все реплики) | mTLS + allowlist LB identity | Ротация leaf без обхода проверки | HTTPS api-1:8443 и api-2:8443; локальный CA; проверка SAN api.internal; client identity lb-client; обязательный client cert и allowlist SHA-1 fingerprint leaf. Leaf 90 дней. student-tests/test_mtls.py: правильная identity 200, без cert/чужой CA 400, запрещённая trusted identity 403, порт 8080 закрыт. infra/nginx.conf; infra/api-proxy/nginx.conf.template; evidence/grade3-mtls-security.txt. |
| API/worker → PostgreSQL | TLS verify-full + раздельные ограниченные DB roles | Ротация credentials; mTLS — допустимое усиление | TODO | | API/worker → PostgreSQL | TLS verify-full + раздельные ограниченные DB roles | Ротация credentials; mTLS — допустимое усиление | postgres:5432, TLS verify-full, CA /run/ca/ca.crt, SAN postgres. Роли messenger_api, messenger_worker, messenger_dispatcher и отдельная messenger_migrate. API CRUD бизнес-таблиц; worker/dispatcher SELECT и UPDATE attachments и attachment_jobs; migrate выполняет DDL. Статические пароли без TTL, leaf 90 дней. student-tests/test_data_security.py: TLS/roles allow, plaintext/чужой CA/неверный hostname/лишние права deny. infra/postgres/pg_hba.conf; src/database.py; evidence/grade3-data-security.txt; grade3-postgres-roles.txt. |
| API/worker → S3 | TLS + разные scoped credentials/prefix rights | Проверка denied prefix и ротация | TODO | | API/worker → S3 | TLS + разные scoped credentials/prefix rights | Проверка denied prefix и ротация | https://s3:9000; локальный CA, SAN s3; раздельные API/worker access keys; private bucket. API: ListBucket, staging Get/Put/Delete, attachments и variants Get. Worker: staging Get, attachments и variants Put. Статические keys без TTL; leaf 90 дней. student-tests/test_minio_security.py: разрешённые и запрещённые операции. infra/minio/*-policy.json; src/storage.py; evidence/grade3-minio-security.txt. |
| API/worker → broker | TLS + разные producer/consumer identities и ACL | mTLS + ограничение допустимых SAN/ролей | TODO | | API/worker → broker | TLS + разные producer/consumer identities и ACL | mTLS + ограничение допустимых SAN/ролей | Фактические клиенты dispatcher и worker; AMQPS rabbitmq:5671, локальный CA, SAN rabbitmq; vhost messenger. messenger_producer публикует через default exchange, messenger_consumer читает attachment.process.v1. Configure запрещён обоим. API напрямую broker не использует. Пароли статические, leaf 90 дней. student-tests/test_rabbitmq_security.py: publish/consume allow, лишние ACL и TLS deny. infra/rabbitmq/tls.conf; src/queue.py; evidence/grade3-rabbitmq-security.txt. |
| API/worker → Collector | TLS; сеть/аутентификация запрещает произвольный ingest | mTLS с раздельными identities | TODO | | API/worker → Collector | TLS; сеть/аутентификация запрещает произвольный ingest | mTLS с раздельными identities | HTTPS otel-collector:4318, OTLP HTTP; локальный CA, SAN otel-collector. Basic Auth messenger_api, messenger_worker, messenger_dispatcher. Статические пароли, leaf 90 дней. student-tests/test_collector_security.py: авторизованный ingest 200, anonymous/wrong credentials 401, неверный TLS deny. infra/otel/config.yaml; src/telemetry.py; evidence/grade3-collector-security.txt. |
| Collector → telemetry backends | TLS + scoped backend credentials или mTLS | Ротация и проверка least privilege | TODO | | Collector → telemetry backends | TLS + scoped backend credentials или mTLS | Ротация и проверка least privilege | HTTPS loki:3100/otlp/v1/logs и tempo:3200/v1/traces; локальный CA, SAN loki/tempo. Basic Auth collector, разрешены только ingest endpoints. Статический пароль, leaf 90 дней. student-tests/test_telemetry_backends.py и student-tests/test_telemetry_queries.py: ingest allow, query/чужие credentials deny. infra/telemetry-proxy/loki.conf и tempo.conf; evidence/grade3-telemetry-backends.txt; grade3-telemetry-queries.txt. |
| Grafana → data sources | TLS с проверкой сервера, ограниченная identity | Отрицательные проверки доступа | TODO | | Grafana → data sources | TLS с проверкой сервера, ограниченная identity | Отрицательные проверки доступа | HTTPS prometheus:9090, loki:3100, tempo:3200; локальный CA, SAN каждого сервиса; Basic Auth grafana. Loki/Tempo разрешают только query endpoints; Prometheus Basic Auth без endpoint RBAC. Статический пароль, leaf 90 дней. student-tests/test_grafana_security.py: datasource health и TraceQL query, anonymous deny. student-tests/test_telemetry_backends.py: ingest deny. evidence/grade3-grafana-security.txt. |
| API/worker/agent → OpenBao | TLS + сервисный auth + scoped policy | Renewal/expiry/revocation | TODO | | API/worker/agent → OpenBao | TLS + сервисный auth + scoped policy | Renewal/expiry/revocation | HTTPS openbao:8200; локальный CA, SAN openbao; cert auth bao-api-1, bao-api-2, bao-worker, bao-dispatcher. Policies messenger-api/worker/dispatcher; read только secret/data/messenger/<role>. Token TTL 900 s, max TTL 3600 s, leaf 90 дней. student-tests/test_openbao_security.py и student-tests/test_openbao_tls.py: own read allow, foreign path/write/policy/anonymous/impersonation deny. infra/openbao/policies; scripts/bao-entrypoint.py; evidence/grade3-openbao-security.txt; grade3-openbao-tls.txt. |
| Оператор → OpenBao/Grafana/S3 admin | TLS + authentication, доступ локальный/через защищённый канал | Разделение operator/application roles | TODO | | Оператор → OpenBao/Grafana/S3 admin | TLS + authentication, доступ локальный/через защищённый канал | Разделение operator/application roles | OpenBao HTTPS openbao:8200 только внутри Docker-сети; операторские команды через compose и TLS, root token только для административного bootstrap. Grafana https://localhost:3000 и MinIO https://localhost:9001 опубликованы на loopback. Локальный CA, SAN openbao/grafana/s3/localhost. Отдельные admin credentials, статические; leaf 90 дней. bao status, scripts/unseal-openbao.sh, student-tests/test_grafana_security.py; student-tests/audit_network.py; evidence/grade3-openbao-status.txt; grade3-published-ports.txt; grade3-grafana-security.txt. |
| API → Redis/Valkey, если используется | TLS + ACL/пароль с минимальными правами | Ротация; mTLS по возможности | TODO | | API → Redis/Valkey, если используется | TLS + ACL/пароль с минимальными правами | Ротация; mTLS по возможности | rediss://redis:6379/0; локальный CA, SAN redis; ACL messenger_api, default user off. Только session:* и rate:login:*; ограниченный набор команд для сессий и rate limit. Пароль статический, leaf 90 дней, session TTL 3600 s. student-tests/test_data_security.py: session/rate operations allow, foreign key и CONFIG deny. infra/redis/redis.conf; src/sessions.py; evidence/grade3-data-security.txt. |
| Replication/кластерные каналы, если добавлены | TLS/mTLS либо подтверждённый шифрованный transport | Проверка заявленной модели отказа | TODO | | Replication/кластерные каналы, если добавлены | TLS/mTLS либо подтверждённый шифрованный transport | Проверка заявленной модели отказа | N/A: кластерная репликация хранилищ не используется. Две API-реплики используют общие хранилища. RabbitMQ distribution/EPMD и OpenBao cluster listener изолированы loopback. student-tests/audit_network.py; evidence/grade3-network-audit-final.txt. Отказ обеих API-реплик по очереди проверен make test-failover; evidence/grade3-failover-first.txt и grade3-failover-second.txt. |
Нет выбранного компонента — отметьте N/A с причиной, а не оставляйте пустую строку. Внутренний публичный health listener, если нужен, минимален и изолирован; через него нельзя обращаться к бизнес-API без mTLS. Отдельно задокументируйте scrape/health/bootstrap каналы: они тоже не должны создавать обход. Нет выбранного компонента — отметьте N/A с причиной, а не оставляйте пустую строку. Внутренний публичный health listener, если нужен, минимален и изолирован; через него нельзя обращаться к бизнес-API без mTLS. Отдельно задокументируйте scrape/health/bootstrap каналы: они тоже не должны создавать обход.
@@ -35,3 +35,47 @@
OpenBao не использует dev-mode. Выберите persistent storage и auth метод (например AppRole с короткоживущим SecretID/response wrapping, cert auth или иная обоснованная identity). Не подменяйте root token постоянной переменной BAO_TOKEN в приложении. Рабочие tokens имеют policy, TTL и renewal/re-auth сценарий. Статические KV secrets на 3 допустимы при реальном чтении через сервисную identity; динамические DB credentials — хорошее расширение, но не обязательное название технологии. OpenBao не использует dev-mode. Выберите persistent storage и auth метод (например AppRole с короткоживущим SecretID/response wrapping, cert auth или иная обоснованная identity). Не подменяйте root token постоянной переменной BAO_TOKEN в приложении. Рабочие tokens имеют policy, TTL и renewal/re-auth сценарий. Статические KV secrets на 3 допустимы при реальном чтении через сервисную identity; динамические DB credentials — хорошее расширение, но не обязательное название технологии.
Разрешённый компромисс учебного стенда: ручной operator init/unseal, если он безопасно документирован и не нужен при каждом обычном рестарте API. Автоматическое хранение всех unseal shares рядом с OpenBao без защиты не считается решённым bootstrap. Разрешённый компромисс учебного стенда: ручной operator init/unseal, если он безопасно документирован и не нужен при каждом обычном рестарте API. Автоматическое хранение всех unseal shares рядом с OpenBao без защиты не считается решённым bootstrap.
## Дополнительные служебные каналы
| Канал | Защита и ограничение | Доказательство |
| --- | --- | --- |
| Prometheus -> Collector metrics | HTTPS otel-collector:8888 и :8889, CA/SAN verification, Basic Auth prometheus, только GET /metrics | student-tests/test_collector_security.py; evidence/grade3-collector-security.txt |
| Prometheus -> собственные metrics | HTTPS prometheus:9090, CA/SAN verification, Basic Auth prometheus | student-tests/test_prometheus_security.py; evidence/grade3-prometheus-security.txt |
| API sidecar -> Uvicorn | HTTP 127.0.0.1:8080 внутри общего network namespace, после mTLS и allowlist | evidence/grade3-mtls-security.txt; grade3-network-audit-final.txt |
| Loki proxy -> Loki | HTTP 127.0.0.1:13100 после TLS и ACL | evidence/grade3-telemetry-backends.txt |
| Tempo proxy -> Tempo | HTTP 127.0.0.1:13200 и :14318 после TLS и ACL | evidence/grade3-telemetry-backends.txt |
| Collector proxy -> metrics | HTTP 127.0.0.1:18888 и :18889 после TLS и Basic Auth | evidence/grade3-collector-security.txt |
| API healthcheck | HTTP loopback:8080; внешний health endpoint через HTTPS/mTLS | evidence/grade3-network-audit-final.txt |
| PostgreSQL healthcheck | pg_isready внутри контейнера; сетевые DB-соединения требуют TLS | infra/postgres/pg_hba.conf; evidence/grade3-data-security.txt |
| Redis healthcheck | TLS, CA и ACL messenger_api | compose.yaml; evidence/grade3-data-security.txt |
| RabbitMQ healthcheck | Локальный rabbitmq-diagnostics, distribution ограничен loopback | evidence/grade3-network-audit-hardened.txt |
| MinIO healthcheck | HTTPS s3:9000/minio/health/ready с CA | compose.yaml |
| migrate -> PostgreSQL | TLS verify-full, отдельная роль messenger_migrate, Docker secret | migrations/env.py; evidence/grade3-postgres-roles.txt |
| s3-init -> MinIO | HTTPS s3:9000, CA, отдельные root credentials для provisioning | infra/minio/init.sh; evidence/grade3-minio-init-sanitized.txt |
| Операторский bootstrap OpenBao | HTTPS openbao:8200, CA/SAN verification, операторские данные передаются через stdin | scripts/init-openbao.sh; scripts/unseal-openbao.sh; scripts/configure-openbao.sh; scripts/seed-openbao.sh |
Все локальные plaintext hops ограничены loopback
соответствующего network namespace. Прямой сетевой
доступ к ним отсутствует.
Публично опубликован только HTTPS ingress :8443.
Grafana :3000 и MinIO console :9001 доступны
на loopback хоста.
Leaf certificates действуют 90 дней, CA — 365 дней.
Статические инфраструктурные credentials не имеют
автоматического TTL. OpenBao tokens действуют
15 минут, максимальный TTL — 1 час.
Модель угроз, жизненный цикл credentials и остаточные
риски описаны в ../docs/threat-model.md.
Заявлена оценка 3. Требования расширенного уровня 4
и исследовательских треков уровня 5 не заявляются.
Дополнительная проверка внешнего TLS:
python student-tests/test_public_tls.py.
Проверяются правильный CA/hostname, пустой trust store
и неправильный hostname с доверенным CA.
Результат: evidence/grade3-public-tls-negative.txt.
+205
View File
@@ -0,0 +1,205 @@
# Модель угроз — лабораторная работа №7
Автор: Травкин Станислав, БВТ2304.
Целевая оценка: 3.
## 1. Область применения
Учебный мессенджер, перенесённый из lab6.
Две реплики API, балансировщик Nginx, PostgreSQL,
Redis, RabbitMQ, MinIO, worker, dispatcher,
OpenBao и стек наблюдаемости.
Модель рассматривает сетевого нарушителя,
неавторизованного пользователя, авторизованного
пользователя вне чата и компрометацию отдельной
сервисной identity.
Полная компрометация хоста или Docker daemon
находится за пределами модели защиты.
## 2. Защищаемые активы
- Пароли пользователей и сессионные токены.
- Сообщения, чаты и принадлежность пользователей к чатам.
- Оригиналы вложений и производные изображения.
- Состояния задач обработки вложений.
- Учётные данные инфраструктурных сервисов.
- CA private key, leaf keys, root token и unseal shares.
- Метрики, логи и трассировки.
- Доступность API и сохранность подтверждённых данных.
## 3. Акторы
- Неавторизованный внешний клиент.
- Авторизованный пользователь мессенджера.
- Пользователь, не являющийся участником чата.
- Nginx — доверенный балансировщик.
- API-1 и API-2 — обработчики бизнес-запросов.
- Worker — обработчик вложений.
- Dispatcher — публикация фоновых задач.
- Collector и Grafana — наблюдаемость.
- Оператор — bootstrap, управление PKI и OpenBao.
## 4. Границы доверия
1. Клиент -> Nginx: HTTPS, проверка CA и hostname.
2. Nginx -> API: обязательное mTLS и allowlist
сертификата балансировщика.
3. TLS sidecar -> приложение: HTTP только через
loopback общего network namespace.
4. Приложения -> хранилища и broker:
TLS с проверкой сервера и scoped credentials.
5. Приложения -> OpenBao: TLS, cert auth,
отдельные сервисные identities и scoped policies.
6. Приложения -> Collector -> telemetry backends:
TLS и раздельная аутентификация.
7. Оператор -> административные интерфейсы:
локальные порты либо защищённая Docker-сеть.
8. Хост -> контейнеры: ограниченные mounts,
отсутствие Docker socket и privileged mode.
Полная матрица связей приведена в
contracts/trust-matrix.md.
## 5. Угрозы и меры защиты
| Угроза | Мера защиты | Проверка и доказательство |
| --- | --- | --- |
| Перехват трафика клиента | HTTPS, доверенный CA, проверка hostname | make test-security; evidence/grade3-public-security.txt |
| Подмена балансировщика | Обязательное mTLS, allowlist leaf fingerprint | student-tests/test_mtls.py; evidence/grade3-mtls-security.txt |
| Обход TLS через API-порт | Uvicorn слушает только loopback | evidence/grade3-network-audit-final.txt |
| Подбор пароля | Argon2id, Redis rate limit по username и IP | evidence/grade3-argon2-container.txt; grade3-rate-limit-username.txt; grade3-rate-limit-ip.txt |
| Кража базы паролей | Argon2id, индивидуальные salt, параметры в хеше | evidence/grade3-argon2-runtime.txt |
| Подмена пользователя | Bearer identity, игнорирование X-User-Id | make test; evidence/grade3-smoke-final.txt |
| Доступ постороннего к чату и вложениям | Проверка membership на стороне API | make test; evidence/grade3-smoke-final.txt |
| Использование завершённой сессии | Удаление токена при logout, Redis TTL | evidence/grade3-session-expiry.txt; grade3-smoke-final.txt |
| Чрезмерный размер загрузки | Ограничения Nginx, API и количества пикселей | evidence/grade3-upload-limits.txt |
| Повышение привилегий в PostgreSQL | Раздельные роли и ограниченные GRANT | evidence/grade3-data-security.txt; grade3-postgres-roles.txt |
| Несанкционированный доступ к S3 | Private bucket, раздельные prefix policies | evidence/grade3-minio-security.txt |
| Несанкционированная публикация или чтение задач | Раздельные RabbitMQ producer/consumer ACL | evidence/grade3-rabbitmq-security.txt |
| Произвольный telemetry ingest | TLS и аутентификация отправителей | evidence/grade3-collector-security.txt |
| Несанкционированное чтение telemetry | Раздельные credentials для ingest и queries | evidence/grade3-telemetry-backends.txt; grade3-grafana-security.txt |
| Чтение чужих секретов OpenBao | Cert auth и scoped KV policies | evidence/grade3-openbao-security.txt |
| Запуск приложения без доступных секретов | Fail-closed bootstrap | evidence/grade3-openbao-fail-closed.txt |
| Утечка секретов в Git и логи | Исключение файлов, локальный аудит, редактирование идентификаторов | evidence/grade3-secret-audit.txt |
| Утечка секретов в образ | Ограниченный build context и COPY | evidence/grade3-image-audit.txt |
| Избыточные права контейнера | Non-root для приложений, cap_drop, no-new-privileges, limits | evidence/grade3-hardening-runtime.txt |
| Потеря данных при перезапуске | Persistent storage, сохранение volumes | evidence/grade3-persistence.txt |
| Отказ одной реплики API | Две реплики, Nginx failover, общие хранилища, idempotency | evidence/grade3-failover-first.txt; grade3-failover-second.txt |
## 6. Параметры защиты
Argon2id:
- memory_cost = 32768 KiB;
- time_cost = 2;
- parallelism = 1;
- salt_len = 16 bytes;
- hash_len = 32 bytes.
Медианное время в API-контейнере:
хеширование 94.14 ms, проверка 98.93 ms.
Параметры выбраны по результатам измерений.
Login rate limit:
- 5 запросов на username за 60 секунд;
- 60 запросов на IP за 60 секунд;
- общие Redis-счётчики для обеих реплик;
- HTTP 429 и Retry-After при превышении;
- атомарное обновление счётчиков через Lua.
Сессии:
- случайный Bearer token;
- хранение в Redis;
- TTL 3600 секунд;
- logout удаляет сессию;
- обычное чтение сессии не продлевает TTL.
Загрузка:
- API: максимум 10 MiB;
- Nginx: максимум 12 MiB;
- максимум 40 миллионов пикселей;
- проверка формата изображения.
## 7. Жизненный цикл сертификатов и секретов
Локальный CA создаётся оператором.
CA RSA 3072, срок действия 365 дней.
Leaf certificates RSA 2048, срок действия 90 дней.
Сертификаты имеют SAN и соответствующий EKU.
CA private key не передаётся приложениям.
Сервисы получают только необходимые leaf keys,
публичный CA и scoped credentials.
OpenBao работает в server mode с persistent
file storage, без dev-mode.
Первичная инициализация создаёт три unseal shares,
порог распечатывания — два.
Операторские материалы хранятся вне репозитория
в каталоге с правами 700 и файле с правами 600.
API-1, API-2, worker и dispatcher используют
индивидуальные клиентские сертификаты OpenBao.
Рабочие OpenBao tokens имеют TTL 15 минут
и maximum TTL 1 час, без default policy.
Приложение получает только свой набор KV secrets,
сохраняет его в tmpfs с ограниченными правами
и не сохраняет OpenBao token.
При новом запуске приложение повторно проходит
cert auth. Постоянный renewal не используется:
OpenBao token нужен для стартового чтения KV.
После рестарта OpenBao оператор выполняет unseal.
Повторная инициализация и повторный seed
при обычном рестарте не требуются.
При истечении leaf certificate оператор должен
выпустить новый сертификат, обновить trust binding
и перезапустить соответствующий сервис.
Для LB также обновляется fingerprint allowlist.
Статические DB, Redis, S3, RabbitMQ и telemetry
credentials не имеют автоматического TTL.
Их ротация требует согласованного обновления
учётных данных, OpenBao KV и потребителей.
Автоматическая ротация и эксперимент с отзывом
credentials не заявляются для оценки 3.
## 8. Остаточные риски и ограничения
- Один Docker-хост является общей точкой отказа.
- PostgreSQL, Redis, RabbitMQ, MinIO, Nginx и
OpenBao не имеют HA-кластеров.
- Компрометация хоста или Docker daemon позволяет
обойти контейнерную изоляцию.
- Операторские unseal shares хранятся совместно
в защищённом локальном файле учебного стенда.
Для production требуется раздельное хранение.
- Bootstrap credentials остаются в закрытом
локальном каталоге secrets.
- Уже запущенные приложения могут использовать
полученные статические credentials при sealed
OpenBao до своего перезапуска или отзыва credentials.
- Rate limit снижает риск перебора и login DoS,
но не гарантирует защиту от распределённой атаки.
- Username rate limit допускает временную блокировку
входа конкретного пользователя.
- Redis хранит рабочие сессионные токены;
компрометация Redis остаётся существенной угрозой.
- PostgreSQL local trust ограничен локальным
Unix socket внутри контейнера.
- Prometheus использует Basic Auth без отдельного
RBAC для каждого HTTP endpoint.
- Проверка секретов ограничена известными локальными
значениями и шаблонами приватных ключей.
- Проверка образов не является полным layer scan.
- mTLS для RabbitMQ и Collector, автоматическая
ротация, CA rollover и расширенный image scan
не входят в заявленный уровень 3.
+11
View File
@@ -0,0 +1,11 @@
PASS: Argon2id parameters
Memory: 32768 KiB
Time cost: 2
Parallelism: 1
Salt length: 16
Hash length: 32
PASS: independent random salts
PASS: correct password accepted
PASS: incorrect password rejected
PASS: lab6 password hash compatibility
PASS: all Argon2id checks
+6
View File
@@ -0,0 +1,6 @@
Argon2id benchmark: 10 iterations per configuration
m=19456 KiB, t=2, p=1: hash=51.58 ms, verify=51.69 ms
m=32768 KiB, t=2, p=1: hash=94.14 ms, verify=98.93 ms
m=65536 KiB, t=3, p=1: hash=267.54 ms, verify=273.54 ms
m=65536 KiB, t=3, p=4: hash=343.41 ms, verify=302.98 ms
PASS: all configurations verified successfully
+10
View File
@@ -0,0 +1,10 @@
Algorithm: Argon2id
Memory: 32768 KiB
Iterations: 2
Parallelism: 1
Salt: 16 bytes
Hash: 32 bytes
PASS: unique random salts
PASS: correct password accepted
PASS: incorrect password rejected
PASS: ARGON2ID RUNTIME CONFIGURATION
+6
View File
@@ -0,0 +1,6 @@
Argon2id benchmark: 10 iterations per configuration
m=19456 KiB, t=2, p=1: hash=54.05 ms, verify=51.09 ms
m=32768 KiB, t=2, p=1: hash=102.60 ms, verify=108.26 ms
m=65536 KiB, t=3, p=1: hash=310.11 ms, verify=334.57 ms
m=65536 KiB, t=3, p=4: hash=113.41 ms, verify=114.69 ms
PASS: all configurations verified successfully
+149
View File
@@ -0,0 +1,149 @@
Certificate: certs/services/api-1/tls.crt
subject=CN = api-1
notBefore=Dec 6 14:05:51 2026 GMT
notAfter=Mar 6 14:05:51 2027 GMT
X509v3 Extended Key Usage:
TLS Web Server Authentication
X509v3 Subject Alternative Name:
DNS:api-1, DNS:api.internal
certs/services/api-1/tls.crt: OK
Certificate: certs/services/api-2/tls.crt
subject=CN = api-2
notBefore=Dec 6 14:05:51 2026 GMT
notAfter=Mar 6 14:05:51 2027 GMT
X509v3 Extended Key Usage:
TLS Web Server Authentication
X509v3 Subject Alternative Name:
DNS:api-2, DNS:api.internal
certs/services/api-2/tls.crt: OK
Certificate: certs/services/grafana/tls.crt
subject=CN = grafana
notBefore=Dec 6 14:01:27 2026 GMT
notAfter=Mar 6 14:01:27 2027 GMT
X509v3 Extended Key Usage:
TLS Web Server Authentication
X509v3 Subject Alternative Name:
DNS:grafana, DNS:localhost, IP Address:127.0.0.1
certs/services/grafana/tls.crt: OK
Certificate: certs/services/lb-client/tls.crt
subject=CN = lb-client
notBefore=Dec 6 14:01:19 2026 GMT
notAfter=Mar 6 14:01:19 2027 GMT
X509v3 Extended Key Usage:
TLS Web Client Authentication
X509v3 Subject Alternative Name:
DNS:lb-client
certs/services/lb-client/tls.crt: OK
Certificate: certs/services/loki/tls.crt
subject=CN = loki
notBefore=Dec 6 14:01:25 2026 GMT
notAfter=Mar 6 14:01:25 2027 GMT
X509v3 Extended Key Usage:
TLS Web Server Authentication
X509v3 Subject Alternative Name:
DNS:loki
certs/services/loki/tls.crt: OK
Certificate: certs/services/nginx/tls.crt
subject=CN = nginx
notBefore=Dec 6 14:01:18 2026 GMT
notAfter=Mar 6 14:01:18 2027 GMT
X509v3 Extended Key Usage:
TLS Web Server Authentication
X509v3 Subject Alternative Name:
DNS:localhost, DNS:nginx, IP Address:127.0.0.1
certs/services/nginx/tls.crt: OK
Certificate: certs/services/openbao/tls.crt
subject=CN = openbao
notBefore=Dec 6 14:01:26 2026 GMT
notAfter=Mar 6 14:01:26 2027 GMT
X509v3 Extended Key Usage:
TLS Web Server Authentication
X509v3 Subject Alternative Name:
DNS:openbao
certs/services/openbao/tls.crt: OK
Certificate: certs/services/otel-collector/tls.crt
subject=CN = otel-collector
notBefore=Dec 6 14:01:23 2026 GMT
notAfter=Mar 6 14:01:23 2027 GMT
X509v3 Extended Key Usage:
TLS Web Server Authentication
X509v3 Subject Alternative Name:
DNS:otel-collector
certs/services/otel-collector/tls.crt: OK
Certificate: certs/services/postgres/tls.crt
subject=CN = postgres
notBefore=Dec 6 14:01:21 2026 GMT
notAfter=Mar 6 14:01:21 2027 GMT
X509v3 Extended Key Usage:
TLS Web Server Authentication
X509v3 Subject Alternative Name:
DNS:postgres
certs/services/postgres/tls.crt: OK
Certificate: certs/services/prometheus/tls.crt
subject=CN = prometheus
notBefore=Dec 6 14:01:24 2026 GMT
notAfter=Mar 6 14:01:24 2027 GMT
X509v3 Extended Key Usage:
TLS Web Server Authentication
X509v3 Subject Alternative Name:
DNS:prometheus
certs/services/prometheus/tls.crt: OK
Certificate: certs/services/rabbitmq/tls.crt
subject=CN = rabbitmq
notBefore=Dec 6 14:01:22 2026 GMT
notAfter=Mar 6 14:01:22 2027 GMT
X509v3 Extended Key Usage:
TLS Web Server Authentication
X509v3 Subject Alternative Name:
DNS:rabbitmq
certs/services/rabbitmq/tls.crt: OK
Certificate: certs/services/redis/tls.crt
subject=CN = redis
notBefore=Dec 6 14:01:21 2026 GMT
notAfter=Mar 6 14:01:21 2027 GMT
X509v3 Extended Key Usage:
TLS Web Server Authentication
X509v3 Subject Alternative Name:
DNS:redis
certs/services/redis/tls.crt: OK
Certificate: certs/services/s3/tls.crt
subject=CN = s3
notBefore=Dec 6 14:01:22 2026 GMT
notAfter=Mar 6 14:01:22 2027 GMT
X509v3 Extended Key Usage:
TLS Web Server Authentication
X509v3 Subject Alternative Name:
DNS:s3
certs/services/s3/tls.crt: OK
Certificate: certs/services/tempo/tls.crt
subject=CN = tempo
notBefore=Dec 6 14:01:26 2026 GMT
notAfter=Mar 6 14:01:26 2027 GMT
X509v3 Extended Key Usage:
TLS Web Server Authentication
X509v3 Subject Alternative Name:
DNS:tempo
certs/services/tempo/tls.crt: OK
Certificate: certs/services/unauthorized-client/tls.crt
subject=CN = unauthorized-client
notBefore=Dec 6 14:01:28 2026 GMT
notAfter=Mar 6 14:01:28 2027 GMT
X509v3 Extended Key Usage:
TLS Web Client Authentication
X509v3 Subject Alternative Name:
DNS:unauthorized-client
certs/services/unauthorized-client/tls.crt: OK
+127
View File
@@ -0,0 +1,127 @@
...+.+.....+....+...+............+...+.....+............+....+......+.....+.+...+.....+.......+.....+...+....+......+.....+......+...+............+...+...+.......+...+........+.+........+.+............+.....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+.............+.........+...+...+............+.....+...+.+......+..+...+..........+...+...........+.+.........+.....+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*..+.+.........+.....+............+....+...+........+...+.......+...+..+............+.+......+........................+..+..................+.+.........+..+...............+....+.....+......+.......+...+...+..+.......+..+...+.+..+...+.+......+........+....+...+..+............+.+..+.............+..+............+.+...+.................+.........+....+.....+....+...+..+.+.....+.+...+..+.+........+..........+..+...+.+........+.............+.....+.........+......+.......+..+.............+............+...............+.........+..............+.......+...+......+..............+.....................+....+...........+........................+...+..........+..+................+..+.........+..................................+......+.........+............+..+......+.......+..+...+....+...+..+.........+....+........+...............+............+.+.....+......+..........+.....................+............+..+....+...........+.............+..+...+..........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.......+..+.+.....+.+........+..........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*..........+......+...+......+......+......+.....+..................+.......+.....+....+...........+....+...+...+.................+.......+...+.....+......+...............+.+...+......+.....+.......+..+......+.......+............+..+.............+...+....................+..........+.....+............+......+.+........+...+...+.......+.........+...+...+.....+.......+.................+......+.............+..+.......+...+...+...........+.........+......+.+...............+............+.....+..........+..+...+...+.......+...+........+.+......+........+............+.......+...........+......+.+..................+.........+.....+.+......+......+..............................+..+...+...+...........................+...+................+........+.+......+......+...............+...............+...+..+.........+.+........+.+...+........+.............+..+.......+........+....+...+.................+...+.+...........+.+..+.......+........+...+....+......+...+.....+.......+.................+.+.....+....+............+........+......+......+....+.........+........+...+.+..................+........+............+...+...+.......+..+............+...+......+............+...+...................+...+........+..........+...............+............+...+.....+......+..........+.........+.....+.+...+..+...+.......+......+........+......+....+...............+..............+..........+...+........................+......+.....+....+.....+...................+..+............+.+......+...+...+........+.....................+....+...........+..........+.....+.+.....+.................................+.......+..............+.+..+......+.........+.+...........+...+......+....+...+........................+...+..+...................+..+....+....................+...+.+.....+.+.....+...+...+..........+...+.........+..+....+..............+......+.+..............+.......+........+.......+..+............+...+............+.+...+.........+...+..+.................................+............+.......+.........+..+.........+.........+.......+....................+...............+..........+...+..+.........+....+...............+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
..+.+..+...+.+...............+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*........+..........+...........+.+.....+.+..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*..........+.......+...+..+........................+.........+.........+...+............+.......+..............+.+..............................+...+..+.+...............+...+.........+..+...+...+.........+.....................+...+....+......+.....+......+...+.......+.....+......+....+.........+.........+.....+.......+........+.+.....+....+.....+...+.......+...+...+............+.........+...........+...+.+...........+...+....+..+.+..+..........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
......+...+...............+......+..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+............+..............+....+.....+......+.+..+.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Certificate request self-signature ok
subject=CN = nginx
certs/services/nginx/tls.crt: OK
.+.....+.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*..+.+........+.........+.............+...+...........+...+...+....+.....+.............+......+......+...............+..................+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*...........+.+..+..................+.+...........+...+....+.....................+.........+..+.+..+...+....+.....+....+..+..........+...+.........+......+.....+.........+.............+.....+....+.........+.....+......+....+......+...........+....+...+...+..+......+.+...+...+..+......+.......+...+..+..................+.......+.....+.......+..+.+...+..............+......+..........+......+...+...+.........+.....+...+...+.......+...+..+...+....+.....+......+...+....+...+.........+.....+...+.+............+...+.........+..+....+.....+......+...+..........+...........+.+.........+..+.........+...+..........+......+.....+.......+............+...+..+......+.+...........+...+......+.+..................+.........+......+.........+.....+.+......+...........+....+........................+..+...+....+........+.........+....+.....+......+........................+....+...+..+..........+...+..............+.+...+..+...+....+............+...+...+...+.....+..........+..+....+.....+......+...+....+......+..+...+......+..........+.....+...+...+............+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.......+.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+.+.....+......+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+.....+....+...+..+.+............+...+.....+.........+...+.........+......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Certificate request self-signature ok
subject=CN = lb-client
certs/services/lb-client/tls.crt: OK
.....+.+...+..............+..........+...........+......+......+....+.........+.........+........+....+...+.....+.+......+......+...+..+...+.......+.....+....+...+...+........+....+..+......+.......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*..+.........+.+.........+...+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*..+..+............+...+.......+.....+.+...+..+....+......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
..........+.....+....+..+....+......+...+.....+.........+.+...........+...+...+....+...+..+.+........+.+..............+.......+..+...+....+..............+.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+...+.+.....+.......+...+......+........+...+....+...+......+.........+.....+.+........................+...+........+.+......+........+.......+.....+.......+.....+...........................+...+.+......+.....+...+.+.........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Certificate request self-signature ok
subject=CN = api-1
certs/services/api-1/tls.crt: OK
.........+.+..+.......+......+......+...+...............+..+...+......+......+.+.....+.........+.+.....+....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*..+.....+.+........+......+.......+........+............+..........+..+.......+.........+.........+......+..+....+.....+...+.+.....+.......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*..+....+........+.+.....+.......+............+..................+..+.+.........+..+.+............+..+....+.....+.......+..+..........+.....+.+..+..........+.....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.....+...+......+.+...+..+...+.......+...+......+...+........+...+.+......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.....+..+.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*...........+.............+..+.............+.....+..........+..+.+..+......+......+..........+...+...........+..........+..............+.+......+........+.......+........+...............+......................+...+...+.....+.......+......+.....................+.....+...+..........+.....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Certificate request self-signature ok
subject=CN = api-2
certs/services/api-2/tls.crt: OK
....+....+...+..+.+..+.......+..+....+.....+....+............+...............+.....+.+.................+...+...+....+...+.....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*....+..+.+........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*....+..................+.+.........+..+.........+.........+.+.....+................+..+..........+...+............+..+....+..+....+...+..+...+......+.+......+.....+............+.............+...+.........+..+..........+...+..+......+...+....+...+...+......+.........+......+........................+...............+..+....+...+........+....+.....+......+............+.+......+...+..+...+......+....+...+.....+...+...............+......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
......+...+...........+....+..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*......+......+...+.....+.+.....+.+.....+.+.....+..........+..+.......+.........+............+...+.........+......+..+...+....+............+......+...+............+..+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+..........+...+............+..+.........+.......+..+.......+..............+............+.......+..+...+...+.........+..........+......+...+.....+....+......+.....+.+.....+......+...+.+........+...+..........+...+..+...+....+..+...+..........+..+...+.+.....+....+...+.....+...+.+......+...+......+......+...+..+...+...............+.+...+..+......+.........+.+..+.+......+...+.....+.+..+...+.......+...+...........+....+.....+.+.....+....+..+.........+...+...+...............+...+.......+...+..............+.......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Certificate request self-signature ok
subject=CN = postgres
certs/services/postgres/tls.crt: OK
....+..+.+...+.....+......+...............+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+......+.....+.......+..+............+...+.+..+............+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*..+.........+............+.......+...+..+.+...........+..........+...+...+..+.+..+...................+......+...+..+...+...............+.+.....+...............+.............+......+.....+.......+...+...............+...........+.+.....+....+...+.....+...+...+..........+...........+......+....+...........+..........+..+...+....+..............+.+.....+......+...................+......+...+..+............+.+..............+.+..+.......+...........+.+.....+.........+.+.....+.........+................+......+.....+...........................+.+.....+.......+..+.+......+.....+...................+......+......+.....+...+.+...+..+.........+......+...+..........+..+...+.......+...+...........+.........+.......+......+.....+..........+........+......+...............+...+.+......+.....+....+......+...........+...+......+...+.+......+......+.........+...........+...+..........+..+...+....+......+......+.....+......+.............+..+..........+..+.......+........+.+..+...+.+.....+................+.....+............+.+..+....+.....+......+....+...+.....+...+.......+...+..+.......+......+.....+.......+..+.+........+....+..+.........+.....................+......+...+.+...........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
..+........................+...+.+..+............................+..+....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*....+.......+...+.....+.+.....+.+...+......+...........+...+......+.............+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+................+...+...+...+...........+..........+...+............+.....+.+............+...+....................+...+.+........+...+...+.......+..+......+.+......+............+..+...+.......+..............+............+.........+....+.........+.....+................+......+.....+.+..+...+.......+...........+....+......+..+...............+....+.........+..+....+...+.................+.+..............+.+.....+...+.........+.......+......+..............+.+..+...+.......+.....+.......+........+......+....+..+.+..+...............+.............+.....+....+...+..+.............+............+.....+......+...+....+......+.....+....+...+..+.............+............+.....+..........+...........+....+............+.....+......+....+......+...+...............+.....+...................+..+.+........+..........+...........+...............+.............+.....+.......+...+..+.........+.........+..........+..+.........+.+.........+..+.........+.+...+...........+....+......+...+...+...+..+...+.......+...+.....+......+..........+...........+.......+...+...+..+...+......+.............+......+.....+.+...+...........+....+.....+......................+......+........+.+.....+......+...+....+..+....+...............+..+...+.+......+..+...+....+...+......+......+.....+...+...+.........+...............+.+........+.......+...+.........+......+.....+.......+.........+...+..+.+..................+.....+......+.+........+.+.....+.+...............+.....+............+......+....+...+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Certificate request self-signature ok
subject=CN = redis
certs/services/redis/tls.crt: OK
.+.......+........+.+..+...............+.............+...........+.........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*...................+..+....+.........+.....+...+............+.......+...+...+.........+........+.+..+............+...+.........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*....+...+....+...+........+...+....+...+...+...........+..........+...+..+.+..+.............+...+...........+.+.....+....+..................+.....+.......+.....+.........+.+.........+..+..........+..+...+...+....+...+..............+....+..+.........+..........+......+...+.....+.........+.+..............+.+..+...+....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.+.........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+.....+...+................+..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*....+......+..+...+....+..+.+..+...+..................+.......+........+.+........+.......+......+..+...+.......+........+....+.................................+.....+.+.....+.+...+...............+..+..........+.....+...+...+.......+...+.........+......+...+.....+.......+..+.+..+...................+...+...............+...+........+............+..................+.+.....+......+.......+....................+.+.....+..........+.....+.+.........+.....+.+....................+.+.....+.......+........+...+......+.............+..+..........+...+...+..+.+..+........................+.+...+..+...............+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Certificate request self-signature ok
subject=CN = rabbitmq
certs/services/rabbitmq/tls.crt: OK
...+...+....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+.....+...+..........+.....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*....+.......+..............+....+...........................+........+.+..+....+...........+...+.+...+............+.........+..+...+......+.........+.+.....+.+...+..........................+..........+...+...............+...+..+......+.+...........+.......+.................+.........+....+..+.+...+......+...+..+....+.........+............+.....+.+........+............+....+...+........+...+.+...........+.........+....+.............................+......+....+.....+......+.......+........+.+.....+.........+....+......+.........+..+.+..+.+..............+.+..+.............+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.....+......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+.........+...+.+...............+..+.........+.............+..+.+...+..+..........+..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.........+...+.......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Certificate request self-signature ok
subject=CN = otel-collector
certs/services/otel-collector/tls.crt: OK
.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.....+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.....+.......+..+....+.....+......+...+.+......+...+......+..+...+....+.....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*..+...........+.+.....+.......+..+.+........+.+...+...........+....+..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+...+....+...+.....+.......+......+..+.......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Certificate request self-signature ok
subject=CN = prometheus
certs/services/prometheus/tls.crt: OK
......+.....+......+.........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+..+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*....+......+....+.........+..+..........+...+..+......+............+.+.........+......+..+.......+...........+....+..+.+..............+...+.+......+...+...+..+...+..........+...+..+.......+..+.+.....+.......+..+...+...+.......+...+...+.........+..+..........+...........+....+........+......+....+..................+...+..+.........+...+.+.....+.........+...+...+.+.....+.+...+............+...+.....................+...+..+......+.......+..+..........+...+.....+.+..+...+....+...........+..........+.....+.+......+...+.........+...+..+......+......+...............+.+...+......+...+.....+..........+........+....+......+..+............+...+...+....+...........+....+.........+..+.......+...+.........+...+..+.........+....+...........+...............+...................+...+.............................+.+............+..+...+......+.+.........+.....+.+......+........+.+.....+.+.........+......+..+.............+...+.........+........+....+.....+..................+..........+......+............+..+...+....+.....+.+..+..........+...+........+......+....+..+.........................+..+.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
........+.+...+.....+...............+......+....+..+.......+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*..........+..+....+.....+.......+...+.........+.....+..........+......+......+...+...........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*............+....................+....+......+........+.........+.+.........+.....+.............+...+..+.......+...+..+.+...........+...+......+.+...+...............+..+.+.....+..........+..+.+..+...................+......+.....+....+...+...+..+......+......+.+..+......+........................................+..+.......+..+....+..+...+.......+........+.+...+.......................+....+......+....................+.........+.+..+..........+...............+...+...+..+...+.+.....+...+............+....+..+...+....+.....+...+....+.....+....+.....+.........+..........+.....+.+.....+....+.....+.+.....+.+...+..................+..+...+...+....+...+..+............+......+.........+...+.......+...+......+..+...+.........+.+......+...+.................+......+....+...+...+..+...+.......+..+......+...+......+.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Certificate request self-signature ok
subject=CN = loki
certs/services/loki/tls.crt: OK
.....+.....+......+.+..+......+.+......+...+............+..+..........+..+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*........+.....................+......+........+.+......+...+..+...............+...+.+..+...+.......+.....+...............+.......+.....+.+..+....+...+..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+....+..+.......+..+...+...+....+...+..+......+.........+.+..+.+.........+.....+...+...+...............+.......+........+......+.+.........+......+.....+.........+.........+.......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.+...+.........+...+...+.............+.....+......+...+.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*..+...+.+......+.....+.+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+...+.+...+............+.....+...+...+...+....+..+.+..+................+..+.........+....+..+....+.....+....+..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Certificate request self-signature ok
subject=CN = tempo
certs/services/tempo/tls.crt: OK
.......+.........+......+..+.......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*........+.......+..+....+......+...+...............+......+..+...+....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*........+...+...........+....+..+....+...+.....+.+......+...+...+.................+......+.......+........+.+.....+......+...+.+...+...+.....+.........+.....................+...+.+....................+..........+.....+....+..+.......+.....+...+.......+..+.+............+......+....................+.+..................+...........+.........+.......+...+..+......+....+......+...+.........+..+.+..+.+..+.........+......+....+...+......+..+...+....+...+........+.........+...+.......+..+.+.........+.........+............+..+...+.......+.....+......+.+...+...........+........................+.+.........+........+...+......+.............+..+.+.....+.......+.....+.+............+...+............+........+.......+........+.....................+......+..........+.....+.............+.....+..........+.........+...+..+.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
....+....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.......+...+..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+......................+...........+...+.+...........+...+.........+...+.........+....+......+.........+..+.........+.+...+......+.........+.....+......+......+..........+........+.......+..+......................+...+.....+...+.......+..+.+...............+..+.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Certificate request self-signature ok
subject=CN = openbao
certs/services/openbao/tls.crt: OK
.+......+....+..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+........+...+...+.+..............+.+...+..+....+...........+.+...+..+...+....+...........+.......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*........+.+......+...+.....+.+......+.....+......+.......+.....+......+.+.........+.........+...+..+.+..+.......+.....+.......+........+.......+...+..................+........+....+.....................+.....+................+...........+.......+......+......+..............+...................+..+.........+.......+.....+.........+.+.....+....+.....+....+.....+.+......+............+...+.................+.+.....+.+.....+...+...+.......+.....................+..+.........+......+...+....+........+...+....+......+............+...+..+....+...........+...+......+.+........+......+...............+......+......................+...........+......+......+....+......+.........+...+........+...+.......+..+.+..+.........+.........+.+.........+..............+......+.......+..+......+....+...+.........+..................+..+...+............+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
........+....+..+.............+..+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*..+...+.+......+.....+......+.........+.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*...+.+.....+.+.....+...+............+.......+.....+.......+...+.....+.+......+.....+...............+....+.....+.+........+...+....+..............+......+......+....+...+......+..+.............+.....+..........+...............+.....+....+.....+..........+...+...............+.....+....+.....+...+.......+...+........+...+...............+.+......+.........+..................+........+.........+...............+....+.........+...+..................+......+......+...+............+..+......+..........+.....+.......+...+.........+..+...+...+..........+...+............+..+.............+.....+...+......+...............+.+...+..............+.+..+...........................+.......+...+..+...+.+.....+.......+..+............+.+..+................+............+..+................+..+....+........+......+......+.+.........+.....+.+.....+....+......+.........+...+...+.....+.......+..+......+....+.....+...+..................+....+...+...+..+.+.....+..........+.....+.+.....+.........+...............+.......+............+.....+.+..+..........+...+..+.......+..+.+..+............+....+.........+..+......+...........................+.......+.....+......+...+.......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Certificate request self-signature ok
subject=CN = s3
certs/services/s3/tls.crt: OK
....+.+......+.....+...+....+...........+.+...+..+......+.........+.+..+.+...............+.....+.+.........+...........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*....+.....+.+.....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*....+..+......+...+.........+.......+...+..+.+........+..........+..+...+....+.....+...+...............+.......+..+.+..............+.........+....+...+.....+..........+..............+......+...............+.......+......+...........+......+............+.......+......+..+......+.+...+..+.+...+.....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
...+...+..............+..................+.+......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*...+...+..+...+..........+..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.....+......+.........+..+......+...............+...+.+...+......+.....+.+...+..+.+.........+......+.....+...+.......+..+...+.......+...+............+.................+..........+......+...+.....+.........+.+.....+......+.+...+..+.......+..+...+...+...+.+......+..................+..+....+...+..+....+.....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Certificate request self-signature ok
subject=CN = grafana
certs/services/grafana/tls.crt: OK
.......+..+.+..+...+....+.....+...+...+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*............+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.+.......+...+..+......+.........+.+.................+...+...+.......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*....+......+..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*...+.........+..+....+.....+...+......+....+..+.+.....+.......+..+......+....+........+......+.........+.+...............+............+.....+.......+...+..+.......+......+...............+.....+....+...+.....+.+..+...+..........+......+........+.+......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Certificate request self-signature ok
subject=CN = unauthorized-client
certs/services/unauthorized-client/tls.crt: OK
.+......+..+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*..........+.....+...+....+......+..+.+...........+...+......+......+................+..+............+.+........+....+........+............+.+......+...+...+.................+.+.....+.........+...+...+.+.....+...................+..+...+....+...............+........+..........+..+.+..+...+......+.....................+..........+..+...+....+......+...+...........+..................+.+..+..........+.....+...+.+...+.....+......+.......+...+......+...+..+.............+...+...+.....+......+.+...+..............+......+.........+.......+.....+...+......+.+.....+....+.....+.+......+..+...+..................+.......+..+.+.........+.....+.......+...+......+..+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
..+..........+..+.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*......+..+.......+..+.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*........+..........+...+.....+.+...+......+.....+......+.........+......................+.....+.......+......+......+.....+......+.......+.....+...+..................+.+...........+...+....+.....+...+.........+.+........+.......+..+...............+..........+......+............+...............+.....+....+...+.....+......+....+..+.........................+...+.....+.+......+......+........+....+.................+.+..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Certificate request self-signature ok
subject=CN = bao-api-1
certs/services/bao-api-1/tls.crt: OK
.+...........+...+.+...+..+....+..+...+.......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*...+...+.+..............+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.........+..+.+............+..+.+............+........+.+.....+................+............+...+..+.......+........+...+............+.+.........+......+...........+......+...+......+...+...+....+...+...+........+....+..+..........+...+..+....+..+....+........+.+...........+...+......................+.....+..........+......+............+............+........+...+...+....+.....+..........+......+......+......+.....+.......+...+............+..+....+.....+......+.............+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.....+....+...+........+..................+.......+........+.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+........+...+...+.+.....+...+.+.....+.+........+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.......+.........+.+.....+...+............+.+........+......+......+....+.........+..+...+.+.........+..+...+...............+.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Certificate request self-signature ok
subject=CN = bao-api-2
certs/services/bao-api-2/tls.crt: OK
...+......+.......+...+.....+.......+..+......................+...+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*........+.......+......+..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.....+....+........+.+..............+.......+......+..+.......+.....+...............+.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.+.+......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*..............+......+....+..+.......+.....+...+.......+......+..+...+.+...+......+......+..............+.+......+.....+..........+.....+...+......+.+..................+.........+.....+.............+...+.....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Certificate request self-signature ok
subject=CN = bao-worker
certs/services/bao-worker/tls.crt: OK
.........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*..+.....+...+.+....................+......+.+...............+.....+.............+......+...+.....+.+..+.......+..+.+..+......+.+......+..+......+.+..............+.+...+..+.........+....+...............+..+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*...........+..........+.....+....+.................+..........+.........+......+..+.+..+....+...+.................+.+.....+.......+..+....+..............+.+.....+.+........+.+..+...+.........+.............+.....+...+......+...+......+.+.....+.............+..+......+....+...+...........+.+......+...+..+....+...+............+......+..+.+..+.........+.+........+.+..............+.........+.+..+.......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
............+.....+...+......+.+............+..+....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+...............+.....+.......+.....+.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+....+.....+.+...........+....+.....+.+...........+....+.....+.+........+....+........+..........+..+...+............+......+.+......+............+..+.+..+......+.+..........................+...+....+.................+.+..+.+..+.............+......+...+........+.............+..............+.+..+...+.+.....................+............+..+.+.........+...+...........+....+...+...+..+...+...............+.......+...+......+.....+.+..+..................+...+......+...+.......+...+...........+.+........+...+....+...+.....+.+......+.....+...+.+...........+.+..............+.+...+...........+.+..+.......+........+.+..+...+.........+.+..+....+........+......+......+...+.+............+.....+....+...+..+......+..........+...+......+...+........+...+.+......+...+..+.............+...............+.....+....+..+.........+.+.....+.............+.....+.+..+....+...+........+...+...............+.+......+.........+........+.+......+........+...+.........+.+.....+...+...................+.....+.+............+.....+...+......+.+...+......+........+.......+...........+...+.+.....+......+..........+.....+....+.........+.....+....+...+...+..+.......+...+.........+......+...+.........+..+...................+..+.............+......+........+...+...+....+.....+...+....+...+..+...+.......+......+..+...+...+.+...+...+.......................+......+....+..............+.....................+.+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Certificate request self-signature ok
subject=CN = bao-dispatcher
certs/services/bao-dispatcher/tls.crt: OK
PASS: local PKI generated
PASS: mTLS identity configuration generated
PASS: postgres TLS permissions configured
PASS: redis TLS permissions configured
PASS: rabbitmq TLS permissions configured
PASS: otel-collector TLS permissions configured
PASS: loki TLS permissions configured
PASS: tempo TLS permissions configured
PASS: grafana TLS permissions configured
PASS: prometheus TLS permissions configured
PASS: bao-api-1 TLS permissions configured
PASS: bao-api-2 TLS permissions configured
PASS: bao-worker TLS permissions configured
PASS: bao-dispatcher TLS permissions configured
PASS: openbao TLS permissions configured
PASS: runtime TLS permissions prepared
PASS: PostgreSQL and Redis credentials generated
PASS: separate S3 and RabbitMQ credentials generated
PASS: otel_api_password prepared
PASS: otel_worker_password prepared
PASS: otel_dispatcher_password prepared
PASS: prometheus_scrape_password prepared
PASS: grafana_datasource_password prepared
PASS: otel_backend_password prepared
PASS: Collector authentication file prepared
PASS: backend authentication files prepared
PASS: Collector backend authorization prepared
PASS: Prometheus scrape authentication prepared
PASS: Prometheus HTTPS web configuration prepared
PASS: Grafana HTTPS datasources prepared
+375
View File
@@ -0,0 +1,375 @@
Image lab7verify-api-1 Building
Image lab7verify-migrate Building
Image lab7verify-worker Building
Image lab7verify-api-2 Building
Image lab7verify-dispatcher Building
#1 [internal] load local bake definitions
#1 reading from stdin 2.50kB done
#1 DONE 0.0s
#2 [migrate internal] load build definition from Dockerfile
#2 transferring dockerfile: 660B 0.0s done
#2 DONE 0.1s
#3 [dispatcher internal] load metadata for docker.io/library/python:3.13.15-slim
#3 DONE 2.5s
#4 [api-2 internal] load .dockerignore
#4 transferring context: 293B 0.0s done
#4 DONE 0.1s
#5 [api-2 1/10] FROM docker.io/library/python:3.13.15-slim@sha256:7c61056e61ac89e852de05f3dc6fa51a6dd2181797bceed46aa725dd7cb2cd3b
#5 resolve docker.io/library/python:3.13.15-slim@sha256:7c61056e61ac89e852de05f3dc6fa51a6dd2181797bceed46aa725dd7cb2cd3b 0.1s done
#5 DONE 0.1s
#6 [migrate internal] load build context
#6 transferring context: 316.48kB 0.0s done
#6 DONE 0.1s
#7 [migrate 2/10] WORKDIR /app
#7 CACHED
#8 [dispatcher 3/10] COPY requirements.txt .
#8 DONE 0.1s
#9 [dispatcher 4/10] RUN pip install --no-cache-dir -r requirements.txt
#9 6.204 Collecting annotated-doc==0.0.5 (from -r requirements.txt (line 1))
#9 6.718 Downloading annotated_doc-0.0.5-py3-none-any.whl.metadata (6.5 kB)
#9 6.880 Collecting annotated-types==0.8.0 (from -r requirements.txt (line 2))
#9 6.988 Downloading annotated_types-0.8.0-py3-none-any.whl.metadata (15 kB)
#9 7.150 Collecting anyio==4.15.1 (from -r requirements.txt (line 3))
#9 7.249 Downloading anyio-4.15.1-py3-none-any.whl.metadata (4.7 kB)
#9 7.391 Collecting click==8.5.0 (from -r requirements.txt (line 4))
#9 7.489 Downloading click-8.5.0-py3-none-any.whl.metadata (2.6 kB)
#9 7.770 Collecting fastapi==0.141.1 (from -r requirements.txt (line 5))
#9 7.867 Downloading fastapi-0.141.1-py3-none-any.whl.metadata (27 kB)
#9 8.018 Collecting h11==0.16.0 (from -r requirements.txt (line 6))
#9 8.118 Downloading h11-0.16.0-py3-none-any.whl.metadata (8.3 kB)
#9 8.242 Collecting idna==3.20 (from -r requirements.txt (line 7))
#9 8.349 Downloading idna-3.20-py3-none-any.whl.metadata (7.2 kB)
#9 8.806 Collecting pydantic==2.13.5 (from -r requirements.txt (line 8))
#9 8.911 Downloading pydantic-2.13.5-py3-none-any.whl.metadata (110 kB)
#9 11.02 Collecting pydantic_core==2.46.5 (from -r requirements.txt (line 9))
#9 11.14 Downloading pydantic_core-2.46.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (6.6 kB)
#9 11.32 Collecting starlette==1.7.0 (from -r requirements.txt (line 10))
#9 11.42 Downloading starlette-1.7.0-py3-none-any.whl.metadata (6.6 kB)
#9 11.53 Collecting typing-inspection==0.4.4 (from -r requirements.txt (line 11))
#9 11.62 Downloading typing_inspection-0.4.4-py3-none-any.whl.metadata (2.6 kB)
#9 11.74 Collecting typing_extensions==4.16.0 (from -r requirements.txt (line 12))
#9 11.84 Downloading typing_extensions-4.16.0-py3-none-any.whl.metadata (3.3 kB)
#9 12.00 Collecting uvicorn==0.53.0 (from -r requirements.txt (line 13))
#9 12.11 Downloading uvicorn-0.53.0-py3-none-any.whl.metadata (6.6 kB)
#9 13.15 Collecting SQLAlchemy==2.1.4 (from -r requirements.txt (line 14))
#9 13.25 Downloading sqlalchemy-2.1.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (9.7 kB)
#9 13.57 Collecting asyncpg==0.32.0 (from -r requirements.txt (line 15))
#9 13.67 Downloading asyncpg-0.32.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (4.4 kB)
#9 13.82 Collecting alembic==1.20.0 (from -r requirements.txt (line 16))
#9 13.93 Downloading alembic-1.20.0-py3-none-any.whl.metadata (7.3 kB)
#9 14.58 Collecting greenlet==3.5.6 (from -r requirements.txt (line 17))
#9 14.68 Downloading greenlet-3.5.6-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.metadata (3.8 kB)
#9 14.82 Collecting argon2-cffi==25.1.0 (from -r requirements.txt (line 18))
#9 14.92 Downloading argon2_cffi-25.1.0-py3-none-any.whl.metadata (4.1 kB)
#9 15.10 Collecting redis==7.0.1 (from -r requirements.txt (line 19))
#9 15.22 Downloading redis-7.0.1-py3-none-any.whl.metadata (12 kB)
#9 15.93 Collecting boto3==1.43.120 (from -r requirements.txt (line 20))
#9 16.03 Downloading boto3-1.43.120-py3-none-any.whl.metadata (6.6 kB)
#9 16.66 Collecting Pillow==13.0.0 (from -r requirements.txt (line 21))
#9 16.76 Downloading pillow-13.0.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.metadata (9.1 kB)
#9 16.90 Collecting python-multipart==0.0.32 (from -r requirements.txt (line 22))
#9 17.01 Downloading python_multipart-0.0.32-py3-none-any.whl.metadata (2.1 kB)
#9 17.12 Collecting pika==1.3.2 (from -r requirements.txt (line 23))
#9 17.22 Downloading pika-1.3.2-py3-none-any.whl.metadata (13 kB)
#9 17.38 Collecting opentelemetry-api==1.45.2 (from -r requirements.txt (line 24))
#9 17.49 Downloading opentelemetry_api-1.45.2-py3-none-any.whl.metadata (1.4 kB)
#9 17.62 Collecting opentelemetry-sdk==1.45.2 (from -r requirements.txt (line 25))
#9 17.72 Downloading opentelemetry_sdk-1.45.2-py3-none-any.whl.metadata (1.6 kB)
#9 17.85 Collecting opentelemetry-exporter-otlp-proto-http==1.45.2 (from -r requirements.txt (line 26))
#9 17.95 Downloading opentelemetry_exporter_otlp_proto_http-1.45.2-py3-none-any.whl.metadata (3.0 kB)
#9 18.12 Collecting opentelemetry-instrumentation-fastapi==0.66b2 (from -r requirements.txt (line 27))
#9 18.22 Downloading opentelemetry_instrumentation_fastapi-0.66b2-py3-none-any.whl.metadata (2.2 kB)
#9 18.35 Collecting opentelemetry-instrumentation-asgi==0.66b2 (from -r requirements.txt (line 28))
#9 18.45 Downloading opentelemetry_instrumentation_asgi-0.66b2-py3-none-any.whl.metadata (2.0 kB)
#9 18.65 Collecting opentelemetry-instrumentation-logging==0.66b2 (from -r requirements.txt (line 29))
#9 18.75 Downloading opentelemetry_instrumentation_logging-0.66b2-py3-none-any.whl.metadata (1.9 kB)
#9 18.93 Collecting opentelemetry-instrumentation-botocore==0.66b2 (from -r requirements.txt (line 30))
#9 19.02 Downloading opentelemetry_instrumentation_botocore-0.66b2-py3-none-any.whl.metadata (3.3 kB)
#9 19.14 Collecting opentelemetry-instrumentation-pika==0.66b2 (from -r requirements.txt (line 31))
#9 19.24 Downloading opentelemetry_instrumentation_pika-0.66b2-py3-none-any.whl.metadata (1.9 kB)
#9 19.36 Collecting opentelemetry-semantic-conventions==0.66b2 (from -r requirements.txt (line 32))
#9 19.57 Downloading opentelemetry_semantic_conventions-0.66b2-py3-none-any.whl.metadata (2.4 kB)
#9 19.70 Collecting openapi-spec-validator==0.7.2 (from -r requirements.txt (line 34))
#9 19.80 Downloading openapi_spec_validator-0.7.2-py3-none-any.whl.metadata (5.7 kB)
#9 20.01 Collecting Mako (from alembic==1.20.0->-r requirements.txt (line 16))
#9 20.10 Downloading mako-1.4.3-py3-none-any.whl.metadata (2.9 kB)
#9 20.23 Collecting argon2-cffi-bindings (from argon2-cffi==25.1.0->-r requirements.txt (line 18))
#9 20.33 Downloading argon2_cffi_bindings-26.2.0-cp310-abi3-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl.metadata (7.6 kB)
#9 21.06 Collecting botocore<1.44.0,>=1.43.120 (from boto3==1.43.120->-r requirements.txt (line 20))
#9 21.18 Downloading botocore-1.43.127-py3-none-any.whl.metadata (5.6 kB)
#9 21.32 Collecting jmespath<2.0.0,>=0.7.1 (from boto3==1.43.120->-r requirements.txt (line 20))
#9 21.41 Downloading jmespath-1.1.0-py3-none-any.whl.metadata (7.6 kB)
#9 21.54 Collecting s3transfer<0.20.0,>=0.19.0 (from boto3==1.43.120->-r requirements.txt (line 20))
#9 21.63 Downloading s3transfer-0.19.3-py3-none-any.whl.metadata (1.7 kB)
#9 21.78 Collecting googleapis-common-protos~=1.52 (from opentelemetry-exporter-otlp-proto-http==1.45.2->-r requirements.txt (line 26))
#9 21.88 Downloading googleapis_common_protos-1.76.0-py3-none-any.whl.metadata (8.5 kB)
#9 22.00 Collecting opentelemetry-exporter-http-transport==0.66b2 (from opentelemetry-exporter-http-transport[requests]==0.66b2->opentelemetry-exporter-otlp-proto-http==1.45.2->-r requirements.txt (line 26))
#9 22.11 Downloading opentelemetry_exporter_http_transport-0.66b2-py3-none-any.whl.metadata (2.3 kB)
#9 22.22 Collecting opentelemetry-exporter-otlp-common==0.66b2 (from opentelemetry-exporter-otlp-proto-http==1.45.2->-r requirements.txt (line 26))
#9 22.31 Downloading opentelemetry_exporter_otlp_common-0.66b2-py3-none-any.whl.metadata (1.9 kB)
#9 22.43 Collecting opentelemetry-exporter-otlp-proto-common==1.45.2 (from opentelemetry-exporter-otlp-proto-http==1.45.2->-r requirements.txt (line 26))
#9 22.53 Downloading opentelemetry_exporter_otlp_proto_common-1.45.2-py3-none-any.whl.metadata (1.8 kB)
#9 22.68 Collecting opentelemetry-proto==1.45.2 (from opentelemetry-exporter-otlp-proto-http==1.45.2->-r requirements.txt (line 26))
#9 22.79 Downloading opentelemetry_proto-1.45.2-py3-none-any.whl.metadata (2.3 kB)
#9 22.93 Collecting requests~=2.7 (from opentelemetry-exporter-otlp-proto-http==1.45.2->-r requirements.txt (line 26))
#9 23.02 Downloading requests-2.34.2-py3-none-any.whl.metadata (4.8 kB)
#9 23.16 Collecting opentelemetry-instrumentation==0.66b2 (from opentelemetry-instrumentation-fastapi==0.66b2->-r requirements.txt (line 27))
#9 23.26 Downloading opentelemetry_instrumentation-0.66b2-py3-none-any.whl.metadata (7.2 kB)
#9 23.41 Collecting opentelemetry-util-http==0.66b2 (from opentelemetry-instrumentation-fastapi==0.66b2->-r requirements.txt (line 27))
#9 23.51 Downloading opentelemetry_util_http-0.66b2-py3-none-any.whl.metadata (2.6 kB)
#9 23.63 Collecting asgiref~=3.0 (from opentelemetry-instrumentation-asgi==0.66b2->-r requirements.txt (line 28))
#9 23.73 Downloading asgiref-3.13.0-py3-none-any.whl.metadata (12 kB)
#9 23.85 Collecting opentelemetry-propagator-aws-xray~=1.0 (from opentelemetry-instrumentation-botocore==0.66b2->-r requirements.txt (line 30))
#9 23.98 Downloading opentelemetry_propagator_aws_xray-1.0.2-py3-none-any.whl.metadata (2.5 kB)
#9 25.39 Collecting wrapt<3.0.0,>=1.0.0 (from opentelemetry-instrumentation-botocore==0.66b2->-r requirements.txt (line 30))
#9 25.50 Downloading wrapt-2.5.2-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.metadata (7.6 kB)
#9 25.64 Collecting packaging>=20.0 (from opentelemetry-instrumentation-pika==0.66b2->-r requirements.txt (line 31))
#9 25.74 Downloading packaging-26.4-py3-none-any.whl.metadata (3.5 kB)
#9 25.93 Collecting jsonschema<5.0.0,>=4.18.0 (from openapi-spec-validator==0.7.2->-r requirements.txt (line 34))
#9 26.04 Downloading jsonschema-4.26.0-py3-none-any.whl.metadata (7.6 kB)
#9 26.17 Collecting jsonschema-path<0.4.0,>=0.3.1 (from openapi-spec-validator==0.7.2->-r requirements.txt (line 34))
#9 26.30 Downloading jsonschema_path-0.3.4-py3-none-any.whl.metadata (4.3 kB)
#9 26.59 Collecting lazy-object-proxy<2.0.0,>=1.7.1 (from openapi-spec-validator==0.7.2->-r requirements.txt (line 34))
#9 26.69 Downloading lazy_object_proxy-1.13.0-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.metadata (5.1 kB)
#9 26.81 Collecting openapi-schema-validator<0.7.0,>=0.6.0 (from openapi-spec-validator==0.7.2->-r requirements.txt (line 34))
#9 26.93 Downloading openapi_schema_validator-0.6.3-py3-none-any.whl.metadata (5.4 kB)
#9 27.52 Collecting protobuf<8.0,>=5.0 (from opentelemetry-proto==1.45.2->opentelemetry-exporter-otlp-proto-http==1.45.2->-r requirements.txt (line 26))
#9 27.62 Downloading protobuf-7.36.2-cp310-abi3-manylinux2014_x86_64.whl.metadata (595 bytes)
#9 27.76 Collecting python-dateutil<3.0.0,>=2.1 (from botocore<1.44.0,>=1.43.120->boto3==1.43.120->-r requirements.txt (line 20))
#9 27.86 Downloading python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB)
#9 28.02 Collecting urllib3!=2.2.0,<3,>=1.25.4 (from botocore<1.44.0,>=1.43.120->boto3==1.43.120->-r requirements.txt (line 20))
#9 28.13 Downloading urllib3-2.8.0-py3-none-any.whl.metadata (7.4 kB)
#9 28.30 Collecting attrs>=22.2.0 (from jsonschema<5.0.0,>=4.18.0->openapi-spec-validator==0.7.2->-r requirements.txt (line 34))
#9 28.40 Downloading attrs-26.1.0-py3-none-any.whl.metadata (8.8 kB)
#9 28.62 Collecting jsonschema-specifications>=2023.03.6 (from jsonschema<5.0.0,>=4.18.0->openapi-spec-validator==0.7.2->-r requirements.txt (line 34))
#9 28.71 Downloading jsonschema_specifications-2025.9.1-py3-none-any.whl.metadata (2.9 kB)
#9 28.87 Collecting referencing>=0.28.4 (from jsonschema<5.0.0,>=4.18.0->openapi-spec-validator==0.7.2->-r requirements.txt (line 34))
#9 28.97 Downloading referencing-0.37.0-py3-none-any.whl.metadata (2.8 kB)
#9 29.93 Collecting rpds-py>=0.25.0 (from jsonschema<5.0.0,>=4.18.0->openapi-spec-validator==0.7.2->-r requirements.txt (line 34))
#9 30.05 Downloading rpds_py-2026.9.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (4.1 kB)
#9 30.31 Collecting PyYAML>=5.1 (from jsonschema-path<0.4.0,>=0.3.1->openapi-spec-validator==0.7.2->-r requirements.txt (line 34))
#9 30.41 Downloading pyyaml-6.0.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (2.3 kB)
#9 30.52 Collecting pathable<0.5.0,>=0.4.1 (from jsonschema-path<0.4.0,>=0.3.1->openapi-spec-validator==0.7.2->-r requirements.txt (line 34))
#9 30.63 Downloading pathable-0.4.4-py3-none-any.whl.metadata (1.8 kB)
#9 30.66 Collecting referencing>=0.28.4 (from jsonschema<5.0.0,>=4.18.0->openapi-spec-validator==0.7.2->-r requirements.txt (line 34))
#9 30.76 Downloading referencing-0.36.2-py3-none-any.whl.metadata (2.8 kB)
#9 30.89 Collecting rfc3339-validator (from openapi-schema-validator<0.7.0,>=0.6.0->openapi-spec-validator==0.7.2->-r requirements.txt (line 34))
#9 30.99 Downloading rfc3339_validator-0.1.4-py2.py3-none-any.whl.metadata (1.5 kB)
#9 31.13 Collecting six>=1.5 (from python-dateutil<3.0.0,>=2.1->botocore<1.44.0,>=1.43.120->boto3==1.43.120->-r requirements.txt (line 20))
#9 31.23 Downloading six-1.17.0-py2.py3-none-any.whl.metadata (1.7 kB)
#9 31.78 Collecting charset_normalizer<4,>=2 (from requests~=2.7->opentelemetry-exporter-otlp-proto-http==1.45.2->-r requirements.txt (line 26))
#9 31.88 Downloading charset_normalizer-3.5.3-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.metadata (43 kB)
#9 32.06 Collecting certifi>=2023.5.7 (from requests~=2.7->opentelemetry-exporter-otlp-proto-http==1.45.2->-r requirements.txt (line 26))
#9 32.19 Downloading certifi-2026.11.20-py3-none-any.whl.metadata (2.5 kB)
#9 32.72 Collecting cffi>=1.0.1 (from argon2-cffi-bindings->argon2-cffi==25.1.0->-r requirements.txt (line 18))
#9 32.90 Downloading cffi-2.1.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.metadata (2.5 kB)
#9 33.10 Collecting pycparser (from cffi>=1.0.1->argon2-cffi-bindings->argon2-cffi==25.1.0->-r requirements.txt (line 18))
#9 33.29 Downloading pycparser-3.12-py3-none-any.whl.metadata (9.7 kB)
#9 33.68 Collecting MarkupSafe>=2.0 (from Mako->alembic==1.20.0->-r requirements.txt (line 16))
#9 33.82 Downloading markupsafe-3.0.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (2.7 kB)
#9 34.01 Downloading annotated_doc-0.0.5-py3-none-any.whl (5.3 kB)
#9 34.11 Downloading annotated_types-0.8.0-py3-none-any.whl (13 kB)
#9 34.31 Downloading anyio-4.15.1-py3-none-any.whl (132 kB)
#9 34.52 Downloading click-8.5.0-py3-none-any.whl (125 kB)
#9 34.86 Downloading fastapi-0.141.1-py3-none-any.whl (131 kB)
#9 35.06 Downloading h11-0.16.0-py3-none-any.whl (37 kB)
#9 35.26 Downloading idna-3.20-py3-none-any.whl (69 kB)
#9 35.48 Downloading pydantic-2.13.5-py3-none-any.whl (472 kB)
#9 36.03 Downloading pydantic_core-2.46.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.1 MB)
#9 36.27 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 11.4 MB/s 0:00:00
#9 36.36 Downloading starlette-1.7.0-py3-none-any.whl (78 kB)
#9 36.47 Downloading typing_inspection-0.4.4-py3-none-any.whl (14 kB)
#9 36.56 Downloading typing_extensions-4.16.0-py3-none-any.whl (45 kB)
#9 36.71 Downloading uvicorn-0.53.0-py3-none-any.whl (87 kB)
#9 36.82 Downloading sqlalchemy-2.1.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (4.6 MB)
#9 37.24 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.6/4.6 MB 13.7 MB/s 0:00:00
#9 37.34 Downloading asyncpg-0.32.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (3.8 MB)
#9 37.71 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.8/3.8 MB 13.0 MB/s 0:00:00
#9 37.81 Downloading alembic-1.20.0-py3-none-any.whl (268 kB)
#9 37.92 Downloading greenlet-3.5.6-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (623 kB)
#9 38.00 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 623.8/623.8 kB 12.3 MB/s 0:00:00
#9 38.09 Downloading argon2_cffi-25.1.0-py3-none-any.whl (14 kB)
#9 38.18 Downloading redis-7.0.1-py3-none-any.whl (339 kB)
#9 38.33 Downloading boto3-1.43.120-py3-none-any.whl (140 kB)
#9 38.51 Downloading pillow-13.0.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (7.1 MB)
#9 39.05 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.1/7.1 MB 15.9 MB/s 0:00:00
#9 39.14 Downloading python_multipart-0.0.32-py3-none-any.whl (30 kB)
#9 39.23 Downloading pika-1.3.2-py3-none-any.whl (155 kB)
#9 39.35 Downloading opentelemetry_api-1.45.2-py3-none-any.whl (60 kB)
#9 39.47 Downloading opentelemetry_sdk-1.45.2-py3-none-any.whl (141 kB)
#9 39.62 Downloading opentelemetry_exporter_otlp_proto_http-1.45.2-py3-none-any.whl (22 kB)
#9 39.72 Downloading opentelemetry_instrumentation_fastapi-0.66b2-py3-none-any.whl (14 kB)
#9 39.82 Downloading opentelemetry_instrumentation_asgi-0.66b2-py3-none-any.whl (15 kB)
#9 39.91 Downloading opentelemetry_instrumentation_logging-0.66b2-py3-none-any.whl (15 kB)
#9 40.01 Downloading opentelemetry_instrumentation_botocore-0.66b2-py3-none-any.whl (36 kB)
#9 40.13 Downloading opentelemetry_instrumentation_pika-0.66b2-py3-none-any.whl (12 kB)
#9 40.22 Downloading opentelemetry_semantic_conventions-0.66b2-py3-none-any.whl (206 kB)
#9 40.37 Downloading openapi_spec_validator-0.7.2-py3-none-any.whl (39 kB)
#9 40.49 Downloading opentelemetry_exporter_http_transport-0.66b2-py3-none-any.whl (12 kB)
#9 40.59 Downloading opentelemetry_exporter_otlp_common-0.66b2-py3-none-any.whl (12 kB)
#9 40.71 Downloading opentelemetry_exporter_otlp_proto_common-1.45.2-py3-none-any.whl (15 kB)
#9 40.82 Downloading opentelemetry_instrumentation-0.66b2-py3-none-any.whl (36 kB)
#9 40.92 Downloading opentelemetry_proto-1.45.2-py3-none-any.whl (72 kB)
#9 41.03 Downloading opentelemetry_util_http-0.66b2-py3-none-any.whl (8.4 kB)
#9 41.12 Downloading asgiref-3.13.0-py3-none-any.whl (27 kB)
#9 41.23 Downloading botocore-1.43.127-py3-none-any.whl (16.3 MB)
#9 42.29 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 16.3/16.3 MB 16.6 MB/s 0:00:01
#9 42.38 Downloading googleapis_common_protos-1.76.0-py3-none-any.whl (307 kB)
#9 42.52 Downloading jmespath-1.1.0-py3-none-any.whl (20 kB)
#9 42.62 Downloading jsonschema-4.26.0-py3-none-any.whl (90 kB)
#9 42.73 Downloading jsonschema_path-0.3.4-py3-none-any.whl (14 kB)
#9 42.83 Downloading lazy_object_proxy-1.13.0-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (71 kB)
#9 42.93 Downloading openapi_schema_validator-0.6.3-py3-none-any.whl (8.8 kB)
#9 43.02 Downloading opentelemetry_propagator_aws_xray-1.0.2-py3-none-any.whl (10 kB)
#9 43.12 Downloading pathable-0.4.4-py3-none-any.whl (9.6 kB)
#9 43.22 Downloading protobuf-7.36.2-cp310-abi3-manylinux2014_x86_64.whl (343 kB)
#9 43.37 Downloading python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
#9 43.53 Downloading referencing-0.36.2-py3-none-any.whl (26 kB)
#9 43.64 Downloading requests-2.34.2-py3-none-any.whl (73 kB)
#9 43.79 Downloading charset_normalizer-3.5.3-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (256 kB)
#9 43.94 Downloading s3transfer-0.19.3-py3-none-any.whl (90 kB)
#9 44.06 Downloading urllib3-2.8.0-py3-none-any.whl (135 kB)
#9 44.21 Downloading wrapt-2.5.2-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (248 kB)
#9 44.33 Downloading attrs-26.1.0-py3-none-any.whl (67 kB)
#9 44.45 Downloading certifi-2026.11.20-py3-none-any.whl (127 kB)
#9 44.61 Downloading jsonschema_specifications-2025.9.1-py3-none-any.whl (18 kB)
#9 44.71 Downloading packaging-26.4-py3-none-any.whl (140 kB)
#9 44.83 Downloading pyyaml-6.0.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (838 kB)
#9 44.95 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 838.5/838.5 kB 19.7 MB/s 0:00:00
#9 45.05 Downloading rpds_py-2026.9.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (370 kB)
#9 45.19 Downloading six-1.17.0-py2.py3-none-any.whl (11 kB)
#9 45.28 Downloading argon2_cffi_bindings-26.2.0-cp310-abi3-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl (26 kB)
#9 45.38 Downloading cffi-2.1.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (221 kB)
#9 45.50 Downloading mako-1.4.3-py3-none-any.whl (80 kB)
#9 45.61 Downloading markupsafe-3.0.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (23 kB)
#9 45.70 Downloading pycparser-3.12-py3-none-any.whl (62 kB)
#9 45.81 Downloading rfc3339_validator-0.1.4-py2.py3-none-any.whl (3.5 kB)
#9 46.99 Installing collected packages: wrapt, urllib3, typing_extensions, six, rpds-py, redis, PyYAML, python-multipart, pycparser, protobuf, Pillow, pika, pathable, packaging, opentelemetry-util-http, MarkupSafe, lazy-object-proxy, jmespath, idna, h11, greenlet, click, charset_normalizer, certifi, attrs, asyncpg, asgiref, annotated-types, annotated-doc, uvicorn, typing-inspection, SQLAlchemy, rfc3339-validator, requests, referencing, python-dateutil, pydantic_core, opentelemetry-proto, opentelemetry-api, Mako, googleapis-common-protos, cffi, anyio, starlette, pydantic, opentelemetry-semantic-conventions, opentelemetry-propagator-aws-xray, opentelemetry-exporter-otlp-proto-common, opentelemetry-exporter-http-transport, jsonschema-specifications, jsonschema-path, botocore, argon2-cffi-bindings, alembic, s3transfer, opentelemetry-sdk, opentelemetry-instrumentation, jsonschema, fastapi, argon2-cffi, opentelemetry-instrumentation-pika, opentelemetry-instrumentation-logging, opentelemetry-instrumentation-botocore, opentelemetry-instrumentation-asgi, opentelemetry-exporter-otlp-common, openapi-schema-validator, boto3, opentelemetry-instrumentation-fastapi, opentelemetry-exporter-otlp-proto-http, openapi-spec-validator
#9 64.71
#9 64.73 Successfully installed Mako-1.4.3 MarkupSafe-3.0.4 Pillow-13.0.0 PyYAML-6.0.4 SQLAlchemy-2.1.4 alembic-1.20.0 annotated-doc-0.0.5 annotated-types-0.8.0 anyio-4.15.1 argon2-cffi-25.1.0 argon2-cffi-bindings-26.2.0 asgiref-3.13.0 asyncpg-0.32.0 attrs-26.1.0 boto3-1.43.120 botocore-1.43.127 certifi-2026.11.20 cffi-2.1.1 charset_normalizer-3.5.3 click-8.5.0 fastapi-0.141.1 googleapis-common-protos-1.76.0 greenlet-3.5.6 h11-0.16.0 idna-3.20 jmespath-1.1.0 jsonschema-4.26.0 jsonschema-path-0.3.4 jsonschema-specifications-2025.9.1 lazy-object-proxy-1.13.0 openapi-schema-validator-0.6.3 openapi-spec-validator-0.7.2 opentelemetry-api-1.45.2 opentelemetry-exporter-http-transport-0.66b2 opentelemetry-exporter-otlp-common-0.66b2 opentelemetry-exporter-otlp-proto-common-1.45.2 opentelemetry-exporter-otlp-proto-http-1.45.2 opentelemetry-instrumentation-0.66b2 opentelemetry-instrumentation-asgi-0.66b2 opentelemetry-instrumentation-botocore-0.66b2 opentelemetry-instrumentation-fastapi-0.66b2 opentelemetry-instrumentation-logging-0.66b2 opentelemetry-instrumentation-pika-0.66b2 opentelemetry-propagator-aws-xray-1.0.2 opentelemetry-proto-1.45.2 opentelemetry-sdk-1.45.2 opentelemetry-semantic-conventions-0.66b2 opentelemetry-util-http-0.66b2 packaging-26.4 pathable-0.4.4 pika-1.3.2 protobuf-7.36.2 pycparser-3.12 pydantic-2.13.5 pydantic_core-2.46.5 python-dateutil-2.9.0.post0 python-multipart-0.0.32 redis-7.0.1 referencing-0.36.2 requests-2.34.2 rfc3339-validator-0.1.4 rpds-py-2026.9.1 s3transfer-0.19.3 six-1.17.0 starlette-1.7.0 typing-inspection-0.4.4 typing_extensions-4.16.0 urllib3-2.8.0 uvicorn-0.53.0 wrapt-2.5.2
#9 64.74 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
#9 64.74
#9 64.74 [notice] A new release of pip is available: 26.2.1 -> 26.3
#9 64.74 [notice] To update, run: pip install --upgrade pip
#9 DONE 66.1s
#10 [api-2 5/10] COPY alembic.ini .
#10 DONE 0.2s
#11 [api-1 6/10] COPY migrations ./migrations
#11 DONE 0.1s
#12 [worker 7/10] COPY src ./src
#12 DONE 0.1s
#13 [dispatcher 8/10] COPY scripts ./scripts
#13 DONE 0.1s
#14 [worker 9/10] COPY tests ./tests
#14 DONE 0.1s
#15 [api-1 10/10] RUN useradd --create-home --uid 10001 appuser
#15 DONE 0.8s
#16 [worker] exporting to image
#16 exporting layers
#16 ...
#17 [dispatcher] exporting to image
#17 ...
#18 [api-1] exporting to image
#18 ...
#19 [api-2] exporting to image
#19 ...
#20 [migrate] exporting to image
#20 exporting layers 14.9s done
#20 exporting manifest sha256:b870d3abe0ff87c4a4639426d69f99095bb997c196884b893346e4f335585cf7
#20 ...
#19 [api-2] exporting to image
#19 exporting layers 14.9s done
#19 exporting manifest sha256:25246a42bdf82c2cee5347d9d666cdaa5d20ad4b1eb2220c22ba57f029c6e008 0.1s done
#19 exporting config sha256:d9cb8b3c1a4d16ac9f842d43f250a464fcd9c5eebd63999447c2eb6c3e17bff5
#19 exporting config sha256:d9cb8b3c1a4d16ac9f842d43f250a464fcd9c5eebd63999447c2eb6c3e17bff5 0.2s done
#19 exporting attestation manifest sha256:24263ad79eb207fcb70f83cfcf7419b379213b1006b5db40f6063484c3dcf2f2
#19 exporting attestation manifest sha256:24263ad79eb207fcb70f83cfcf7419b379213b1006b5db40f6063484c3dcf2f2 0.2s done
#19 exporting manifest list sha256:b07eea0a5811831be3e3bf808830128563e5feb10720774037d4a5e05c1b1eea
#19 exporting manifest list sha256:b07eea0a5811831be3e3bf808830128563e5feb10720774037d4a5e05c1b1eea 0.1s done
#19 naming to docker.io/library/lab7verify-api-2:latest
#19 naming to docker.io/library/lab7verify-api-2:latest 0.1s done
#19 unpacking to docker.io/library/lab7verify-api-2:latest
#19 ...
#16 [worker] exporting to image
#16 exporting layers 14.9s done
#16 exporting manifest sha256:98886f9408e8ea321f7813272159e5910c1db240801dcd7555e82173041c7abb 0.1s done
#16 exporting config sha256:24148c650d2c66fc230434cc524431d265a23e1011c88cf6c234db040dad5204 0.1s done
#16 exporting attestation manifest sha256:7f7d28ed4657840746ade23927e9c451897da502ee6c1b82163785a0dee6f013 0.2s done
#16 exporting manifest list sha256:5ead8356a8000a7b18d1b38910a702495583e5e3490d2c359cc0d2036293a5b1 0.2s done
#16 naming to docker.io/library/lab7verify-worker:latest 0.1s done
#16 unpacking to docker.io/library/lab7verify-worker:latest 5.5s done
#16 DONE 21.4s
#19 [api-2] exporting to image
#19 unpacking to docker.io/library/lab7verify-api-2:latest 5.6s done
#19 DONE 21.6s
#17 [dispatcher] exporting to image
#17 exporting layers 14.9s done
#17 exporting manifest sha256:442039502e8ee06b3c05af0b2b0e8feae034d686ba95c95c965b914e7f5de8dd 0.2s done
#17 exporting config sha256:3fe7c3a5aa173c6e96d161c4f90fef5648837fc70445239d812085474dbbbd35 0.1s done
#17 exporting attestation manifest sha256:42c859bfd841f162b22b620e4e7f6310b192e085b674d1f7d2d6ca5e660cb472 0.2s done
#17 exporting manifest list sha256:3c009e7b83b801248bc5754478575f9ff70afed10afb1e8de2f49ce818b64468 0.2s done
#17 naming to docker.io/library/lab7verify-dispatcher:latest 0.0s done
#17 unpacking to docker.io/library/lab7verify-dispatcher:latest 5.6s done
#17 DONE 21.6s
#20 [migrate] exporting to image
#20 exporting manifest sha256:b870d3abe0ff87c4a4639426d69f99095bb997c196884b893346e4f335585cf7 0.2s done
#20 exporting config sha256:15d555a9bc5bd69581c323b28e217d0554853c4d683ad62e4e080ede953cb161 0.1s done
#20 exporting attestation manifest sha256:7cde4c3f456b7d399c9e7b5acee9382c729dc95b071cb28ff31f3e8c61dbbdf0 0.2s done
#20 exporting manifest list sha256:bd75f0e1d60a6fc07506aa1bd062858c499b28d9bb5915ef6fadca40019d260d 0.2s done
#20 naming to docker.io/library/lab7verify-migrate:latest 0.0s done
#20 unpacking to docker.io/library/lab7verify-migrate:latest 5.6s done
#20 DONE 21.6s
#18 [api-1] exporting to image
#18 exporting layers 15.0s done
#18 exporting manifest sha256:18c7dd6e4a8fb08478e467ac7d04be47f41ad3000df3b40fed029f370193a913 0.1s done
#18 exporting config sha256:a80043bebb98b316c8a42982c432b309e9b0198cf3aad7bbd2cbcd93864244e9 0.1s done
#18 exporting attestation manifest sha256:cec676bac213ab0b43f11e621a028162f668e0f5fac9458ea2016d51cd8f0dbe 0.2s done
#18 exporting manifest list sha256:c653ea2315dc31ab9bfe0826070df2feead16a1042d0f73fe39aff18e30884a2 0.2s done
#18 naming to docker.io/library/lab7verify-api-1:latest 0.1s done
#18 unpacking to docker.io/library/lab7verify-api-1:latest 5.6s done
#18 DONE 21.7s
#21 [worker] resolving provenance for metadata file
#21 DONE 0.6s
#22 [api-2] resolving provenance for metadata file
#22 DONE 0.6s
#23 [migrate] resolving provenance for metadata file
#23 DONE 0.2s
#24 [dispatcher] resolving provenance for metadata file
#24 DONE 0.4s
#25 [api-1] resolving provenance for metadata file
#25 DONE 0.0s
Image lab7verify-api-2 Built
Image lab7verify-api-1 Built
Image lab7verify-dispatcher Built
Image lab7verify-worker Built
Image lab7verify-migrate Built
+5
View File
@@ -0,0 +1,5 @@
PASS: port 18443, correct CA accepted
PASS: port 8443, correct CA accepted
PASS: port 18443, foreign CA rejected
PASS: port 8443, foreign CA rejected
PASS: independent TLS trust domains
+302
View File
@@ -0,0 +1,302 @@
=== api-1 ===
User: appuser
Privileged: False
Network mode: lab7verify_default
PID mode: private
CapAdd: None
CapDrop: ['ALL']
SecurityOpt: ['no-new-privileges:true']
Memory MiB: 512
CPU: 1.0
PidsLimit: 256
ReadOnlyRootfs: False
Published ports: {}
PASS: basic isolation
=== api-1-proxy ===
User: image default
Privileged: False
Network mode: container:436feedde6980f5b4e97aae6689984d79209eac390151cc749ef543bdbe89737
PID mode: private
CapAdd: None
CapDrop: None
SecurityOpt: ['no-new-privileges:true']
Memory MiB: 128
CPU: 0.25
PidsLimit: 256
ReadOnlyRootfs: False
Published ports: {}
PASS: basic isolation
=== api-2 ===
User: appuser
Privileged: False
Network mode: lab7verify_default
PID mode: private
CapAdd: None
CapDrop: ['ALL']
SecurityOpt: ['no-new-privileges:true']
Memory MiB: 512
CPU: 1.0
PidsLimit: 256
ReadOnlyRootfs: False
Published ports: {}
PASS: basic isolation
=== api-2-proxy ===
User: image default
Privileged: False
Network mode: container:ae9aa22a578d06d81b5a345ef234c1e2ba7e5388598ffa1906365fe72f4984b4
PID mode: private
CapAdd: None
CapDrop: None
SecurityOpt: ['no-new-privileges:true']
Memory MiB: 128
CPU: 0.25
PidsLimit: 256
ReadOnlyRootfs: False
Published ports: {}
PASS: basic isolation
=== dispatcher ===
User: appuser
Privileged: False
Network mode: lab7verify_default
PID mode: private
CapAdd: None
CapDrop: ['ALL']
SecurityOpt: ['no-new-privileges:true']
Memory MiB: 512
CPU: 1.0
PidsLimit: 256
ReadOnlyRootfs: False
Published ports: {}
PASS: basic isolation
=== grafana ===
User: 472
Privileged: False
Network mode: lab7verify_default
PID mode: private
CapAdd: None
CapDrop: None
SecurityOpt: ['no-new-privileges:true']
Memory MiB: 384
CPU: 0.5
PidsLimit: 256
ReadOnlyRootfs: False
Published ports: {'3000/tcp': [{'HostIp': '127.0.0.1', 'HostPort': '13000'}]}
PASS: basic isolation
=== loki ===
User: 10001
Privileged: False
Network mode: lab7verify_default
PID mode: private
CapAdd: None
CapDrop: None
SecurityOpt: ['no-new-privileges:true']
Memory MiB: 512
CPU: 0.5
PidsLimit: 256
ReadOnlyRootfs: False
Published ports: {}
PASS: basic isolation
=== loki-proxy ===
User: image default
Privileged: False
Network mode: container:f9e7e3f837292f93b07808d1622aeaac76a7c866a2bcb354fcb9e312a7174c29
PID mode: private
CapAdd: None
CapDrop: None
SecurityOpt: ['no-new-privileges:true']
Memory MiB: 128
CPU: 0.25
PidsLimit: 256
ReadOnlyRootfs: False
Published ports: {}
PASS: basic isolation
=== nginx ===
User: image default
Privileged: False
Network mode: lab7verify_default
PID mode: private
CapAdd: None
CapDrop: None
SecurityOpt: ['no-new-privileges:true']
Memory MiB: 256
CPU: 0.5
PidsLimit: 256
ReadOnlyRootfs: False
Published ports: {'8443/tcp': [{'HostIp': '127.0.0.1', 'HostPort': '18443'}]}
PASS: basic isolation
=== openbao ===
User: 100:1000
Privileged: False
Network mode: lab7verify_default
PID mode: private
CapAdd: None
CapDrop: ['ALL']
SecurityOpt: ['no-new-privileges:true']
Memory MiB: 256
CPU: 0.5
PidsLimit: 256
ReadOnlyRootfs: False
Published ports: {}
PASS: basic isolation
=== otel-collector ===
User: 10001
Privileged: False
Network mode: lab7verify_default
PID mode: private
CapAdd: None
CapDrop: None
SecurityOpt: ['no-new-privileges:true']
Memory MiB: 256
CPU: 0.5
PidsLimit: 256
ReadOnlyRootfs: False
Published ports: {}
PASS: basic isolation
=== otel-collector-proxy ===
User: image default
Privileged: False
Network mode: container:c485081388e5abf54869e32bb9e49b06054b1af6994dca5112724adddfa756b4
PID mode: private
CapAdd: None
CapDrop: None
SecurityOpt: ['no-new-privileges:true']
Memory MiB: 128
CPU: 0.25
PidsLimit: 256
ReadOnlyRootfs: False
Published ports: {}
PASS: basic isolation
=== postgres ===
User: image default
Privileged: False
Network mode: lab7verify_default
PID mode: private
CapAdd: None
CapDrop: None
SecurityOpt: ['no-new-privileges:true']
Memory MiB: 768
CPU: 1.0
PidsLimit: 256
ReadOnlyRootfs: False
Published ports: {}
PASS: basic isolation
=== prometheus ===
User: nobody
Privileged: False
Network mode: lab7verify_default
PID mode: private
CapAdd: None
CapDrop: None
SecurityOpt: ['no-new-privileges:true']
Memory MiB: 512
CPU: 0.5
PidsLimit: 256
ReadOnlyRootfs: False
Published ports: {}
PASS: basic isolation
=== rabbitmq ===
User: image default
Privileged: False
Network mode: lab7verify_default
PID mode: private
CapAdd: None
CapDrop: None
SecurityOpt: ['no-new-privileges:true']
Memory MiB: 512
CPU: 0.5
PidsLimit: 256
ReadOnlyRootfs: False
Published ports: {}
PASS: basic isolation
=== redis ===
User: image default
Privileged: False
Network mode: lab7verify_default
PID mode: private
CapAdd: None
CapDrop: None
SecurityOpt: ['no-new-privileges:true']
Memory MiB: 256
CPU: 0.5
PidsLimit: 256
ReadOnlyRootfs: False
Published ports: {}
PASS: basic isolation
=== s3 ===
User: image default
Privileged: False
Network mode: lab7verify_default
PID mode: private
CapAdd: None
CapDrop: None
SecurityOpt: ['no-new-privileges:true']
Memory MiB: 512
CPU: 1.0
PidsLimit: 256
ReadOnlyRootfs: False
Published ports: {'9001/tcp': [{'HostIp': '127.0.0.1', 'HostPort': '19001'}]}
PASS: basic isolation
=== tempo ===
User: 10001:10001
Privileged: False
Network mode: lab7verify_default
PID mode: private
CapAdd: None
CapDrop: None
SecurityOpt: ['no-new-privileges:true']
Memory MiB: 512
CPU: 0.5
PidsLimit: 256
ReadOnlyRootfs: False
Published ports: {}
PASS: basic isolation
=== tempo-proxy ===
User: image default
Privileged: False
Network mode: container:880c12640248dfdbdb34c919b13c8e408d6658355851a0c2d5b353e2d98cc334
PID mode: private
CapAdd: None
CapDrop: None
SecurityOpt: ['no-new-privileges:true']
Memory MiB: 128
CPU: 0.25
PidsLimit: 256
ReadOnlyRootfs: False
Published ports: {}
PASS: basic isolation
=== worker ===
User: appuser
Privileged: False
Network mode: lab7verify_default
PID mode: private
CapAdd: None
CapDrop: ['ALL']
SecurityOpt: ['no-new-privileges:true']
Memory MiB: 512
CPU: 1.0
PidsLimit: 256
ReadOnlyRootfs: False
Published ports: {}
PASS: basic isolation
PASS: BASIC CONTAINER ISOLATION
@@ -0,0 +1,23 @@
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
lab7verify-api-1-1 lab7verify-api-1 "python /app/scripts…" api-1 3 minutes ago Up 2 minutes (healthy) 8080/tcp
lab7verify-api-1-proxy-1 nginx:1.29-alpine "nginx -g 'daemon of…" api-1-proxy 3 minutes ago Up 2 minutes
lab7verify-api-2-1 lab7verify-api-2 "python /app/scripts…" api-2 3 minutes ago Up 2 minutes (healthy) 8080/tcp
lab7verify-api-2-proxy-1 nginx:1.29-alpine "nginx -g 'daemon of…" api-2-proxy 3 minutes ago Up 2 minutes
lab7verify-dispatcher-1 lab7verify-dispatcher "python /app/scripts…" dispatcher 3 minutes ago Created
lab7verify-grafana-1 grafana/grafana:11.5.2 "/run.sh" grafana 3 minutes ago Up 2 minutes 127.0.0.1:13000->3000/tcp
lab7verify-loki-1 grafana/loki:3.4.2 "/usr/bin/loki -conf…" loki 3 minutes ago Up 3 minutes 3100/tcp
lab7verify-loki-proxy-1 nginx:1.29-alpine "nginx -g 'daemon of…" loki-proxy 3 minutes ago Up 3 minutes
lab7verify-migrate-1 lab7verify-migrate "alembic upgrade head" migrate 3 minutes ago Exited (0) 2 minutes ago
lab7verify-nginx-1 nginx:1.29-alpine "/docker-entrypoint.…" nginx 3 minutes ago Created
lab7verify-openbao-1 openbao/openbao:2.3.2 "bao server -config=…" openbao 4 minutes ago Up 4 minutes 8200/tcp
lab7verify-otel-collector-1 otel/opentelemetry-collector-contrib:0.120.0 "/otelcol-contrib --…" otel-collector 3 minutes ago Up 2 minutes 4317-4318/tcp, 55678-55679/tcp
lab7verify-otel-collector-proxy-1 nginx:1.29-alpine "nginx -g 'daemon of…" otel-collector-proxy 3 minutes ago Up 2 minutes
lab7verify-postgres-1 postgres:17.6 "docker-entrypoint.s…" postgres 3 minutes ago Up 3 minutes (healthy) 5432/tcp
lab7verify-prometheus-1 prom/prometheus:v3.2.1 "/bin/prometheus --c…" prometheus 3 minutes ago Up 2 minutes 9090/tcp
lab7verify-rabbitmq-1 rabbitmq:4.1.4-management-alpine "docker-entrypoint.s…" rabbitmq 3 minutes ago Up 2 minutes (healthy) 4369/tcp, 5671-5672/tcp, 15671-15672/tcp, 15691-15692/tcp, 25672/tcp
lab7verify-redis-1 redis:8.2.2 "docker-entrypoint.s…" redis 3 minutes ago Up 3 minutes (healthy) 6379/tcp
lab7verify-s3-1 dappros/minio:RELEASE.2025-09-07T16-13-09Z "/usr/bin/docker-ent…" s3 3 minutes ago Up 3 minutes (healthy) 127.0.0.1:19001->9001/tcp
lab7verify-s3-init-1 dappros/minio:RELEASE.2025-09-07T16-13-09Z "/bin/sh /config/ini…" s3-init 3 minutes ago Exited (0) 2 minutes ago
lab7verify-tempo-1 grafana/tempo:2.7.1 "/tempo -config.file…" tempo 3 minutes ago Up 3 minutes
lab7verify-tempo-proxy-1 nginx:1.29-alpine "nginx -g 'daemon of…" tempo-proxy 3 minutes ago Up 3 minutes
lab7verify-worker-1 lab7verify-worker "python /app/scripts…" worker 3 minutes ago Up About a minute 8080/tcp
+23
View File
@@ -0,0 +1,23 @@
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
lab7verify-api-1-1 lab7verify-api-1 "python /app/scripts…" api-1 5 minutes ago Up 4 minutes (healthy) 8080/tcp
lab7verify-api-1-proxy-1 nginx:1.29-alpine "nginx -g 'daemon of…" api-1-proxy 5 minutes ago Up 4 minutes
lab7verify-api-2-1 lab7verify-api-2 "python /app/scripts…" api-2 5 minutes ago Up 4 minutes (healthy) 8080/tcp
lab7verify-api-2-proxy-1 nginx:1.29-alpine "nginx -g 'daemon of…" api-2-proxy 5 minutes ago Up 4 minutes
lab7verify-dispatcher-1 lab7verify-dispatcher "python /app/scripts…" dispatcher 5 minutes ago Up 20 seconds 8080/tcp
lab7verify-grafana-1 grafana/grafana:11.5.2 "/run.sh" grafana 5 minutes ago Up 5 minutes 127.0.0.1:13000->3000/tcp
lab7verify-loki-1 grafana/loki:3.4.2 "/usr/bin/loki -conf…" loki 5 minutes ago Up 5 minutes 3100/tcp
lab7verify-loki-proxy-1 nginx:1.29-alpine "nginx -g 'daemon of…" loki-proxy 5 minutes ago Up 5 minutes
lab7verify-migrate-1 lab7verify-migrate "alembic upgrade head" migrate 5 minutes ago Exited (0) 25 seconds ago
lab7verify-nginx-1 nginx:1.29-alpine "/docker-entrypoint.…" nginx 5 minutes ago Up 20 seconds 127.0.0.1:18443->8443/tcp
lab7verify-openbao-1 openbao/openbao:2.3.2 "bao server -config=…" openbao 6 minutes ago Up 6 minutes 8200/tcp
lab7verify-otel-collector-1 otel/opentelemetry-collector-contrib:0.120.0 "/otelcol-contrib --…" otel-collector 5 minutes ago Up 5 minutes 4317-4318/tcp, 55678-55679/tcp
lab7verify-otel-collector-proxy-1 nginx:1.29-alpine "nginx -g 'daemon of…" otel-collector-proxy 5 minutes ago Up 5 minutes
lab7verify-postgres-1 postgres:17.6 "docker-entrypoint.s…" postgres 5 minutes ago Up 5 minutes (healthy) 5432/tcp
lab7verify-prometheus-1 prom/prometheus:v3.2.1 "/bin/prometheus --c…" prometheus 5 minutes ago Up 5 minutes 9090/tcp
lab7verify-rabbitmq-1 rabbitmq:4.1.4-management-alpine "docker-entrypoint.s…" rabbitmq 5 minutes ago Up 4 minutes (healthy) 4369/tcp, 5671-5672/tcp, 15671-15672/tcp, 15691-15692/tcp, 25672/tcp
lab7verify-redis-1 redis:8.2.2 "docker-entrypoint.s…" redis 5 minutes ago Up 5 minutes (healthy) 6379/tcp
lab7verify-s3-1 dappros/minio:RELEASE.2025-09-07T16-13-09Z "/usr/bin/docker-ent…" s3 5 minutes ago Up 5 minutes (healthy) 127.0.0.1:19001->9001/tcp
lab7verify-s3-init-1 dappros/minio:RELEASE.2025-09-07T16-13-09Z "/bin/sh /config/ini…" s3-init 5 minutes ago Exited (0) 21 seconds ago
lab7verify-tempo-1 grafana/tempo:2.7.1 "/tempo -config.file…" tempo 5 minutes ago Up 5 minutes
lab7verify-tempo-proxy-1 nginx:1.29-alpine "nginx -g 'daemon of…" tempo-proxy 5 minutes ago Up 5 minutes
lab7verify-worker-1 lab7verify-worker "python /app/scripts…" worker 5 minutes ago Up 3 minutes 8080/tcp
@@ -0,0 +1 @@
No known vulnerabilities found
@@ -0,0 +1,23 @@
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
lab7verify-api-1-1 lab7verify-api-1 "python /app/scripts…" api-1 19 minutes ago Up 18 minutes (healthy) 8080/tcp
lab7verify-api-1-proxy-1 nginx:1.29-alpine "nginx -g 'daemon of…" api-1-proxy 19 minutes ago Up 18 minutes
lab7verify-api-2-1 lab7verify-api-2 "python /app/scripts…" api-2 19 minutes ago Up 18 minutes (healthy) 8080/tcp
lab7verify-api-2-proxy-1 nginx:1.29-alpine "nginx -g 'daemon of…" api-2-proxy 19 minutes ago Up 18 minutes
lab7verify-dispatcher-1 lab7verify-dispatcher "python /app/scripts…" dispatcher 19 minutes ago Up 3 minutes 8080/tcp
lab7verify-grafana-1 grafana/grafana:11.5.2 "/run.sh" grafana 19 minutes ago Up 19 minutes 127.0.0.1:13000->3000/tcp
lab7verify-loki-1 grafana/loki:3.4.2 "/usr/bin/loki -conf…" loki 19 minutes ago Up 19 minutes 3100/tcp
lab7verify-loki-proxy-1 nginx:1.29-alpine "nginx -g 'daemon of…" loki-proxy 19 minutes ago Up 19 minutes
lab7verify-migrate-1 lab7verify-migrate "alembic upgrade head" migrate 19 minutes ago Exited (0) 3 minutes ago
lab7verify-nginx-1 nginx:1.29-alpine "/docker-entrypoint.…" nginx 19 minutes ago Up 14 minutes 127.0.0.1:18443->8443/tcp
lab7verify-openbao-1 openbao/openbao:2.3.2 "bao server -config=…" openbao 20 minutes ago Up 20 minutes 8200/tcp
lab7verify-otel-collector-1 otel/opentelemetry-collector-contrib:0.120.0 "/otelcol-contrib --…" otel-collector 19 minutes ago Up 19 minutes 4317-4318/tcp, 55678-55679/tcp
lab7verify-otel-collector-proxy-1 nginx:1.29-alpine "nginx -g 'daemon of…" otel-collector-proxy 19 minutes ago Up 19 minutes
lab7verify-postgres-1 postgres:17.6 "docker-entrypoint.s…" postgres 19 minutes ago Up 19 minutes (healthy) 5432/tcp
lab7verify-prometheus-1 prom/prometheus:v3.2.1 "/bin/prometheus --c…" prometheus 19 minutes ago Up 19 minutes 9090/tcp
lab7verify-rabbitmq-1 rabbitmq:4.1.4-management-alpine "docker-entrypoint.s…" rabbitmq 4 minutes ago Up 4 minutes (healthy) 4369/tcp, 5671-5672/tcp, 15671-15672/tcp, 15691-15692/tcp, 25672/tcp
lab7verify-redis-1 redis:8.2.2 "docker-entrypoint.s…" redis 19 minutes ago Up 19 minutes (healthy) 6379/tcp
lab7verify-s3-1 dappros/minio:RELEASE.2025-09-07T16-13-09Z "/usr/bin/docker-ent…" s3 19 minutes ago Up 19 minutes (healthy) 127.0.0.1:19001->9001/tcp
lab7verify-s3-init-1 dappros/minio:RELEASE.2025-09-07T16-13-09Z "/bin/sh /config/ini…" s3-init 19 minutes ago Exited (0) 3 minutes ago
lab7verify-tempo-1 grafana/tempo:2.7.1 "/tempo -config.file…" tempo 19 minutes ago Up 19 minutes
lab7verify-tempo-proxy-1 nginx:1.29-alpine "nginx -g 'daemon of…" tempo-proxy 19 minutes ago Up 19 minutes
lab7verify-worker-1 lab7verify-worker "python /app/scripts…" worker 19 minutes ago Up 3 minutes 8080/tcp
+2
View File
@@ -0,0 +1,2 @@
python3 tests/security.py --base-url "https://localhost:18443" --ca-file "/home/casablanca/mtuci/high_load_apps/lab7verify.LJ40hS/certs/ca/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:18443" --ca-file "/home/casablanca/mtuci/high_load_apps/lab7verify.LJ40hS/certs/ca/ca.crt"
PASS: lab7 public API scenario; infrastructure and grading evidence remain separate.
+24
View File
@@ -0,0 +1,24 @@
PASS: api-1, pids_limit=256, no-new-privileges=true, state=running
PASS: api-1-proxy, pids_limit=256, no-new-privileges=true, state=running
PASS: api-2, pids_limit=256, no-new-privileges=true, state=running
PASS: api-2-proxy, pids_limit=256, no-new-privileges=true, state=running
PASS: dispatcher, pids_limit=256, no-new-privileges=true, state=running
PASS: grafana, pids_limit=256, no-new-privileges=true, state=running
PASS: loki, pids_limit=256, no-new-privileges=true, state=running
PASS: loki-proxy, pids_limit=256, no-new-privileges=true, state=running
PASS: migrate, pids_limit=256, no-new-privileges=true, state=exited
PASS: nginx, pids_limit=256, no-new-privileges=true, state=running
PASS: openbao, pids_limit=256, no-new-privileges=true, state=running
PASS: otel-collector, pids_limit=256, no-new-privileges=true, state=running
PASS: otel-collector-proxy, pids_limit=256, no-new-privileges=true, state=running
PASS: postgres, pids_limit=256, no-new-privileges=true, state=running
PASS: prometheus, pids_limit=256, no-new-privileges=true, state=running
PASS: rabbitmq, pids_limit=256, no-new-privileges=true, state=running
PASS: redis, pids_limit=256, no-new-privileges=true, state=running
PASS: s3, pids_limit=256, no-new-privileges=true, state=running
PASS: s3-init, pids_limit=256, no-new-privileges=true, state=exited
PASS: tempo, pids_limit=256, no-new-privileges=true, state=running
PASS: tempo-proxy, pids_limit=256, no-new-privileges=true, state=running
PASS: worker, pids_limit=256, no-new-privileges=true, state=running
PASS: ALL 22 CONTAINERS HARDENED
+46
View File
@@ -0,0 +1,46 @@
Selected: api-1: lab7verify-api-1: sha256:c653ea2315dc31ab9bfe0826070df2feead16a1042d0f73fe39aff18e30884a2
Selected: api-2: lab7verify-api-2: sha256:b07eea0a5811831be3e3bf808830128563e5feb10720774037d4a5e05c1b1eea
Selected: worker: lab7verify-worker: sha256:5ead8356a8000a7b18d1b38910a702495583e5e3490d2c359cc0d2036293a5b1
Selected: dispatcher: lab7verify-dispatcher: sha256:3c009e7b83b801248bc5754478575f9ff70afed10afb1e8de2f49ce818b64468
Selected: migrate: lab7verify-migrate: sha256:bd75f0e1d60a6fc07506aa1bd062858c499b28d9bb5915ef6fadca40019d260d
=== DOCKER IMAGE SECRET AUDIT ===
Services: 5
Unique images: 5
Credential patterns: 41
Inspecting: api-1
Layers checked: 1 | Files checked: 2677
Layers checked: 2 | Files checked: 2881
Layers checked: 3 | Files checked: 4474
Layers checked: 4 | Files checked: 4474
Layers checked: 5 | Files checked: 4474
Layers checked: 6 | Files checked: 4475
Layers checked: 7 | Files checked: 11159
Layers checked: 8 | Files checked: 11160
Layers checked: 9 | Files checked: 11174
Layers checked: 10 | Files checked: 11191
Layers checked: 11 | Files checked: 11213
Layers checked: 12 | Files checked: 11222
Layers checked: 13 | Files checked: 11237
Completed: api-1
Inspecting: api-2
Completed: api-2
Inspecting: worker
Completed: worker
Inspecting: dispatcher
Completed: dispatcher
Inspecting: migrate
Completed: migrate
=== SUMMARY ===
Services inspected: 5
Unique images inspected: 5
Unique layers inspected: 13
Layer files inspected: 11237
Credential patterns: 41
Failures: 0
PASS: DOCKER IMAGE SECRET AUDIT
+13
View File
@@ -0,0 +1,13 @@
grafana published port: 13000
nginx published port: 18443
s3 published port: 19001
Independent volume: lab7verify_grafana_data
Independent volume: lab7verify_loki_data
Independent volume: lab7verify_postgres_data
Independent volume: lab7verify_prometheus_data
Independent volume: lab7verify_rabbitmq_data
Independent volume: lab7verify_redis_data
Independent volume: lab7verify_s3_data
Independent volume: lab7verify_tempo_data
Independent network: lab7verify_default
PASS: verification stack isolation
+79
View File
@@ -0,0 +1,79 @@
Container lab7verify-migrate-run-3a0a4e9e248b Creating
Container lab7verify-migrate-run-3a0a4e9e248b Created
=== nginx ===
80: CLOSED
443: CLOSED
8080: CLOSED
8443: OPEN
=== api-1 ===
8080: CLOSED
8443: OPEN
=== api-2 ===
8080: CLOSED
8443: OPEN
=== worker ===
8080: CLOSED
=== dispatcher ===
8080: CLOSED
=== postgres ===
5432: OPEN
=== redis ===
6379: OPEN
=== rabbitmq ===
4369: CLOSED
5671: OPEN
5672: CLOSED
15671: OPEN
15672: CLOSED
15691: CLOSED
15692: CLOSED
25672: CLOSED
=== s3 ===
9000: OPEN
9001: OPEN
=== openbao ===
8200: OPEN
8201: CLOSED
=== otel-collector ===
4317: CLOSED
4318: OPEN
8888: OPEN
8889: OPEN
18888: CLOSED
18889: CLOSED
55678: CLOSED
55679: CLOSED
=== prometheus ===
9090: OPEN
=== loki ===
3100: OPEN
7946: CLOSED
9095: CLOSED
13100: CLOSED
=== tempo ===
3200: OPEN
4317: CLOSED
4318: CLOSED
7946: CLOSED
9095: CLOSED
13200: CLOSED
14318: CLOSED
=== grafana ===
3000: OPEN
NETWORK AUDIT COMPLETE
+13
View File
@@ -0,0 +1,13 @@
Container lab7verify-migrate-run-4c8e2e28759c Creating
Container lab7verify-migrate-run-4c8e2e28759c Created
PASS: KV v2 enabled
PASS: certificate authentication enabled
PASS: messenger-api policy configured
PASS: messenger-worker policy configured
PASS: messenger-dispatcher policy configured
PASS: bao-api-1 -> messenger-api, TTL=15m, max TTL=1h
PASS: bao-api-2 -> messenger-api, TTL=15m, max TTL=1h
PASS: bao-worker -> messenger-worker, TTL=15m, max TTL=1h
PASS: bao-dispatcher -> messenger-dispatcher, TTL=15m, max TTL=1h
PASS: OPENBAO CONFIGURATION
+1
View File
@@ -0,0 +1 @@
PASS: OpenBao initialized; operator material saved outside Git
@@ -0,0 +1,4 @@
api-1-1 | PASS: OpenBao identity=bao-api-1, role=api, secrets=5
dispatcher-1 | PASS: OpenBao identity=bao-dispatcher, role=dispatcher, secrets=3
api-2-1 | PASS: OpenBao identity=bao-api-2, role=api, secrets=5
worker-1 | PASS: OpenBao identity=bao-worker, role=worker, secrets=5
+7
View File
@@ -0,0 +1,7 @@
Container lab7verify-migrate-run-14ec748ca897 Creating
Container lab7verify-migrate-run-14ec748ca897 Created
PASS: messenger/api: 5 secrets stored, version=1
PASS: messenger/worker: 5 secrets stored, version=1
PASS: messenger/dispatcher: 3 secrets stored, version=1
PASS: OPENBAO SECRETS SEEDED
+13
View File
@@ -0,0 +1,13 @@
Key Value
--- -----
Seal Type shamir
Initialized true
Sealed false
Total Shares 3
Threshold 2
Version 2.3.2
Build Date 2025-08-08T04:05:27Z
Storage Type file
Cluster Name vault-cluster-4fc9f8d0
Cluster ID 6e53e285-787a-8182-d78d-f5150b26a3e9
HA Enabled false
+9
View File
@@ -0,0 +1,9 @@
Volume lab7verify_postgres_data Creating
Volume lab7verify_postgres_data Creating
Volume lab7verify_postgres_data Created
Volume lab7verify_postgres_data Created
Container lab7verify-migrate-run-eeba069fafa6 Creating
Container lab7verify-migrate-run-eeba069fafa6 Created
Sealed: True | Progress: 1 | Threshold: 2
Sealed: False | Progress: 0 | Threshold: 2
PASS: OpenBao successfully unsealed
@@ -0,0 +1,7 @@
rabbitmq-1 | 2026-12-06 21:25:16.335991+00:00 [info] <0.584.0> Importing concurrently 3 users...
rabbitmq-1 | 2026-12-06 21:25:16.353126+00:00 [info] <0.584.0> Importing concurrently 1 vhosts...
rabbitmq-1 | 2026-12-06 21:25:16.530842+00:00 [info] <0.584.0> Importing concurrently 3 permissions...
rabbitmq-1 | 2026-12-06 21:25:16.540754+00:00 [info] <0.584.0> Importing concurrently 2 queues...
rabbitmq-1 | 2026-12-06 21:25:16.574452+00:00 [info] <0.758.0> started TLS (SSL) listener on [::]:5671
rabbitmq-1 | 2026-12-06 21:25:17.344934+00:00 [info] <0.584.0> Server startup complete; 3 plugins started.
rabbitmq-1 | 2026-12-06 21:25:17.355695+00:00 [info] <0.10.0> Time to start RabbitMQ: 67392 ms
@@ -0,0 +1,10 @@
Volume lab7verify_rabbitmq_cold_test Creating
Volume lab7verify_rabbitmq_cold_test Creating
Volume lab7verify_rabbitmq_cold_test Created
Volume lab7verify_rabbitmq_cold_test Created
Container lab7verify-rabbitmq-1 Recreate
Container lab7verify-rabbitmq-1 Recreated
Container lab7verify-rabbitmq-1 Starting
Container lab7verify-rabbitmq-1 Started
Container lab7verify-rabbitmq-1 Waiting
Container lab7verify-rabbitmq-1 Healthy
@@ -0,0 +1,6 @@
Container lab7verify-rabbitmq-1 Recreate
Container lab7verify-rabbitmq-1 Recreated
Container lab7verify-rabbitmq-1 Starting
Container lab7verify-rabbitmq-1 Started
Container lab7verify-rabbitmq-1 Waiting
Container lab7verify-rabbitmq-1 Healthy
+150
View File
@@ -0,0 +1,150 @@
rabbitmq-1 | 2026-12-06 21:13:27.509422+00:00 [info] <0.209.0> Running boot step rabbit_core_metrics defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:27.513082+00:00 [info] <0.209.0> Running boot step rabbit_alarm defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:27.825318+00:00 [info] <0.280.0> Memory high watermark set to 7177 MiB (7526060851 bytes) of 11962 MiB (12543434752 bytes) total
rabbitmq-1 | 2026-12-06 21:13:27.921912+00:00 [info] <0.282.0> Enabling free disk space monitoring (disk free space: 1016069079040, total memory: 12543434752)
rabbitmq-1 | 2026-12-06 21:13:27.922098+00:00 [info] <0.282.0> Disk free limit set to 50MB
rabbitmq-1 | 2026-12-06 21:13:27.929563+00:00 [info] <0.209.0> Running boot step code_server_cache defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:27.929868+00:00 [info] <0.209.0> Running boot step file_handle_cache defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:28.218484+00:00 [info] <0.285.0> Limiting to approx 1048479 file handles (943629 sockets)
rabbitmq-1 | 2026-12-06 21:13:28.219469+00:00 [info] <0.286.0> FHC read buffering: OFF
rabbitmq-1 | 2026-12-06 21:13:28.219632+00:00 [info] <0.286.0> FHC write buffering: ON
rabbitmq-1 | 2026-12-06 21:13:28.224871+00:00 [info] <0.209.0> Running boot step worker_pool defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:28.225062+00:00 [info] <0.267.0> Will use 20 processes for default worker pool
rabbitmq-1 | 2026-12-06 21:13:28.225155+00:00 [info] <0.267.0> Starting worker pool 'worker_pool' with 20 processes in it
rabbitmq-1 | 2026-12-06 21:13:28.308551+00:00 [info] <0.209.0> Running boot step rabbit_registry defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:28.308779+00:00 [info] <0.209.0> Running boot step database defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:28.311167+00:00 [info] <0.209.0> Peer discovery: configured backend: rabbit_peer_discovery_classic_config
rabbitmq-1 | 2026-12-06 21:13:28.319188+00:00 [notice] <0.268.0> Feature flags: attempt to enable `detailed_queues_endpoint`...
rabbitmq-1 | 2026-12-06 21:13:28.513375+00:00 [notice] <0.268.0> Feature flags: `detailed_queues_endpoint` enabled
rabbitmq-1 | 2026-12-06 21:13:28.513577+00:00 [notice] <0.268.0> Feature flags: attempt to enable `rabbit_exchange_type_local_random`...
rabbitmq-1 | 2026-12-06 21:13:28.812268+00:00 [notice] <0.268.0> Feature flags: `rabbit_exchange_type_local_random` enabled
rabbitmq-1 | 2026-12-06 21:13:28.812456+00:00 [notice] <0.268.0> Feature flags: attempt to enable `rabbitmq_4.0.0`...
rabbitmq-1 | 2026-12-06 21:13:29.122060+00:00 [notice] <0.268.0> Feature flags: `rabbitmq_4.0.0` enabled
rabbitmq-1 | 2026-12-06 21:13:29.122237+00:00 [notice] <0.268.0> Feature flags: attempt to enable `message_containers_deaths_v2`...
rabbitmq-1 | 2026-12-06 21:13:29.321555+00:00 [notice] <0.268.0> Feature flags: `message_containers_deaths_v2` enabled
rabbitmq-1 | 2026-12-06 21:13:29.321891+00:00 [notice] <0.268.0> Feature flags: attempt to enable `rabbitmq_4.1.0`...
rabbitmq-1 | 2026-12-06 21:13:29.533006+00:00 [notice] <0.268.0> Feature flags: `rabbitmq_4.1.0` enabled
rabbitmq-1 | 2026-12-06 21:13:29.533169+00:00 [notice] <0.268.0> Feature flags: attempt to enable `quorum_queue_non_voters`...
rabbitmq-1 | 2026-12-06 21:13:29.811925+00:00 [notice] <0.268.0> Feature flags: `quorum_queue_non_voters` enabled
rabbitmq-1 | 2026-12-06 21:13:29.814778+00:00 [info] <0.209.0> DB: virgin node -> run peer discovery
rabbitmq-1 | 2026-12-06 21:13:29.814957+00:00 [warning] <0.209.0> Classic peer discovery backend: list of nodes does not contain the local node []
rabbitmq-1 | 2026-12-06 21:13:30.113407+00:00 [notice] <0.45.0> Application mnesia exited with reason: stopped
rabbitmq-1 | 2026-12-06 21:13:33.351328+00:00 [info] <0.209.0> Waiting for Mnesia tables for 30000 ms, 9 retries left
rabbitmq-1 | 2026-12-06 21:13:33.351849+00:00 [info] <0.209.0> Successfully synced tables from a peer
rabbitmq-1 | 2026-12-06 21:13:33.352165+00:00 [info] <0.209.0> Waiting for Mnesia tables for 30000 ms, 9 retries left
rabbitmq-1 | 2026-12-06 21:13:33.352727+00:00 [info] <0.209.0> Successfully synced tables from a peer
rabbitmq-1 | 2026-12-06 21:13:33.370596+00:00 [info] <0.209.0> Waiting for Mnesia tables for 30000 ms, 9 retries left
rabbitmq-1 | 2026-12-06 21:13:33.370907+00:00 [info] <0.209.0> Successfully synced tables from a peer
rabbitmq-1 | 2026-12-06 21:13:33.371369+00:00 [info] <0.209.0> Running boot step tracking_metadata_store defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:33.371577+00:00 [info] <0.503.0> Setting up a table for connection tracking on this node: tracked_connection
rabbitmq-1 | 2026-12-06 21:13:33.371708+00:00 [info] <0.503.0> Setting up a table for per-vhost connection counting on this node: tracked_connection_per_vhost
rabbitmq-1 | 2026-12-06 21:13:33.371825+00:00 [info] <0.503.0> Setting up a table for per-user connection counting on this node: tracked_connection_per_user
rabbitmq-1 | 2026-12-06 21:13:33.371982+00:00 [info] <0.503.0> Setting up a table for channel tracking on this node: tracked_channel
rabbitmq-1 | 2026-12-06 21:13:33.372091+00:00 [info] <0.503.0> Setting up a table for channel tracking on this node: tracked_channel_per_user
rabbitmq-1 | 2026-12-06 21:13:33.372352+00:00 [info] <0.209.0> Running boot step networking_metadata_store defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:33.372562+00:00 [info] <0.209.0> Running boot step feature_flags defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:33.372933+00:00 [info] <0.209.0> Running boot step auth_backend_plugins_check defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:33.373035+00:00 [info] <0.209.0> Running boot step codec_correctness_check defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:33.373192+00:00 [info] <0.209.0> Running boot step external_infrastructure defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:33.373305+00:00 [info] <0.209.0> Running boot step rabbit_event defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:33.373587+00:00 [info] <0.209.0> Running boot step rabbit_auth_mechanism_amqplain defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:33.373771+00:00 [info] <0.209.0> Running boot step rabbit_auth_mechanism_anonymous defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:33.373861+00:00 [info] <0.209.0> Running boot step rabbit_auth_mechanism_cr_demo defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:33.374103+00:00 [info] <0.209.0> Running boot step rabbit_auth_mechanism_plain defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:33.374308+00:00 [info] <0.209.0> Running boot step rabbit_exchange_type_direct defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:33.374406+00:00 [info] <0.209.0> Running boot step rabbit_exchange_type_fanout defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:33.374501+00:00 [info] <0.209.0> Running boot step rabbit_exchange_type_headers defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:33.374595+00:00 [info] <0.209.0> Running boot step rabbit_exchange_type_local_random defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:33.374761+00:00 [info] <0.209.0> Running boot step rabbit_exchange_type_topic defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:33.374841+00:00 [info] <0.209.0> Running boot step rabbit_priority_queue defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:33.374878+00:00 [info] <0.209.0> Priority queues enabled, real BQ is rabbit_variable_queue
rabbitmq-1 | 2026-12-06 21:13:33.375049+00:00 [info] <0.209.0> Running boot step kernel_ready defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:33.375102+00:00 [info] <0.209.0> Running boot step pg_local_amqp_connection defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:33.423276+00:00 [info] <0.209.0> Running boot step pg_local_amqp_session defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:33.423746+00:00 [info] <0.209.0> Running boot step rabbit_sysmon_minder defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:33.424073+00:00 [info] <0.209.0> Running boot step rabbit_epmd_monitor defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:33.428264+00:00 [info] <0.512.0> epmd monitor knows us, inter-node communication (distribution) port: 25672
rabbitmq-1 | 2026-12-06 21:13:33.428531+00:00 [info] <0.209.0> Running boot step guid_generator defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:33.437937+00:00 [info] <0.209.0> Running boot step rabbit_node_monitor defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:33.438634+00:00 [info] <0.516.0> Starting rabbit_node_monitor (in ignore mode)
rabbitmq-1 | 2026-12-06 21:13:33.439021+00:00 [info] <0.209.0> Running boot step delegate_sup defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:33.440066+00:00 [info] <0.209.0> Running boot step rabbit_fifo_dlx_sup defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:33.440200+00:00 [info] <0.209.0> Running boot step core_initialized defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:33.440248+00:00 [info] <0.209.0> Running boot step rabbit_channel_tracking_handler defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:33.440399+00:00 [info] <0.209.0> Running boot step rabbit_classic_queue defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:33.440586+00:00 [info] <0.209.0> Running boot step rabbit_connection_tracking_handler defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:33.440738+00:00 [info] <0.209.0> Running boot step rabbit_definitions_hashing defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:33.440847+00:00 [info] <0.209.0> Running boot step rabbit_exchange_parameters defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:35.122183+00:00 [info] <0.209.0> Running boot step rabbit_policies defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:35.124094+00:00 [info] <0.209.0> Running boot step rabbit_policy defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:35.124253+00:00 [info] <0.209.0> Running boot step rabbit_quorum_memory_manager defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:35.124397+00:00 [info] <0.209.0> Running boot step rabbit_quorum_queue defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:35.124898+00:00 [info] <0.209.0> Running boot step rabbit_stream_coordinator defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:35.125330+00:00 [info] <0.209.0> Running boot step rabbit_vhost_limit defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:35.125687+00:00 [info] <0.209.0> Running boot step rabbit_mgmt_reset_handler defined by app rabbitmq_management
rabbitmq-1 | 2026-12-06 21:13:35.125795+00:00 [info] <0.209.0> Running boot step rabbit_mgmt_db_handler defined by app rabbitmq_management_agent
rabbitmq-1 | 2026-12-06 21:13:35.125958+00:00 [info] <0.209.0> Management plugin: using rates mode 'basic'
rabbitmq-1 | 2026-12-06 21:13:35.126759+00:00 [info] <0.209.0> Running boot step recovery defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:35.221171+00:00 [info] <0.209.0> Running boot step prevent_startup_if_node_was_reset defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:35.221356+00:00 [info] <0.209.0> Running boot step empty_db_check defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:35.221515+00:00 [info] <0.209.0> Will not seed default virtual host and user: have definitions to load...
rabbitmq-1 | 2026-12-06 21:13:35.222405+00:00 [info] <0.209.0> Running boot step rabbit_observer_cli defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:35.223133+00:00 [info] <0.209.0> Running boot step rabbit_core_metrics_gc defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:35.223538+00:00 [info] <0.209.0> Running boot step background_gc defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:35.224766+00:00 [info] <0.209.0> Running boot step routing_ready defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:35.225163+00:00 [info] <0.209.0> Running boot step pre_flight defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:35.225460+00:00 [info] <0.209.0> Running boot step notify_cluster defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:35.225594+00:00 [info] <0.209.0> Running boot step networking defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:35.226060+00:00 [info] <0.209.0> Running boot step rabbit_quorum_queue_periodic_membership_reconciliation defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:35.227208+00:00 [info] <0.209.0> Running boot step definition_import_worker_pool defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:35.227507+00:00 [info] <0.267.0> Starting worker pool 'definition_import_pool' with 20 processes in it
rabbitmq-1 | 2026-12-06 21:13:35.229506+00:00 [info] <0.209.0> Running boot step cluster_name defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:35.229679+00:00 [info] <0.209.0> Initialising internal cluster ID to 'rabbitmq-cluster-id-NEj1hfo8ITzoLIYTs1uuDA'
rabbitmq-1 | 2026-12-06 21:13:35.238535+00:00 [info] <0.209.0> Running boot step virtual_host_reconciliation defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:35.238974+00:00 [info] <0.209.0> Running boot step direct_client defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:35.239364+00:00 [info] <0.209.0> Running boot step cluster_tags defined by app rabbit
rabbitmq-1 | 2026-12-06 21:13:35.246789+00:00 [info] <0.209.0> Running boot step rabbit_management_load_definitions defined by app rabbitmq_management
rabbitmq-1 | 2026-12-06 21:13:35.247066+00:00 [info] <0.580.0> Resetting node maintenance status
rabbitmq-1 | 2026-12-06 21:13:36.522993+00:00 [warning] <0.602.0> Deprecated features: `management_metrics_collection`: Feature `management_metrics_collection` is deprecated.
rabbitmq-1 | 2026-12-06 21:13:36.522993+00:00 [warning] <0.602.0> By default, this feature can still be used for now.
rabbitmq-1 | 2026-12-06 21:13:36.522993+00:00 [warning] <0.602.0> Its use will not be permitted by default in a future minor RabbitMQ version and the feature will be removed from a future major RabbitMQ version; actual versions to be determined.
rabbitmq-1 | 2026-12-06 21:13:36.522993+00:00 [warning] <0.602.0> To continue using this feature when it is not permitted by default, set the following parameter in your configuration:
rabbitmq-1 | 2026-12-06 21:13:36.522993+00:00 [warning] <0.602.0> "deprecated_features.permit.management_metrics_collection = true"
rabbitmq-1 | 2026-12-06 21:13:36.522993+00:00 [warning] <0.602.0> To test RabbitMQ as if the feature was removed, set this in your configuration:
rabbitmq-1 | 2026-12-06 21:13:36.522993+00:00 [warning] <0.602.0> "deprecated_features.permit.management_metrics_collection = false"
rabbitmq-1 | 2026-12-06 21:13:37.556218+00:00 [info] <0.638.0> Management plugin: HTTPS listener started on port 15671
rabbitmq-1 | 2026-12-06 21:13:37.556815+00:00 [info] <0.668.0> Statistics database started.
rabbitmq-1 | 2026-12-06 21:13:37.557074+00:00 [info] <0.667.0> Starting worker pool 'management_worker_pool' with 3 processes in it
rabbitmq-1 | 2026-12-06 21:13:37.600817+00:00 [info] <0.580.0> Applying definitions from file at '/run/secrets/rabbitmq_definitions'
rabbitmq-1 | 2026-12-06 21:13:37.601100+00:00 [info] <0.580.0> Asked to import definitions. Acting user: rmq-internal
rabbitmq-1 | 2026-12-06 21:13:37.622407+00:00 [info] <0.580.0> Importing concurrently 3 users...
rabbitmq-1 | 2026-12-06 21:13:37.632274+00:00 [info] <0.556.0> Created user 'messenger_admin'
rabbitmq-1 | 2026-12-06 21:13:37.632460+00:00 [info] <0.556.0> Successfully set user tags for user 'messenger_admin' to [administrator]
rabbitmq-1 | 2026-12-06 21:13:37.633800+00:00 [info] <0.557.0> Created user 'messenger_producer'
rabbitmq-1 | 2026-12-06 21:13:37.633965+00:00 [info] <0.558.0> Created user 'messenger_consumer'
rabbitmq-1 | 2026-12-06 21:13:37.635044+00:00 [info] <0.580.0> Importing concurrently 1 vhosts...
rabbitmq-1 | 2026-12-06 21:13:37.639220+00:00 [info] <0.556.0> Adding vhost 'messenger' (description: '', tags: [])
rabbitmq-1 | 2026-12-06 21:13:37.744749+00:00 [info] <0.681.0> Making sure data directory '/var/lib/rabbitmq/mnesia/rabbit@rabbitmq/msg_stores/vhosts/4N9FZBLSWU8D2DA5ZAXS6O06C' for vhost 'messenger' exists
rabbitmq-1 | 2026-12-06 21:13:37.751769+00:00 [info] <0.681.0> Setting segment_entry_count for vhost 'messenger' with 0 queues to '2048'
rabbitmq-1 | 2026-12-06 21:13:37.799287+00:00 [info] <0.681.0> Starting message stores for vhost 'messenger'
rabbitmq-1 | 2026-12-06 21:13:37.812161+00:00 [info] <0.681.0> Started message store of type transient for vhost 'messenger'
rabbitmq-1 | 2026-12-06 21:13:37.814729+00:00 [warning] <0.695.0> Message store "4N9FZBLSWU8D2DA5ZAXS6O06C/msg_store_persistent": rebuilding indices from scratch
rabbitmq-1 | 2026-12-06 21:13:37.817180+00:00 [info] <0.681.0> Started message store of type persistent for vhost 'messenger'
rabbitmq-1 | 2026-12-06 21:13:37.817620+00:00 [info] <0.681.0> Recovering 0 queues of type rabbit_classic_queue took 63ms
rabbitmq-1 | 2026-12-06 21:13:37.817785+00:00 [info] <0.681.0> Recovering 0 queues of type rabbit_quorum_queue took 0ms
rabbitmq-1 | 2026-12-06 21:13:37.817901+00:00 [info] <0.681.0> Recovering 0 queues of type rabbit_stream_queue took 0ms
rabbitmq-1 | 2026-12-06 21:13:37.820213+00:00 [info] <0.580.0> Importing concurrently 3 permissions...
rabbitmq-1 | 2026-12-06 21:13:37.835956+00:00 [info] <0.556.0> Successfully set permissions for user 'messenger_admin' in virtual host 'messenger' to '.*', '.*', '.*'
rabbitmq-1 | 2026-12-06 21:13:37.836990+00:00 [info] <0.558.0> Successfully set permissions for user 'messenger_consumer' in virtual host 'messenger' to '^$a', '^$a', '^attachment\.process\.v1$'
rabbitmq-1 | 2026-12-06 21:13:37.837187+00:00 [info] <0.557.0> Successfully set permissions for user 'messenger_producer' in virtual host 'messenger' to '^$a', '^amq\.default$', '^$a'
rabbitmq-1 | 2026-12-06 21:13:37.837850+00:00 [info] <0.580.0> Importing concurrently 2 queues...
rabbitmq-1 | 2026-12-06 21:13:37.912359+00:00 [info] <0.580.0> Ready to start client connection listeners
rabbitmq-1 | 2026-12-06 21:13:37.921642+00:00 [info] <0.754.0> started TLS (SSL) listener on [::]:5671
rabbitmq-1 | completed with 3 plugins.
rabbitmq-1 | 2026-12-06 21:13:38.627544+00:00 [info] <0.580.0> Server startup complete; 3 plugins started.
rabbitmq-1 | 2026-12-06 21:13:38.627544+00:00 [info] <0.580.0> * rabbitmq_management
rabbitmq-1 | 2026-12-06 21:13:38.627544+00:00 [info] <0.580.0> * rabbitmq_management_agent
rabbitmq-1 | 2026-12-06 21:13:38.627544+00:00 [info] <0.580.0> * rabbitmq_web_dispatch
rabbitmq-1 | 2026-12-06 21:13:38.715549+00:00 [info] <0.10.0> Time to start RabbitMQ: 70800 ms
rabbitmq-1 | 2026-12-06 21:13:55.746681+00:00 [info] <0.767.0> accepting AMQP connection 172.22.0.14:43396 -> 172.22.0.4:5671
rabbitmq-1 | 2026-12-06 21:13:55.815843+00:00 [info] <0.767.0> connection 172.22.0.14:43396 -> 172.22.0.4:5671: user 'messenger_consumer' authenticated and granted access to vhost 'messenger'
+5
View File
@@ -0,0 +1,5 @@
Tracked files checked: 252
Known credential patterns checked: 41
PASS: no known local credentials in container logs
Failures: 0
PASS: SECRET AUDIT
+2
View File
@@ -0,0 +1,2 @@
python3 tests/security.py --base-url "https://localhost:18443" --ca-file "/home/casablanca/mtuci/high_load_apps/lab7verify.LJ40hS/certs/ca/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:18443" --ca-file "/home/casablanca/mtuci/high_load_apps/lab7verify.LJ40hS/certs/ca/ca.crt"
PASS: lab7 public API scenario; infrastructure and grading evidence remain separate.
+142
View File
@@ -0,0 +1,142 @@
Container lab7verify-openbao-1 Running
Volume lab7verify_tempo_data Creating
Volume lab7verify_tempo_data Creating
Container lab7verify-postgres-1 Creating
Volume lab7verify_prometheus_data Creating
Volume lab7verify_prometheus_data Creating
Volume lab7verify_grafana_data Creating
Volume lab7verify_grafana_data Creating
Volume lab7verify_loki_data Creating
Volume lab7verify_loki_data Creating
Volume lab7verify_rabbitmq_data Creating
Volume lab7verify_rabbitmq_data Creating
Volume lab7verify_redis_data Creating
Volume lab7verify_redis_data Creating
Volume lab7verify_s3_data Creating
Volume lab7verify_s3_data Creating
Volume lab7verify_redis_data Created
Volume lab7verify_redis_data Created
Container lab7verify-redis-1 Creating
Volume lab7verify_tempo_data Created
Volume lab7verify_tempo_data Created
Container lab7verify-tempo-1 Creating
Volume lab7verify_rabbitmq_data Created
Volume lab7verify_rabbitmq_data Created
Container lab7verify-rabbitmq-1 Creating
Volume lab7verify_loki_data Created
Volume lab7verify_loki_data Created
Container lab7verify-loki-1 Creating
Volume lab7verify_prometheus_data Created
Volume lab7verify_prometheus_data Created
Volume lab7verify_grafana_data Created
Volume lab7verify_grafana_data Created
Volume lab7verify_s3_data Created
Volume lab7verify_s3_data Created
Container lab7verify-s3-1 Creating
Container lab7verify-tempo-1 Created
Container lab7verify-tempo-proxy-1 Creating
Container lab7verify-loki-1 Created
Container lab7verify-loki-proxy-1 Creating
Container lab7verify-postgres-1 Created
Container lab7verify-migrate-1 Creating
Container lab7verify-redis-1 Created
Container lab7verify-s3-1 Created
Container lab7verify-s3-init-1 Creating
Container lab7verify-rabbitmq-1 Created
Container lab7verify-tempo-proxy-1 Created
Container lab7verify-loki-proxy-1 Created
Container lab7verify-otel-collector-1 Creating
Container lab7verify-migrate-1 Created
Container lab7verify-s3-init-1 Created
Container lab7verify-worker-1 Creating
Container lab7verify-api-2-1 Creating
Container lab7verify-api-1-1 Creating
Container lab7verify-dispatcher-1 Creating
Container lab7verify-api-1-1 Created
Container lab7verify-api-1-proxy-1 Creating
Container lab7verify-otel-collector-1 Created
Container lab7verify-otel-collector-proxy-1 Creating
Container lab7verify-worker-1 Created
Container lab7verify-api-2-1 Created
Container lab7verify-api-2-proxy-1 Creating
Container lab7verify-dispatcher-1 Created
Container lab7verify-api-1-proxy-1 Created
Container lab7verify-otel-collector-proxy-1 Created
Container lab7verify-prometheus-1 Creating
Container lab7verify-api-2-proxy-1 Created
Container lab7verify-nginx-1 Creating
Container lab7verify-prometheus-1 Created
Container lab7verify-grafana-1 Creating
Container lab7verify-nginx-1 Created
Container lab7verify-grafana-1 Created
Container lab7verify-loki-1 Starting
Container lab7verify-rabbitmq-1 Starting
Container lab7verify-postgres-1 Starting
Container lab7verify-redis-1 Starting
Container lab7verify-tempo-1 Starting
Container lab7verify-s3-1 Starting
Container lab7verify-loki-1 Started
Container lab7verify-loki-proxy-1 Starting
Container lab7verify-rabbitmq-1 Started
Container lab7verify-postgres-1 Started
Container lab7verify-postgres-1 Waiting
Container lab7verify-redis-1 Started
Container lab7verify-tempo-1 Started
Container lab7verify-tempo-proxy-1 Starting
Container lab7verify-s3-1 Started
Container lab7verify-s3-1 Waiting
Container lab7verify-loki-proxy-1 Started
Container lab7verify-tempo-proxy-1 Started
Container lab7verify-otel-collector-1 Starting
Container lab7verify-otel-collector-1 Started
Container lab7verify-otel-collector-proxy-1 Starting
Container lab7verify-otel-collector-proxy-1 Started
Container lab7verify-prometheus-1 Starting
Container lab7verify-prometheus-1 Started
Container lab7verify-grafana-1 Starting
Container lab7verify-grafana-1 Started
Container lab7verify-postgres-1 Healthy
Container lab7verify-migrate-1 Starting
Container lab7verify-migrate-1 Started
Container lab7verify-s3-1 Healthy
Container lab7verify-s3-init-1 Starting
Container lab7verify-s3-init-1 Started
Container lab7verify-s3-init-1 Waiting
Container lab7verify-migrate-1 Waiting
Container lab7verify-redis-1 Waiting
Container lab7verify-migrate-1 Waiting
Container lab7verify-s3-init-1 Waiting
Container lab7verify-migrate-1 Waiting
Container lab7verify-redis-1 Waiting
Container lab7verify-rabbitmq-1 Waiting
Container lab7verify-s3-init-1 Waiting
Container lab7verify-s3-init-1 Waiting
Container lab7verify-migrate-1 Waiting
Container lab7verify-rabbitmq-1 Waiting
Container lab7verify-redis-1 Healthy
Container lab7verify-redis-1 Healthy
Container lab7verify-migrate-1 Exited
Container lab7verify-migrate-1 Exited
Container lab7verify-migrate-1 Exited
Container lab7verify-migrate-1 Exited
Container lab7verify-s3-init-1 Exited
Container lab7verify-s3-init-1 Exited
Container lab7verify-api-2-1 Starting
Container lab7verify-s3-init-1 Exited
Container lab7verify-api-1-1 Starting
Container lab7verify-s3-init-1 Exited
Container lab7verify-api-2-1 Started
Container lab7verify-api-2-1 Waiting
Container lab7verify-api-1-1 Started
Container lab7verify-api-1-1 Waiting
Container lab7verify-rabbitmq-1 Error dependency rabbitmq failed to start
Container lab7verify-api-2-1 Healthy
Container lab7verify-api-2-proxy-1 Starting
Container lab7verify-api-2-proxy-1 Started
Container lab7verify-api-1-1 Healthy
Container lab7verify-api-1-proxy-1 Starting
Container lab7verify-api-1-proxy-1 Started
Container lab7verify-rabbitmq-1 Healthy
Container lab7verify-worker-1 Starting
Container lab7verify-worker-1 Started
dependency failed to start: container lab7verify-rabbitmq-1 is unhealthy
@@ -0,0 +1,58 @@
Container lab7verify-s3-1 Running
Container lab7verify-postgres-1 Running
Container lab7verify-worker-1 Running
Container lab7verify-api-1-1 Running
Container lab7verify-api-2-proxy-1 Running
Container lab7verify-grafana-1 Running
Container lab7verify-openbao-1 Running
Container lab7verify-loki-1 Running
Container lab7verify-otel-collector-1 Running
Container lab7verify-api-1-proxy-1 Running
Container lab7verify-rabbitmq-1 Running
Container lab7verify-tempo-proxy-1 Running
Container lab7verify-redis-1 Running
Container lab7verify-api-2-1 Running
Container lab7verify-loki-proxy-1 Running
Container lab7verify-prometheus-1 Running
Container lab7verify-otel-collector-proxy-1 Running
Container lab7verify-tempo-1 Running
Container lab7verify-postgres-1 Waiting
Container lab7verify-s3-1 Waiting
Container lab7verify-s3-1 Healthy
Container lab7verify-s3-init-1 Starting
Container lab7verify-postgres-1 Healthy
Container lab7verify-migrate-1 Starting
Container lab7verify-s3-init-1 Started
Container lab7verify-migrate-1 Started
Container lab7verify-rabbitmq-1 Waiting
Container lab7verify-s3-init-1 Waiting
Container lab7verify-migrate-1 Waiting
Container lab7verify-redis-1 Waiting
Container lab7verify-s3-init-1 Waiting
Container lab7verify-migrate-1 Waiting
Container lab7verify-s3-init-1 Waiting
Container lab7verify-migrate-1 Waiting
Container lab7verify-rabbitmq-1 Waiting
Container lab7verify-migrate-1 Waiting
Container lab7verify-redis-1 Waiting
Container lab7verify-s3-init-1 Waiting
Container lab7verify-rabbitmq-1 Healthy
Container lab7verify-redis-1 Healthy
Container lab7verify-rabbitmq-1 Healthy
Container lab7verify-redis-1 Healthy
Container lab7verify-migrate-1 Exited
Container lab7verify-migrate-1 Exited
Container lab7verify-migrate-1 Exited
Container lab7verify-migrate-1 Exited
Container lab7verify-s3-init-1 Exited
Container lab7verify-dispatcher-1 Starting
Container lab7verify-s3-init-1 Exited
Container lab7verify-api-2-1 Waiting
Container lab7verify-s3-init-1 Exited
Container lab7verify-s3-init-1 Exited
Container lab7verify-api-1-1 Waiting
Container lab7verify-dispatcher-1 Started
Container lab7verify-api-2-1 Healthy
Container lab7verify-api-1-1 Healthy
Container lab7verify-nginx-1 Starting
Container lab7verify-nginx-1 Started
+35
View File
@@ -0,0 +1,35 @@
Container mtusi2026lab7-migrate-run-d8c52b26da3c Creating
Container mtusi2026lab7-migrate-run-d8c52b26da3c Created
PASS: port 4318 verified TLS TLSv1.3
PASS: port 4318 rejects untrusted CA
PASS: port 4318 rejects wrong hostname
PASS: port 8888 verified TLS TLSv1.3
PASS: port 8888 rejects untrusted CA
PASS: port 8888 rejects wrong hostname
PASS: port 8889 verified TLS TLSv1.3
PASS: port 8889 rejects untrusted CA
PASS: port 8889 rejects wrong hostname
PASS: direct port 4317 refused
PASS: direct port 18888 refused
PASS: direct port 18889 refused
PASS: anonymous ingestion denied: 401
PASS: incorrect password denied: 401
PASS: Prometheus cannot ingest telemetry: 401
PASS: api can export logs: 200
PASS: api can export traces: 200
PASS: api can export metrics: 200
PASS: worker can export logs: 200
PASS: worker can export traces: 200
PASS: worker can export metrics: 200
PASS: dispatcher can export logs: 200
PASS: dispatcher can export traces: 200
PASS: dispatcher can export metrics: 200
PASS: port 8888 anonymous scrape denied: 401
PASS: port 8888 API scrape denied: 401
PASS: port 8888 Prometheus scrape allowed: 200
PASS: port 8889 anonymous scrape denied: 401
PASS: port 8889 API scrape denied: 401
PASS: port 8889 Prometheus scrape allowed: 200
PASS: exported application metric found
PASS: COLLECTOR SECURITY TESTS
+302
View File
@@ -0,0 +1,302 @@
=== api-1 ===
User: appuser
Privileged: False
Network mode: mtusi2026lab7_default
PID mode: private
CapAdd: None
CapDrop: ['ALL']
SecurityOpt: ['no-new-privileges:true']
Memory MiB: 512
CPU: 1.0
PidsLimit: None
ReadOnlyRootfs: False
Published ports: {}
PASS: basic isolation
=== api-1-proxy ===
User: image default
Privileged: False
Network mode: container:7f7103180cddd72011768505021c049347f502de1fda30f5ffde602de4779ec4
PID mode: private
CapAdd: None
CapDrop: None
SecurityOpt: None
Memory MiB: 128
CPU: 0.25
PidsLimit: None
ReadOnlyRootfs: False
Published ports: {}
PASS: basic isolation
=== api-2 ===
User: appuser
Privileged: False
Network mode: mtusi2026lab7_default
PID mode: private
CapAdd: None
CapDrop: ['ALL']
SecurityOpt: ['no-new-privileges:true']
Memory MiB: 512
CPU: 1.0
PidsLimit: None
ReadOnlyRootfs: False
Published ports: {}
PASS: basic isolation
=== api-2-proxy ===
User: image default
Privileged: False
Network mode: container:5e08fc73069e4eeb0fb548bb13fe41e7e81c18d0b380debe343f0f8281f36065
PID mode: private
CapAdd: None
CapDrop: None
SecurityOpt: None
Memory MiB: 128
CPU: 0.25
PidsLimit: None
ReadOnlyRootfs: False
Published ports: {}
PASS: basic isolation
=== dispatcher ===
User: appuser
Privileged: False
Network mode: mtusi2026lab7_default
PID mode: private
CapAdd: None
CapDrop: ['ALL']
SecurityOpt: ['no-new-privileges:true']
Memory MiB: 512
CPU: 1.0
PidsLimit: None
ReadOnlyRootfs: False
Published ports: {}
PASS: basic isolation
=== grafana ===
User: 472
Privileged: False
Network mode: mtusi2026lab7_default
PID mode: private
CapAdd: None
CapDrop: None
SecurityOpt: None
Memory MiB: 384
CPU: 0.5
PidsLimit: None
ReadOnlyRootfs: False
Published ports: {'3000/tcp': [{'HostIp': '127.0.0.1', 'HostPort': '3000'}]}
PASS: basic isolation
=== loki ===
User: 10001
Privileged: False
Network mode: mtusi2026lab7_default
PID mode: private
CapAdd: None
CapDrop: None
SecurityOpt: None
Memory MiB: 512
CPU: 0.5
PidsLimit: None
ReadOnlyRootfs: False
Published ports: {}
PASS: basic isolation
=== loki-proxy ===
User: image default
Privileged: False
Network mode: container:c087564403d5d41a46b15bec53b8e9222d725716357760efa59b9a2361cedf95
PID mode: private
CapAdd: None
CapDrop: None
SecurityOpt: None
Memory MiB: 128
CPU: 0.25
PidsLimit: None
ReadOnlyRootfs: False
Published ports: {}
PASS: basic isolation
=== nginx ===
User: image default
Privileged: False
Network mode: mtusi2026lab7_default
PID mode: private
CapAdd: None
CapDrop: None
SecurityOpt: None
Memory MiB: 256
CPU: 0.5
PidsLimit: None
ReadOnlyRootfs: False
Published ports: {'8443/tcp': [{'HostIp': '', 'HostPort': '8443'}]}
PASS: basic isolation
=== openbao ===
User: 100:1000
Privileged: False
Network mode: mtusi2026lab7_default
PID mode: private
CapAdd: None
CapDrop: ['ALL']
SecurityOpt: None
Memory MiB: 256
CPU: 0.5
PidsLimit: None
ReadOnlyRootfs: False
Published ports: {}
PASS: basic isolation
=== otel-collector ===
User: 10001
Privileged: False
Network mode: mtusi2026lab7_default
PID mode: private
CapAdd: None
CapDrop: None
SecurityOpt: None
Memory MiB: 256
CPU: 0.5
PidsLimit: None
ReadOnlyRootfs: False
Published ports: {}
PASS: basic isolation
=== otel-collector-proxy ===
User: image default
Privileged: False
Network mode: container:0c53aa36c57ccc2aafab517e82254b0229bb7e16222c7806c8e5eca6181c53ef
PID mode: private
CapAdd: None
CapDrop: None
SecurityOpt: None
Memory MiB: 128
CPU: 0.25
PidsLimit: None
ReadOnlyRootfs: False
Published ports: {}
PASS: basic isolation
=== postgres ===
User: image default
Privileged: False
Network mode: mtusi2026lab7_default
PID mode: private
CapAdd: None
CapDrop: None
SecurityOpt: None
Memory MiB: 768
CPU: 1.0
PidsLimit: None
ReadOnlyRootfs: False
Published ports: {}
PASS: basic isolation
=== prometheus ===
User: nobody
Privileged: False
Network mode: mtusi2026lab7_default
PID mode: private
CapAdd: None
CapDrop: None
SecurityOpt: None
Memory MiB: 512
CPU: 0.5
PidsLimit: None
ReadOnlyRootfs: False
Published ports: {}
PASS: basic isolation
=== rabbitmq ===
User: image default
Privileged: False
Network mode: mtusi2026lab7_default
PID mode: private
CapAdd: None
CapDrop: None
SecurityOpt: None
Memory MiB: 512
CPU: 0.5
PidsLimit: None
ReadOnlyRootfs: False
Published ports: {}
PASS: basic isolation
=== redis ===
User: image default
Privileged: False
Network mode: mtusi2026lab7_default
PID mode: private
CapAdd: None
CapDrop: None
SecurityOpt: None
Memory MiB: 256
CPU: 0.5
PidsLimit: None
ReadOnlyRootfs: False
Published ports: {}
PASS: basic isolation
=== s3 ===
User: image default
Privileged: False
Network mode: mtusi2026lab7_default
PID mode: private
CapAdd: None
CapDrop: None
SecurityOpt: None
Memory MiB: 512
CPU: 1.0
PidsLimit: None
ReadOnlyRootfs: False
Published ports: {'9001/tcp': [{'HostIp': '127.0.0.1', 'HostPort': '9001'}]}
PASS: basic isolation
=== tempo ===
User: 10001:10001
Privileged: False
Network mode: mtusi2026lab7_default
PID mode: private
CapAdd: None
CapDrop: None
SecurityOpt: None
Memory MiB: 512
CPU: 0.5
PidsLimit: None
ReadOnlyRootfs: False
Published ports: {}
PASS: basic isolation
=== tempo-proxy ===
User: image default
Privileged: False
Network mode: container:01a08214dbbf732856ec01ca21cf150116618aff376b6a283717e78a3c393d4b
PID mode: private
CapAdd: None
CapDrop: None
SecurityOpt: None
Memory MiB: 128
CPU: 0.25
PidsLimit: None
ReadOnlyRootfs: False
Published ports: {}
PASS: basic isolation
=== worker ===
User: appuser
Privileged: False
Network mode: mtusi2026lab7_default
PID mode: private
CapAdd: None
CapDrop: ['ALL']
SecurityOpt: ['no-new-privileges:true']
Memory MiB: 512
CPU: 1.0
PidsLimit: None
ReadOnlyRootfs: False
Published ports: {}
PASS: basic isolation
PASS: BASIC CONTAINER ISOLATION
+21
View File
@@ -0,0 +1,21 @@
NAME CPU % MEM USAGE / LIMIT MEM % PIDS
mtusi2026lab7-api-1-1 0.24% 99.54MiB / 512MiB 19.44% 5
mtusi2026lab7-api-1-proxy-1 0.00% 2.836MiB / 128MiB 2.22% 2
mtusi2026lab7-api-2-1 0.27% 112.1MiB / 512MiB 21.89% 5
mtusi2026lab7-api-2-proxy-1 0.00% 2.863MiB / 128MiB 2.24% 2
mtusi2026lab7-dispatcher-1 2.26% 70.78MiB / 512MiB 13.82% 5
mtusi2026lab7-grafana-1 2.02% 94.68MiB / 384MiB 24.66% 24
mtusi2026lab7-loki-1 0.83% 87.53MiB / 512MiB 17.10% 24
mtusi2026lab7-loki-proxy-1 0.00% 3MiB / 128MiB 2.34% 2
mtusi2026lab7-nginx-1 0.00% 5.281MiB / 256MiB 2.06% 2
mtusi2026lab7-openbao-1 0.78% 24.82MiB / 256MiB 9.69% 22
mtusi2026lab7-otel-collector-1 1.75% 66.88MiB / 256MiB 26.12% 25
mtusi2026lab7-otel-collector-proxy-1 0.54% 2.973MiB / 128MiB 2.32% 2
mtusi2026lab7-postgres-1 12.53% 63.57MiB / 768MiB 8.28% 10
mtusi2026lab7-prometheus-1 0.62% 51.3MiB / 512MiB 10.02% 11
mtusi2026lab7-rabbitmq-1 0.31% 110.5MiB / 512MiB 21.58% 62
mtusi2026lab7-redis-1 0.48% 18.25MiB / 256MiB 7.13% 6
mtusi2026lab7-s3-1 0.11% 126.8MiB / 512MiB 24.76% 24
mtusi2026lab7-tempo-1 0.07% 266.4MiB / 512MiB 52.03% 25
mtusi2026lab7-tempo-proxy-1 0.00% 3.133MiB / 128MiB 2.45% 2
mtusi2026lab7-worker-1 0.00% 82.73MiB / 512MiB 16.16% 5
+30
View File
@@ -0,0 +1,30 @@
Container mtusi2026lab7-migrate-run-0b87b5e051c6 Creating
Container mtusi2026lab7-migrate-run-0b87b5e051c6 Created
========== POSTGRESQL ==========
PASS: api: messenger_api, TLSv1.3
PASS: api cannot create tables: InsufficientPrivilegeError
PASS: api: plaintext rejected: InvalidAuthorizationSpecificationError
PASS: api: untrusted CA rejected: SSLCertVerificationError
PASS: api: wrong hostname rejected: SSLCertVerificationError
PASS: worker: messenger_worker, TLSv1.3
PASS: worker cannot read users: InsufficientPrivilegeError
PASS: worker cannot create tables: InsufficientPrivilegeError
PASS: worker: plaintext rejected: InvalidAuthorizationSpecificationError
PASS: worker: untrusted CA rejected: SSLCertVerificationError
PASS: worker: wrong hostname rejected: SSLCertVerificationError
PASS: dispatcher: messenger_dispatcher, TLSv1.3
PASS: dispatcher cannot read users: InsufficientPrivilegeError
PASS: dispatcher cannot create tables: InsufficientPrivilegeError
PASS: dispatcher: plaintext rejected: InvalidAuthorizationSpecificationError
PASS: dispatcher: untrusted CA rejected: SSLCertVerificationError
PASS: dispatcher: wrong hostname rejected: SSLCertVerificationError
========== REDIS ==========
PASS: verified Redis TLS
PASS: session operations
PASS: rate limiter Lua and TTL
PASS: forbidden Redis key: NoPermissionError
PASS: forbidden Redis admin command: NoPermissionError
PASS: DATA SECURITY TESTS
+1
View File
@@ -0,0 +1 @@
No known vulnerabilities found
@@ -0,0 +1,6 @@
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
mtusi2026lab7-api-1-1 mtusi2026lab7-api-1 "python /app/scripts…" api-1 2 hours ago Exited (0) 18 seconds ago
mtusi2026lab7-api-1-proxy-1 nginx:1.29-alpine "nginx -g 'daemon of…" api-1-proxy 2 hours ago Exited (0) 19 seconds ago
mtusi2026lab7-api-2-1 mtusi2026lab7-api-2 "python /app/scripts…" api-2 2 hours ago Up 2 minutes (healthy) 8080/tcp
mtusi2026lab7-api-2-proxy-1 nginx:1.29-alpine "nginx -g 'daemon of…" api-2-proxy 2 hours ago Up About a minute
mtusi2026lab7-nginx-1 nginx:1.29-alpine "/docker-entrypoint.…" nginx 2 hours ago Up About a minute 0.0.0.0:8443->8443/tcp, [::]:8443->8443/tcp
+10
View File
@@ -0,0 +1,10 @@
x-instance-id: api-2
x-instance-id: api-2
x-instance-id: api-2
x-instance-id: api-2
x-instance-id: api-2
x-instance-id: api-2
x-instance-id: api-2
x-instance-id: api-2
x-instance-id: api-2
x-instance-id: api-2
@@ -0,0 +1,6 @@
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
mtusi2026lab7-api-1-1 mtusi2026lab7-api-1 "python /app/scripts…" api-1 2 hours ago Up About a minute (healthy) 8080/tcp
mtusi2026lab7-api-1-proxy-1 nginx:1.29-alpine "nginx -g 'daemon of…" api-1-proxy 2 hours ago Up About a minute
mtusi2026lab7-api-2-1 mtusi2026lab7-api-2 "python /app/scripts…" api-2 2 hours ago Up 3 minutes (healthy) 8080/tcp
mtusi2026lab7-api-2-proxy-1 nginx:1.29-alpine "nginx -g 'daemon of…" api-2-proxy 2 hours ago Up 3 minutes
mtusi2026lab7-nginx-1 nginx:1.29-alpine "/docker-entrypoint.…" nginx 2 hours ago Up 3 minutes 0.0.0.0:8443->8443/tcp, [::]:8443->8443/tcp
@@ -0,0 +1,10 @@
x-instance-id: api-2
x-instance-id: api-2
x-instance-id: api-1
x-instance-id: api-2
x-instance-id: api-1
x-instance-id: api-2
x-instance-id: api-1
x-instance-id: api-2
x-instance-id: api-1
x-instance-id: api-2
+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 "/home/casablanca/mtuci/high_load_apps/mtusi2026lab7/certs/ca/ca.crt"
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 91, "failed_attempts": 2, "first_recovery_seconds": 2.157}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
@@ -0,0 +1,2 @@
api-1-1 | PASS: OpenBao identity=bao-api-1, role=api, secrets=5
api-1-1 | PASS: OpenBao identity=bao-api-1, role=api, secrets=5
@@ -0,0 +1,6 @@
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
mtusi2026lab7-api-1-1 mtusi2026lab7-api-1 "python /app/scripts…" api-1 2 hours ago Up 2 minutes (healthy) 8080/tcp
mtusi2026lab7-api-1-proxy-1 nginx:1.29-alpine "nginx -g 'daemon of…" api-1-proxy 2 hours ago Up 2 minutes
mtusi2026lab7-api-2-1 mtusi2026lab7-api-2 "python /app/scripts…" api-2 2 hours ago Exited (0) 23 seconds ago
mtusi2026lab7-api-2-proxy-1 nginx:1.29-alpine "nginx -g 'daemon of…" api-2-proxy 2 hours ago Exited (0) 24 seconds ago
mtusi2026lab7-nginx-1 nginx:1.29-alpine "/docker-entrypoint.…" nginx 2 hours ago Up 4 minutes 0.0.0.0:8443->8443/tcp, [::]:8443->8443/tcp
@@ -0,0 +1,10 @@
x-instance-id: api-1
x-instance-id: api-1
x-instance-id: api-1
x-instance-id: api-1
x-instance-id: api-1
x-instance-id: api-1
x-instance-id: api-1
x-instance-id: api-1
x-instance-id: api-1
x-instance-id: api-1
@@ -0,0 +1,6 @@
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
mtusi2026lab7-api-1-1 mtusi2026lab7-api-1 "python /app/scripts…" api-1 2 hours ago Up 2 minutes (healthy) 8080/tcp
mtusi2026lab7-api-1-proxy-1 nginx:1.29-alpine "nginx -g 'daemon of…" api-1-proxy 2 hours ago Up 2 minutes
mtusi2026lab7-api-2-1 mtusi2026lab7-api-2 "python /app/scripts…" api-2 2 hours ago Up 17 seconds (healthy) 8080/tcp
mtusi2026lab7-api-2-proxy-1 nginx:1.29-alpine "nginx -g 'daemon of…" api-2-proxy 2 hours ago Up 10 seconds
mtusi2026lab7-nginx-1 nginx:1.29-alpine "/docker-entrypoint.…" nginx 2 hours ago Up 4 minutes 0.0.0.0:8443->8443/tcp, [::]:8443->8443/tcp
@@ -0,0 +1,10 @@
x-instance-id: api-1
x-instance-id: api-1
x-instance-id: api-2
x-instance-id: api-1
x-instance-id: api-2
x-instance-id: api-1
x-instance-id: api-2
x-instance-id: api-1
x-instance-id: api-2
x-instance-id: api-1
+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 "/home/casablanca/mtuci/high_load_apps/mtusi2026lab7/certs/ca/ca.crt"
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 93, "failed_attempts": 2, "first_recovery_seconds": 2.12}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
+129
View File
@@ -0,0 +1,129 @@
Image mtusi2026lab7-api-1 Building
Image mtusi2026lab7-migrate Building
Image mtusi2026lab7-api-2 Building
Image mtusi2026lab7-worker Building
Image mtusi2026lab7-dispatcher Building
#1 [internal] load local bake definitions
#1 reading from stdin 2.49kB done
#1 DONE 0.0s
#2 [worker internal] load build definition from Dockerfile
#2 transferring dockerfile: 660B 0.0s done
#2 DONE 0.0s
#3 [migrate internal] load metadata for docker.io/library/python:3.13.15-slim
#3 DONE 2.0s
#4 [dispatcher internal] load .dockerignore
#4 transferring context: 293B done
#4 DONE 0.0s
#5 [dispatcher 1/10] FROM docker.io/library/python:3.13.15-slim@sha256:7c61056e61ac89e852de05f3dc6fa51a6dd2181797bceed46aa725dd7cb2cd3b
#5 resolve docker.io/library/python:3.13.15-slim@sha256:7c61056e61ac89e852de05f3dc6fa51a6dd2181797bceed46aa725dd7cb2cd3b 0.0s done
#5 DONE 0.1s
#6 [worker internal] load build context
#6 transferring context: 9.61kB 0.0s done
#6 DONE 0.0s
#7 [api-1 2/10] WORKDIR /app
#7 CACHED
#8 [api-1 3/10] COPY requirements.txt .
#8 CACHED
#9 [api-1 4/10] RUN pip install --no-cache-dir -r requirements.txt
#9 CACHED
#10 [api-1 5/10] COPY alembic.ini .
#10 CACHED
#11 [api-1 6/10] COPY migrations ./migrations
#11 CACHED
#12 [api-2 7/10] COPY src ./src
#12 CACHED
#13 [worker 8/10] COPY scripts ./scripts
#13 DONE 0.1s
#14 [api-1 9/10] COPY tests ./tests
#14 DONE 0.1s
#15 [api-1 10/10] RUN useradd --create-home --uid 10001 appuser
#15 DONE 0.8s
#16 [worker] exporting to image
#16 exporting layers
#16 exporting layers 0.3s done
#16 exporting manifest sha256:57da61227e1ecf4d805a0c19c68dfbba70117edbb1bc2b5b3d1ceca06916ff0e 0.1s done
#16 exporting config sha256:c084e3743dd65e261c52ee1e37b51bd256556388a0340ed99606c4ae1e179376
#16 exporting config sha256:c084e3743dd65e261c52ee1e37b51bd256556388a0340ed99606c4ae1e179376 0.2s done
#16 exporting attestation manifest sha256:f13637e52f102f32a07a12a571de167a5f3831d7795a123168c972d681b79e17
#16 exporting attestation manifest sha256:f13637e52f102f32a07a12a571de167a5f3831d7795a123168c972d681b79e17 0.1s done
#16 exporting manifest list sha256:346f8a438f8e84965609945d458547b59258d7ac307ad1083d769385fe73130c
#16 exporting manifest list sha256:346f8a438f8e84965609945d458547b59258d7ac307ad1083d769385fe73130c 0.1s done
#16 naming to docker.io/library/mtusi2026lab7-worker:latest 0.0s done
#16 unpacking to docker.io/library/mtusi2026lab7-worker:latest
#16 unpacking to docker.io/library/mtusi2026lab7-worker:latest 0.3s done
#16 DONE 1.4s
#17 [api-2] exporting to image
#17 exporting layers 0.4s done
#17 exporting manifest sha256:86bcc5087408adf700ddbcccf6a0cec58cd7210ba498b587ba837f97ca3af7dd 0.2s done
#17 exporting config sha256:680f3dd42c308cb4826e24574c8e12fee39538852d2ffe941c57dc8cc6303c88 0.1s done
#17 exporting attestation manifest sha256:778406fff97507614641e8b28305ad86037f3534f294e8b950ddc0edbe6e279d 0.1s done
#17 exporting manifest list sha256:192e88c2b5631ff56a1774005fc5e8e2c650a01908c4d9e0bbdb8152b25fa95c 0.1s done
#17 naming to docker.io/library/mtusi2026lab7-api-2:latest 0.0s done
#17 unpacking to docker.io/library/mtusi2026lab7-api-2:latest 0.3s done
#17 DONE 1.5s
#18 [api-1] exporting to image
#18 exporting layers 0.3s done
#18 exporting manifest sha256:074f02b0137e876caf153034c46ff3a54318878c828b27fae5acbc444efe16b9 0.1s done
#18 exporting config sha256:3405669c36ea67c951800f342978d2d4bd032e7a63efefcd974b019fb48a29c1 0.2s done
#18 exporting attestation manifest sha256:5b1ceffef34ca286f266a3cf6b7b3627d9cfb3a6209d63678ef85db5814a491d 0.1s done
#18 exporting manifest list sha256:42f8ebf96924ba41bad2097862a262b2620d12ec980efcba0ff84bfbd33f48d7 0.1s done
#18 naming to docker.io/library/mtusi2026lab7-api-1:latest 0.0s done
#18 unpacking to docker.io/library/mtusi2026lab7-api-1:latest 0.3s done
#18 DONE 1.4s
#19 [migrate] exporting to image
#19 exporting layers 0.4s done
#19 exporting manifest sha256:3475d2b3d1bdcb55bb3635f58353022e1209c00ea9a2d940d0911a8ae7904cb1 0.1s done
#19 exporting config sha256:1fbd8585173ea8bf85eda2afe131100632aa9a289e5a358db1918223498d3103 0.1s done
#19 exporting attestation manifest sha256:d9cfa255dbdb9fe47e228771e5675c56c6ecd7f0b3f4c0e1c5fc44b934c63a8f 0.2s done
#19 exporting manifest list sha256:69cbf10042e8cc50e02942d130847c9530441d21b6f38a3ec58b2725e006a161 0.1s done
#19 naming to docker.io/library/mtusi2026lab7-migrate:latest 0.0s done
#19 unpacking to docker.io/library/mtusi2026lab7-migrate:latest 0.3s done
#19 DONE 1.5s
#20 [dispatcher] exporting to image
#20 exporting layers 0.4s done
#20 exporting manifest sha256:77328d4ee1e68831cd0b1d36b6153deb9065a23d4eda667ba9199e6ffd82d357 0.1s done
#20 exporting config sha256:0ea05504378dce397bca797f9201b1032eb9663b449e8050aa40ef85398f81f6 0.2s done
#20 exporting attestation manifest sha256:fea160c4b6cc06187f11acaba9f52e1e4d550d60b61a7f099d7cb35514eb2d2f 0.1s done
#20 exporting manifest list sha256:8e07f366d108e6106eeb77937c8ba4014012230c363fb76398b0b66f6df33c19 0.1s done
#20 naming to docker.io/library/mtusi2026lab7-dispatcher:latest 0.0s done
#20 unpacking to docker.io/library/mtusi2026lab7-dispatcher:latest 0.3s done
#20 DONE 1.5s
#21 [worker] resolving provenance for metadata file
#21 DONE 0.4s
#22 [api-1] resolving provenance for metadata file
#22 DONE 0.4s
#23 [migrate] resolving provenance for metadata file
#23 DONE 0.3s
#24 [dispatcher] resolving provenance for metadata file
#24 DONE 0.2s
#25 [api-2] resolving provenance for metadata file
#25 DONE 0.0s
Image mtusi2026lab7-dispatcher Built
Image mtusi2026lab7-api-2 Built
Image mtusi2026lab7-migrate Built
Image mtusi2026lab7-api-1 Built
Image mtusi2026lab7-worker Built
+5
View File
@@ -0,0 +1,5 @@
Tracked files checked: 253
Known credential patterns checked: 44
PASS: no known local credentials in container logs
Failures: 0
PASS: SECRET AUDIT
+17
View File
@@ -0,0 +1,17 @@
PASS: Grafana HTTPS health
HTTP 401: /api/datasources
Response: {"extra":null,"message":"Unauthorized","messageId":"auth.unauthorized","statusCode":401,"traceID":""}
PASS: anonymous datasource access denied
PASS: prometheus HTTPS and CA verification configured
Datasource prometheus: HTTP 200, status=OK, message=Successfully queried the Prometheus API.
PASS: Grafana -> prometheus connection
PASS: loki HTTPS and CA verification configured
Datasource loki: HTTP 200, status=OK, message=Data source successfully connected.
PASS: Grafana -> loki connection
PASS: tempo HTTPS and CA verification configured
PASS: Tempo returned 4 traces
PASS: trace ID: c83d351542b44438ff595fc6e782bec
PASS: Grafana -> tempo connection
PASS: GRAFANA SECURITY TESTS
+23
View File
@@ -0,0 +1,23 @@
api-1: pids_limit=256, no-new-privileges=True, PASS
api-1-proxy: pids_limit=256, no-new-privileges=True, PASS
api-2: pids_limit=256, no-new-privileges=True, PASS
api-2-proxy: pids_limit=256, no-new-privileges=True, PASS
dispatcher: pids_limit=256, no-new-privileges=True, PASS
grafana: pids_limit=256, no-new-privileges=True, PASS
loki: pids_limit=256, no-new-privileges=True, PASS
loki-proxy: pids_limit=256, no-new-privileges=True, PASS
migrate: pids_limit=256, no-new-privileges=True, PASS
nginx: pids_limit=256, no-new-privileges=True, PASS
openbao: pids_limit=256, no-new-privileges=True, PASS
otel-collector: pids_limit=256, no-new-privileges=True, PASS
otel-collector-proxy: pids_limit=256, no-new-privileges=True, PASS
postgres: pids_limit=256, no-new-privileges=True, PASS
prometheus: pids_limit=256, no-new-privileges=True, PASS
rabbitmq: pids_limit=256, no-new-privileges=True, PASS
redis: pids_limit=256, no-new-privileges=True, PASS
s3: pids_limit=256, no-new-privileges=True, PASS
s3-init: pids_limit=256, no-new-privileges=True, PASS
tempo: pids_limit=256, no-new-privileges=True, PASS
tempo-proxy: pids_limit=256, no-new-privileges=True, PASS
worker: pids_limit=256, no-new-privileges=True, PASS
PASS: ALL SERVICES HARDENING CONFIGURATION
+24
View File
@@ -0,0 +1,24 @@
PASS: api-1, pids_limit=256, no-new-privileges=true, state=running
PASS: api-1-proxy, pids_limit=256, no-new-privileges=true, state=running
PASS: api-2, pids_limit=256, no-new-privileges=true, state=running
PASS: api-2-proxy, pids_limit=256, no-new-privileges=true, state=running
PASS: dispatcher, pids_limit=256, no-new-privileges=true, state=running
PASS: grafana, pids_limit=256, no-new-privileges=true, state=running
PASS: loki, pids_limit=256, no-new-privileges=true, state=running
PASS: loki-proxy, pids_limit=256, no-new-privileges=true, state=running
PASS: migrate, pids_limit=256, no-new-privileges=true, state=exited
PASS: nginx, pids_limit=256, no-new-privileges=true, state=running
PASS: openbao, pids_limit=256, no-new-privileges=true, state=running
PASS: otel-collector, pids_limit=256, no-new-privileges=true, state=running
PASS: otel-collector-proxy, pids_limit=256, no-new-privileges=true, state=running
PASS: postgres, pids_limit=256, no-new-privileges=true, state=running
PASS: prometheus, pids_limit=256, no-new-privileges=true, state=running
PASS: rabbitmq, pids_limit=256, no-new-privileges=true, state=running
PASS: redis, pids_limit=256, no-new-privileges=true, state=running
PASS: s3, pids_limit=256, no-new-privileges=true, state=running
PASS: s3-init, pids_limit=256, no-new-privileges=true, state=exited
PASS: tempo, pids_limit=256, no-new-privileges=true, state=running
PASS: tempo-proxy, pids_limit=256, no-new-privileges=true, state=running
PASS: worker, pids_limit=256, no-new-privileges=true, state=running
PASS: ALL 22 CONTAINERS HARDENED
@@ -0,0 +1,23 @@
=== DOCKER IMAGE SECRET AUDIT ===
Services: 5
Unique images: 5
Credential patterns: 44
Inspecting: api-1
Error response from daemon: No such image: sha256:da38bc523597c5013a9fcc31fc59831737c97cb688035c0bc1b48fc46c81d4ab
Traceback (most recent call last):
File "/home/casablanca/mtuci/high_load_apps/mtusi2026lab7/student-tests/audit_images.py", line 101, in <module>
command("docker", "image", "inspect", image),
~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/casablanca/mtuci/high_load_apps/mtusi2026lab7/student-tests/audit_images.py", line 37, in command
return subprocess.check_output(args)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "/usr/lib/python3.13/subprocess.py", line 472, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
**kwargs).stdout
^^^^^^^^^
File "/usr/lib/python3.13/subprocess.py", line 577, in run
raise CalledProcessError(retcode, process.args,
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '('docker', 'image', 'inspect', 'sha256:da38bc523597c5013a9fcc31fc59831737c97cb688035c0bc1b48fc46c81d4ab')' returned non-zero exit status 1.
+10
View File
@@ -0,0 +1,10 @@
=== api-1 ===
PASS: no local secret paths in application image
=== api-2 ===
PASS: no local secret paths in application image
=== worker ===
PASS: no local secret paths in application image
=== dispatcher ===
PASS: no local secret paths in application image
=== migrate ===
PASS: no local secret paths in application image
+46
View File
@@ -0,0 +1,46 @@
Selected: api-1: mtusi2026lab7-api-1: sha256:42f8ebf96924ba41bad2097862a262b2620d12ec980efcba0ff84bfbd33f48d7
Selected: api-2: mtusi2026lab7-api-2: sha256:192e88c2b5631ff56a1774005fc5e8e2c650a01908c4d9e0bbdb8152b25fa95c
Selected: worker: mtusi2026lab7-worker: sha256:346f8a438f8e84965609945d458547b59258d7ac307ad1083d769385fe73130c
Selected: dispatcher: mtusi2026lab7-dispatcher: sha256:8e07f366d108e6106eeb77937c8ba4014012230c363fb76398b0b66f6df33c19
Selected: migrate: mtusi2026lab7-migrate: sha256:69cbf10042e8cc50e02942d130847c9530441d21b6f38a3ec58b2725e006a161
=== DOCKER IMAGE SECRET AUDIT ===
Services: 5
Unique images: 5
Credential patterns: 44
Inspecting: api-1
Layers checked: 1 | Files checked: 2677
Layers checked: 2 | Files checked: 2881
Layers checked: 3 | Files checked: 4474
Layers checked: 4 | Files checked: 4474
Layers checked: 5 | Files checked: 4474
Layers checked: 6 | Files checked: 4475
Layers checked: 7 | Files checked: 10741
Layers checked: 8 | Files checked: 10742
Layers checked: 9 | Files checked: 10756
Layers checked: 10 | Files checked: 10773
Layers checked: 11 | Files checked: 10795
Layers checked: 12 | Files checked: 10804
Layers checked: 13 | Files checked: 10819
Completed: api-1
Inspecting: api-2
Completed: api-2
Inspecting: worker
Completed: worker
Inspecting: dispatcher
Completed: dispatcher
Inspecting: migrate
Completed: migrate
=== SUMMARY ===
Services inspected: 5
Unique images inspected: 5
Unique layers inspected: 13
Layer files inspected: 10819
Credential patterns: 44
Failures: 0
PASS: DOCKER IMAGE SECRET AUDIT
@@ -0,0 +1,11 @@
=== TELEMETRY SECRET AUDIT ===
Audit window: 7 days
Credential patterns: 46
TLS CA and hostname verification: enabled
=== Loki ===
Loki services inspected: 3
Loki log records inspected: 3377
PASS: Loki scan completed
Failures: 0
PASS: TELEMETRY SECRET AUDIT: loki
+10
View File
@@ -0,0 +1,10 @@
=== TELEMETRY SECRET AUDIT ===
Audit window: 7 days
Credential patterns: 46
TLS CA and hostname verification: enabled
=== Loki ===
Loki services inspected: 3
Loki log records inspected: 3108
PASS: Loki scan completed
@@ -0,0 +1,33 @@
========== RABBITMQ FINAL LISTENERS ==========
Interface: [::], port: 15671, protocol: https, purpose: HTTP API over TLS (HTTPS)
Interface: [::], port: 25672, protocol: clustering, purpose: inter-node and CLI tool communication
Interface: [::], port: 5671, protocol: amqp/ssl, purpose: AMQP 0-9-1 and AMQP 1.0 over TLS
========== MINIO CERTIFICATE ==========
subject=CN = s3
notBefore=Dec 6 14:56:00 2026 GMT
notAfter=Mar 6 14:56:00 2027 GMT
X509v3 Subject Alternative Name:
DNS:s3, DNS:localhost, IP Address:127.0.0.1
========== MINIO INITIALIZATION ==========
s3-init-1 | Added `local` successfully.
s3-init-1 | Bucket created successfully `local/messenger-attachments`.
s3-init-1 | Access permission for `local/messenger-attachments` is set to `private`
s3-init-1 | Created policy `messenger-api` successfully.
s3-init-1 | Added user `[REDACTED_S3_API_ACCESS_KEY_ID]` successfully.
s3-init-1 | Attached Policies: [messenger-api]
s3-init-1 | To User: [REDACTED_S3_API_ACCESS_KEY_ID]
s3-init-1 | PASS: MinIO api identity configured
s3-init-1 | Created policy `messenger-worker` successfully.
s3-init-1 | Added user `[REDACTED_S3_WORKER_ACCESS_KEY_ID]` successfully.
s3-init-1 | Attached Policies: [messenger-worker]
s3-init-1 | To User: [REDACTED_S3_WORKER_ACCESS_KEY_ID]
s3-init-1 | PASS: MinIO worker identity configured
s3-init-1 | PASS: MinIO HTTPS initialization complete
========== SERVICE STATUS ==========
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
mtusi2026lab7-migrate-1 mtusi2026lab7-migrate "alembic upgrade head" migrate 36 minutes ago Exited (0) 36 minutes ago
mtusi2026lab7-postgres-1 postgres:17.6 "docker-entrypoint.s…" postgres 39 minutes ago Up 39 minutes (healthy) 5432/tcp
mtusi2026lab7-rabbitmq-1 rabbitmq:4.1.4-management-alpine "docker-entrypoint.s…" rabbitmq 5 minutes ago Up 5 minutes (healthy) 4369/tcp, 5671-5672/tcp, 15671-15672/tcp, 15691-15692/tcp, 25672/tcp
mtusi2026lab7-redis-1 redis:8.2.2 "docker-entrypoint.s…" redis 39 minutes ago Up 39 minutes (healthy) 6379/tcp
mtusi2026lab7-s3-1 dappros/minio:RELEASE.2025-09-07T16-13-09Z "/usr/bin/docker-ent…" s3 About a minute ago Up About a minute (healthy) 127.0.0.1:9001->9001/tcp
mtusi2026lab7-s3-init-1 dappros/minio:RELEASE.2025-09-07T16-13-09Z "/bin/sh /config/ini…" s3-init About a minute ago Exited (0) About a minute ago
+8
View File
@@ -0,0 +1,8 @@
s3-init-1 | Added `local` successfully.
s3-init-1 | Bucket created successfully `local/messenger-attachments`.
s3-init-1 | Access permission for `local/messenger-attachments` is set to `private`
s3-init-1 | Created policy `messenger-api` successfully.
s3-init-1 | PASS: MinIO api identity configured
s3-init-1 | Created policy `messenger-worker` successfully.
s3-init-1 | PASS: MinIO worker identity configured
s3-init-1 | PASS: MinIO HTTPS initialization complete
+33
View File
@@ -0,0 +1,33 @@
Container mtusi2026lab7-migrate-run-b51d03364501 Creating
Container mtusi2026lab7-migrate-run-b51d03364501 Created
PASS: verified MinIO TLS: TLSv1.3
PASS: untrusted CA rejected
PASS: wrong hostname rejected
PASS: API can access bucket
PASS: API can write staging
PASS: API can read staging
PASS: worker can read staging
PASS: worker can write attachments
PASS: worker can write variants
PASS: API can read attachments
PASS: API can read variants
PASS: API cannot write attachments: HTTP 403
PASS: API cannot write variants: HTTP 403
PASS: worker cannot write staging: HTTP 403
PASS: worker cannot delete staging: HTTP 403
PASS: worker cannot read attachments: HTTP 403
PASS: worker cannot read variants: HTTP 403
PASS: API cannot delete final object: HTTP 403
PASS: API cannot delete final object: HTTP 403
PASS: API cannot create bucket: HTTP 403
PASS: API bucket listing restricted: ['messenger-attachments']
PASS: worker cannot delete final object: HTTP 403
PASS: worker cannot delete final object: HTTP 403
PASS: worker cannot create bucket: HTTP 403
PASS: worker bucket listing denied
PASS: API can delete staging
PASS: anonymous access denied
PASS: anonymous access denied
TEST_PREFIX=security-test-366b32bd9f664ed9ac429179e6b5578e
PASS: MINIO SECURITY TESTS
+18
View File
@@ -0,0 +1,18 @@
Container mtusi2026lab7-migrate-run-e25e06b1eb40 Creating
Container mtusi2026lab7-migrate-run-e25e06b1eb40 Created
=== api-1 ===
PASS: authorized LB certificate
PASS: missing client certificate: HTTP 400
PASS: untrusted client certificate: HTTP 400
PASS: wrong trusted identity: HTTP 403
PASS: direct HTTP bypass rejected
=== api-2 ===
PASS: authorized LB certificate
PASS: missing client certificate: HTTP 400
PASS: untrusted client certificate: HTTP 400
PASS: wrong trusted identity: HTTP 403
PASS: direct HTTP bypass rejected
PASS: ALL MTLS SECURITY TESTS
+79
View File
@@ -0,0 +1,79 @@
Container mtusi2026lab7-migrate-run-fad02d630461 Creating
Container mtusi2026lab7-migrate-run-fad02d630461 Created
=== nginx ===
80: CLOSED
443: CLOSED
8080: CLOSED
8443: OPEN
=== api-1 ===
8080: CLOSED
8443: OPEN
=== api-2 ===
8080: CLOSED
8443: OPEN
=== worker ===
8080: CLOSED
=== dispatcher ===
8080: CLOSED
=== postgres ===
5432: OPEN
=== redis ===
6379: OPEN
=== rabbitmq ===
4369: CLOSED
5671: OPEN
5672: CLOSED
15671: OPEN
15672: CLOSED
15691: CLOSED
15692: CLOSED
25672: CLOSED
=== s3 ===
9000: OPEN
9001: OPEN
=== openbao ===
8200: OPEN
8201: CLOSED
=== otel-collector ===
4317: CLOSED
4318: OPEN
8888: OPEN
8889: OPEN
18888: CLOSED
18889: CLOSED
55678: CLOSED
55679: CLOSED
=== prometheus ===
9090: OPEN
=== loki ===
3100: OPEN
7946: CLOSED
9095: CLOSED
13100: CLOSED
=== tempo ===
3200: OPEN
4317: CLOSED
4318: CLOSED
7946: CLOSED
9095: CLOSED
13200: CLOSED
14318: CLOSED
=== grafana ===
3000: OPEN
NETWORK AUDIT COMPLETE
@@ -0,0 +1,79 @@
Container mtusi2026lab7-migrate-run-ee5cc1812d9c Creating
Container mtusi2026lab7-migrate-run-ee5cc1812d9c Created
=== nginx ===
80: CLOSED
443: CLOSED
8080: CLOSED
8443: OPEN
=== api-1 ===
8080: CLOSED
8443: OPEN
=== api-2 ===
8080: CLOSED
8443: OPEN
=== worker ===
8080: CLOSED
=== dispatcher ===
8080: CLOSED
=== postgres ===
5432: OPEN
=== redis ===
6379: OPEN
=== rabbitmq ===
4369: CLOSED
5671: OPEN
5672: CLOSED
15671: OPEN
15672: CLOSED
15691: CLOSED
15692: CLOSED
25672: CLOSED
=== s3 ===
9000: OPEN
9001: OPEN
=== openbao ===
8200: OPEN
8201: CLOSED
=== otel-collector ===
4317: CLOSED
4318: OPEN
8888: OPEN
8889: OPEN
18888: CLOSED
18889: CLOSED
55678: CLOSED
55679: CLOSED
=== prometheus ===
9090: OPEN
=== loki ===
3100: OPEN
7946: CLOSED
9095: CLOSED
13100: CLOSED
=== tempo ===
3200: OPEN
4317: CLOSED
4318: CLOSED
7946: CLOSED
9095: CLOSED
13200: CLOSED
14318: CLOSED
=== grafana ===
3000: OPEN
NETWORK AUDIT COMPLETE
+79
View File
@@ -0,0 +1,79 @@
Container mtusi2026lab7-migrate-run-66b62738efbc Creating
Container mtusi2026lab7-migrate-run-66b62738efbc Created
=== nginx ===
80: CLOSED
443: CLOSED
8080: CLOSED
8443: OPEN
=== api-1 ===
8080: CLOSED
8443: OPEN
=== api-2 ===
8080: CLOSED
8443: OPEN
=== worker ===
8080: CLOSED
=== dispatcher ===
8080: CLOSED
=== postgres ===
5432: OPEN
=== redis ===
6379: OPEN
=== rabbitmq ===
4369: OPEN
5671: OPEN
5672: CLOSED
15671: OPEN
15672: CLOSED
15691: CLOSED
15692: CLOSED
25672: OPEN
=== s3 ===
9000: OPEN
9001: OPEN
=== openbao ===
8200: OPEN
8201: OPEN
=== otel-collector ===
4317: CLOSED
4318: OPEN
8888: OPEN
8889: OPEN
18888: CLOSED
18889: CLOSED
55678: CLOSED
55679: CLOSED
=== prometheus ===
9090: OPEN
=== loki ===
3100: OPEN
7946: CLOSED
9095: CLOSED
13100: CLOSED
=== tempo ===
3200: OPEN
4317: CLOSED
4318: CLOSED
7946: CLOSED
9095: CLOSED
13200: CLOSED
14318: CLOSED
=== grafana ===
3000: OPEN
NETWORK AUDIT COMPLETE
+13
View File
@@ -0,0 +1,13 @@
Container mtusi2026lab7-migrate-run-c600bc596df3 Creating
Container mtusi2026lab7-migrate-run-c600bc596df3 Created
PASS: KV v2 enabled
PASS: certificate authentication enabled
PASS: messenger-api policy configured
PASS: messenger-worker policy configured
PASS: messenger-dispatcher policy configured
PASS: bao-api-1 -> messenger-api, TTL=15m, max TTL=1h
PASS: bao-api-2 -> messenger-api, TTL=15m, max TTL=1h
PASS: bao-worker -> messenger-worker, TTL=15m, max TTL=1h
PASS: bao-dispatcher -> messenger-dispatcher, TTL=15m, max TTL=1h
PASS: OPENBAO CONFIGURATION
+11
View File
@@ -0,0 +1,11 @@
Container mtusi2026lab7-api-1-run-14715a00b459 Creating
Container mtusi2026lab7-api-1-run-14715a00b459 Created
OpenBao attempt 1/6 failed: HTTPError
OpenBao attempt 2/6 failed: HTTPError
OpenBao attempt 3/6 failed: HTTPError
OpenBao attempt 4/6 failed: HTTPError
OpenBao attempt 5/6 failed: HTTPError
OpenBao attempt 6/6 failed: HTTPError
ERROR: OpenBao unavailable
PASS: startup rejected while OpenBao sealed
+44
View File
@@ -0,0 +1,44 @@
=== api-1 ===
PASS: cache_url, mode=600
PASS: database_url, mode=600
PASS: otel_password, mode=600
PASS: s3_access_key_id, mode=600
PASS: s3_secret_access_key, mode=600
PASS: non-root
PASS: tmpfs secret storage
PASS: no directly mounted database credentials
PASS: no token in environment
=== api-2 ===
PASS: cache_url, mode=600
PASS: database_url, mode=600
PASS: otel_password, mode=600
PASS: s3_access_key_id, mode=600
PASS: s3_secret_access_key, mode=600
PASS: non-root
PASS: tmpfs secret storage
PASS: no directly mounted database credentials
PASS: no token in environment
=== worker ===
PASS: database_url, mode=600
PASS: otel_password, mode=600
PASS: rabbitmq_password, mode=600
PASS: s3_access_key_id, mode=600
PASS: s3_secret_access_key, mode=600
PASS: non-root
PASS: tmpfs secret storage
PASS: no directly mounted database credentials
PASS: no token in environment
=== dispatcher ===
PASS: database_url, mode=600
PASS: otel_password, mode=600
PASS: rabbitmq_password, mode=600
PASS: non-root
PASS: tmpfs secret storage
PASS: no directly mounted database credentials
PASS: no token in environment
PASS: ALL APPLICATION SECRET STORAGE CHECKS
+70
View File
@@ -0,0 +1,70 @@
=== api-1 after OpenBao recreation ===
Container mtusi2026lab7-migrate-run-893442158697 Creating
Container mtusi2026lab7-migrate-run-893442158697 Created
PASS: bao-api-1 certificate login
PASS: token TTL=900 seconds
PASS: scoped policy messenger-api
PASS: own secrets readable (5)
PASS: access to worker denied
PASS: access to dispatcher denied
PASS: administrative policy access denied
PASS: policy modification denied
PASS: unauthenticated secret access denied
PASS: impersonation of bao-api-2 denied
PASS: impersonation of bao-worker denied
PASS: impersonation of bao-dispatcher denied
PASS: OPENBAO SECURITY TESTS: bao-api-1
=== api-2 after OpenBao recreation ===
Container mtusi2026lab7-migrate-run-fe9de8d1cce4 Creating
Container mtusi2026lab7-migrate-run-fe9de8d1cce4 Created
PASS: bao-api-2 certificate login
PASS: token TTL=900 seconds
PASS: scoped policy messenger-api
PASS: own secrets readable (5)
PASS: access to worker denied
PASS: access to dispatcher denied
PASS: administrative policy access denied
PASS: policy modification denied
PASS: unauthenticated secret access denied
PASS: impersonation of bao-api-1 denied
PASS: impersonation of bao-worker denied
PASS: impersonation of bao-dispatcher denied
PASS: OPENBAO SECURITY TESTS: bao-api-2
=== worker after OpenBao recreation ===
Container mtusi2026lab7-migrate-run-00ae1d17af39 Creating
Container mtusi2026lab7-migrate-run-00ae1d17af39 Created
PASS: bao-worker certificate login
PASS: token TTL=900 seconds
PASS: scoped policy messenger-worker
PASS: own secrets readable (5)
PASS: access to api denied
PASS: access to dispatcher denied
PASS: administrative policy access denied
PASS: policy modification denied
PASS: unauthenticated secret access denied
PASS: impersonation of bao-api-1 denied
PASS: impersonation of bao-api-2 denied
PASS: impersonation of bao-dispatcher denied
PASS: OPENBAO SECURITY TESTS: bao-worker
=== dispatcher after OpenBao recreation ===
Container mtusi2026lab7-migrate-run-26d34268b683 Creating
Container mtusi2026lab7-migrate-run-26d34268b683 Created
PASS: bao-dispatcher certificate login
PASS: token TTL=900 seconds
PASS: scoped policy messenger-dispatcher
PASS: own secrets readable (3)
PASS: access to api denied
PASS: access to worker denied
PASS: administrative policy access denied
PASS: policy modification denied
PASS: unauthenticated secret access denied
PASS: impersonation of bao-api-1 denied
PASS: impersonation of bao-api-2 denied
PASS: impersonation of bao-worker denied
PASS: OPENBAO SECURITY TESTS: bao-dispatcher
PASS: OPENBAO PERSISTENCE
+4
View File
@@ -0,0 +1,4 @@
Container mtusi2026lab7-api-1-run-f0b3a30db2a5 Creating
Container mtusi2026lab7-api-1-run-f0b3a30db2a5 Created
PASS: OpenBao identity=bao-api-1, role=api, secrets=5
PASS: startup after OpenBao recovery
+4
View File
@@ -0,0 +1,4 @@
api-1-1 | PASS: OpenBao identity=bao-api-1, role=api, secrets=5
api-2-1 | PASS: OpenBao identity=bao-api-2, role=api, secrets=5
dispatcher-1 | PASS: OpenBao identity=bao-dispatcher, role=dispatcher, secrets=3
worker-1 | PASS: OpenBao identity=bao-worker, role=worker, secrets=5
+70
View File
@@ -0,0 +1,70 @@
=== bao-api-1 ===
Container mtusi2026lab7-migrate-run-e9736b78300a Creating
Container mtusi2026lab7-migrate-run-e9736b78300a Created
PASS: bao-api-1 certificate login
PASS: token TTL=900 seconds
PASS: scoped policy messenger-api
PASS: own secrets readable (5)
PASS: access to worker denied
PASS: access to dispatcher denied
PASS: administrative policy access denied
PASS: policy modification denied
PASS: unauthenticated secret access denied
PASS: impersonation of bao-api-2 denied
PASS: impersonation of bao-worker denied
PASS: impersonation of bao-dispatcher denied
PASS: OPENBAO SECURITY TESTS: bao-api-1
=== bao-api-2 ===
Container mtusi2026lab7-migrate-run-93768ccb36f7 Creating
Container mtusi2026lab7-migrate-run-93768ccb36f7 Created
PASS: bao-api-2 certificate login
PASS: token TTL=900 seconds
PASS: scoped policy messenger-api
PASS: own secrets readable (5)
PASS: access to worker denied
PASS: access to dispatcher denied
PASS: administrative policy access denied
PASS: policy modification denied
PASS: unauthenticated secret access denied
PASS: impersonation of bao-api-1 denied
PASS: impersonation of bao-worker denied
PASS: impersonation of bao-dispatcher denied
PASS: OPENBAO SECURITY TESTS: bao-api-2
=== bao-worker ===
Container mtusi2026lab7-migrate-run-f12075ab8656 Creating
Container mtusi2026lab7-migrate-run-f12075ab8656 Created
PASS: bao-worker certificate login
PASS: token TTL=900 seconds
PASS: scoped policy messenger-worker
PASS: own secrets readable (5)
PASS: access to api denied
PASS: access to dispatcher denied
PASS: administrative policy access denied
PASS: policy modification denied
PASS: unauthenticated secret access denied
PASS: impersonation of bao-api-1 denied
PASS: impersonation of bao-api-2 denied
PASS: impersonation of bao-dispatcher denied
PASS: OPENBAO SECURITY TESTS: bao-worker
=== bao-dispatcher ===
Container mtusi2026lab7-migrate-run-3241ee2b008f Creating
Container mtusi2026lab7-migrate-run-3241ee2b008f Created
PASS: bao-dispatcher certificate login
PASS: token TTL=900 seconds
PASS: scoped policy messenger-dispatcher
PASS: own secrets readable (3)
PASS: access to api denied
PASS: access to worker denied
PASS: administrative policy access denied
PASS: policy modification denied
PASS: unauthenticated secret access denied
PASS: impersonation of bao-api-1 denied
PASS: impersonation of bao-api-2 denied
PASS: impersonation of bao-worker denied
PASS: OPENBAO SECURITY TESTS: bao-dispatcher
PASS: ALL OPENBAO SERVICE IDENTITIES
+7
View File
@@ -0,0 +1,7 @@
Container mtusi2026lab7-migrate-run-76199e2100e9 Creating
Container mtusi2026lab7-migrate-run-76199e2100e9 Created
PASS: messenger/api: 5 secrets stored, version=1
PASS: messenger/worker: 5 secrets stored, version=1
PASS: messenger/dispatcher: 3 secrets stored, version=1
PASS: OPENBAO SECRETS SEEDED
+13
View File
@@ -0,0 +1,13 @@
Key Value
--- -----
Seal Type shamir
Initialized true
Sealed false
Total Shares 3
Threshold 2
Version 2.3.2
Build Date 2025-08-08T04:05:27Z
Storage Type file
Cluster Name vault-cluster-9c62e62e
Cluster ID 570934d4-9b82-915b-b3ee-ff90f592210c
HA Enabled false
+10
View File
@@ -0,0 +1,10 @@
Container mtusi2026lab7-migrate-run-10d85fe631a5 Creating
Container mtusi2026lab7-migrate-run-10d85fe631a5 Created
PASS: trusted CA and hostname, TLSv1.3
PASS: untrusted CA rejected
PASS: wrong hostname rejected
PASS: certificate login without client certificate denied
PASS: modification of own secrets denied
PASS: deletion of own secrets denied
PASS: secrets unchanged
PASS: ALL OPENBAO TLS AND WRITE RESTRICTION TESTS
+20
View File
@@ -0,0 +1,20 @@
/mtusi2026lab7-api-1-1 | started=2026-12-06T17:59:09.469723934Z | status=running
/mtusi2026lab7-api-1-proxy-1 | started=2026-12-06T17:59:50.76656555Z | status=running
/mtusi2026lab7-api-2-1 | started=2026-12-06T17:59:09.812233835Z | status=running
/mtusi2026lab7-api-2-proxy-1 | started=2026-12-06T17:59:50.482523532Z | status=running
/mtusi2026lab7-dispatcher-1 | started=2026-12-06T17:59:43.090491483Z | status=running
/mtusi2026lab7-grafana-1 | started=2026-12-06T17:58:52.641321394Z | status=running
/mtusi2026lab7-loki-1 | started=2026-12-06T17:58:54.058535965Z | status=running
/mtusi2026lab7-loki-proxy-1 | started=2026-12-06T17:58:59.987062332Z | status=running
/mtusi2026lab7-nginx-1 | started=2026-12-06T17:59:51.081971537Z | status=running
/mtusi2026lab7-openbao-1 | started=2026-12-06T17:58:52.301293841Z | status=running
/mtusi2026lab7-otel-collector-1 | started=2026-12-06T17:59:00.269197517Z | status=running
/mtusi2026lab7-otel-collector-proxy-1 | started=2026-12-06T17:59:00.9528413Z | status=running
/mtusi2026lab7-postgres-1 | started=2026-12-06T17:58:54.473707714Z | status=running
/mtusi2026lab7-prometheus-1 | started=2026-12-06T17:58:53.924223409Z | status=running
/mtusi2026lab7-rabbitmq-1 | started=2026-12-06T17:58:54.226659242Z | status=running
/mtusi2026lab7-redis-1 | started=2026-12-06T17:58:53.76207235Z | status=running
/mtusi2026lab7-s3-1 | started=2026-12-06T17:58:53.387468221Z | status=running
/mtusi2026lab7-tempo-1 | started=2026-12-06T17:58:54.636196691Z | status=running
/mtusi2026lab7-tempo-proxy-1 | started=2026-12-06T17:58:59.928426746Z | status=running
/mtusi2026lab7-worker-1 | started=2026-12-06T17:59:43.433257971Z | status=running
+20
View File
@@ -0,0 +1,20 @@
/mtusi2026lab7-api-1-1 | started=2026-12-06T16:17:02.617672273Z | status=running
/mtusi2026lab7-api-1-proxy-1 | started=2026-12-06T16:17:08.465123035Z | status=running
/mtusi2026lab7-api-2-1 | started=2026-12-06T16:17:02.249195505Z | status=running
/mtusi2026lab7-api-2-proxy-1 | started=2026-12-06T16:17:08.133439841Z | status=running
/mtusi2026lab7-dispatcher-1 | started=2026-12-06T16:17:36.275748149Z | status=running
/mtusi2026lab7-grafana-1 | started=2026-12-06T16:16:50.860113789Z | status=running
/mtusi2026lab7-loki-1 | started=2026-12-06T16:16:47.678659316Z | status=running
/mtusi2026lab7-loki-proxy-1 | started=2026-12-06T16:16:48.022690693Z | status=running
/mtusi2026lab7-nginx-1 | started=2026-12-06T16:17:08.792721382Z | status=running
/mtusi2026lab7-openbao-1 | started=2026-12-06T16:14:52.309593536Z | status=running
/mtusi2026lab7-otel-collector-1 | started=2026-12-06T16:16:49.858159357Z | status=running
/mtusi2026lab7-otel-collector-proxy-1 | started=2026-12-06T16:16:50.206692162Z | status=running
/mtusi2026lab7-postgres-1 | started=2026-12-06T16:16:48.721168507Z | status=running
/mtusi2026lab7-prometheus-1 | started=2026-12-06T16:16:50.481817345Z | status=running
/mtusi2026lab7-rabbitmq-1 | started=2026-12-06T16:16:48.333401043Z | status=running
/mtusi2026lab7-redis-1 | started=2026-12-06T16:16:46.958337934Z | status=running
/mtusi2026lab7-s3-1 | started=2026-12-06T16:16:49.140808645Z | status=running
/mtusi2026lab7-tempo-1 | started=2026-12-06T16:16:47.339198315Z | status=running
/mtusi2026lab7-tempo-proxy-1 | started=2026-12-06T16:16:49.546403442Z | status=running
/mtusi2026lab7-worker-1 | started=2026-12-06T16:17:35.955623038Z | status=running
+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 "/home/casablanca/mtuci/high_load_apps/mtusi2026lab7/certs/ca/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.
+130
View File
@@ -0,0 +1,130 @@
ssl
-----
on
(1 row)
ssl_min_protocol_version
--------------------------
TLSv1.2
(1 row)
rolname | rolsuper | rolcreatedb | rolcreaterole
----------------------+----------+-------------+---------------
messenger_api | f | f | f
messenger_dispatcher | f | f | f
messenger_migrate | f | f | f
messenger_worker | f | f | f
(4 rows)
grantee | table_name | privilege_type
----------------------+---------------------+----------------
messenger_api | attachment_jobs | DELETE
messenger_api | attachment_jobs | INSERT
messenger_api | attachment_jobs | SELECT
messenger_api | attachment_jobs | UPDATE
messenger_api | attachments | DELETE
messenger_api | attachments | INSERT
messenger_api | attachments | SELECT
messenger_api | attachments | UPDATE
messenger_api | chat_members | DELETE
messenger_api | chat_members | INSERT
messenger_api | chat_members | SELECT
messenger_api | chat_members | UPDATE
messenger_api | chats | DELETE
messenger_api | chats | INSERT
messenger_api | chats | SELECT
messenger_api | chats | UPDATE
messenger_api | message_attachments | DELETE
messenger_api | message_attachments | INSERT
messenger_api | message_attachments | SELECT
messenger_api | message_attachments | UPDATE
messenger_api | message_idempotency | DELETE
messenger_api | message_idempotency | INSERT
messenger_api | message_idempotency | SELECT
messenger_api | message_idempotency | UPDATE
messenger_api | messages | DELETE
messenger_api | messages | INSERT
messenger_api | messages | SELECT
messenger_api | messages | UPDATE
messenger_api | users | DELETE
messenger_api | users | INSERT
messenger_api | users | SELECT
messenger_api | users | UPDATE
messenger_dispatcher | attachment_jobs | SELECT
messenger_dispatcher | attachment_jobs | UPDATE
messenger_dispatcher | attachments | SELECT
messenger_dispatcher | attachments | UPDATE
messenger_migrate | alembic_version | DELETE
messenger_migrate | alembic_version | INSERT
messenger_migrate | alembic_version | REFERENCES
messenger_migrate | alembic_version | SELECT
messenger_migrate | alembic_version | TRIGGER
messenger_migrate | alembic_version | TRUNCATE
messenger_migrate | alembic_version | UPDATE
messenger_migrate | attachment_jobs | DELETE
messenger_migrate | attachment_jobs | INSERT
messenger_migrate | attachment_jobs | REFERENCES
messenger_migrate | attachment_jobs | SELECT
messenger_migrate | attachment_jobs | TRIGGER
messenger_migrate | attachment_jobs | TRUNCATE
messenger_migrate | attachment_jobs | UPDATE
messenger_migrate | attachments | DELETE
messenger_migrate | attachments | INSERT
messenger_migrate | attachments | REFERENCES
messenger_migrate | attachments | SELECT
messenger_migrate | attachments | TRIGGER
messenger_migrate | attachments | TRUNCATE
messenger_migrate | attachments | UPDATE
messenger_migrate | chat_members | DELETE
messenger_migrate | chat_members | INSERT
messenger_migrate | chat_members | REFERENCES
messenger_migrate | chat_members | SELECT
messenger_migrate | chat_members | TRIGGER
messenger_migrate | chat_members | TRUNCATE
messenger_migrate | chat_members | UPDATE
messenger_migrate | chats | DELETE
messenger_migrate | chats | INSERT
messenger_migrate | chats | REFERENCES
messenger_migrate | chats | SELECT
messenger_migrate | chats | TRIGGER
messenger_migrate | chats | TRUNCATE
messenger_migrate | chats | UPDATE
messenger_migrate | message_attachments | DELETE
messenger_migrate | message_attachments | INSERT
messenger_migrate | message_attachments | REFERENCES
messenger_migrate | message_attachments | SELECT
messenger_migrate | message_attachments | TRIGGER
messenger_migrate | message_attachments | TRUNCATE
messenger_migrate | message_attachments | UPDATE
messenger_migrate | message_idempotency | DELETE
messenger_migrate | message_idempotency | INSERT
messenger_migrate | message_idempotency | REFERENCES
messenger_migrate | message_idempotency | SELECT
messenger_migrate | message_idempotency | TRIGGER
messenger_migrate | message_idempotency | TRUNCATE
messenger_migrate | message_idempotency | UPDATE
messenger_migrate | messages | DELETE
messenger_migrate | messages | INSERT
messenger_migrate | messages | REFERENCES
messenger_migrate | messages | SELECT
messenger_migrate | messages | TRIGGER
messenger_migrate | messages | TRUNCATE
messenger_migrate | messages | UPDATE
messenger_migrate | users | DELETE
messenger_migrate | users | INSERT
messenger_migrate | users | REFERENCES
messenger_migrate | users | SELECT
messenger_migrate | users | TRIGGER
messenger_migrate | users | TRUNCATE
messenger_migrate | users | UPDATE
messenger_worker | attachment_jobs | SELECT
messenger_worker | attachment_jobs | UPDATE
messenger_worker | attachments | SELECT
messenger_worker | attachments | UPDATE
(103 rows)
version_num
--------------
e7a12026a007
(1 row)
@@ -0,0 +1,60 @@
=== api-1 ===
uid=10001(appuser) gid=10001(appuser) groups=10001(appuser)
Name: uvicorn
Uid: 10001 10001 10001 10001
Gid: 10001 10001 10001 10001
CapInh: 0000000000000000
CapPrm: 0000000000000000
CapEff: 0000000000000000
CapBnd: 0000000000000000
NoNewPrivs: 1
Seccomp: 2
=== api-2 ===
uid=10001(appuser) gid=10001(appuser) groups=10001(appuser)
Name: uvicorn
Uid: 10001 10001 10001 10001
Gid: 10001 10001 10001 10001
CapInh: 0000000000000000
CapPrm: 0000000000000000
CapEff: 0000000000000000
CapBnd: 0000000000000000
NoNewPrivs: 1
Seccomp: 2
=== worker ===
uid=10001(appuser) gid=10001(appuser) groups=10001(appuser)
Name: python
Uid: 10001 10001 10001 10001
Gid: 10001 10001 10001 10001
CapInh: 0000000000000000
CapPrm: 0000000000000000
CapEff: 0000000000000000
CapBnd: 0000000000000000
NoNewPrivs: 1
Seccomp: 2
=== dispatcher ===
uid=10001(appuser) gid=10001(appuser) groups=10001(appuser)
Name: python
Uid: 10001 10001 10001 10001
Gid: 10001 10001 10001 10001
CapInh: 0000000000000000
CapPrm: 0000000000000000
CapEff: 0000000000000000
CapBnd: 0000000000000000
NoNewPrivs: 1
Seccomp: 2
=== openbao ===
uid=100(openbao) gid=1000(openbao) groups=1000(openbao)
Name: bao
Uid: 100 100 100 100
Gid: 1000 1000 1000 1000
CapInh: 0000000000000000
CapPrm: 0000000000000000
CapEff: 0000000000000000
CapBnd: 0000000000000000
NoNewPrivs: 1
Seccomp: 2
+60
View File
@@ -0,0 +1,60 @@
=== api-1 ===
uid=10001(appuser) gid=10001(appuser) groups=10001(appuser)
Name: uvicorn
Uid: 10001 10001 10001 10001
Gid: 10001 10001 10001 10001
CapInh: 0000000000000000
CapPrm: 0000000000000000
CapEff: 0000000000000000
CapBnd: 0000000000000000
NoNewPrivs: 1
Seccomp: 2
=== api-2 ===
uid=10001(appuser) gid=10001(appuser) groups=10001(appuser)
Name: uvicorn
Uid: 10001 10001 10001 10001
Gid: 10001 10001 10001 10001
CapInh: 0000000000000000
CapPrm: 0000000000000000
CapEff: 0000000000000000
CapBnd: 0000000000000000
NoNewPrivs: 1
Seccomp: 2
=== worker ===
uid=10001(appuser) gid=10001(appuser) groups=10001(appuser)
Name: python
Uid: 10001 10001 10001 10001
Gid: 10001 10001 10001 10001
CapInh: 0000000000000000
CapPrm: 0000000000000000
CapEff: 0000000000000000
CapBnd: 0000000000000000
NoNewPrivs: 1
Seccomp: 2
=== dispatcher ===
uid=10001(appuser) gid=10001(appuser) groups=10001(appuser)
Name: python
Uid: 10001 10001 10001 10001
Gid: 10001 10001 10001 10001
CapInh: 0000000000000000
CapPrm: 0000000000000000
CapEff: 0000000000000000
CapBnd: 0000000000000000
NoNewPrivs: 1
Seccomp: 2
=== openbao ===
uid=100(openbao) gid=1000(openbao) groups=1000(openbao)
Name: bao
Uid: 100 100 100 100
Gid: 1000 1000 1000 1000
CapInh: 0000000000000000
CapPrm: 0000000000000000
CapEff: 0000000000000000
CapBnd: 0000000000000000
NoNewPrivs: 0
Seccomp: 2
@@ -0,0 +1,10 @@
=== TELEMETRY SECRET AUDIT ===
Audit window: 7 days
Credential patterns: 46
TLS CA and hostname verification: enabled
=== Prometheus ===
Prometheus series inspected: 4121
PASS: Prometheus scan completed
Failures: 0
PASS: TELEMETRY SECRET AUDIT: prometheus
+14
View File
@@ -0,0 +1,14 @@
Container mtusi2026lab7-migrate-run-9f34fcbfb92c Creating
Container mtusi2026lab7-migrate-run-9f34fcbfb92c Created
PASS: Prometheus verified TLS TLSv1.3
PASS: Prometheus rejects untrusted CA
PASS: Prometheus rejects wrong hostname
PASS: anonymous access denied: 401
PASS: API credentials denied: 401
PASS: Grafana query allowed: 200
PASS: Prometheus self-scrape allowed: 200
PASS: target UP: otel-collector https://otel-collector:8889/metrics
PASS: target UP: otel-collector-internal https://otel-collector:8888/metrics
PASS: target UP: prometheus https://prometheus:9090/metrics
PASS: PROMETHEUS SECURITY TESTS
+2
View File
@@ -0,0 +1,2 @@
python3 tests/security.py --base-url "https://localhost:8443" --ca-file "/home/casablanca/mtuci/high_load_apps/mtusi2026lab7/certs/ca/ca.crt"
PASS: trusted HTTPS works; untrusted CA rejected. This does NOT verify internal mTLS, OpenBao or hardening.
+4
View File
@@ -0,0 +1,4 @@
PASS: trusted CA and hostname: TLSv1.3
PASS: wrong hostname: Hostname mismatch, certificate is not valid for 'wrong-host.invalid'.
PASS: empty trust store: unable to get local issuer certificate
PASS: public TLS verification
+10
View File
@@ -0,0 +1,10 @@
CONNECTION ESTABLISHED
Protocol version: TLSv1.3
Ciphersuite: TLS_AES_256_GCM_SHA384
Peer certificate: CN = nginx
Hash used: SHA256
Signature type: RSA-PSS
Verification: OK
Verified peername: localhost
Server Temp Key: X25519, 253 bits
DONE
+4
View File
@@ -0,0 +1,4 @@
grafana 127.0.0.1 3000 -> 3000 tcp
nginx 0.0.0.0 8443 -> 8443 tcp
nginx :: 8443 -> 8443 tcp
s3 127.0.0.1 9001 -> 9001 tcp
+27
View File
@@ -0,0 +1,27 @@
========== RABBITMQ LISTENERS ==========
Interface: [::], port: 15671, protocol: https, purpose: HTTP API over TLS (HTTPS)
Interface: [::], port: 15692, protocol: http/prometheus, purpose: Prometheus exporter API over HTTP
Interface: [::], port: 25672, protocol: clustering, purpose: inter-node and CLI tool communication
Interface: [::], port: 5671, protocol: amqp/ssl, purpose: AMQP 0-9-1 and AMQP 1.0 over TLS
========== RABBITMQ USERS ==========
Listing users ...
user tags
messenger_admin [administrator]
messenger_consumer []
messenger_producer []
========== RABBITMQ VHOSTS ==========
Listing vhosts ...
name
messenger
========== RABBITMQ PERMISSIONS ==========
Listing permissions for vhost "messenger" ...
user configure write read
messenger_producer ^$a ^amq\.default$ ^$a
messenger_admin .* .* .*
messenger_consumer ^$a ^$a ^attachment\.process\.v1$
========== RABBITMQ QUEUES ==========
Timeout: 60.0 seconds ...
Listing queues for vhost messenger ...
name durable messages consumers
attachment.process.v1 true 0 0
attachment.failed.v1 true 0 0
+17
View File
@@ -0,0 +1,17 @@
Container mtusi2026lab7-migrate-run-83b74f963d76 Creating
Container mtusi2026lab7-migrate-run-83b74f963d76 Created
PASS: verified RabbitMQ TLS: TLSv1.3
PASS: untrusted CA rejected
PASS: wrong hostname rejected
PASS: plaintext AMQP listener disabled
PASS: producer authenticated over AMQPS
PASS: producer published message
PASS: consumer authenticated over AMQPS
PASS: consumer received and acknowledged message
PASS: producer cannot consume: ACCESS_REFUSED
PASS: consumer cannot publish: ACCESS_REFUSED
PASS: consumer cannot create queues: ACCESS_REFUSED
PASS: consumer cannot read DLQ: ACCESS_REFUSED
PASS: producer cannot create queues: ACCESS_REFUSED
PASS: RABBITMQ SECURITY TESTS

Some files were not shown because too many files have changed in this diff Show More