ЛР 7 — БВТ2303 — Брезгунова — на 5
This commit is contained in:
@@ -18,3 +18,8 @@ __pycache__
|
|||||||
node_modules
|
node_modules
|
||||||
evidence
|
evidence
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
|
pki
|
||||||
|
*.tar
|
||||||
|
|
||||||
|
identity/
|
||||||
|
|||||||
+9
-40
@@ -1,41 +1,10 @@
|
|||||||
# Copy to .env for your LOCAL synthetic test environment; never commit .env.
|
# Host-facing Compose settings. Generate LOCAL secrets with scripts/up.py.
|
||||||
# These are logical interface suggestions; map actual framework names in REPORT.md.
|
LAB7_PORT=8443
|
||||||
APP_HOST=0.0.0.0
|
|
||||||
APP_PORT=8080
|
|
||||||
APP_ENV=lab
|
|
||||||
SESSION_TTL_SECONDS=3600
|
SESSION_TTL_SECONDS=3600
|
||||||
# Choose credentials locally. File paths contain no secret values.
|
# Runtime settings are supplied per service by compose.yaml:
|
||||||
DATABASE_URL_FILE=/run/secrets/database_url
|
# BAO_ENABLED=1; BAO_ADDR=https://openbao:8200; SERVICE_ROLE=<own cert/policy role>
|
||||||
# Optional on 3, required use on 4 in lab2; Redis OR Valkey:
|
# S3_ENDPOINT=https://s3:9000; S3_BUCKET=messenger-attachments
|
||||||
SESSION_STORE=postgres
|
# OTEL_EXPORTER_OTLP_ENDPOINT=https://otel-collector:4319
|
||||||
CACHE_URL_FILE=/run/secrets/cache_url
|
# WORKER_CONCURRENCY=2; JOB_TIMEOUT_SECONDS=10; JOB_LEASE_SECONDS=20
|
||||||
API_REPLICAS=2
|
# CA: /run/pki/ca.crt; own cert/key: /run/tls/cert.crt and /run/tls/key.key
|
||||||
IDEMPOTENCY_TTL_SECONDS=86400
|
# Passwords/tokens/DSNs are read from scoped OpenBao KV, never written here.
|
||||||
S3_ENDPOINT=https://s3:9000
|
|
||||||
S3_REGION=us-east-1
|
|
||||||
S3_BUCKET=messenger-attachments
|
|
||||||
S3_ACCESS_KEY_ID_FILE=/run/secrets/s3_access_key_id
|
|
||||||
S3_SECRET_ACCESS_KEY_FILE=/run/secrets/s3_secret_access_key
|
|
||||||
MAX_UPLOAD_BYTES=10485760
|
|
||||||
MAX_IMAGE_PIXELS=40000000
|
|
||||||
BROKER_URL_FILE=/run/secrets/broker_url
|
|
||||||
WORKER_CONCURRENCY=2
|
|
||||||
JOB_MAX_ATTEMPTS=5
|
|
||||||
JOB_TIMEOUT_SECONDS=60
|
|
||||||
STAGING_RETENTION_SECONDS=86400
|
|
||||||
OTEL_SERVICE_NAME=messenger-api
|
|
||||||
# Worker must set a distinct service.name.
|
|
||||||
OTEL_EXPORTER_OTLP_ENDPOINT=https://otel-collector:4318
|
|
||||||
OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
|
|
||||||
OTEL_RESOURCE_ATTRIBUTES=deployment.environment.name=lab
|
|
||||||
# TLS and OpenBao: actual paths/ports depend on your implemented trust matrix.
|
|
||||||
PUBLIC_BASE_URL=https://localhost:8443
|
|
||||||
TLS_CA_FILE=/run/secrets/ca.crt
|
|
||||||
TLS_CERT_FILE=/run/secrets/service.crt
|
|
||||||
TLS_KEY_FILE=/run/secrets/service.key
|
|
||||||
BAO_ADDR=https://openbao:8200
|
|
||||||
BAO_CACERT=/run/secrets/bao-ca.crt
|
|
||||||
# No root token here. Bootstrap operator -> short-lived service auth -> scoped token.
|
|
||||||
ARGON2_MEMORY_KIB=19456
|
|
||||||
ARGON2_ITERATIONS=2
|
|
||||||
ARGON2_PARALLELISM=1
|
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
*.sh text eol=lf
|
||||||
|
*.py text eol=lf
|
||||||
|
*.yaml text eol=lf
|
||||||
|
*.cfg text eol=lf
|
||||||
|
*.cmd text eol=crlf
|
||||||
@@ -1,18 +1,31 @@
|
|||||||
## Лабораторная 7
|
## ЛР7 — БВТ2303 — Брезгунова Анжелика — на5, трек1
|
||||||
|
|
||||||
Автор / группа: TODO
|
Messenger/pipeline из собственной lab6 перенесён в отдельный lab7. Клиент использует
|
||||||
Целевая оценка (3/4/5): TODO
|
HTTPS; LB→API, broker/Collector и telemetry stores защищены mTLS с allowlist DNS SAN,
|
||||||
Трек 5, если заявлен: TODO
|
DB/S3/OpenBao — verified TLS с отдельными identities. OpenBao вне dev-mode,
|
||||||
|
persistent file storage, cert-auth pinned leaf/SAN, own-path KV policies и TTL30s.
|
||||||
|
App/worker не имеют operator shares/root token/CA key.
|
||||||
|
|
||||||
Что реализовано и что перенесено: TODO
|
Добавлены общий для реплик login limiter, общий бюджет KDF concurrency,
|
||||||
Команды запуска из чистого clone: TODO
|
Argon2id rehash, отрицательные ACL/TLS/policy tests и track1 worker compromise:
|
||||||
Результаты проверок и ссылка на REPORT.md: TODO
|
отзыв leaf/token, ротация DB/broker/S3 secret и leaf без rebuild, восстановление
|
||||||
Ограничения / известные ошибки: TODO
|
трёх durable jobs с проверкой original bytes. Сессии, сообщения и файловый pipeline
|
||||||
Источники и использование ИИ: TODO
|
сохранены; X-Instance-Id теперь случайный alias без hostname/IP.
|
||||||
|
|
||||||
- [ ] Весь обязательный минимум текущей и предыдущих работ сохранён с объявленными переходами.
|
Запуск: `python scripts/up.py`; проверки: `python scripts/verify.py` и
|
||||||
- [ ] Контракт и публичные тесты не ослаблены.
|
`docker compose run --rm --no-deps operator python student-tests/observability.py`.
|
||||||
- [ ] make check и make test выполнены; приложен реальный вывод.
|
Внешний smoke/security используют HTTPS8443 и `--ca-file pki/ca.crt`.
|
||||||
- [ ] Сценарии отказов/безопасности своего уровня воспроизведены.
|
Результаты — evidence/, инструкции/ограничения/версии — REPORT.md,
|
||||||
- [ ] Все секреты и приватные ключи находятся вне Git; отчёт не содержит tokens.
|
модель угроз — THREAT_MODEL.md, матрица — contracts/trust-matrix.md,
|
||||||
- [ ] README задания сохранён, REPORT.md содержит инструкцию именно моего решения.
|
сканирование — SCAN_TRIAGE.md. Точные PASS определяются реальным verification.json.
|
||||||
|
|
||||||
|
Обязательные contracts/tests не ослаблены; trust-matrix заполнен согласно заданию.
|
||||||
|
Остальные директории лабораторных не менялись. Код, проверки и документация
|
||||||
|
подготовлены с помощью OpenAI Codex на основе собственной lab6 и официальных docs.
|
||||||
|
Commit/push/PR не опубликованы; удалённый CI ещё не запускался.
|
||||||
|
|
||||||
|
Ограничения: single host/stores без HA/backup, operator custody всех local shares,
|
||||||
|
ручной выпуск leaf24h и отсутствие automated CA rollover, ограниченный scan scope,
|
||||||
|
короткий closed-loop load. Worker может повредить разрешённые results/job state;
|
||||||
|
least privilege не устраняет ущерб внутри его полномочий. TTL/активные connections
|
||||||
|
создают bounded revocation grace. Подробные доказательства и риски описаны в отчёте.
|
||||||
|
|||||||
@@ -0,0 +1,29 @@
|
|||||||
|
name: Lab7 solution
|
||||||
|
on: [push, pull_request]
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
jobs:
|
||||||
|
integration:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 45
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-python@v5
|
||||||
|
with: {python-version: '3.12'}
|
||||||
|
- run: python -m pip install -r requirements-dev.txt
|
||||||
|
- run: make check validate PYTHON=python
|
||||||
|
- run: chmod +x scripts/restart.sh scripts/stop-one.sh
|
||||||
|
- run: python scripts/up.py
|
||||||
|
- run: python scripts/verify.py
|
||||||
|
- run: docker compose run --rm --no-deps operator python student-tests/telemetry_headers.py
|
||||||
|
- run: docker compose run --rm --no-deps operator python student-tests/observability.py
|
||||||
|
- run: python scripts/integrity.py
|
||||||
|
- uses: actions/upload-artifact@v4
|
||||||
|
if: always()
|
||||||
|
with:
|
||||||
|
name: lab7-evidence
|
||||||
|
path: |
|
||||||
|
evidence/*.json
|
||||||
|
evidence/*.txt
|
||||||
|
- if: always()
|
||||||
|
run: docker compose down
|
||||||
@@ -30,3 +30,8 @@ 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.
|
||||||
|
|
||||||
|
pki/
|
||||||
|
*.tar
|
||||||
|
|
||||||
|
identity/
|
||||||
|
|||||||
+31
@@ -0,0 +1,31 @@
|
|||||||
|
# Защита лабораторной 7
|
||||||
|
|
||||||
|
1. `python scripts/up.py`; показать `docker compose ps`, isolated project mtusi-lab7,
|
||||||
|
отсутствие published API/DB/broker/S3/Collector ports. CA — pki/ca.crt.
|
||||||
|
2. Выполнить public HTTPS smoke/security с явным CA. Неправильный hostname/CA
|
||||||
|
должен давать certificate verification error. Не отключать verify.
|
||||||
|
3. Открыть `evidence/tls-matrix.json`: корректный LB SAN проходит к обеим API,
|
||||||
|
no cert/foreign CA/same-CA intruder/expired cert отклонены. Повторить broker,
|
||||||
|
Collector и store-query/ingest. `plaintext_bypasses` доказывает закрытый loopback hop.
|
||||||
|
4. OpenBao: file storage, без dev, явный init/unseal, auth cert pin+SAN,
|
||||||
|
token TTL30s, policy own KV read. Показать denied чужого KV/policy write и
|
||||||
|
отсутствие operator/CA-private mounts у приложения. Не открывать root token/shares на экране.
|
||||||
|
5. В `authentication.json`: Argon2id19MiB,t2,p1, measured budget, rehash,
|
||||||
|
expired/logout Bearer401, общий429 через обе реплики. Идентификаторы API случайные.
|
||||||
|
6. Track1: `python scripts/verify.py`. Worker privileges before/after в
|
||||||
|
worker-privileges.json; revoke старого leaf/token,3 durable queued uploads,
|
||||||
|
rotate leaf+DB/broker/S3 secrets без rebuild, deny старых credentials на
|
||||||
|
новых connections,3 ready originals/variants после возврата worker.
|
||||||
|
7. Sealed Bao: после cache15s API503, operator unseal восстанавливает работу.
|
||||||
|
Token expiry/re-auth отдельно: bao-token-expiry.json. В runtime нет plaintext fallback.
|
||||||
|
8. `student-tests/observability.py`: открыть реальную API→producer→consumer трассу
|
||||||
|
в Tempo и соответствующие logs, показать HTTPS/mTLS scrape и Grafana dashboard.
|
||||||
|
9. Показать persistence/failover по HTTPS и Docker before/after timestamps.
|
||||||
|
10. SCAN_TRIAGE.md: область scan, исправленные packages, оставшиеся риски и
|
||||||
|
mitigation старого OTel. Scan и encryption не равны доказательству полной безопасности.
|
||||||
|
|
||||||
|
Сертификат удостоверяет identity; allowlist/DB grants/S3 policy/Redis ACL разрешают
|
||||||
|
действие. Любой client от доверенного CA не становится LB. Авторизованный worker
|
||||||
|
всё ещё может портить разрешённые image results; least privilege уменьшает blast radius.
|
||||||
|
Один host и одиночные stores не являются HA. Shares у локального оператора —
|
||||||
|
учебное bootstrap ограничение; для production нужен независимый offline custody.
|
||||||
+15
@@ -0,0 +1,15 @@
|
|||||||
|
FROM python:3.12-slim-bookworm@sha256:44cf1793efa7c7a476bb0f2cff81443f4a072c90c1cb127e2924933daa3e8c64
|
||||||
|
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
|
||||||
|
WORKDIR /app
|
||||||
|
COPY requirements.txt .
|
||||||
|
COPY requirements.lock .
|
||||||
|
RUN pip install --no-cache-dir -r requirements.lock -r requirements.txt && useradd --uid 10001 --create-home app
|
||||||
|
COPY src src
|
||||||
|
COPY migrations migrations
|
||||||
|
COPY scripts scripts
|
||||||
|
COPY tests tests
|
||||||
|
COPY student-tests student-tests
|
||||||
|
COPY contracts contracts
|
||||||
|
COPY lab.json .
|
||||||
|
USER app
|
||||||
|
CMD ["python", "-m", "uvicorn", "src.app:app", "--host", "127.0.0.1", "--port", "8080", "--no-access-log", "--limit-concurrency", "64", "--timeout-keep-alive", "5"]
|
||||||
@@ -1,37 +1,311 @@
|
|||||||
# Отчёт — лабораторная 7
|
# Отчёт — лабораторная 7
|
||||||
|
|
||||||
- Автор, группа: TODO
|
Брезгунова Анжелика, БВТ2303. Работа: 04.12.2026.
|
||||||
- Целевая оценка; выбранный трек 5, если нужен: TODO
|
Цель: уровень 5, трек 1 — компрометация worker. Итоговые реально выполненные проверки
|
||||||
- Commit/PR: TODO после публикации
|
перечислены в `evidence/verification.json`; только наличие кода не является PASS.
|
||||||
- Использованные источники, библиотеки и помощь ИИ: TODO
|
Commit/push/PR не выполнялись. Исходники перенесены из собственной lab6, её файлы
|
||||||
|
и остальные лабораторные не изменялись. По разрешению пользователя старые контейнеры
|
||||||
|
временно остановлены для проверки на освобождённых ресурсах, volumes сохранены.
|
||||||
|
После проверки исходно работавшие контейнеры возвращены в работу; список и результат
|
||||||
|
восстановления сохранены в evidence/temporarily-stopped.txt и restored-containers.json.
|
||||||
|
Код, проверки и документация подготовлены с помощью OpenAI Codex.
|
||||||
|
|
||||||
## Запуск из чистого clone
|
## Воспроизводимый запуск
|
||||||
|
|
||||||
TODO: версии runtime/образов, prerequisites, команды создания локальных secrets/.env, build, миграций, запуска, ожидания готовности, тестов и остановки. Указать необходимые действия оператора. Не вставлять секреты. Отдельно указать безопасную остановку и команду намеренного удаления учебных данных.
|
Нужны Docker Engine/Compose и Python 3.11+ на операторской машине, интернет для
|
||||||
|
сборки/registry. Приложение использует актуальный официальный Python3.12 image, закреплённый digest
|
||||||
|
44cf1793…3e8c64 (точная patch-version записана в evidence/hardware.json); зависимости закреплены в
|
||||||
|
`requirements.lock`. Host Python3.15 поддерживается: генератор PKI включает AKI/SKI,
|
||||||
|
SAN, EKU и CA key usage для строгой проверки. Никогда не применяется `--insecure`,
|
||||||
|
`verify=False`, `sslmode=require` вместо verify-full или TLS fallback.
|
||||||
|
|
||||||
## Архитектура и решения
|
Все команды выполнять из каталога **mtusi2026lab7**:
|
||||||
|
|
||||||
TODO: схема процессов/хранилищ, источник истины, транзакционные границы, ограничения. Что перенесено из lab6, что изменено в этой работе. Соответствие переменных из .env.example реальной конфигурации.
|
```sh
|
||||||
|
python scripts/up.py
|
||||||
|
# Скрипт создаёт .env/local secrets, собирает образы, выпускает новые certs,
|
||||||
|
# готовит volumes, запускает DB/S3/Bao, выполняет operator init/unseal и миграции.
|
||||||
|
docker compose ps
|
||||||
|
python scripts/check_contract.py
|
||||||
|
python tests/smoke.py --base-url https://localhost:8443 --ca-file pki/ca.crt
|
||||||
|
python tests/security.py --base-url https://localhost:8443 --ca-file pki/ca.crt
|
||||||
|
```
|
||||||
|
|
||||||
## Доказательства критериев
|
Эквиваленты make: `make check PYTHON=python`,
|
||||||
|
`make test PYTHON=python CA_FILE=<absolute-path-to-pki/ca.crt>`,
|
||||||
|
`make test-security PYTHON=python CA_FILE=<absolute-path-to-pki/ca.crt>`.
|
||||||
|
По умолчанию Makefile использует HTTPS localhost8443.
|
||||||
|
Полная OpenAPI validation: установить requirements-dev.txt в локальную .venv
|
||||||
|
и выполнить `python scripts/validate_openapi.py` (или make validate).
|
||||||
|
|
||||||
| Критерий README | Команда/сценарий | Наблюдаемый результат | Файл доказательства |
|
```sh
|
||||||
| --- | --- | --- | --- |
|
# Linux hooks перед public resilience:
|
||||||
| Публичный smoke | make test | TODO | TODO |
|
chmod +x scripts/restart.sh scripts/stop-one.sh
|
||||||
| Остальные пункты уровня 3 | TODO | TODO | TODO |
|
# Полная явная security/fault campaign:
|
||||||
| Все пункты уровня 4, если заявлен | TODO | TODO | TODO |
|
python scripts/verify.py
|
||||||
| Выбранный трек 5, если заявлен | TODO | TODO | TODO |
|
# Внутренние проверки отдельно:
|
||||||
|
docker compose run --rm --no-deps operator python student-tests/security.py
|
||||||
|
docker compose run --rm --no-deps operator python student-tests/observability.py
|
||||||
|
docker compose run --rm --no-deps operator python student-tests/telemetry_headers.py
|
||||||
|
# Нагрузка:
|
||||||
|
python scripts/load_with_resources.py
|
||||||
|
```
|
||||||
|
|
||||||
TODO: добавить отдельную строку для каждого заявленного критерия. PASS без команды и наблюдения не является доказательством. Проверка инфраструктурного hook требует подтверждения, какие реальные процессы/хранилища перезапущены.
|
API: <https://localhost:8443>, Grafana: <https://localhost:3007>,
|
||||||
|
OpenBao: <https://localhost:8207>. Browser должен доверять локальному публичному
|
||||||
|
`pki/ca.crt`, либо просматривать через клиент с явно заданным CA.
|
||||||
|
Пароль Grafana admin находится только в `secrets/grafana_password`.
|
||||||
|
Внешние порты привязаны к127.0.0.1; API replicas, DB, broker, S3, stores и Collector
|
||||||
|
наружу не публикуются. Новые ключи/пароли генерируются отдельно для lab7.
|
||||||
|
|
||||||
## Эксперименты и отказы
|
Шаги up.py можно выполнить вручную: `python scripts/setup.py`,
|
||||||
|
`docker compose build api1 s3 s3-bootstrap`,
|
||||||
|
`docker compose run --rm --no-deps operator python scripts/pki.py`,
|
||||||
|
`python scripts/setup.py`, `docker compose run --rm volume-init`,
|
||||||
|
`docker compose up -d postgres broker s3 openbao`,
|
||||||
|
`docker compose run --rm --no-deps operator python scripts/bootstrap.py`,
|
||||||
|
`docker compose run --rm s3-bootstrap`, `docker compose up -d --no-build`.
|
||||||
|
Bootstrap повторяемый; существующие бизнес-данные не удаляет.
|
||||||
|
|
||||||
TODO: гипотеза, hardware/лимиты, версии, объём данных, профиль нагрузки, concurrency/arrival rate, длительность/прогрев, повторы, успешные RPS, ошибки, p50/p95/p99, CPU/RAM. Сохранить raw summary без tokens и объяснить ограничения измерения.
|
Безопасная остановка: `docker compose down` (volumes сохраняются).
|
||||||
|
Намеренное удаление **только учебных данных lab7**: `docker compose down --volumes`.
|
||||||
|
Не удалять secrets отдельно от Bao volume: операторские shares потребуются для unseal.
|
||||||
|
При обычном рестарте Bao запечатан. Явное действие оператора:
|
||||||
|
`docker compose run --rm --no-deps operator python scripts/bootstrap.py unseal`.
|
||||||
|
Приложение не выполняет unseal и не получает root token.
|
||||||
|
|
||||||
| Воздействие | Что ожидаем | Что наблюдали | Время восстановления / потеря данных |
|
## Архитектура и перенос
|
||||||
| --- | --- | --- | --- |
|
|
||||||
| TODO | TODO | TODO | TODO |
|
|
||||||
|
|
||||||
## Ограничения и следующие шаги
|
Из lab6 сохранены messenger REST, Argon2id baseline, PostgreSQL sessions/ACL,
|
||||||
|
keyset pagination, две API, message idempotency, приватный S3, durable jobs/outbox,
|
||||||
|
Redis Streams AOF fsync always, worker image pipeline, retries/leases,
|
||||||
|
Collector/Prometheus/Loki/Tempo/Grafana и импортируемый dashboard.
|
||||||
|
Upload по-прежнему202 queued; original/thumbnail/crop/WebP появляются в worker,
|
||||||
|
ready публикуется после DB commit. PostgreSQL — источник истины, файлы — S3;
|
||||||
|
telemetry не является транзакционным подтверждением бизнес-данных.
|
||||||
|
|
||||||
TODO: какие отказы выдерживаются и какие нет; что не реализовано; где учебное упрощение; какое улучшение подтверждено, а какое пока гипотеза.
|
Новые границы: HTTPS client→HAProxy, mTLS HAProxy→каждая API, TLS verify-full→DB,
|
||||||
|
native HTTPS→S3, mTLS+ACL→broker, mTLS→Collector и все telemetry query/ingest/scrape
|
||||||
|
каналы. Подробные endpoints/CA/identities/TTL/positive-negative commands —
|
||||||
|
[contracts/trust-matrix.md](contracts/trust-matrix.md).
|
||||||
|
[THREAT_MODEL.md](THREAT_MODEL.md) связывает13 угроз с контролями и тестами.
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
flowchart LR
|
||||||
|
C[Client] -->|TLS + Bearer| LB[HAProxy]
|
||||||
|
LB -->|mTLS: lb SAN| API[API1 / API2]
|
||||||
|
API -->|verify-full + api role| DB[(PostgreSQL)]
|
||||||
|
API -->|TLS + api S3 identity| S3[(Private MinIO)]
|
||||||
|
DB --> Relay[Outbox relay]
|
||||||
|
Relay -->|mTLS + producer ACL| Broker[(Redis Streams)]
|
||||||
|
Broker -->|mTLS + consumer ACL| Worker[Worker]
|
||||||
|
Worker -->|TLS + worker DB/S3 roles| DB
|
||||||
|
Worker --> S3
|
||||||
|
API -->|cert-auth / own KV path| Bao[(OpenBao)]
|
||||||
|
Worker -->|cert-auth / own KV path| Bao
|
||||||
|
API -->|mTLS OTLP| COL[Collector]
|
||||||
|
Worker -->|mTLS OTLP| COL
|
||||||
|
COL -->|mTLS| Stores[Prometheus / Loki / Tempo]
|
||||||
|
G[Grafana] -->|mTLS query| Stores
|
||||||
|
```
|
||||||
|
|
||||||
|
Для products без нужного identity ACL используется `src/tls_gateway.py`: стандартный
|
||||||
|
OpenSSL TLS handshake, exact DNS SAN allowlist, проверка revoked serial, bounded128
|
||||||
|
connections/backlog, handshake3s, connection lifetime30s. Он не интерпретирует
|
||||||
|
Authorization, не записывает payload и открывает upstream только после проверки
|
||||||
|
client identity. Native listener находится на loopback в **том же network namespace**;
|
||||||
|
другие контейнеры не имеют plaintext доступа. Для API allowlist — только `lb`.
|
||||||
|
Не обычная общая сеть с доступным HTTP port: отрицательные probes проверяют bypass.
|
||||||
|
При рестарте родителя namespace меняется: restart hook сначала останавливает sidecars,
|
||||||
|
перезапускает native процессы, выполняет operator unseal и пересоздаёт только sidecars.
|
||||||
|
|
||||||
|
Compose manifest представлен JSON (валидный YAML1.2) с явными pinned images.
|
||||||
|
Базовые версии: PostgreSQL17.6-alpine3.22, Redis7.4.5-alpine3.21, HAProxy3.0.11-alpine,
|
||||||
|
OpenBao2.2.2, Collector contrib0.123.0, Prometheus3.2.1, Loki3.4.2, Tempo2.7.2,
|
||||||
|
Grafana11.6.0; MinIO/mc собраны из version tags 2025-04-22/2025-04-16, Go1.24.2.
|
||||||
|
Точные Python package versions — requirements.lock, image IDs — final-containers.json.
|
||||||
|
|
||||||
|
## Bootstrap trust и секреты
|
||||||
|
|
||||||
|
OpenBao работает с file storage на отдельном persistent volume и TLS listener,
|
||||||
|
без dev-mode. `scripts/bootstrap.py` — явная одноразовая **операторская** утилита:
|
||||||
|
init3shares/threshold2, unseal, KVv2, audit file, policies и cert-auth roles.
|
||||||
|
Root token/shares остаются в ignored `secrets/operator/bao-init.json`, CA key —
|
||||||
|
`secrets/operator/lab7-ca`; ни один daemon их не монтирует. Приложения монтируют только
|
||||||
|
свой leaf/key и публичный CA. Operator/tools profile с доступом к приватным файлам
|
||||||
|
не является application service и запускается явно.
|
||||||
|
|
||||||
|
Cert-auth pin закрепляет конкретный service leaf и exact SAN; клиенту не нужен
|
||||||
|
постоянный пароль для получения secrets. Token TTL30s/max60s, policy разрешает
|
||||||
|
только read secret/data/<own-role>. Чужой KV, запись own KV и policy modification
|
||||||
|
запрещены. API1/API2 имеют раздельную cert identity, но общий api DB role для
|
||||||
|
необходимой бизнес-логики; worker/publisher/janitor имеют отдельные DB роли.
|
||||||
|
|
||||||
|
Secrets cache имеет hard deadline≤15s; фоновый re-auth обновляет его каждые8s.
|
||||||
|
При недоступности Bao grace не продлевается, после deadline новый доступ завершается
|
||||||
|
503/отложенной worker обработкой; ни environment credential fallback, ни root token
|
||||||
|
в приложении нет. После fork worker получает собственный cache/SDK/DB pool.
|
||||||
|
KV содержит статические scoped passwords; динамические DB leases не заявлены.
|
||||||
|
Для ротации credentials в работающем пуле его текущая DSN обновляется при следующем
|
||||||
|
acquisition (см. реализацию); отзыв leaf проверяется на **новом** TLS connection.
|
||||||
|
|
||||||
|
Учебное упрощение: все3 unseal shares находятся у одного локального оператора,
|
||||||
|
в ignored files. Это не production custody и не автоматическое защищённое unseal;
|
||||||
|
перед реальной эксплуатацией shares разделяют независимым хранителям/offline.
|
||||||
|
24h leaf и365day CA выпускаются локально. Автоматический renewal/CA rollover
|
||||||
|
не заявлен, трек5 выбран1. Продление leaf — operator pki.py <role> и update pin/listener;
|
||||||
|
приватные ключи никогда не печатаются и не находятся в образах/Git.
|
||||||
|
|
||||||
|
## Пароли, сессии и лимиты
|
||||||
|
|
||||||
|
Argon2id19MiB,t2,p1, случайная salt и параметры внутри PHC hash. Успешный вход
|
||||||
|
проверяет needs_rehash и обновляет устаревший hash. Bearer256bit хранится только
|
||||||
|
как SHA256+expiry; logout удаляет сессию. X-User-Id игнорируется.
|
||||||
|
DB login counters общие для двух реплик:8 попыток/30s на SHA256(username),20/s global,
|
||||||
|
возвращается429/Retry-After; устаревшие counters удаляются. Дополнительно два общих
|
||||||
|
transaction advisory KDF slots ограничивают одновременно дорогие регистрации/входы:
|
||||||
|
теоретический KDF memory budget38MiB на обе реплики, без учёта процесса/служебной памяти.
|
||||||
|
Реальный бюджет и12 измерений hashing — evidence/authentication.json.
|
||||||
|
Лимит не обещает максимальную устойчивость к распределённому DoS; внешний L7 WAF
|
||||||
|
и отдельная защита до DB в учебном стенде не реализованы.
|
||||||
|
|
||||||
|
Ingress: JSON≤64KiB, images≤10MiB,≤40M pixels, bounded upload slots;
|
||||||
|
worker2 processes, cgroup CPU/RAM, subprocess RLIMIT_AS768MiB, CPU и wall timeout.
|
||||||
|
Точные cgroup limits — compose.yaml/final-containers.json. Короткий runtime timeout
|
||||||
|
проверен smoke на синтетическом fixture, worst-case image memory study не заявлен.
|
||||||
|
API/worker/gateways non-root10001, read_only, cap_drop ALL, no-new-privileges и tmpfs.
|
||||||
|
Наружу нет privileged/host network/Docker socket. Stateful volumes writable;
|
||||||
|
PostgreSQL bootstrap стартует root для0600 private key/ownership и затем официально
|
||||||
|
сбрасывает privileges. Одноразовые operator/volume-init имеют только необходимые
|
||||||
|
CHOWN/DAC_OVERRIDE/FOWNER для локальной генерации/владения файлами; не daemon.
|
||||||
|
|
||||||
|
## Проверки и evidence
|
||||||
|
|
||||||
|
| Критерий | Реальная команда/сценарий | Evidence |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| Контракт/syntax/OpenAPI | check_contract.py, validate_openapi.py, integrity.py | check.txt, openapi-validation.txt, integrity.json |
|
||||||
|
| HTTPS API и внешний trust | public smoke/security с явным CA | smoke.txt, external-tls.txt, final-smoke.txt |
|
||||||
|
| mTLS SAN/CA/expiry и закрытые plaintext hops | security.py matrix,45 identity probes и10 bypass probes | tls-matrix.json |
|
||||||
|
| Scoped Bao/DB/S3/Redis rights | security.py permissions, свежие соединения | worker-privileges.json |
|
||||||
|
| ACL, expiry/logout, rehash, shared limiter/KDF | security.py authentication | authentication.json |
|
||||||
|
| Sealed Bao и hard cache TTL | lifecycle.py seal,17s,503,operator unseal,200 | bao-sealed.json |
|
||||||
|
| Credential/leaf rotation и track1 | revoke worker,3 durable uploads,rotate,old denied,new ready | rotation.json, worker-compromise.json |
|
||||||
|
| TLS трёх сигналов и dashboard | observability.py, real upload→worker trace и logs | tls-observability*.json |
|
||||||
|
| Persistence + API failover по HTTPS | public resilience hooks, все процессы/volumes | persistence.txt, failover.txt, before/after-restart.json |
|
||||||
|
| Scan и triage | pip-audit и Trivy без Docker socket, app archive input | dependency-audit.json, dependency-audit-after.json, image-audit.json, SCAN_TRIAGE.md |
|
||||||
|
| Нагрузка/hardware/лимиты | public load + Docker inspect/info | load.json, hardware.json, final-containers.json |
|
||||||
|
| Последняя сборка | targeted smoke, malformed headers, observability после metadata patch | final-build-validation.json, malformed-telemetry-headers.json |
|
||||||
|
|
||||||
|
Ни public tests, ни OpenAPI не ослаблены. trust-matrix.md заполнен по прямому требованию
|
||||||
|
задания; иные нормативные contracts неизменны. Evidence содержит только синтетические
|
||||||
|
technical IDs и результаты; tokens/пароли/keys проверяет отдельный integrity scan.
|
||||||
|
Сырые ожидаемые значения не выдаются за результат запуска.
|
||||||
|
|
||||||
|
service.instance.id включает SERVICE_ROLE и PID, чтобы API1/API2 с одинаковым
|
||||||
|
PID внутри разных контейнеров не сливались в один cumulative counter series.
|
||||||
|
Публичный X-Instance-Id остаётся случайным и не раскрывает роль/hostname.
|
||||||
|
Он генерируется при local bootstrap, сохраняется в ignored identity/<role>.txt
|
||||||
|
и стабилен также при restart. Stop hook читает локальную карту и останавливает
|
||||||
|
только соответствующий mtusi-lab7-apiN-1 через docker stop --time0; ручная остановка
|
||||||
|
не вызывает автоматического restart. Возврат API сопровождается пересозданием
|
||||||
|
её sidecar, чтобы заново присоединиться к актуальному namespace.
|
||||||
|
|
||||||
|
## Исследование: компрометация worker
|
||||||
|
|
||||||
|
Гипотеза: separate service roles уменьшают доступную атакующему область по сравнению
|
||||||
|
с lab6 DSN владельца БД/общими broker правами. Отзыв identity блокирует новые обращения,
|
||||||
|
при этом durable DB intent/outbox сохраняет принятые uploads до безопасного восстановления.
|
||||||
|
|
||||||
|
Методика на отдельном lab7: получить worker cert-auth token/scoped credentials,
|
||||||
|
проверить allow/deny DB/S3/Redis/Bao и сравнить has_table_privilege с владельцем messenger
|
||||||
|
(имитация прежнего доступа в **том же** lab7, lab6 не запрашивается/не модифицируется).
|
||||||
|
Остановить worker, принять3 uploads, отозвать его leaf serial и Bao role/token,
|
||||||
|
запустить со старой identity и подтвердить queued. Выдать новый leaf, ротировать
|
||||||
|
DB/broker/S3 passwords, обновить Bao pin/KV и Redis/S3 identity. Проверить старый
|
||||||
|
cert/token/password на свежих соединениях, запустить worker и сравнить SHA256/bytes
|
||||||
|
всех3 originals и набор3 вариантов, image ID до/после неизменен.
|
||||||
|
|
||||||
|
Разрешённые эффекты скомпрометированного worker остаются опасны: он может портить
|
||||||
|
results и job state, читать доступные ему attachment metadata и удалять staging.
|
||||||
|
Не обещается целостность от вредоносного авторизованного worker. Неизвестные tokens
|
||||||
|
могут жить до TTL30s, существующий gateway connection — до30s, secret cache — до15s;
|
||||||
|
контрольный украденный token отзывается явно. Operator/host compromise исключён.
|
||||||
|
Результат: при отозванной identity все3 задачи остались queued. После ротации leaf и
|
||||||
|
DB/broker/S3 credentials все3 стали ready, original bytes совпали, у каждой получены
|
||||||
|
3 варианта; восстановление заняло13.557s от запуска worker до проверки всех результатов.
|
||||||
|
Образ worker во время ротации не менялся. Свежие подключения со старыми cert/token/
|
||||||
|
паролями отклонены; разрешённые и запрещённые операции перечислены в
|
||||||
|
evidence/worker-privileges.json и rotation.json.
|
||||||
|
|
||||||
|
## Измеренные результаты
|
||||||
|
|
||||||
|
Полная локальная campaign завершилась PASS: HTTPS smoke, внешний недоверенный TLS,
|
||||||
|
матрица45 identity probes и10 plaintext bypass probes, scoped policies, ACL/session/
|
||||||
|
rehash/shared limiter, sealed Bao, ротация, persistence и failover. После последней
|
||||||
|
правки обработки не-ASCII trace headers отдельно повторены smoke и observability;
|
||||||
|
некорректные optional headers дают200, не ломая обработку API.
|
||||||
|
|
||||||
|
| Сценарий | Результат последнего прогона |
|
||||||
|
| --- | --- |
|
||||||
|
| Отказ одной API |8 успешных записей,0 failed attempts; первая запись после остановки4.158s; подтверждённые данные/сессия сохранены |
|
||||||
|
| Sealed Bao | после hard cache grace возвращён503; recovery после явного operator unseal2.085s; fallback отсутствует |
|
||||||
|
| Worker compromise |3 из3 принятых задач восстановлены за13.557s;3 originals и по3 variants проверены |
|
||||||
|
| Argon2id |12 hashes: median19.154ms, max28.080ms;19456KiB,t2,p1,2 общих KDF slots |
|
||||||
|
| TLS observability | реальный API→worker trace, связанные logs и metrics;2 HTTPS scrape targets up;0 утечек в4 privacy probes |
|
||||||
|
| Grafana query | все3 datasource proxy вернули200 с CA verification/client identity; запрет write/admin paths проверен отдельно |
|
||||||
|
| Closed-loop HTTP load |30s, concurrency4;60 successes,0 errors;1.925 successful RPS; p50/p95/p99=2075.223/2090.692/2099.984ms |
|
||||||
|
|
||||||
|
Load измерен на Intel Core i7-12700H,16GB host RAM; Docker доступно20 CPUs и примерно
|
||||||
|
7.57GiB RAM. Во время замера старые lab2–lab6 были остановлены. API1/API2/worker process
|
||||||
|
CPU average за50.196s (включая setup клиента и основной30s workload):0.0257/0.0269/
|
||||||
|
0.0528 cores; конечный RSS127.85/144.93/195.06MiB. Это не peak RAM и не CPU только
|
||||||
|
активного30s интервала. Docker snapshots в load-resources.json дополняют process values.
|
||||||
|
При таком небольшом числе запросов p99 нестабилен. Около2s latency на этом workstation
|
||||||
|
не объявляется приемлемым production SLO; короткий closed-loop run показывает только
|
||||||
|
наблюдавшееся поведение, не предел пропускной способности.
|
||||||
|
|
||||||
|
Dependency scan уменьшен с76 до2 advisories; остаточные OTel ReDoS закрываются bounded
|
||||||
|
wrapper только для используемых входов. Image scan после обновления base уменьшен
|
||||||
|
с541 до389 findings (CRITICAL9→2, HIGH123→84). Остаточные риски, применимость двух
|
||||||
|
CRITICAL и неполное покрытие backend images разобраны в SCAN_TRIAGE.md; clean scan
|
||||||
|
не заявляется. Сырые JSON и IDs образов сохранены.
|
||||||
|
|
||||||
|
## Ограничения
|
||||||
|
|
||||||
|
Один workstation, одиночные DB/S3/broker/Bao/stores, без HA/backup. Native local hops
|
||||||
|
защищены network namespace, но не от root на host. Полноценный service mesh/PKI service,
|
||||||
|
automated renewal/CA rollover, независимое хранение shares, внешний auth gateway,
|
||||||
|
образный supply-chain admission/signing и полный exploit-resistance audit не реализованы.
|
||||||
|
Dependency/image scan имеет область и дату, не является сертификатом безопасности.
|
||||||
|
Нагрузочный генератор closed-loop с coordinated omission и latency только успехов;
|
||||||
|
короткий прогон не определяет максимальный RPS и не доказывает DoS-устойчивость.
|
||||||
|
Удалённый CI не запускался. Git push/PR оставлены для отдельной публикации.
|
||||||
|
|
||||||
|
## Источники
|
||||||
|
|
||||||
|
Собственная lab6; официальные
|
||||||
|
[OpenBao cert auth](https://openbao.org/docs/auth/cert/),
|
||||||
|
[OpenBao policies](https://openbao.org/docs/concepts/policies/),
|
||||||
|
[OpenBao TLS listener](https://openbao.org/docs/configuration/listener/tcp/),
|
||||||
|
[OWASP Password Storage](https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html),
|
||||||
|
[Redis ACL](https://redis.io/docs/latest/operate/oss_and_stack/management/security/acl/),
|
||||||
|
[HAProxy TLS](https://www.haproxy.com/documentation/haproxy-configuration-tutorials/security/ssl-tls/basics-enable-tls/),
|
||||||
|
[OTel Python](https://opentelemetry.io/docs/languages/python/instrumentation/),
|
||||||
|
[Docker security](https://docs.docker.com/engine/security/).
|
||||||
|
|
||||||
|
|
||||||
|
Права query identities дополнительно ограничены HTTP method/path ACL в TLS sidecar:
|
||||||
|
Grafana читает Loki/Tempo/Prometheus, но не может отправлять OTLP logs, flush или
|
||||||
|
вызывать admin delete-series. Collector пишет только /otlp/v1/logs на Loki.
|
||||||
|
Один авторизованный HTTP request на connection, принудительный Connection:close
|
||||||
|
исключает обход вторым pipelined request. Заголовки ограничены16KiB и3s,
|
||||||
|
Authorization/body не интерпретируются и не записываются. Read-only query paths
|
||||||
|
и разрешённые GET prefixes перечислены в infra/gateways/*.json;
|
||||||
|
проверки — evidence/store-query-permissions.json и grafana-datasource-access.json.
|
||||||
|
|
||||||
|
Смена пароля PostgreSQL сама по себе не отзывает уже установленные сторонние
|
||||||
|
DB sessions. В данном сценарии worker container остановлен, его процессы и
|
||||||
|
соединения завершаются; отдельно проверены свежие подключения со старым password.
|
||||||
|
Для немедленного отзыва внешних уже открытых sessions в production потребуется
|
||||||
|
pg_terminate_backend/lease-aware DB auth. Не заявляется мгновенный отзыв любого
|
||||||
|
неизвестного внешнего подключения только сменой password.
|
||||||
|
|||||||
@@ -0,0 +1,66 @@
|
|||||||
|
# Сканирование и применимость
|
||||||
|
|
||||||
|
Дата:04.12.2026. pip-audit2.9.0 проверяет exact requirements.lock;
|
||||||
|
Trivy0.58.2 проверяет архив **app/worker/gateway image**, без монтирования Docker socket.
|
||||||
|
Raw results: evidence/dependency-audit.json (до), dependency-audit-after.json (после),
|
||||||
|
dependency-summary.json, image-audit.json. Факт запуска scanner не равен отсутствию риска.
|
||||||
|
Backend образы закреплены версиями, но полный отдельный scan каждого backend здесь
|
||||||
|
не заявлен; это ограничение области, а не утверждение, что они безопасны.
|
||||||
|
|
||||||
|
## Python dependencies
|
||||||
|
|
||||||
|
До:76 advisories в5 packages. После обновления совместимого lockfile:2 advisories
|
||||||
|
в opentelemetry-api1.31.1. Обновлены FastAPI0.141.1/Starlette1.10.0,
|
||||||
|
Pillow13.0.0, cryptography51.0.1, certifi2026.11.20. Resolver выполнил установку
|
||||||
|
в чистом Python3.12 контейнере; runtime/API/image checks проверяют совместимость.
|
||||||
|
|
||||||
|
| Находка | Применимость | Действие / остаточный риск |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| Pillow image/font/container parser CVEs | HTTP ingress принимает только PNG/JPEG, но недоверенные pixels остаются прямой attack surface. Отклонение FITS/font не доказывает безопасность всех PNG/JPEG путей | Обновление13.0.0; subprocess rlimits, non-root и cgroup остаются дополнительными границами |
|
||||||
|
| cryptography certificate/constraint/memory CVEs | PKI generator обрабатывает созданные локально ключи/certs; TLS runtime в основном использует OpenSSL стандартной библиотеки. Сам факт отсутствия прямого HTTP вызова cryptography не исключает tooling exposure | Обновление51.0.1; CA key только у operator |
|
||||||
|
| Starlette Host/form/resource CVEs | URL Host/HTTP обработка достижима; form/multipart endpoints не используются, body читается bounded bytes. Generic CVEs нельзя все назвать неприменимыми только из-за ACL | Совместимое обновление FastAPI/Starlette; public smoke и ACL/negative tests повторены |
|
||||||
|
| certifi obsolete root | Внутренние connections используют explicit private CA; bundled roots не выбираются для trust matrix, но пакет мог бы использоваться другими clients | Обновление2026.11.20 |
|
||||||
|
| OTel API GHSA-xcq7-p3pf-p88h и GHSA-mf5v-w3w3-f6cg ReDoS | Непроверенные traceparent/tracestate приходят из HTTP headers, значит уязвимый parser был достижим | Перед SDK действует extract(): exact55 hex traceparent; tracestate≤512 с bounded W3C key/value validation и нормализацией OWS. Один wrapper используется HTTP/consumer/relay. Unit probe передаёт1MiB malicious headers; bounded execution измерен. Scanner всё ещё видит vulnerable package; это mitigation только использованных entry points, не исправленный upstream SDK |
|
||||||
|
|
||||||
|
OTel SDK/API/exporters оставлены совместимым набором1.31.1/semconv0.52b1.
|
||||||
|
Другой код не должен напрямую вызывать уязвимый propagator.extract без wrapper.
|
||||||
|
Для production следующим действием будет миграция и проверка нового SDK, а не
|
||||||
|
глобальный ignore CVE. В CI security checks являются обязательными; scanner output
|
||||||
|
сохраняется для review, не фильтруется ради нулевого счётчика.
|
||||||
|
|
||||||
|
## Image/OS
|
||||||
|
|
||||||
|
Trivy scan относится к зафиксированному app image ID в evidence/scanned-image-id.txt.
|
||||||
|
Исходный Debian12.12/Python3.12.11 base из lab6 обновлён до Debian12.15/Python3.12.16;
|
||||||
|
точные runtime versions сохранены в evidence/runtime.json. Summary по severity/packages
|
||||||
|
добавлен ниже из завершённого scan. Non-root, read_only, capabilities и mTLS
|
||||||
|
не устраняют memory-corruption/DoS в используемой библиотеке и не служат основанием
|
||||||
|
игнорировать все HIGH/CRITICAL. Требуется отдельное обновление base/backends и
|
||||||
|
повторный scan перед эксплуатацией за пределами изолированного учебного host.
|
||||||
|
|
||||||
|
|
||||||
|
Измеренный результат смены base image (тот же Python lock): Debian12.12→12.15,
|
||||||
|
541→389 findings; CRITICAL9→2, HIGH123→84. Raw scanner status не отфильтрован.
|
||||||
|
Base теперь закреплён digest44cf1793…3e8c64, не плавающим latest.
|
||||||
|
|
||||||
|
| Остаточная группа | Разбор применимости |
|
||||||
|
| --- | --- |
|
||||||
|
| CVE-2025-7458, libsqlite3-0, CRITICAL | SQLite SQL integer-overflow. В app/worker нет SQLite connection или пользовательского SQL: источник истины PostgreSQL и параметризованные queries. Это ограничивает достижимость в этом image; library остаётся в base, поэтому scanner не объявлен clean. Grafana использует свой отдельный image и не покрыт этим выводом |
|
||||||
|
| CVE-2023-45853, zlib1g, CRITICAL | Конкретный уязвимый API zipOpenNewFileInZip4_64 относится к MiniZip, а не PNG inflate. App не создаёт пользовательские ZIP и не использует MiniZip. Debian tracker маркирует source zlib как ignored, отмечая что vulnerable code не поставляется в бинарном zlib; код пути необходимо проверять, а не переносить severity на любой zlib use |
|
||||||
|
| HIGH в системных библиотеках/утилитах | Некоторые относятся к apt/GnuPG/mount/локальным privileged программам, которые app user не запускает и не имеет caps. Это не оправдывает игнорирование всех HIGH: используемые OpenSSL/zlib/libc требуют поддерживаемого base и повторного patch cycle. JSON содержит package, installed/fixed versions и status для review |
|
||||||
|
|
||||||
|
Обновление base устранило7 критических и39 HIGH записей scanner, но не делает
|
||||||
|
остальные CVE автоматически неприменимыми. Отсутствие прямого SQL/ZIP route —
|
||||||
|
модель достижимости, не формальное exploit proof. Перед production нужны отдельный
|
||||||
|
анализ оставшихся HIGH и scan всех backend images, обновление toolchains/поддерживаемого
|
||||||
|
runtime, независимый supply-chain контроль. В учебной сдаче данные и ограничения
|
||||||
|
сохраняются полностью, без искусственного suppress списка.
|
||||||
|
|
||||||
|
|
||||||
|
Проверенные первичные источники для остаточных CRITICAL:
|
||||||
|
[Debian CVE-2023-45853](https://security-tracker.debian.org/tracker/CVE-2023-45853)
|
||||||
|
объясняет отсутствие contrib/minizip в соответствующих binary packages;
|
||||||
|
[SQLite CVE list](https://www.sqlite.org/cves.html) описывает CVE-2025-7458 как
|
||||||
|
путь через произвольный SQL. Утверждение об ограниченной достижимости в данном
|
||||||
|
app — вывод из этих условий и отсутствия SQLite/ZIP API в src/, а не автоматическое
|
||||||
|
заключение scanner. Raw Trivy оставляет status affected/will_not_fix без suppress.
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
# Модель угроз lab7
|
||||||
|
|
||||||
|
Активы: пароли/их Argon2id hashes, Bearer sessions, ACL чатов, подтверждённые сообщения,
|
||||||
|
original/results файлов, durable jobs, service credentials, CA keys и operator shares.
|
||||||
|
Акторы: внешний неавторизованный клиент, пользователь вне чата, клиент с сертификатом
|
||||||
|
от доверенного CA другой роли, скомпрометированный worker, сетевой наблюдатель,
|
||||||
|
оператор. Host/root/operator с доступом ко всем локальным secrets находится вне
|
||||||
|
заявленной защиты приложения; один Docker-host не обеспечивает HA.
|
||||||
|
|
||||||
|
| Конкретная угроза | Контроль | Отрицательная проверка и наблюдение |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| Перехват Basic/Bearer между клиентом/LB или LB/API | HTTPS CA+hostname; mTLS LB SAN allowlist | tests/security.py + wrong hostname + internal matrix: denied certificate/identity |
|
||||||
|
| Любой доверенный CA client выдаёт себя за LB | exact DNS SAN allowlist lb до upstream | intruder cert signed same CA получает EOF/reset без API response |
|
||||||
|
| Пользователь читает metadata/content чужого файла или подменяет X-User-Id | server-side membership + Bearer identity | security.py authentication():404 для metadata/content/link, X-User-Id не меняет пользователя |
|
||||||
|
| Login brute force или дорогой KDF DoS | Argon2id19MiB,t2,p1,2 общих DB KDF slots, per-account8/30s + global20/s | 401→429/Retry-After через обе реплики, измерение12 hashes и memory budget |
|
||||||
|
| Украденный Bearer действует после logout/expiry | SHA256 случайного256-bit token, server expiry/revoke | logout/expiry дают401; raw session token не хранится вDB |
|
||||||
|
| Worker читает password/session DB или создаёт пользователя/admin | отдельная DB роль, grants только jobs/attachments/outbox/audit | SELECT users/sessions/messages, CREATE/ALTER ROLE denied; разрешён job read/result update |
|
||||||
|
| Worker публикует произвольные задания или меняет Redis ACL/config | mTLS service identity + Redis ACL selectors по stream/command | XADD main stream, foreign key, CONFIG/ACL denied |
|
||||||
|
| Worker пишет произвольный S3 prefix или удаляет готовые results | S3 identities/prefix policy | staging PUT, other prefix PUT, results DELETE, bucket CREATE denied |
|
||||||
|
| Скомпрометированный worker извлекает чужие secrets/root | Bao pinned cert auth + own path policy TTL30s | чужой KV/policy write403; operator/root/share mounts отсутствуют |
|
||||||
|
| Старая identity/secret остаётся полезной после ротации | serial denylist, pinned cert replacement, passwords rotated, tokens revoked/expire | новые TCP/TLS/DB/S3 connections со старым leaf/password отклонены; новый worker завершает queued jobs |
|
||||||
|
| Sealed Bao вызывает fallback к встроенным секретам | secrets cache≤15s, fail closed, durable queue | через17s API503, после operator unseal200; plaintext fallback отсутствует |
|
||||||
|
| Image upload расходует неограниченную RAM/CPU |10MiB ingress,40M pixels, bounded slots, transform RLIMIT_AS768MiB/CPU+wall timeout, worker cgroup | публичный smoke image pipeline; лимиты проверены Docker inspect; image acceptance inherited but не подменяет worst-case study |
|
||||||
|
| Утечка credentials через telemetry | allowlist logs/spans, без bodies/SQL params/exception text, mTLS ingest/query identities | observability.py ищет raw token/password/private-key marker; secret scanner проверяет evidence/Git candidates |
|
||||||
|
|
||||||
|
Остаточные риски: worker имеет полномочия менять разрешённые image results и job state,
|
||||||
|
поэтому может нарушать целостность/доступность этих данных. Нет sandbox уровняVM для
|
||||||
|
компрометированного кодека; текущий subprocess использует rlimits/non-root/cgroup.
|
||||||
|
Политики уменьшают blast radius, но не делают вредоносный авторизованный worker
|
||||||
|
безопасным. Сертификат подтверждает identity, ACL разрешает действия — это разные проверки.
|
||||||
|
Новые подключения отзываются немедленно по serial, существующие — ограничены30s;
|
||||||
|
Bao cache и leases добавляют задокументированную grace. No automated PKI renewal/CA
|
||||||
|
rollover; leaf24h требует operator renewal. Сканирование не доказывает отсутствие уязвимостей.
|
||||||
+986
@@ -0,0 +1,986 @@
|
|||||||
|
{
|
||||||
|
"name": "mtusi-lab7",
|
||||||
|
"services": {
|
||||||
|
"api1": {
|
||||||
|
"image": "mtusi-messenger:lab7",
|
||||||
|
"build": ".",
|
||||||
|
"init": true,
|
||||||
|
"restart": "unless-stopped",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"tmpfs": [
|
||||||
|
"/tmp:size=134217728,mode=1777"
|
||||||
|
],
|
||||||
|
"mem_limit": "768m",
|
||||||
|
"cpus": 2,
|
||||||
|
"networks": [
|
||||||
|
"private"
|
||||||
|
],
|
||||||
|
"environment": {
|
||||||
|
"BAO_ENABLED": "1",
|
||||||
|
"BAO_ADDR": "https://openbao:8200",
|
||||||
|
"S3_ENDPOINT": "https://s3:9000",
|
||||||
|
"S3_BUCKET": "messenger-attachments",
|
||||||
|
"SESSION_TTL_SECONDS": "${SESSION_TTL_SECONDS:-3600}",
|
||||||
|
"OTEL_EXPORTER_OTLP_ENDPOINT": "https://otel-collector:4319",
|
||||||
|
"WORKER_CONCURRENCY": "2",
|
||||||
|
"JOB_TIMEOUT_SECONDS": "10",
|
||||||
|
"JOB_LEASE_SECONDS": "20",
|
||||||
|
"MAX_PENDING_JOBS": "1000",
|
||||||
|
"SERVICE_ROLE": "api1",
|
||||||
|
"OTEL_SERVICE_NAME": "messenger-api",
|
||||||
|
"INSTANCE_ID_FILE": "/run/identity/instance_id"
|
||||||
|
},
|
||||||
|
"volumes": [
|
||||||
|
"./pki:/run/pki:ro",
|
||||||
|
"./secrets/tls/api1:/run/tls:ro",
|
||||||
|
"./identity/api1.txt:/run/identity/instance_id:ro"
|
||||||
|
],
|
||||||
|
"healthcheck": {
|
||||||
|
"test": [
|
||||||
|
"CMD",
|
||||||
|
"python",
|
||||||
|
"-c",
|
||||||
|
"import urllib.request; urllib.request.urlopen('http://127.0.0.1:8080/health/ready',timeout=4)"
|
||||||
|
],
|
||||||
|
"interval": "5s",
|
||||||
|
"timeout": "5s",
|
||||||
|
"retries": 30
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"api2": {
|
||||||
|
"image": "mtusi-messenger:lab7",
|
||||||
|
"build": ".",
|
||||||
|
"init": true,
|
||||||
|
"restart": "unless-stopped",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"tmpfs": [
|
||||||
|
"/tmp:size=134217728,mode=1777"
|
||||||
|
],
|
||||||
|
"mem_limit": "768m",
|
||||||
|
"cpus": 2,
|
||||||
|
"networks": [
|
||||||
|
"private"
|
||||||
|
],
|
||||||
|
"environment": {
|
||||||
|
"BAO_ENABLED": "1",
|
||||||
|
"BAO_ADDR": "https://openbao:8200",
|
||||||
|
"S3_ENDPOINT": "https://s3:9000",
|
||||||
|
"S3_BUCKET": "messenger-attachments",
|
||||||
|
"SESSION_TTL_SECONDS": "${SESSION_TTL_SECONDS:-3600}",
|
||||||
|
"OTEL_EXPORTER_OTLP_ENDPOINT": "https://otel-collector:4319",
|
||||||
|
"WORKER_CONCURRENCY": "2",
|
||||||
|
"JOB_TIMEOUT_SECONDS": "10",
|
||||||
|
"JOB_LEASE_SECONDS": "20",
|
||||||
|
"MAX_PENDING_JOBS": "1000",
|
||||||
|
"SERVICE_ROLE": "api2",
|
||||||
|
"OTEL_SERVICE_NAME": "messenger-api",
|
||||||
|
"INSTANCE_ID_FILE": "/run/identity/instance_id"
|
||||||
|
},
|
||||||
|
"volumes": [
|
||||||
|
"./pki:/run/pki:ro",
|
||||||
|
"./secrets/tls/api2:/run/tls:ro",
|
||||||
|
"./identity/api2.txt:/run/identity/instance_id:ro"
|
||||||
|
],
|
||||||
|
"healthcheck": {
|
||||||
|
"test": [
|
||||||
|
"CMD",
|
||||||
|
"python",
|
||||||
|
"-c",
|
||||||
|
"import urllib.request; urllib.request.urlopen('http://127.0.0.1:8080/health/ready',timeout=4)"
|
||||||
|
],
|
||||||
|
"interval": "5s",
|
||||||
|
"timeout": "5s",
|
||||||
|
"retries": 30
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"worker": {
|
||||||
|
"image": "mtusi-messenger:lab7",
|
||||||
|
"build": ".",
|
||||||
|
"init": true,
|
||||||
|
"restart": "unless-stopped",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"tmpfs": [
|
||||||
|
"/tmp:size=134217728,mode=1777"
|
||||||
|
],
|
||||||
|
"mem_limit": "1536m",
|
||||||
|
"cpus": 2,
|
||||||
|
"networks": [
|
||||||
|
"private"
|
||||||
|
],
|
||||||
|
"environment": {
|
||||||
|
"BAO_ENABLED": "1",
|
||||||
|
"BAO_ADDR": "https://openbao:8200",
|
||||||
|
"S3_ENDPOINT": "https://s3:9000",
|
||||||
|
"S3_BUCKET": "messenger-attachments",
|
||||||
|
"SESSION_TTL_SECONDS": "${SESSION_TTL_SECONDS:-3600}",
|
||||||
|
"OTEL_EXPORTER_OTLP_ENDPOINT": "https://otel-collector:4319",
|
||||||
|
"WORKER_CONCURRENCY": "2",
|
||||||
|
"JOB_TIMEOUT_SECONDS": "10",
|
||||||
|
"JOB_LEASE_SECONDS": "20",
|
||||||
|
"MAX_PENDING_JOBS": "1000",
|
||||||
|
"SERVICE_ROLE": "worker",
|
||||||
|
"OTEL_SERVICE_NAME": "messenger-worker"
|
||||||
|
},
|
||||||
|
"volumes": [
|
||||||
|
"./pki:/run/pki:ro",
|
||||||
|
"./secrets/tls/worker:/run/tls:ro"
|
||||||
|
],
|
||||||
|
"command": [
|
||||||
|
"python",
|
||||||
|
"-m",
|
||||||
|
"src.worker"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"publisher": {
|
||||||
|
"image": "mtusi-messenger:lab7",
|
||||||
|
"build": ".",
|
||||||
|
"init": true,
|
||||||
|
"restart": "unless-stopped",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"tmpfs": [
|
||||||
|
"/tmp:size=134217728,mode=1777"
|
||||||
|
],
|
||||||
|
"mem_limit": "768m",
|
||||||
|
"cpus": 1,
|
||||||
|
"networks": [
|
||||||
|
"private"
|
||||||
|
],
|
||||||
|
"environment": {
|
||||||
|
"BAO_ENABLED": "1",
|
||||||
|
"BAO_ADDR": "https://openbao:8200",
|
||||||
|
"S3_ENDPOINT": "https://s3:9000",
|
||||||
|
"S3_BUCKET": "messenger-attachments",
|
||||||
|
"SESSION_TTL_SECONDS": "${SESSION_TTL_SECONDS:-3600}",
|
||||||
|
"OTEL_EXPORTER_OTLP_ENDPOINT": "https://otel-collector:4319",
|
||||||
|
"WORKER_CONCURRENCY": "2",
|
||||||
|
"JOB_TIMEOUT_SECONDS": "10",
|
||||||
|
"JOB_LEASE_SECONDS": "20",
|
||||||
|
"MAX_PENDING_JOBS": "1000",
|
||||||
|
"SERVICE_ROLE": "publisher",
|
||||||
|
"OTEL_SERVICE_NAME": "messenger-publisher"
|
||||||
|
},
|
||||||
|
"volumes": [
|
||||||
|
"./pki:/run/pki:ro",
|
||||||
|
"./secrets/tls/publisher:/run/tls:ro"
|
||||||
|
],
|
||||||
|
"command": [
|
||||||
|
"python",
|
||||||
|
"-m",
|
||||||
|
"src.publisher"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"janitor": {
|
||||||
|
"image": "mtusi-messenger:lab7",
|
||||||
|
"build": ".",
|
||||||
|
"init": true,
|
||||||
|
"restart": "unless-stopped",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"tmpfs": [
|
||||||
|
"/tmp:size=134217728,mode=1777"
|
||||||
|
],
|
||||||
|
"mem_limit": "768m",
|
||||||
|
"cpus": 1,
|
||||||
|
"networks": [
|
||||||
|
"private"
|
||||||
|
],
|
||||||
|
"environment": {
|
||||||
|
"BAO_ENABLED": "1",
|
||||||
|
"BAO_ADDR": "https://openbao:8200",
|
||||||
|
"S3_ENDPOINT": "https://s3:9000",
|
||||||
|
"S3_BUCKET": "messenger-attachments",
|
||||||
|
"SESSION_TTL_SECONDS": "${SESSION_TTL_SECONDS:-3600}",
|
||||||
|
"OTEL_EXPORTER_OTLP_ENDPOINT": "https://otel-collector:4319",
|
||||||
|
"WORKER_CONCURRENCY": "2",
|
||||||
|
"JOB_TIMEOUT_SECONDS": "10",
|
||||||
|
"JOB_LEASE_SECONDS": "20",
|
||||||
|
"MAX_PENDING_JOBS": "1000",
|
||||||
|
"SERVICE_ROLE": "janitor",
|
||||||
|
"OTEL_SERVICE_NAME": "messenger-janitor"
|
||||||
|
},
|
||||||
|
"volumes": [
|
||||||
|
"./pki:/run/pki:ro",
|
||||||
|
"./secrets/tls/janitor:/run/tls:ro"
|
||||||
|
],
|
||||||
|
"command": [
|
||||||
|
"python",
|
||||||
|
"-m",
|
||||||
|
"src.cleanup"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"api1-tls": {
|
||||||
|
"image": "mtusi-messenger:lab7",
|
||||||
|
"build": ".",
|
||||||
|
"init": true,
|
||||||
|
"restart": "unless-stopped",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"tmpfs": [
|
||||||
|
"/tmp:size=134217728,mode=1777"
|
||||||
|
],
|
||||||
|
"mem_limit": "64m",
|
||||||
|
"cpus": 0.5,
|
||||||
|
"command": [
|
||||||
|
"python",
|
||||||
|
"-m",
|
||||||
|
"src.tls_gateway"
|
||||||
|
],
|
||||||
|
"network_mode": "service:api1",
|
||||||
|
"environment": {
|
||||||
|
"GATEWAY_CONFIG": "/config/gateway.json"
|
||||||
|
},
|
||||||
|
"volumes": [
|
||||||
|
"./pki:/run/pki:ro",
|
||||||
|
"./secrets/tls/api1:/run/tls:ro",
|
||||||
|
"./infra/gateways/api1.json:/config/gateway.json:ro"
|
||||||
|
],
|
||||||
|
"depends_on": [
|
||||||
|
"api1"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"api2-tls": {
|
||||||
|
"image": "mtusi-messenger:lab7",
|
||||||
|
"build": ".",
|
||||||
|
"init": true,
|
||||||
|
"restart": "unless-stopped",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"tmpfs": [
|
||||||
|
"/tmp:size=134217728,mode=1777"
|
||||||
|
],
|
||||||
|
"mem_limit": "64m",
|
||||||
|
"cpus": 0.5,
|
||||||
|
"command": [
|
||||||
|
"python",
|
||||||
|
"-m",
|
||||||
|
"src.tls_gateway"
|
||||||
|
],
|
||||||
|
"network_mode": "service:api2",
|
||||||
|
"environment": {
|
||||||
|
"GATEWAY_CONFIG": "/config/gateway.json"
|
||||||
|
},
|
||||||
|
"volumes": [
|
||||||
|
"./pki:/run/pki:ro",
|
||||||
|
"./secrets/tls/api2:/run/tls:ro",
|
||||||
|
"./infra/gateways/api2.json:/config/gateway.json:ro"
|
||||||
|
],
|
||||||
|
"depends_on": [
|
||||||
|
"api2"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"broker-tls": {
|
||||||
|
"image": "mtusi-messenger:lab7",
|
||||||
|
"build": ".",
|
||||||
|
"init": true,
|
||||||
|
"restart": "unless-stopped",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"tmpfs": [
|
||||||
|
"/tmp:size=134217728,mode=1777"
|
||||||
|
],
|
||||||
|
"mem_limit": "64m",
|
||||||
|
"cpus": 0.25,
|
||||||
|
"command": [
|
||||||
|
"python",
|
||||||
|
"-m",
|
||||||
|
"src.tls_gateway"
|
||||||
|
],
|
||||||
|
"network_mode": "service:broker",
|
||||||
|
"environment": {
|
||||||
|
"GATEWAY_CONFIG": "/config/gateway.json"
|
||||||
|
},
|
||||||
|
"volumes": [
|
||||||
|
"./pki:/run/pki:ro",
|
||||||
|
"./secrets/tls/broker:/run/tls:ro",
|
||||||
|
"./infra/gateways/broker.json:/config/gateway.json:ro"
|
||||||
|
],
|
||||||
|
"depends_on": [
|
||||||
|
"broker"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"otel-collector-tls": {
|
||||||
|
"image": "mtusi-messenger:lab7",
|
||||||
|
"build": ".",
|
||||||
|
"init": true,
|
||||||
|
"restart": "unless-stopped",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"tmpfs": [
|
||||||
|
"/tmp:size=134217728,mode=1777"
|
||||||
|
],
|
||||||
|
"mem_limit": "64m",
|
||||||
|
"cpus": 0.5,
|
||||||
|
"command": [
|
||||||
|
"python",
|
||||||
|
"-m",
|
||||||
|
"src.tls_gateway"
|
||||||
|
],
|
||||||
|
"network_mode": "service:otel-collector",
|
||||||
|
"environment": {
|
||||||
|
"GATEWAY_CONFIG": "/config/gateway.json"
|
||||||
|
},
|
||||||
|
"volumes": [
|
||||||
|
"./pki:/run/pki:ro",
|
||||||
|
"./secrets/tls/otel-collector:/run/tls:ro",
|
||||||
|
"./infra/gateways/otel-collector.json:/config/gateway.json:ro"
|
||||||
|
],
|
||||||
|
"depends_on": [
|
||||||
|
"otel-collector"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"prometheus-tls": {
|
||||||
|
"image": "mtusi-messenger:lab7",
|
||||||
|
"build": ".",
|
||||||
|
"init": true,
|
||||||
|
"restart": "unless-stopped",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"tmpfs": [
|
||||||
|
"/tmp:size=134217728,mode=1777"
|
||||||
|
],
|
||||||
|
"mem_limit": "64m",
|
||||||
|
"cpus": 0.25,
|
||||||
|
"command": [
|
||||||
|
"python",
|
||||||
|
"-m",
|
||||||
|
"src.tls_gateway"
|
||||||
|
],
|
||||||
|
"network_mode": "service:prometheus",
|
||||||
|
"environment": {
|
||||||
|
"GATEWAY_CONFIG": "/config/gateway.json"
|
||||||
|
},
|
||||||
|
"volumes": [
|
||||||
|
"./pki:/run/pki:ro",
|
||||||
|
"./secrets/tls/prometheus:/run/tls:ro",
|
||||||
|
"./infra/gateways/prometheus.json:/config/gateway.json:ro"
|
||||||
|
],
|
||||||
|
"depends_on": [
|
||||||
|
"prometheus"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"loki-tls": {
|
||||||
|
"image": "mtusi-messenger:lab7",
|
||||||
|
"build": ".",
|
||||||
|
"init": true,
|
||||||
|
"restart": "unless-stopped",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"tmpfs": [
|
||||||
|
"/tmp:size=134217728,mode=1777"
|
||||||
|
],
|
||||||
|
"mem_limit": "64m",
|
||||||
|
"cpus": 0.25,
|
||||||
|
"command": [
|
||||||
|
"python",
|
||||||
|
"-m",
|
||||||
|
"src.tls_gateway"
|
||||||
|
],
|
||||||
|
"network_mode": "service:loki",
|
||||||
|
"environment": {
|
||||||
|
"GATEWAY_CONFIG": "/config/gateway.json"
|
||||||
|
},
|
||||||
|
"volumes": [
|
||||||
|
"./pki:/run/pki:ro",
|
||||||
|
"./secrets/tls/loki:/run/tls:ro",
|
||||||
|
"./infra/gateways/loki.json:/config/gateway.json:ro"
|
||||||
|
],
|
||||||
|
"depends_on": [
|
||||||
|
"loki"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"tempo-tls": {
|
||||||
|
"image": "mtusi-messenger:lab7",
|
||||||
|
"build": ".",
|
||||||
|
"init": true,
|
||||||
|
"restart": "unless-stopped",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"tmpfs": [
|
||||||
|
"/tmp:size=134217728,mode=1777"
|
||||||
|
],
|
||||||
|
"mem_limit": "64m",
|
||||||
|
"cpus": 0.25,
|
||||||
|
"command": [
|
||||||
|
"python",
|
||||||
|
"-m",
|
||||||
|
"src.tls_gateway"
|
||||||
|
],
|
||||||
|
"network_mode": "service:tempo",
|
||||||
|
"environment": {
|
||||||
|
"GATEWAY_CONFIG": "/config/gateway.json"
|
||||||
|
},
|
||||||
|
"volumes": [
|
||||||
|
"./pki:/run/pki:ro",
|
||||||
|
"./secrets/tls/tempo:/run/tls:ro",
|
||||||
|
"./infra/gateways/tempo.json:/config/gateway.json:ro"
|
||||||
|
],
|
||||||
|
"depends_on": [
|
||||||
|
"tempo"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"grafana-tls": {
|
||||||
|
"image": "mtusi-messenger:lab7",
|
||||||
|
"build": ".",
|
||||||
|
"init": true,
|
||||||
|
"restart": "unless-stopped",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"tmpfs": [
|
||||||
|
"/tmp:size=134217728,mode=1777"
|
||||||
|
],
|
||||||
|
"mem_limit": "64m",
|
||||||
|
"cpus": 0.25,
|
||||||
|
"command": [
|
||||||
|
"python",
|
||||||
|
"-m",
|
||||||
|
"src.tls_gateway"
|
||||||
|
],
|
||||||
|
"network_mode": "service:grafana",
|
||||||
|
"environment": {
|
||||||
|
"GATEWAY_CONFIG": "/config/gateway.json"
|
||||||
|
},
|
||||||
|
"volumes": [
|
||||||
|
"./pki:/run/pki:ro",
|
||||||
|
"./secrets/tls/grafana:/run/tls:ro",
|
||||||
|
"./infra/gateways/grafana.json:/config/gateway.json:ro"
|
||||||
|
],
|
||||||
|
"depends_on": [
|
||||||
|
"grafana"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"postgres": {
|
||||||
|
"image": "postgres:17.6-alpine3.22",
|
||||||
|
"entrypoint": [
|
||||||
|
"/bin/sh",
|
||||||
|
"/config/postgres-start.sh"
|
||||||
|
],
|
||||||
|
"environment": {
|
||||||
|
"POSTGRES_USER": "messenger",
|
||||||
|
"POSTGRES_DB": "messenger",
|
||||||
|
"POSTGRES_PASSWORD_FILE": "/run/secrets/postgres_password"
|
||||||
|
},
|
||||||
|
"volumes": [
|
||||||
|
"./pki:/run/pki:ro",
|
||||||
|
"./secrets/tls/postgres:/run/tls:ro",
|
||||||
|
"postgres-data:/var/lib/postgresql/data",
|
||||||
|
"./secrets/postgres_password:/run/secrets/postgres_password:ro",
|
||||||
|
"./infra/postgres-start.sh:/config/postgres-start.sh:ro",
|
||||||
|
"./infra/pg_hba.conf:/etc/postgresql/pg_hba.conf:ro"
|
||||||
|
],
|
||||||
|
"tmpfs": [
|
||||||
|
"/tmp:mode=1777"
|
||||||
|
],
|
||||||
|
"networks": [
|
||||||
|
"private"
|
||||||
|
],
|
||||||
|
"mem_limit": "384m",
|
||||||
|
"cpus": 1,
|
||||||
|
"restart": "unless-stopped",
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"healthcheck": {
|
||||||
|
"test": [
|
||||||
|
"CMD",
|
||||||
|
"pg_isready",
|
||||||
|
"-U",
|
||||||
|
"messenger",
|
||||||
|
"-d",
|
||||||
|
"messenger"
|
||||||
|
],
|
||||||
|
"interval": "3s",
|
||||||
|
"timeout": "3s",
|
||||||
|
"retries": 20
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"s3": {
|
||||||
|
"image": "mtusi-minio:lab7",
|
||||||
|
"build": {
|
||||||
|
"context": ".",
|
||||||
|
"dockerfile": "infra/Dockerfile.minio",
|
||||||
|
"target": "server"
|
||||||
|
},
|
||||||
|
"user": "10001:10001",
|
||||||
|
"entrypoint": [
|
||||||
|
"/bin/sh",
|
||||||
|
"/config/minio-start.sh"
|
||||||
|
],
|
||||||
|
"volumes": [
|
||||||
|
"./pki:/run/pki:ro",
|
||||||
|
"./secrets/tls/s3:/run/tls:ro",
|
||||||
|
"s3-data:/data",
|
||||||
|
"./infra/minio-start.sh:/config/minio-start.sh:ro",
|
||||||
|
"./secrets/minio_root_user:/run/secrets/minio_root_user:ro",
|
||||||
|
"./secrets/minio_root_password:/run/secrets/minio_root_password:ro"
|
||||||
|
],
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"tmpfs": [
|
||||||
|
"/tmp:mode=1777"
|
||||||
|
],
|
||||||
|
"networks": [
|
||||||
|
"private"
|
||||||
|
],
|
||||||
|
"mem_limit": "384m",
|
||||||
|
"cpus": 1,
|
||||||
|
"restart": "unless-stopped"
|
||||||
|
},
|
||||||
|
"broker": {
|
||||||
|
"image": "redis:7.4.5-alpine3.21",
|
||||||
|
"user": "redis",
|
||||||
|
"command": [
|
||||||
|
"redis-server",
|
||||||
|
"/etc/redis.conf"
|
||||||
|
],
|
||||||
|
"volumes": [
|
||||||
|
"broker-data:/data",
|
||||||
|
"./infra/broker.conf:/etc/redis.conf:ro",
|
||||||
|
"./secrets/broker.acl:/run/broker.acl:ro"
|
||||||
|
],
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"networks": [
|
||||||
|
"private"
|
||||||
|
],
|
||||||
|
"mem_limit": "192m",
|
||||||
|
"cpus": 0.5,
|
||||||
|
"restart": "unless-stopped"
|
||||||
|
},
|
||||||
|
"lb": {
|
||||||
|
"image": "haproxy:3.0.11-alpine",
|
||||||
|
"user": "10001:10001",
|
||||||
|
"volumes": [
|
||||||
|
"./pki:/run/pki:ro",
|
||||||
|
"./secrets/tls/lb:/run/tls:ro",
|
||||||
|
"./infra/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro"
|
||||||
|
],
|
||||||
|
"ports": [
|
||||||
|
"127.0.0.1:${LAB7_PORT:-8443}:8443"
|
||||||
|
],
|
||||||
|
"networks": [
|
||||||
|
"private",
|
||||||
|
"edge"
|
||||||
|
],
|
||||||
|
"mem_limit": "96m",
|
||||||
|
"cpus": 0.5,
|
||||||
|
"restart": "unless-stopped",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"tmpfs": [
|
||||||
|
"/tmp:mode=1777"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"openbao": {
|
||||||
|
"image": "quay.io/openbao/openbao:2.2.2",
|
||||||
|
"user": "10001:10001",
|
||||||
|
"entrypoint": [
|
||||||
|
"bao",
|
||||||
|
"server",
|
||||||
|
"-config=/etc/bao/config.hcl"
|
||||||
|
],
|
||||||
|
"environment": {
|
||||||
|
"BAO_ADDR": "https://openbao:8200",
|
||||||
|
"BAO_CACERT": "/run/pki/ca.crt"
|
||||||
|
},
|
||||||
|
"volumes": [
|
||||||
|
"./pki:/run/pki:ro",
|
||||||
|
"./secrets/tls/openbao:/run/tls:ro",
|
||||||
|
"bao-data:/bao/data",
|
||||||
|
"./infra/openbao/config.hcl:/etc/bao/config.hcl:ro"
|
||||||
|
],
|
||||||
|
"ports": [
|
||||||
|
"127.0.0.1:8207:8200"
|
||||||
|
],
|
||||||
|
"networks": [
|
||||||
|
"private",
|
||||||
|
"edge"
|
||||||
|
],
|
||||||
|
"mem_limit": "192m",
|
||||||
|
"cpus": 0.5,
|
||||||
|
"restart": "unless-stopped",
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"read_only": true,
|
||||||
|
"tmpfs": [
|
||||||
|
"/tmp:mode=1777"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"otel-collector": {
|
||||||
|
"image": "otel/opentelemetry-collector-contrib:0.123.0",
|
||||||
|
"user": "10001:10001",
|
||||||
|
"command": [
|
||||||
|
"--config=/config.yaml"
|
||||||
|
],
|
||||||
|
"volumes": [
|
||||||
|
"./pki:/run/pki:ro",
|
||||||
|
"./secrets/tls/otel-collector:/run/tls:ro",
|
||||||
|
"./infra/otel/collector.yaml:/config.yaml:ro"
|
||||||
|
],
|
||||||
|
"networks": [
|
||||||
|
"private"
|
||||||
|
],
|
||||||
|
"mem_limit": "256m",
|
||||||
|
"cpus": 0.5,
|
||||||
|
"restart": "unless-stopped",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"tmpfs": [
|
||||||
|
"/tmp:mode=1777"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"prometheus": {
|
||||||
|
"image": "prom/prometheus:v3.2.1",
|
||||||
|
"user": "10001:10001",
|
||||||
|
"command": [
|
||||||
|
"--config.file=/config.yaml",
|
||||||
|
"--web.listen-address=127.0.0.1:9090",
|
||||||
|
"--storage.tsdb.path=/prometheus",
|
||||||
|
"--storage.tsdb.retention.time=7d"
|
||||||
|
],
|
||||||
|
"volumes": [
|
||||||
|
"./pki:/run/pki:ro",
|
||||||
|
"./secrets/tls/prometheus:/run/tls:ro",
|
||||||
|
"./infra/otel/prometheus.yaml:/config.yaml:ro",
|
||||||
|
"prometheus-data:/prometheus",
|
||||||
|
"./infra/otel/alerts.yaml:/etc/prometheus/alerts.yaml:ro"
|
||||||
|
],
|
||||||
|
"networks": [
|
||||||
|
"private"
|
||||||
|
],
|
||||||
|
"mem_limit": "256m",
|
||||||
|
"cpus": 0.5,
|
||||||
|
"restart": "unless-stopped",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"tmpfs": [
|
||||||
|
"/tmp:mode=1777"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"loki": {
|
||||||
|
"image": "grafana/loki:3.4.2",
|
||||||
|
"user": "10001:10001",
|
||||||
|
"command": [
|
||||||
|
"-config.file=/config.yaml"
|
||||||
|
],
|
||||||
|
"volumes": [
|
||||||
|
"./pki:/run/pki:ro",
|
||||||
|
"./secrets/tls/loki:/run/tls:ro",
|
||||||
|
"./infra/otel/loki.yaml:/config.yaml:ro",
|
||||||
|
"loki-data:/loki"
|
||||||
|
],
|
||||||
|
"networks": [
|
||||||
|
"private"
|
||||||
|
],
|
||||||
|
"mem_limit": "384m",
|
||||||
|
"cpus": 1,
|
||||||
|
"restart": "unless-stopped",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"tmpfs": [
|
||||||
|
"/tmp:mode=1777"
|
||||||
|
],
|
||||||
|
"environment": {
|
||||||
|
"GOMAXPROCS": "2",
|
||||||
|
"GOMEMLIMIT": "256MiB"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tempo": {
|
||||||
|
"image": "grafana/tempo:2.7.2",
|
||||||
|
"user": "10001:10001",
|
||||||
|
"command": [
|
||||||
|
"-config.file=/config.yaml"
|
||||||
|
],
|
||||||
|
"volumes": [
|
||||||
|
"./pki:/run/pki:ro",
|
||||||
|
"./secrets/tls/tempo:/run/tls:ro",
|
||||||
|
"./infra/otel/tempo.yaml:/config.yaml:ro",
|
||||||
|
"tempo-data:/var/tempo"
|
||||||
|
],
|
||||||
|
"networks": [
|
||||||
|
"private"
|
||||||
|
],
|
||||||
|
"mem_limit": "512m",
|
||||||
|
"cpus": 1,
|
||||||
|
"restart": "unless-stopped",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"tmpfs": [
|
||||||
|
"/tmp:mode=1777"
|
||||||
|
],
|
||||||
|
"environment": {
|
||||||
|
"GOMAXPROCS": "2",
|
||||||
|
"GOMEMLIMIT": "384MiB"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"grafana": {
|
||||||
|
"image": "grafana/grafana:11.6.0",
|
||||||
|
"user": "10001:10001",
|
||||||
|
"environment": {
|
||||||
|
"GF_SERVER_HTTP_ADDR": "127.0.0.1",
|
||||||
|
"GF_SECURITY_ADMIN_PASSWORD__FILE": "/run/secrets/grafana_password",
|
||||||
|
"GF_USERS_ALLOW_SIGN_UP": "false",
|
||||||
|
"GF_ANALYTICS_REPORTING_ENABLED": "false",
|
||||||
|
"GF_ANALYTICS_CHECK_FOR_UPDATES": "false",
|
||||||
|
"GF_PLUGINS_PREINSTALL_DISABLED": "true"
|
||||||
|
},
|
||||||
|
"volumes": [
|
||||||
|
"grafana-data:/var/lib/grafana",
|
||||||
|
"./secrets/grafana_password:/run/secrets/grafana_password:ro",
|
||||||
|
"./secrets/grafana-runtime:/etc/grafana/provisioning/datasources:ro",
|
||||||
|
"./infra/grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards:ro",
|
||||||
|
"./infra/grafana/dashboards:/var/lib/grafana/dashboards:ro"
|
||||||
|
],
|
||||||
|
"ports": [
|
||||||
|
"127.0.0.1:3007:3443"
|
||||||
|
],
|
||||||
|
"networks": [
|
||||||
|
"private",
|
||||||
|
"edge"
|
||||||
|
],
|
||||||
|
"mem_limit": "256m",
|
||||||
|
"cpus": 0.5,
|
||||||
|
"restart": "unless-stopped",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"tmpfs": [
|
||||||
|
"/tmp:mode=1777"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"operator": {
|
||||||
|
"image": "mtusi-messenger:lab7",
|
||||||
|
"build": ".",
|
||||||
|
"init": true,
|
||||||
|
"restart": "no",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"tmpfs": [
|
||||||
|
"/tmp:size=134217728,mode=1777"
|
||||||
|
],
|
||||||
|
"mem_limit": "384m",
|
||||||
|
"cpus": 1,
|
||||||
|
"networks": [
|
||||||
|
"private",
|
||||||
|
"edge"
|
||||||
|
],
|
||||||
|
"profiles": [
|
||||||
|
"tools"
|
||||||
|
],
|
||||||
|
"command": [
|
||||||
|
"python",
|
||||||
|
"scripts/bootstrap.py"
|
||||||
|
],
|
||||||
|
"volumes": [
|
||||||
|
"./secrets:/app/secrets",
|
||||||
|
"./pki:/app/pki",
|
||||||
|
"./infra:/app/infra",
|
||||||
|
"./evidence:/app/evidence",
|
||||||
|
"./scripts:/app/scripts:ro",
|
||||||
|
"./student-tests:/app/student-tests:ro",
|
||||||
|
"./src:/app/src:ro",
|
||||||
|
"./migrations:/app/migrations:ro"
|
||||||
|
],
|
||||||
|
"environment": {
|
||||||
|
"OTEL_SDK_DISABLED": "true"
|
||||||
|
},
|
||||||
|
"user": "0:0",
|
||||||
|
"cap_add": [
|
||||||
|
"CHOWN",
|
||||||
|
"DAC_OVERRIDE",
|
||||||
|
"FOWNER"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"s3-bootstrap": {
|
||||||
|
"image": "mtusi-mc:lab7",
|
||||||
|
"build": {
|
||||||
|
"context": ".",
|
||||||
|
"dockerfile": "infra/Dockerfile.minio",
|
||||||
|
"target": "client"
|
||||||
|
},
|
||||||
|
"entrypoint": [
|
||||||
|
"/bin/sh",
|
||||||
|
"/config/bootstrap.sh"
|
||||||
|
],
|
||||||
|
"profiles": [
|
||||||
|
"tools"
|
||||||
|
],
|
||||||
|
"volumes": [
|
||||||
|
"./secrets:/run/secrets:ro",
|
||||||
|
"./pki:/run/pki:ro",
|
||||||
|
"./infra:/config:ro"
|
||||||
|
],
|
||||||
|
"networks": [
|
||||||
|
"private"
|
||||||
|
],
|
||||||
|
"mem_limit": "128m",
|
||||||
|
"cpus": 0.5
|
||||||
|
},
|
||||||
|
"volume-init": {
|
||||||
|
"image": "python:3.12.11-slim-bookworm",
|
||||||
|
"user": "0:0",
|
||||||
|
"profiles": [
|
||||||
|
"tools"
|
||||||
|
],
|
||||||
|
"network_mode": "none",
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"cap_add": [
|
||||||
|
"CHOWN",
|
||||||
|
"DAC_OVERRIDE",
|
||||||
|
"FOWNER"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"volumes": [
|
||||||
|
"s3-data:/init/s3-data",
|
||||||
|
"bao-data:/init/bao-data",
|
||||||
|
"prometheus-data:/init/prometheus-data",
|
||||||
|
"loki-data:/init/loki-data",
|
||||||
|
"tempo-data:/init/tempo-data",
|
||||||
|
"grafana-data:/init/grafana-data"
|
||||||
|
],
|
||||||
|
"command": [
|
||||||
|
"python",
|
||||||
|
"-c",
|
||||||
|
"import os; [(os.chown(root,10001,10001),os.chmod(root,0o750),[(os.chown(os.path.join(root,f),10001,10001),os.chmod(os.path.join(root,f),0o640)) for f in files]) for root,dirs,files in os.walk('/init') if root!='/init']"
|
||||||
|
],
|
||||||
|
"mem_limit": "64m",
|
||||||
|
"cpus": 0.25
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"networks": {
|
||||||
|
"private": {
|
||||||
|
"internal": true
|
||||||
|
},
|
||||||
|
"edge": {}
|
||||||
|
},
|
||||||
|
"volumes": {
|
||||||
|
"postgres-data": {},
|
||||||
|
"s3-data": {},
|
||||||
|
"broker-data": {},
|
||||||
|
"bao-data": {},
|
||||||
|
"prometheus-data": {},
|
||||||
|
"loki-data": {},
|
||||||
|
"tempo-data": {},
|
||||||
|
"grafana-data": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
+63
-12
@@ -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 | 8443 HTTPS LB; SAN localhost/127.0.0.1, pki/ca.crt; Bearer session TTL3600s; python tests/security.py --base-url https://localhost:8443 --ca-file pki/ca.crt. Shared DB login limits tested by student-tests/security.py. |
|
||||||
| LB → API (все реплики) | mTLS + allowlist LB identity | Ротация leaf без обхода проверки | TODO |
|
| LB → API (все реплики) | mTLS + allowlist LB identity | Ротация leaf без обхода проверки | api1/api2:8443 → loopback8080; TLS gateway allows DNS SAN lb only, not any same-CA client. HAProxy verifies api1/api2 hostname and CA, sends lb leaf. tests: security.py matrix(). No published API ports. |
|
||||||
| API/worker → PostgreSQL | TLS verify-full + раздельные ограниченные DB roles | Ротация credentials; mTLS — допустимое усиление | TODO |
|
| API/worker → PostgreSQL | TLS verify-full + раздельные ограниченные DB roles | Ротация credentials; mTLS — допустимое усиление | postgres:5432 native TLS; sslmode=verify-full, CA /run/pki/ca.crt; api/worker/publisher/janitor separate LOGIN roles with table grants, no superuser/CREATE. Secret via own Bao path cache≤15s. security.py permissions(); lifecycle.py old-denied tests fresh password auth. |
|
||||||
| API/worker → S3 | TLS + разные scoped credentials/prefix rights | Проверка denied prefix и ротация | TODO |
|
| API/worker → S3 | TLS + разные scoped credentials/prefix rights | Проверка denied prefix и ротация | s3:9000 native HTTPS with SAN s3; scoped API staging PUT/read-results; worker read/delete staging, PUT/read results, no delete-results. API/worker credentials via Bao. security.py permissions(); lifecycle.py old-denied tests fresh signed request. |
|
||||||
| API/worker → broker | TLS + разные producer/consumer identities и ACL | mTLS + ограничение допустимых SAN/ролей | TODO |
|
| API/worker → broker | TLS + разные producer/consumer identities и ACL | mTLS + ограничение допустимых SAN/ролей | broker:6380 mTLS gateway → loopback6379 Redis ACL. SAN api1/api2/publisher/worker/operator allowlist; api ping-only, publisher XADD v1, worker consumer v1 + invalid-registry XADD. Fresh wrong-cert/CA/SAN/expiry probes plus ACL deny in security.py. |
|
||||||
| API/worker → Collector | TLS; сеть/аутентификация запрещает произвольный ingest | mTLS с раздельными identities | TODO |
|
| API/worker → Collector | TLS; сеть/аутентификация запрещает произвольный ingest | mTLS с раздельными identities | otel-collector:4319 mTLS → loopback4318 OTLP/HTTP. Allow api1/api2/worker/publisher/janitor/operator SAN, deny intruder signed by same CA. SDK verifies server CA/SAN and supplies own client leaf. security.py matrix(); observability.py verifies real stored signals. |
|
||||||
| Collector → telemetry backends | TLS + scoped backend credentials или mTLS | Ротация и проверка least privilege | TODO |
|
| Collector → telemetry backends | TLS + scoped backend credentials или mTLS | Ротация и проверка least privilege | Loki:3443 → loopback3100, Tempo:4438 → loopback4318; gateway mTLS allow Collector SAN. Collector exporters verify CA and hostname. security.py matrix() tests client identity; configs infra/otel/collector.yaml. |
|
||||||
| Grafana → data sources | TLS с проверкой сервера, ограниченная identity | Отрицательные проверки доступа | TODO |
|
| Grafana → data sources | TLS с проверкой сервера, ограниченная identity | Отрицательные проверки доступа | Prometheus:9443, Loki/Tempo:3443 mTLS; only grafana/operator accepted on query endpoints. Grafana validates each server CA and supplies grafana client leaf. Runtime provisioning generated into ignored secrets/grafana-runtime. security.py matrix(); observability.py. |
|
||||||
| API/worker/agent → OpenBao | TLS + сервисный auth + scoped policy | Renewal/expiry/revocation | TODO |
|
| API/worker/agent → OpenBao | TLS + сервисный auth + scoped policy | Renewal/expiry/revocation | openbao:8200 native verified TLS; cert auth pins each service leaf + exact SAN, scoped KV v2 path, token TTL30s/max60s, secret cache≤15s. No password for obtaining secrets. security.py permissions(); lifecycle.py revoke/rotate/seal and scripts/verify.py. |
|
||||||
| Оператор → OpenBao/Grafana/S3 admin | TLS + authentication, доступ локальный/через защищённый канал | Разделение operator/application roles | TODO |
|
| Оператор → OpenBao/Grafana/S3 admin | TLS + authentication, доступ локальный/через защищённый канал | Разделение operator/application roles | Operator mounts only in one-shot tools profile. Bao localhost:8207 TLS + operator root token from separate operator files; Grafana localhost:3007 TLS + admin password; S3 admin only internal HTTPS credentials in s3-bootstrap. App/worker never mount operator files or CA key. |
|
||||||
| API → Redis/Valkey, если используется | TLS + ACL/пароль с минимальными правами | Ротация; mTLS по возможности | TODO |
|
| API → Redis/Valkey, если используется | TLS + ACL/пароль с минимальными правами | Ротация; mTLS по возможности | N/A: PostgreSQL sessions; Redis is broker only. Global login limit is a committed PostgreSQL counter shared across replicas. No extra session cache. |
|
||||||
| Replication/кластерные каналы, если добавлены | TLS/mTLS либо подтверждённый шифрованный transport | Проверка заявленной модели отказа | TODO |
|
| Replication/кластерные каналы, если добавлены | TLS/mTLS либо подтверждённый шифрованный transport | Проверка заявленной модели отказа | N/A: one host, single DB/broker/S3 and single telemetry stores. No cross-host replication or HA claimed. |
|
||||||
|
|
||||||
Нет выбранного компонента — отметьте N/A с причиной, а не оставляйте пустую строку. Внутренний публичный health listener, если нужен, минимален и изолирован; через него нельзя обращаться к бизнес-API без mTLS. Отдельно задокументируйте scrape/health/bootstrap каналы: они тоже не должны создавать обход.
|
Нет выбранного компонента — отметьте N/A с причиной, а не оставляйте пустую строку. Внутренний публичный health listener, если нужен, минимален и изолирован; через него нельзя обращаться к бизнес-API без mTLS. Отдельно задокументируйте scrape/health/bootstrap каналы: они тоже не должны создавать обход.
|
||||||
|
|
||||||
@@ -35,3 +35,54 @@
|
|||||||
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.
|
||||||
|
|
||||||
|
|
||||||
|
## Реализованный transport boundary и lifecycle
|
||||||
|
|
||||||
|
Все leaf identities создаёт оператор `scripts/pki.py`: EC P-256, DNS SAN,
|
||||||
|
serverAuth/clientAuth EKU, AKI/SKI; default TTL24h, CA365days. Приложения получают
|
||||||
|
только свой leaf/key и открытый CA. CA key находится в secrets/operator/lab7-ca,
|
||||||
|
не монтируется ни в один daemon. Локальный оператор отвечает за offline custody;
|
||||||
|
генератор намеренно не является production CA service. Root token/3 unseal shares
|
||||||
|
хранятся отдельно в secrets/operator/bao-init.json; приложение их не видит.
|
||||||
|
2-of-3 shares используются только явным operator bootstrap/unseal, Bao не auto-unseal.
|
||||||
|
Хранение всех shares на учебном workstation — ограничение локального стенда,
|
||||||
|
не решённое production хранение: перед эксплуатацией shares разделяют операторам.
|
||||||
|
|
||||||
|
Sidecars разделяют network namespace только с соответствующим backend; native
|
||||||
|
listener привязан к127.0.0.1. Нет сервисов с host network/Docker socket/privileged.
|
||||||
|
Plaintext внутри такого namespace является локальным hop; отрицательные probes
|
||||||
|
проверяют, что другой контейнер не подключается к этому порту. Служебные health
|
||||||
|
запросы выполняются через Docker exec/healthcheck по loopback; LB readiness идёт
|
||||||
|
через тот же mTLS listener. PostgreSQL local Unix socket — operator boundary
|
||||||
|
внутри DB container, не сетевой bypass. Prometheus scrape использует mTLS на8890
|
||||||
|
и8887; Collector health13133 только loopback. Нативные внутренние ring/grpc каналы
|
||||||
|
одиночных Loki/Tempo тоже используют loopback и не публикуются.
|
||||||
|
|
||||||
|
Client SAN/serial проверяются gateway перед открытием upstream. CA проверяется
|
||||||
|
OpenSSL при handshake. pki/revoked.json — публичный список serial, gateway читает
|
||||||
|
его на каждом новом соединении. Любое активное gateway connection ограничено30s,
|
||||||
|
SDK/Bao новые подключения используют актуальные files. Ротация leaf требует
|
||||||
|
перезагрузки listener, если заменён server cert; worker client leaf требует
|
||||||
|
нового соединения/restart worker, образ не пересобирается. OpenBao pin роли
|
||||||
|
обновляется оператором, старый leaf больше не даёт re-auth. Token TTL30s и cache15s
|
||||||
|
ограничивают старый доступ; контрольный украденный token отзывается явно.
|
||||||
|
|
||||||
|
При sealed/unavailable Bao после cache grace нет plaintext/static fallback;
|
||||||
|
API возвращает503, worker сохраняет durable jobs для retry. При expiry leaf
|
||||||
|
TLS отказывает; автоматический выпуск/CA rollover не заявлены (трек5 выбран1).
|
||||||
|
Возобновление после Bao restart требует явного operator unseal.
|
||||||
|
|
||||||
|
Воспроизведение: `python scripts/up.py`; затем `python scripts/verify.py`.
|
||||||
|
Внутренний аудит отдельно:
|
||||||
|
`docker compose run --rm --no-deps operator python student-tests/security.py`.
|
||||||
|
Сохранённые результаты находятся в evidence/tls-matrix.json, worker-privileges.json,
|
||||||
|
authentication.json, rotation.json, worker-compromise.json и bao-sealed.json.
|
||||||
|
|
||||||
|
|
||||||
|
Grafana query identity ограничена дополнительно HTTP method/path allowlist;
|
||||||
|
Collector identity на Loki разрешён только POST /otlp/v1/logs. Pipelining не
|
||||||
|
расширяет полномочия: авторизованный запрос принудительно закрывает upstream
|
||||||
|
connection. Отрицательные POST ingest/flush/admin и pipeline probes находятся
|
||||||
|
в evidence/store-query-permissions.json; действительные datasource queries через
|
||||||
|
Grafana proxy — grafana-datasource-access.json.
|
||||||
|
|||||||
@@ -0,0 +1,562 @@
|
|||||||
|
{
|
||||||
|
"api1": {
|
||||||
|
"id": "532c6ae329cc57bfd3d63cf8d0a602211e543d90f331f151da115314f5ae0ade",
|
||||||
|
"image": "sha256:b5d6848207edaf512648d3b4ea45a33286c864f370dded8de3c2d6185cbda55f",
|
||||||
|
"started_at": "2026-12-04T13:41:05.439586879Z",
|
||||||
|
"user": "app",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_private",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 805306368,
|
||||||
|
"cpu_limit": 2000000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls",
|
||||||
|
"/run/identity/instance_id"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"api1-tls": {
|
||||||
|
"id": "a6707e9ab1818b41f30160f09e33f65017ccd8ad98a1ce8682a854620253fbb6",
|
||||||
|
"image": "sha256:b5d6848207edaf512648d3b4ea45a33286c864f370dded8de3c2d6185cbda55f",
|
||||||
|
"started_at": "2026-12-04T13:41:14.810256925Z",
|
||||||
|
"user": "app",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "container:532c6ae329cc57bfd3d63cf8d0a602211e543d90f331f151da115314f5ae0ade",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 67108864,
|
||||||
|
"cpu_limit": 500000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/config/gateway.json",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"api2": {
|
||||||
|
"id": "6eef4d4148ccfa23de7fcf73a1d9126a152f8f1f219e642f4ad2f20078a4d54c",
|
||||||
|
"image": "sha256:b5d6848207edaf512648d3b4ea45a33286c864f370dded8de3c2d6185cbda55f",
|
||||||
|
"started_at": "2026-12-04T13:41:05.81715099Z",
|
||||||
|
"user": "app",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_private",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 805306368,
|
||||||
|
"cpu_limit": 2000000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls",
|
||||||
|
"/run/identity/instance_id"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"api2-tls": {
|
||||||
|
"id": "ba04c99a64b0a48eaef7093aa8307dc7eb71021f44708d9861d70346039b357f",
|
||||||
|
"image": "sha256:b5d6848207edaf512648d3b4ea45a33286c864f370dded8de3c2d6185cbda55f",
|
||||||
|
"started_at": "2026-12-04T13:41:15.41547372Z",
|
||||||
|
"user": "app",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "container:6eef4d4148ccfa23de7fcf73a1d9126a152f8f1f219e642f4ad2f20078a4d54c",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 67108864,
|
||||||
|
"cpu_limit": 500000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/config/gateway.json",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"broker": {
|
||||||
|
"id": "dd5f838ab57e313110ba96401feebf80b95b6269d8455619816c0851b9ce41b7",
|
||||||
|
"image": "sha256:bb186d083732f669da90be8b0f975a37812b15e913465bb14d845db72a4e3e08",
|
||||||
|
"started_at": "2026-12-04T13:41:05.154331245Z",
|
||||||
|
"user": "redis",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_private",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 201326592,
|
||||||
|
"cpu_limit": 500000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/data",
|
||||||
|
"/etc/redis.conf",
|
||||||
|
"/run/broker.acl"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"broker-tls": {
|
||||||
|
"id": "45712657cf6aa74aecdb83e68ca4b55ec2d7063da6c12396275ecfaf99ff7f47",
|
||||||
|
"image": "sha256:b5d6848207edaf512648d3b4ea45a33286c864f370dded8de3c2d6185cbda55f",
|
||||||
|
"started_at": "2026-12-04T13:41:15.755191317Z",
|
||||||
|
"user": "app",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "container:dd5f838ab57e313110ba96401feebf80b95b6269d8455619816c0851b9ce41b7",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 67108864,
|
||||||
|
"cpu_limit": 250000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/config/gateway.json",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"grafana": {
|
||||||
|
"id": "a2ef0627a88fff64d30b3b92a13a8f57e994ba2e69cb0e4c05693bb54a674eaf",
|
||||||
|
"image": "sha256:62d2b9d20a19714ebfe48d1bb405086081bc602aa053e28cf6d73c7537640dfb",
|
||||||
|
"started_at": "2026-12-04T13:41:06.171860878Z",
|
||||||
|
"user": "10001:10001",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_edge",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 268435456,
|
||||||
|
"cpu_limit": 500000000,
|
||||||
|
"ports": {
|
||||||
|
"3443/tcp": [
|
||||||
|
{
|
||||||
|
"HostIp": "127.0.0.1",
|
||||||
|
"HostPort": "3007"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/run/secrets/grafana_password",
|
||||||
|
"/var/lib/grafana",
|
||||||
|
"/etc/grafana/provisioning/dashboards",
|
||||||
|
"/etc/grafana/provisioning/datasources",
|
||||||
|
"/var/lib/grafana/dashboards"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"grafana-tls": {
|
||||||
|
"id": "ee477e4d799b342c6834976342dcff68366aeccd5fc75c11928c1a0a120a00ba",
|
||||||
|
"image": "sha256:b5d6848207edaf512648d3b4ea45a33286c864f370dded8de3c2d6185cbda55f",
|
||||||
|
"started_at": "2026-12-04T13:41:14.376036342Z",
|
||||||
|
"user": "app",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "container:a2ef0627a88fff64d30b3b92a13a8f57e994ba2e69cb0e4c05693bb54a674eaf",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 67108864,
|
||||||
|
"cpu_limit": 250000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/config/gateway.json",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"janitor": {
|
||||||
|
"id": "500a6a03b063fa318b3f64c9f060964bdfbd0f8516cc5de286aaa3f70a0ea94f",
|
||||||
|
"image": "sha256:b5d6848207edaf512648d3b4ea45a33286c864f370dded8de3c2d6185cbda55f",
|
||||||
|
"started_at": "2026-12-04T13:41:04.914006205Z",
|
||||||
|
"user": "app",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_private",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 805306368,
|
||||||
|
"cpu_limit": 1000000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"lb": {
|
||||||
|
"id": "d5f5ba88c4fddb025c500e7e29e28aeb3aeea3bb805468a156b6218fe599488f",
|
||||||
|
"image": "sha256:e49b7beb96f4dba79f9a671515b469a6e516a2b88ff0681a820b184bba1effbd",
|
||||||
|
"started_at": "2026-12-04T13:41:06.235311751Z",
|
||||||
|
"user": "10001:10001",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_edge",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 100663296,
|
||||||
|
"cpu_limit": 500000000,
|
||||||
|
"ports": {
|
||||||
|
"8443/tcp": [
|
||||||
|
{
|
||||||
|
"HostIp": "127.0.0.1",
|
||||||
|
"HostPort": "8443"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls",
|
||||||
|
"/usr/local/etc/haproxy/haproxy.cfg"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"loki": {
|
||||||
|
"id": "5cbd65367e95af418794d1ef8012c5808cd3ca8c7f08187b3cc97ced1e5a70eb",
|
||||||
|
"image": "sha256:58a6c186ce78ba04d58bfe2a927eff296ba733a430df09645d56cdc158f3ba08",
|
||||||
|
"started_at": "2026-12-04T13:41:06.472957895Z",
|
||||||
|
"user": "10001:10001",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_private",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 402653184,
|
||||||
|
"cpu_limit": 1000000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/config.yaml",
|
||||||
|
"/loki",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"loki-tls": {
|
||||||
|
"id": "173897fcf2e179448c5e3d9f73ce5d184042ae6e73a7b5d464e1fe5f4c6edaea",
|
||||||
|
"image": "sha256:b5d6848207edaf512648d3b4ea45a33286c864f370dded8de3c2d6185cbda55f",
|
||||||
|
"started_at": "2026-12-04T13:41:15.955881237Z",
|
||||||
|
"user": "app",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "container:5cbd65367e95af418794d1ef8012c5808cd3ca8c7f08187b3cc97ced1e5a70eb",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 67108864,
|
||||||
|
"cpu_limit": 250000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/config/gateway.json",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"openbao": {
|
||||||
|
"id": "993d19a06c3f8cfeff7c6b25cb333172f0ecc1e16b6bd0d59580477965501fd1",
|
||||||
|
"image": "sha256:d5d098f98f5ca7cae2e33d1e6dd9e2bea332275ad6bb7ff09032b48af3e1141e",
|
||||||
|
"started_at": "2026-12-04T13:41:06.339945356Z",
|
||||||
|
"user": "10001:10001",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_edge",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 201326592,
|
||||||
|
"cpu_limit": 500000000,
|
||||||
|
"ports": {
|
||||||
|
"8200/tcp": [
|
||||||
|
{
|
||||||
|
"HostIp": "127.0.0.1",
|
||||||
|
"HostPort": "8207"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/bao/data",
|
||||||
|
"/openbao/file",
|
||||||
|
"/openbao/logs",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls",
|
||||||
|
"/etc/bao/config.hcl"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"otel-collector": {
|
||||||
|
"id": "8810f5a992854811a8c4928ff7df7623fab8336722c1778943de8d82b8990969",
|
||||||
|
"image": "sha256:e39311df1f3d941923c00da79ac7ba6269124a870ee87e3c3ad24d60f8aee4d2",
|
||||||
|
"started_at": "2026-12-04T13:41:05.746038649Z",
|
||||||
|
"user": "10001:10001",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_private",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 268435456,
|
||||||
|
"cpu_limit": 500000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/config.yaml",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"otel-collector-tls": {
|
||||||
|
"id": "97be90467f1af2b2c49ae6a7fb95cb6c23f5694dede794807040fb4797ac3b08",
|
||||||
|
"image": "sha256:b5d6848207edaf512648d3b4ea45a33286c864f370dded8de3c2d6185cbda55f",
|
||||||
|
"started_at": "2026-12-04T13:41:15.576467847Z",
|
||||||
|
"user": "app",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "container:8810f5a992854811a8c4928ff7df7623fab8336722c1778943de8d82b8990969",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 67108864,
|
||||||
|
"cpu_limit": 500000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/config/gateway.json",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"postgres": {
|
||||||
|
"id": "f2adbecefc27ca79e306e870eecdd91949dd395c9a8892d4fbba87b5675e2788",
|
||||||
|
"image": "sha256:ef257d85f76e48da1c64832459b59fcaba1a4dac97bf5d7450c77753542eee94",
|
||||||
|
"started_at": "2026-12-04T13:41:06.060464918Z",
|
||||||
|
"user": "",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_private",
|
||||||
|
"read_only": false,
|
||||||
|
"cap_drop": null,
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 402653184,
|
||||||
|
"cpu_limit": 1000000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/config/postgres-start.sh",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls",
|
||||||
|
"/etc/postgresql/pg_hba.conf",
|
||||||
|
"/run/secrets/postgres_password",
|
||||||
|
"/var/lib/postgresql/data"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"prometheus": {
|
||||||
|
"id": "f8c7c861e674a7d3bac16ddf0776cfe5b04bb580f4315e14b30b11e649e94798",
|
||||||
|
"image": "sha256:6927e0919a144aa7616fd0137d4816816d42f6b816de3af269ab065250859a62",
|
||||||
|
"started_at": "2026-12-04T13:41:05.584005997Z",
|
||||||
|
"user": "10001:10001",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_private",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 268435456,
|
||||||
|
"cpu_limit": 500000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/config.yaml",
|
||||||
|
"/prometheus",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls",
|
||||||
|
"/etc/prometheus/alerts.yaml"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"prometheus-tls": {
|
||||||
|
"id": "46e6a1be537b3153a5c4a9c05828e3572d05aade05eb06cfd24b263d3df29240",
|
||||||
|
"image": "sha256:b5d6848207edaf512648d3b4ea45a33286c864f370dded8de3c2d6185cbda55f",
|
||||||
|
"started_at": "2026-12-04T13:41:15.236524035Z",
|
||||||
|
"user": "app",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "container:f8c7c861e674a7d3bac16ddf0776cfe5b04bb580f4315e14b30b11e649e94798",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 67108864,
|
||||||
|
"cpu_limit": 250000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/config/gateway.json",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"publisher": {
|
||||||
|
"id": "0bac01f00c75e16c8f9f909cb7ffd3a1baf99ff7e1f831930da6b2f912c998c2",
|
||||||
|
"image": "sha256:b5d6848207edaf512648d3b4ea45a33286c864f370dded8de3c2d6185cbda55f",
|
||||||
|
"started_at": "2026-12-04T13:41:05.517955004Z",
|
||||||
|
"user": "app",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_private",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 805306368,
|
||||||
|
"cpu_limit": 1000000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"s3": {
|
||||||
|
"id": "8d91f81edb659e2f4cd398b2e5d6afb70df178eef34b22f3b3f7be52cd612135",
|
||||||
|
"image": "sha256:483c5c9c451a5157d002c267afb4281ea834596188b8afca0bafa38ea132b337",
|
||||||
|
"started_at": "2026-12-04T13:41:04.809089743Z",
|
||||||
|
"user": "10001:10001",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_private",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 402653184,
|
||||||
|
"cpu_limit": 1000000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/data",
|
||||||
|
"/config/minio-start.sh",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls",
|
||||||
|
"/run/secrets/minio_root_password",
|
||||||
|
"/run/secrets/minio_root_user"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"tempo": {
|
||||||
|
"id": "f270935fdcdca7602bcffe6e40f492d82ca43bc34cb25b5ef85b766ff2c4fd99",
|
||||||
|
"image": "sha256:4b0277a9b572a4b1fa43b01468e58911ec214dd69d033f2cd476596d14de9fe3",
|
||||||
|
"started_at": "2026-12-04T13:41:06.277501378Z",
|
||||||
|
"user": "10001:10001",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_private",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 536870912,
|
||||||
|
"cpu_limit": 1000000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/config.yaml",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls",
|
||||||
|
"/var/tempo"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"tempo-tls": {
|
||||||
|
"id": "a8fea0679dcad4ea1cc0a0fee264f4238360f6c41901535267aca170477093a4",
|
||||||
|
"image": "sha256:b5d6848207edaf512648d3b4ea45a33286c864f370dded8de3c2d6185cbda55f",
|
||||||
|
"started_at": "2026-12-04T13:41:15.054591237Z",
|
||||||
|
"user": "app",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "container:f270935fdcdca7602bcffe6e40f492d82ca43bc34cb25b5ef85b766ff2c4fd99",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 67108864,
|
||||||
|
"cpu_limit": 250000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/config/gateway.json",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"worker": {
|
||||||
|
"id": "149ef6a239a02c9ec371f35a899822fa6bf00b2bb247cc564b240587cd093de4",
|
||||||
|
"image": "sha256:b5d6848207edaf512648d3b4ea45a33286c864f370dded8de3c2d6185cbda55f",
|
||||||
|
"started_at": "2026-12-04T13:41:05.302763228Z",
|
||||||
|
"user": "app",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_private",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 1610612736,
|
||||||
|
"cpu_limit": 2000000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,93 @@
|
|||||||
|
{
|
||||||
|
"result": "PASS",
|
||||||
|
"ACL_negative_checks": 4,
|
||||||
|
"expiry_logout_rehash": "PASS",
|
||||||
|
"session_storage": "sha256(random 256-bit bearer)",
|
||||||
|
"rate_limit_outcomes": [
|
||||||
|
{
|
||||||
|
"status": 401,
|
||||||
|
"instance": "571256162e5437556e9ae536034622c9",
|
||||||
|
"retry_after": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"status": 401,
|
||||||
|
"instance": "dfcf06404a672e795461936ecda3b830",
|
||||||
|
"retry_after": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"status": 401,
|
||||||
|
"instance": "571256162e5437556e9ae536034622c9",
|
||||||
|
"retry_after": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"status": 401,
|
||||||
|
"instance": "dfcf06404a672e795461936ecda3b830",
|
||||||
|
"retry_after": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"status": 401,
|
||||||
|
"instance": "571256162e5437556e9ae536034622c9",
|
||||||
|
"retry_after": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"status": 401,
|
||||||
|
"instance": "dfcf06404a672e795461936ecda3b830",
|
||||||
|
"retry_after": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"status": 429,
|
||||||
|
"instance": "571256162e5437556e9ae536034622c9",
|
||||||
|
"retry_after": "2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"status": 429,
|
||||||
|
"instance": "dfcf06404a672e795461936ecda3b830",
|
||||||
|
"retry_after": "2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"status": 429,
|
||||||
|
"instance": "571256162e5437556e9ae536034622c9",
|
||||||
|
"retry_after": "2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"status": 429,
|
||||||
|
"instance": "dfcf06404a672e795461936ecda3b830",
|
||||||
|
"retry_after": "2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"status": 429,
|
||||||
|
"instance": "571256162e5437556e9ae536034622c9",
|
||||||
|
"retry_after": "2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"status": 429,
|
||||||
|
"instance": "dfcf06404a672e795461936ecda3b830",
|
||||||
|
"retry_after": "2"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"argon2id": {
|
||||||
|
"memory_kib": 19456,
|
||||||
|
"time_cost": 2,
|
||||||
|
"parallelism": 1,
|
||||||
|
"measured_hash_seconds": [
|
||||||
|
0.028079593000256864,
|
||||||
|
0.02312050000000454,
|
||||||
|
0.01875314500011882,
|
||||||
|
0.019130906999635044,
|
||||||
|
0.019176548999894294,
|
||||||
|
0.019681985999341123,
|
||||||
|
0.0181508469995606,
|
||||||
|
0.01744869699996343,
|
||||||
|
0.019450246999440424,
|
||||||
|
0.017556890999912866,
|
||||||
|
0.019194098000298254,
|
||||||
|
0.01747503800015693
|
||||||
|
],
|
||||||
|
"median_seconds": 0.01915372799976467,
|
||||||
|
"max_seconds": 0.028079593000256864,
|
||||||
|
"shared_KDF_slots": 2,
|
||||||
|
"peak_KDF_memory_budget_mib": 38,
|
||||||
|
"global_login_budget_per_second": 20,
|
||||||
|
"per_username_attempts_per_30s": 8
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"result": "PASS",
|
||||||
|
"status": 503,
|
||||||
|
"mTLS_identity": "lb",
|
||||||
|
"request_id": "68199db9e694400ba8e3495d431a91f2",
|
||||||
|
"backend": "api1"
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"result": "PASS",
|
||||||
|
"sealed_failure_status": 503,
|
||||||
|
"cache_grace_bound_seconds": 15,
|
||||||
|
"observed_after_seconds": 24.801,
|
||||||
|
"recovery_seconds": 2.085,
|
||||||
|
"fallback": "none"
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"result": "PASS",
|
||||||
|
"issued_ttl_seconds": 30,
|
||||||
|
"tested_after_seconds": 32.057,
|
||||||
|
"expired_read_status": 403,
|
||||||
|
"fresh_cert_auth_succeeded": true
|
||||||
|
}
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
python:3.12-slim-bookworm@sha256:44cf1793efa7c7a476bb0f2cff81443f4a072c90c1cb127e2924933daa3e8c64
|
||||||
|
Resolved 2026-12-04 from official Docker Python image.
|
||||||
@@ -0,0 +1,562 @@
|
|||||||
|
{
|
||||||
|
"api1": {
|
||||||
|
"id": "532c6ae329cc57bfd3d63cf8d0a602211e543d90f331f151da115314f5ae0ade",
|
||||||
|
"image": "sha256:b5d6848207edaf512648d3b4ea45a33286c864f370dded8de3c2d6185cbda55f",
|
||||||
|
"started_at": "2026-12-04T13:37:05.022806067Z",
|
||||||
|
"user": "app",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_private",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 805306368,
|
||||||
|
"cpu_limit": 2000000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls",
|
||||||
|
"/run/identity/instance_id"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"api1-tls": {
|
||||||
|
"id": "f4eb88f397a669f93457ee0f09279f94ddd2f24a813422f4136ddd243c83b7b5",
|
||||||
|
"image": "sha256:b5d6848207edaf512648d3b4ea45a33286c864f370dded8de3c2d6185cbda55f",
|
||||||
|
"started_at": "2026-12-04T13:37:06.759549732Z",
|
||||||
|
"user": "app",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "container:532c6ae329cc57bfd3d63cf8d0a602211e543d90f331f151da115314f5ae0ade",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 67108864,
|
||||||
|
"cpu_limit": 500000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/config/gateway.json",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"api2": {
|
||||||
|
"id": "6eef4d4148ccfa23de7fcf73a1d9126a152f8f1f219e642f4ad2f20078a4d54c",
|
||||||
|
"image": "sha256:b5d6848207edaf512648d3b4ea45a33286c864f370dded8de3c2d6185cbda55f",
|
||||||
|
"started_at": "2026-12-04T13:37:05.623411218Z",
|
||||||
|
"user": "app",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_private",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 805306368,
|
||||||
|
"cpu_limit": 2000000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls",
|
||||||
|
"/run/identity/instance_id"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"api2-tls": {
|
||||||
|
"id": "621bacdc893fa062cf5da751efddbdc49a66e47c2ae0c8fe5443e80768790af0",
|
||||||
|
"image": "sha256:b5d6848207edaf512648d3b4ea45a33286c864f370dded8de3c2d6185cbda55f",
|
||||||
|
"started_at": "2026-12-04T13:37:06.902319178Z",
|
||||||
|
"user": "app",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "container:6eef4d4148ccfa23de7fcf73a1d9126a152f8f1f219e642f4ad2f20078a4d54c",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 67108864,
|
||||||
|
"cpu_limit": 500000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/config/gateway.json",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"broker": {
|
||||||
|
"id": "dd5f838ab57e313110ba96401feebf80b95b6269d8455619816c0851b9ce41b7",
|
||||||
|
"image": "sha256:bb186d083732f669da90be8b0f975a37812b15e913465bb14d845db72a4e3e08",
|
||||||
|
"started_at": "2026-12-04T13:19:20.216959075Z",
|
||||||
|
"user": "redis",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_private",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 201326592,
|
||||||
|
"cpu_limit": 500000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/data",
|
||||||
|
"/etc/redis.conf",
|
||||||
|
"/run/broker.acl"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"broker-tls": {
|
||||||
|
"id": "a60c15c94dd09834cde6f2bf13c31b3b49be09637b6747fb2d06cd12593f6a99",
|
||||||
|
"image": "sha256:b5d6848207edaf512648d3b4ea45a33286c864f370dded8de3c2d6185cbda55f",
|
||||||
|
"started_at": "2026-12-04T13:37:05.49116322Z",
|
||||||
|
"user": "app",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "container:dd5f838ab57e313110ba96401feebf80b95b6269d8455619816c0851b9ce41b7",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 67108864,
|
||||||
|
"cpu_limit": 250000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/config/gateway.json",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"grafana": {
|
||||||
|
"id": "a2ef0627a88fff64d30b3b92a13a8f57e994ba2e69cb0e4c05693bb54a674eaf",
|
||||||
|
"image": "sha256:62d2b9d20a19714ebfe48d1bb405086081bc602aa053e28cf6d73c7537640dfb",
|
||||||
|
"started_at": "2026-12-04T13:19:23.466789375Z",
|
||||||
|
"user": "10001:10001",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_edge",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 268435456,
|
||||||
|
"cpu_limit": 500000000,
|
||||||
|
"ports": {
|
||||||
|
"3443/tcp": [
|
||||||
|
{
|
||||||
|
"HostIp": "127.0.0.1",
|
||||||
|
"HostPort": "3007"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/run/secrets/grafana_password",
|
||||||
|
"/var/lib/grafana",
|
||||||
|
"/etc/grafana/provisioning/dashboards",
|
||||||
|
"/etc/grafana/provisioning/datasources",
|
||||||
|
"/var/lib/grafana/dashboards"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"grafana-tls": {
|
||||||
|
"id": "54a987665894eb639f99572e94982bb3255560500e72f6b0d1c0b30c872000a0",
|
||||||
|
"image": "sha256:b5d6848207edaf512648d3b4ea45a33286c864f370dded8de3c2d6185cbda55f",
|
||||||
|
"started_at": "2026-12-04T13:37:05.200872022Z",
|
||||||
|
"user": "app",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "container:a2ef0627a88fff64d30b3b92a13a8f57e994ba2e69cb0e4c05693bb54a674eaf",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 67108864,
|
||||||
|
"cpu_limit": 250000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/config/gateway.json",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"janitor": {
|
||||||
|
"id": "500a6a03b063fa318b3f64c9f060964bdfbd0f8516cc5de286aaa3f70a0ea94f",
|
||||||
|
"image": "sha256:b5d6848207edaf512648d3b4ea45a33286c864f370dded8de3c2d6185cbda55f",
|
||||||
|
"started_at": "2026-12-04T13:37:05.91987365Z",
|
||||||
|
"user": "app",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_private",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 805306368,
|
||||||
|
"cpu_limit": 1000000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"lb": {
|
||||||
|
"id": "d5f5ba88c4fddb025c500e7e29e28aeb3aeea3bb805468a156b6218fe599488f",
|
||||||
|
"image": "sha256:e49b7beb96f4dba79f9a671515b469a6e516a2b88ff0681a820b184bba1effbd",
|
||||||
|
"started_at": "2026-12-04T13:25:02.61150352Z",
|
||||||
|
"user": "10001:10001",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_edge",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 100663296,
|
||||||
|
"cpu_limit": 500000000,
|
||||||
|
"ports": {
|
||||||
|
"8443/tcp": [
|
||||||
|
{
|
||||||
|
"HostIp": "127.0.0.1",
|
||||||
|
"HostPort": "8443"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls",
|
||||||
|
"/usr/local/etc/haproxy/haproxy.cfg"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"loki": {
|
||||||
|
"id": "5cbd65367e95af418794d1ef8012c5808cd3ca8c7f08187b3cc97ced1e5a70eb",
|
||||||
|
"image": "sha256:58a6c186ce78ba04d58bfe2a927eff296ba733a430df09645d56cdc158f3ba08",
|
||||||
|
"started_at": "2026-12-04T13:19:22.121178813Z",
|
||||||
|
"user": "10001:10001",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_private",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 402653184,
|
||||||
|
"cpu_limit": 1000000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/config.yaml",
|
||||||
|
"/loki",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"loki-tls": {
|
||||||
|
"id": "ca52c1d9bac58ec0d0eb0946589cdff898a4ec1b3a1f7abb46de79b85334d2ba",
|
||||||
|
"image": "sha256:b5d6848207edaf512648d3b4ea45a33286c864f370dded8de3c2d6185cbda55f",
|
||||||
|
"started_at": "2026-12-04T13:37:06.306218092Z",
|
||||||
|
"user": "app",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "container:5cbd65367e95af418794d1ef8012c5808cd3ca8c7f08187b3cc97ced1e5a70eb",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 67108864,
|
||||||
|
"cpu_limit": 250000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/config/gateway.json",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"openbao": {
|
||||||
|
"id": "993d19a06c3f8cfeff7c6b25cb333172f0ecc1e16b6bd0d59580477965501fd1",
|
||||||
|
"image": "sha256:d5d098f98f5ca7cae2e33d1e6dd9e2bea332275ad6bb7ff09032b48af3e1141e",
|
||||||
|
"started_at": "2026-12-04T13:19:23.043634841Z",
|
||||||
|
"user": "10001:10001",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_edge",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 201326592,
|
||||||
|
"cpu_limit": 500000000,
|
||||||
|
"ports": {
|
||||||
|
"8200/tcp": [
|
||||||
|
{
|
||||||
|
"HostIp": "127.0.0.1",
|
||||||
|
"HostPort": "8207"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/bao/data",
|
||||||
|
"/openbao/file",
|
||||||
|
"/openbao/logs",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls",
|
||||||
|
"/etc/bao/config.hcl"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"otel-collector": {
|
||||||
|
"id": "8810f5a992854811a8c4928ff7df7623fab8336722c1778943de8d82b8990969",
|
||||||
|
"image": "sha256:e39311df1f3d941923c00da79ac7ba6269124a870ee87e3c3ad24d60f8aee4d2",
|
||||||
|
"started_at": "2026-12-04T13:19:21.742988387Z",
|
||||||
|
"user": "10001:10001",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_private",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 268435456,
|
||||||
|
"cpu_limit": 500000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/config.yaml",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"otel-collector-tls": {
|
||||||
|
"id": "6360a78e28401744243226865ac1075ff0219b38d17311ca55ab3e63ecd665f5",
|
||||||
|
"image": "sha256:b5d6848207edaf512648d3b4ea45a33286c864f370dded8de3c2d6185cbda55f",
|
||||||
|
"started_at": "2026-12-04T13:37:05.800058944Z",
|
||||||
|
"user": "app",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "container:8810f5a992854811a8c4928ff7df7623fab8336722c1778943de8d82b8990969",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 67108864,
|
||||||
|
"cpu_limit": 500000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/config/gateway.json",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"postgres": {
|
||||||
|
"id": "f2adbecefc27ca79e306e870eecdd91949dd395c9a8892d4fbba87b5675e2788",
|
||||||
|
"image": "sha256:ef257d85f76e48da1c64832459b59fcaba1a4dac97bf5d7450c77753542eee94",
|
||||||
|
"started_at": "2026-12-04T13:19:21.958591946Z",
|
||||||
|
"user": "",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_private",
|
||||||
|
"read_only": false,
|
||||||
|
"cap_drop": null,
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 402653184,
|
||||||
|
"cpu_limit": 1000000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/config/postgres-start.sh",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls",
|
||||||
|
"/etc/postgresql/pg_hba.conf",
|
||||||
|
"/run/secrets/postgres_password",
|
||||||
|
"/var/lib/postgresql/data"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"prometheus": {
|
||||||
|
"id": "f8c7c861e674a7d3bac16ddf0776cfe5b04bb580f4315e14b30b11e649e94798",
|
||||||
|
"image": "sha256:6927e0919a144aa7616fd0137d4816816d42f6b816de3af269ab065250859a62",
|
||||||
|
"started_at": "2026-12-04T13:19:21.746924934Z",
|
||||||
|
"user": "10001:10001",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_private",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 268435456,
|
||||||
|
"cpu_limit": 500000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/config.yaml",
|
||||||
|
"/prometheus",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls",
|
||||||
|
"/etc/prometheus/alerts.yaml"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"prometheus-tls": {
|
||||||
|
"id": "010b2ee3b0d879cd7ef3e8474d2f3afc91f6deb2cece71e1d1fceb2de8cfce38",
|
||||||
|
"image": "sha256:b5d6848207edaf512648d3b4ea45a33286c864f370dded8de3c2d6185cbda55f",
|
||||||
|
"started_at": "2026-12-04T13:37:06.612909026Z",
|
||||||
|
"user": "app",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "container:f8c7c861e674a7d3bac16ddf0776cfe5b04bb580f4315e14b30b11e649e94798",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 67108864,
|
||||||
|
"cpu_limit": 250000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/config/gateway.json",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"publisher": {
|
||||||
|
"id": "0bac01f00c75e16c8f9f909cb7ffd3a1baf99ff7e1f831930da6b2f912c998c2",
|
||||||
|
"image": "sha256:b5d6848207edaf512648d3b4ea45a33286c864f370dded8de3c2d6185cbda55f",
|
||||||
|
"started_at": "2026-12-04T13:37:06.116001825Z",
|
||||||
|
"user": "app",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_private",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 805306368,
|
||||||
|
"cpu_limit": 1000000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"s3": {
|
||||||
|
"id": "8d91f81edb659e2f4cd398b2e5d6afb70df178eef34b22f3b3f7be52cd612135",
|
||||||
|
"image": "sha256:483c5c9c451a5157d002c267afb4281ea834596188b8afca0bafa38ea132b337",
|
||||||
|
"started_at": "2026-12-04T13:19:21.518034166Z",
|
||||||
|
"user": "10001:10001",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_private",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 402653184,
|
||||||
|
"cpu_limit": 1000000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/data",
|
||||||
|
"/config/minio-start.sh",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls",
|
||||||
|
"/run/secrets/minio_root_password",
|
||||||
|
"/run/secrets/minio_root_user"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"tempo": {
|
||||||
|
"id": "f270935fdcdca7602bcffe6e40f492d82ca43bc34cb25b5ef85b766ff2c4fd99",
|
||||||
|
"image": "sha256:4b0277a9b572a4b1fa43b01468e58911ec214dd69d033f2cd476596d14de9fe3",
|
||||||
|
"started_at": "2026-12-04T13:19:22.835042082Z",
|
||||||
|
"user": "10001:10001",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_private",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 536870912,
|
||||||
|
"cpu_limit": 1000000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/config.yaml",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls",
|
||||||
|
"/var/tempo"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"tempo-tls": {
|
||||||
|
"id": "1b79ebb3cbc4c36920d59bd147c37cc4b5f93a8fa9dc8a5500763fd4bcad24aa",
|
||||||
|
"image": "sha256:b5d6848207edaf512648d3b4ea45a33286c864f370dded8de3c2d6185cbda55f",
|
||||||
|
"started_at": "2026-12-04T13:37:06.470305194Z",
|
||||||
|
"user": "app",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "container:f270935fdcdca7602bcffe6e40f492d82ca43bc34cb25b5ef85b766ff2c4fd99",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 67108864,
|
||||||
|
"cpu_limit": 250000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/config/gateway.json",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"worker": {
|
||||||
|
"id": "149ef6a239a02c9ec371f35a899822fa6bf00b2bb247cc564b240587cd093de4",
|
||||||
|
"image": "sha256:b5d6848207edaf512648d3b4ea45a33286c864f370dded8de3c2d6185cbda55f",
|
||||||
|
"started_at": "2026-12-04T13:40:23.798524479Z",
|
||||||
|
"user": "app",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_private",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 1610612736,
|
||||||
|
"cpu_limit": 2000000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"before": {
|
||||||
|
"certifi": 1,
|
||||||
|
"cryptography": 7,
|
||||||
|
"starlette": 7,
|
||||||
|
"opentelemetry-api": 2,
|
||||||
|
"pillow": 59
|
||||||
|
},
|
||||||
|
"after": {
|
||||||
|
"opentelemetry-api": 2
|
||||||
|
},
|
||||||
|
"bounded_OTel_input_mitigation": {
|
||||||
|
"traceparent": "exact55chars/hex grammar before SDK",
|
||||||
|
"tracestate": "max512chars, max32members, bounded W3C key/value validation, OWS normalized before SDK",
|
||||||
|
"broker_and_relay": "same extract wrapper"
|
||||||
|
},
|
||||||
|
"advisories_still_reported": [
|
||||||
|
"GHSA-xcq7-p3pf-p88h",
|
||||||
|
"GHSA-mf5v-w3w3-f6cg"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
PASS: trusted HTTPS works; untrusted CA rejected. This does NOT verify internal mTLS, OpenBao or hardening.
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||||
|
{"observed_instances_before": 2, "successful_writes": 8, "failed_attempts": 0, "first_recovery_seconds": 4.158}
|
||||||
|
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"result": "PASS",
|
||||||
|
"final_image": "sha256:26a33516c364a1810ee347db0e9987b0842a3ea14e3636b2adbdec7ddcb70e91",
|
||||||
|
"full_campaign_image": "sha256:b5d6848207edaf512648d3b4ea45a33286c864f370dded8de3c2d6185cbda55f",
|
||||||
|
"change_after_full_campaign": "Decode optional HTTP trace headers as latin-1 instead of utf-8; malformed metadata no longer causes HTTP 500. No dependencies or business logic changed.",
|
||||||
|
"targeted_checks_after_rebuild": [
|
||||||
|
"public HTTPS smoke PASS",
|
||||||
|
"malformed telemetry headers PASS",
|
||||||
|
"real traces/logs/metrics and privacy probes PASS",
|
||||||
|
"Grafana all three datasource proxies PASS"
|
||||||
|
],
|
||||||
|
"scanned_config_image_id": "sha256:eb54428c4fc93b9ebe34ac085e8db0fe50e4e811e8857d81518cd4476a0becff",
|
||||||
|
"scanned_manifest_image_id": "sha256:26a33516c364a1810ee347db0e9987b0842a3ea14e3636b2adbdec7ddcb70e91"
|
||||||
|
}
|
||||||
@@ -0,0 +1,562 @@
|
|||||||
|
{
|
||||||
|
"api1": {
|
||||||
|
"id": "38ecd70afa1660bab68ce459264852bb2b2573c9b3e0615f052bf6497a0c91ee",
|
||||||
|
"image": "sha256:26a33516c364a1810ee347db0e9987b0842a3ea14e3636b2adbdec7ddcb70e91",
|
||||||
|
"started_at": "2026-12-04T13:52:08.881975205Z",
|
||||||
|
"user": "app",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_private",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 805306368,
|
||||||
|
"cpu_limit": 2000000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls",
|
||||||
|
"/run/identity/instance_id"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"api1-tls": {
|
||||||
|
"id": "f40f261d41bdcfd7a714d34c41920afcbba15706ec28e748341dbca61cc2874e",
|
||||||
|
"image": "sha256:26a33516c364a1810ee347db0e9987b0842a3ea14e3636b2adbdec7ddcb70e91",
|
||||||
|
"started_at": "2026-12-04T13:52:09.423092622Z",
|
||||||
|
"user": "app",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "container:38ecd70afa1660bab68ce459264852bb2b2573c9b3e0615f052bf6497a0c91ee",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 67108864,
|
||||||
|
"cpu_limit": 500000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/config/gateway.json",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"api2": {
|
||||||
|
"id": "ac6b11a6ed49b9644c9ead9024b1aad5c50695526222a0a4e2c7866fce1be198",
|
||||||
|
"image": "sha256:26a33516c364a1810ee347db0e9987b0842a3ea14e3636b2adbdec7ddcb70e91",
|
||||||
|
"started_at": "2026-12-04T13:52:07.647046829Z",
|
||||||
|
"user": "app",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_private",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 805306368,
|
||||||
|
"cpu_limit": 2000000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls",
|
||||||
|
"/run/identity/instance_id"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"api2-tls": {
|
||||||
|
"id": "ec5045ee1adf2f855ad651be5aaa026c56cba39eb40a0c9d533626495af68119",
|
||||||
|
"image": "sha256:26a33516c364a1810ee347db0e9987b0842a3ea14e3636b2adbdec7ddcb70e91",
|
||||||
|
"started_at": "2026-12-04T13:52:09.270539695Z",
|
||||||
|
"user": "app",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "container:ac6b11a6ed49b9644c9ead9024b1aad5c50695526222a0a4e2c7866fce1be198",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 67108864,
|
||||||
|
"cpu_limit": 500000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/config/gateway.json",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"broker": {
|
||||||
|
"id": "dd5f838ab57e313110ba96401feebf80b95b6269d8455619816c0851b9ce41b7",
|
||||||
|
"image": "sha256:bb186d083732f669da90be8b0f975a37812b15e913465bb14d845db72a4e3e08",
|
||||||
|
"started_at": "2026-12-04T13:41:05.154331245Z",
|
||||||
|
"user": "redis",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_private",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 201326592,
|
||||||
|
"cpu_limit": 500000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/data",
|
||||||
|
"/etc/redis.conf",
|
||||||
|
"/run/broker.acl"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"broker-tls": {
|
||||||
|
"id": "31b06e2a29510d14f9e4e2a1dc31a6cb8156d74718ecd9660b18d67890af2b31",
|
||||||
|
"image": "sha256:26a33516c364a1810ee347db0e9987b0842a3ea14e3636b2adbdec7ddcb70e91",
|
||||||
|
"started_at": "2026-12-04T13:52:07.932693336Z",
|
||||||
|
"user": "app",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "container:dd5f838ab57e313110ba96401feebf80b95b6269d8455619816c0851b9ce41b7",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 67108864,
|
||||||
|
"cpu_limit": 250000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/config/gateway.json",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"grafana": {
|
||||||
|
"id": "a2ef0627a88fff64d30b3b92a13a8f57e994ba2e69cb0e4c05693bb54a674eaf",
|
||||||
|
"image": "sha256:62d2b9d20a19714ebfe48d1bb405086081bc602aa053e28cf6d73c7537640dfb",
|
||||||
|
"started_at": "2026-12-04T13:41:06.171860878Z",
|
||||||
|
"user": "10001:10001",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_edge",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 268435456,
|
||||||
|
"cpu_limit": 500000000,
|
||||||
|
"ports": {
|
||||||
|
"3443/tcp": [
|
||||||
|
{
|
||||||
|
"HostIp": "127.0.0.1",
|
||||||
|
"HostPort": "3007"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/run/secrets/grafana_password",
|
||||||
|
"/var/lib/grafana",
|
||||||
|
"/etc/grafana/provisioning/dashboards",
|
||||||
|
"/etc/grafana/provisioning/datasources",
|
||||||
|
"/var/lib/grafana/dashboards"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"grafana-tls": {
|
||||||
|
"id": "38534a8a9a43664ac4e96b2035e32956f1c43140444ec12b08aab4f2747afa4f",
|
||||||
|
"image": "sha256:26a33516c364a1810ee347db0e9987b0842a3ea14e3636b2adbdec7ddcb70e91",
|
||||||
|
"started_at": "2026-12-04T13:52:07.803173855Z",
|
||||||
|
"user": "app",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "container:a2ef0627a88fff64d30b3b92a13a8f57e994ba2e69cb0e4c05693bb54a674eaf",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 67108864,
|
||||||
|
"cpu_limit": 250000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/config/gateway.json",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"janitor": {
|
||||||
|
"id": "6e7f86715cded617430da00a2fdb0f31964f183ff5d24d7b7bdaebb0a9f2bb72",
|
||||||
|
"image": "sha256:26a33516c364a1810ee347db0e9987b0842a3ea14e3636b2adbdec7ddcb70e91",
|
||||||
|
"started_at": "2026-12-04T13:52:08.302753973Z",
|
||||||
|
"user": "app",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_private",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 805306368,
|
||||||
|
"cpu_limit": 1000000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"lb": {
|
||||||
|
"id": "d5f5ba88c4fddb025c500e7e29e28aeb3aeea3bb805468a156b6218fe599488f",
|
||||||
|
"image": "sha256:e49b7beb96f4dba79f9a671515b469a6e516a2b88ff0681a820b184bba1effbd",
|
||||||
|
"started_at": "2026-12-04T13:41:06.235311751Z",
|
||||||
|
"user": "10001:10001",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_edge",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 100663296,
|
||||||
|
"cpu_limit": 500000000,
|
||||||
|
"ports": {
|
||||||
|
"8443/tcp": [
|
||||||
|
{
|
||||||
|
"HostIp": "127.0.0.1",
|
||||||
|
"HostPort": "8443"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls",
|
||||||
|
"/usr/local/etc/haproxy/haproxy.cfg"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"loki": {
|
||||||
|
"id": "5cbd65367e95af418794d1ef8012c5808cd3ca8c7f08187b3cc97ced1e5a70eb",
|
||||||
|
"image": "sha256:58a6c186ce78ba04d58bfe2a927eff296ba733a430df09645d56cdc158f3ba08",
|
||||||
|
"started_at": "2026-12-04T13:41:06.472957895Z",
|
||||||
|
"user": "10001:10001",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_private",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 402653184,
|
||||||
|
"cpu_limit": 1000000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/config.yaml",
|
||||||
|
"/loki",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"loki-tls": {
|
||||||
|
"id": "1717fdb593349bd1a60827d95441dea0d5c2b43ddd2722643e77f65a61bfd306",
|
||||||
|
"image": "sha256:26a33516c364a1810ee347db0e9987b0842a3ea14e3636b2adbdec7ddcb70e91",
|
||||||
|
"started_at": "2026-12-04T13:52:08.065367583Z",
|
||||||
|
"user": "app",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "container:5cbd65367e95af418794d1ef8012c5808cd3ca8c7f08187b3cc97ced1e5a70eb",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 67108864,
|
||||||
|
"cpu_limit": 250000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/config/gateway.json",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"openbao": {
|
||||||
|
"id": "993d19a06c3f8cfeff7c6b25cb333172f0ecc1e16b6bd0d59580477965501fd1",
|
||||||
|
"image": "sha256:d5d098f98f5ca7cae2e33d1e6dd9e2bea332275ad6bb7ff09032b48af3e1141e",
|
||||||
|
"started_at": "2026-12-04T13:41:06.339945356Z",
|
||||||
|
"user": "10001:10001",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_edge",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 201326592,
|
||||||
|
"cpu_limit": 500000000,
|
||||||
|
"ports": {
|
||||||
|
"8200/tcp": [
|
||||||
|
{
|
||||||
|
"HostIp": "127.0.0.1",
|
||||||
|
"HostPort": "8207"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/bao/data",
|
||||||
|
"/openbao/file",
|
||||||
|
"/openbao/logs",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls",
|
||||||
|
"/etc/bao/config.hcl"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"otel-collector": {
|
||||||
|
"id": "8810f5a992854811a8c4928ff7df7623fab8336722c1778943de8d82b8990969",
|
||||||
|
"image": "sha256:e39311df1f3d941923c00da79ac7ba6269124a870ee87e3c3ad24d60f8aee4d2",
|
||||||
|
"started_at": "2026-12-04T13:41:05.746038649Z",
|
||||||
|
"user": "10001:10001",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_private",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 268435456,
|
||||||
|
"cpu_limit": 500000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/config.yaml",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"otel-collector-tls": {
|
||||||
|
"id": "873c10c62629b3ef05cb7f19de55ee19508f1d2439db96a256533751602fe74b",
|
||||||
|
"image": "sha256:26a33516c364a1810ee347db0e9987b0842a3ea14e3636b2adbdec7ddcb70e91",
|
||||||
|
"started_at": "2026-12-04T13:52:08.187130042Z",
|
||||||
|
"user": "app",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "container:8810f5a992854811a8c4928ff7df7623fab8336722c1778943de8d82b8990969",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 67108864,
|
||||||
|
"cpu_limit": 500000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/config/gateway.json",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"postgres": {
|
||||||
|
"id": "f2adbecefc27ca79e306e870eecdd91949dd395c9a8892d4fbba87b5675e2788",
|
||||||
|
"image": "sha256:ef257d85f76e48da1c64832459b59fcaba1a4dac97bf5d7450c77753542eee94",
|
||||||
|
"started_at": "2026-12-04T13:41:06.060464918Z",
|
||||||
|
"user": "",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_private",
|
||||||
|
"read_only": false,
|
||||||
|
"cap_drop": null,
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 402653184,
|
||||||
|
"cpu_limit": 1000000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/config/postgres-start.sh",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls",
|
||||||
|
"/etc/postgresql/pg_hba.conf",
|
||||||
|
"/run/secrets/postgres_password",
|
||||||
|
"/var/lib/postgresql/data"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"prometheus": {
|
||||||
|
"id": "f8c7c861e674a7d3bac16ddf0776cfe5b04bb580f4315e14b30b11e649e94798",
|
||||||
|
"image": "sha256:6927e0919a144aa7616fd0137d4816816d42f6b816de3af269ab065250859a62",
|
||||||
|
"started_at": "2026-12-04T13:41:05.584005997Z",
|
||||||
|
"user": "10001:10001",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_private",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 268435456,
|
||||||
|
"cpu_limit": 500000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/config.yaml",
|
||||||
|
"/prometheus",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls",
|
||||||
|
"/etc/prometheus/alerts.yaml"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"prometheus-tls": {
|
||||||
|
"id": "3ecddadb5bd1fdaf601f944781a71a9fdeb276cc0d05a6ee43e8ecdd765e0e85",
|
||||||
|
"image": "sha256:26a33516c364a1810ee347db0e9987b0842a3ea14e3636b2adbdec7ddcb70e91",
|
||||||
|
"started_at": "2026-12-04T13:52:07.499353727Z",
|
||||||
|
"user": "app",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "container:f8c7c861e674a7d3bac16ddf0776cfe5b04bb580f4315e14b30b11e649e94798",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 67108864,
|
||||||
|
"cpu_limit": 250000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/config/gateway.json",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"publisher": {
|
||||||
|
"id": "bbb6a17559a3e2f48956650f6f0d6c2f88aecb329123a5d9a9c1b05a515e6586",
|
||||||
|
"image": "sha256:26a33516c364a1810ee347db0e9987b0842a3ea14e3636b2adbdec7ddcb70e91",
|
||||||
|
"started_at": "2026-12-04T13:52:08.689405599Z",
|
||||||
|
"user": "app",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_private",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 805306368,
|
||||||
|
"cpu_limit": 1000000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"s3": {
|
||||||
|
"id": "8d91f81edb659e2f4cd398b2e5d6afb70df178eef34b22f3b3f7be52cd612135",
|
||||||
|
"image": "sha256:483c5c9c451a5157d002c267afb4281ea834596188b8afca0bafa38ea132b337",
|
||||||
|
"started_at": "2026-12-04T13:41:04.809089743Z",
|
||||||
|
"user": "10001:10001",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_private",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 402653184,
|
||||||
|
"cpu_limit": 1000000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/data",
|
||||||
|
"/config/minio-start.sh",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls",
|
||||||
|
"/run/secrets/minio_root_password",
|
||||||
|
"/run/secrets/minio_root_user"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"tempo": {
|
||||||
|
"id": "f270935fdcdca7602bcffe6e40f492d82ca43bc34cb25b5ef85b766ff2c4fd99",
|
||||||
|
"image": "sha256:4b0277a9b572a4b1fa43b01468e58911ec214dd69d033f2cd476596d14de9fe3",
|
||||||
|
"started_at": "2026-12-04T13:41:06.277501378Z",
|
||||||
|
"user": "10001:10001",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_private",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 536870912,
|
||||||
|
"cpu_limit": 1000000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/config.yaml",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls",
|
||||||
|
"/var/tempo"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"tempo-tls": {
|
||||||
|
"id": "5d29fbba47097393ad8c663fbbdb9341d7fe0d986e0ce026d6e4a6fae55ce957",
|
||||||
|
"image": "sha256:26a33516c364a1810ee347db0e9987b0842a3ea14e3636b2adbdec7ddcb70e91",
|
||||||
|
"started_at": "2026-12-04T13:52:09.11484816Z",
|
||||||
|
"user": "app",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "container:f270935fdcdca7602bcffe6e40f492d82ca43bc34cb25b5ef85b766ff2c4fd99",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 67108864,
|
||||||
|
"cpu_limit": 250000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/config/gateway.json",
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"worker": {
|
||||||
|
"id": "f4e21fd9bedf8d25de1511be7f53e9647019ecd8d7853e8c3499d917b87fdf04",
|
||||||
|
"image": "sha256:26a33516c364a1810ee347db0e9987b0842a3ea14e3636b2adbdec7ddcb70e91",
|
||||||
|
"started_at": "2026-12-04T13:52:08.492782623Z",
|
||||||
|
"user": "app",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_private",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 1610612736,
|
||||||
|
"cpu_limit": 2000000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
PASS: lab7 public API scenario; infrastructure and grading evidence remain separate.
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"result": "PASS",
|
||||||
|
"probes": [
|
||||||
|
{
|
||||||
|
"datasource": "prometheus",
|
||||||
|
"status": 200
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"datasource": "loki",
|
||||||
|
"status": 200
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"datasource": "tempo",
|
||||||
|
"status": 200
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"CA_and_client_identity": "configured in runtime provisioning, tlsSkipVerify=false"
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"docker_version": "29.8.0",
|
||||||
|
"docker_cpus": 20,
|
||||||
|
"docker_memory_bytes": 8129261568,
|
||||||
|
"docker_os": "Docker Desktop",
|
||||||
|
"host_cpu": {
|
||||||
|
"Name": "12th Gen Intel(R) Core(TM) i7-12700H",
|
||||||
|
"NumberOfCores": 14,
|
||||||
|
"NumberOfLogicalProcessors": 20
|
||||||
|
},
|
||||||
|
"host_memory": 16788811776
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,34 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"file": "image-audit-before.json",
|
||||||
|
"image_id": "sha256:bfeb9df76d4465dbf6fadd878c0cfc7b2ffadf5497752e767f69d485cd7f26cc",
|
||||||
|
"os": {
|
||||||
|
"Family": "debian",
|
||||||
|
"Name": "12.12"
|
||||||
|
},
|
||||||
|
"vulnerabilities": 541,
|
||||||
|
"severity": {
|
||||||
|
"HIGH": 123,
|
||||||
|
"LOW": 172,
|
||||||
|
"MEDIUM": 218,
|
||||||
|
"UNKNOWN": 19,
|
||||||
|
"CRITICAL": 9
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"file": "image-audit.json",
|
||||||
|
"image_id": "sha256:eb54428c4fc93b9ebe34ac085e8db0fe50e4e811e8857d81518cd4476a0becff",
|
||||||
|
"os": {
|
||||||
|
"Family": "debian",
|
||||||
|
"Name": "12.15"
|
||||||
|
},
|
||||||
|
"vulnerabilities": 389,
|
||||||
|
"severity": {
|
||||||
|
"LOW": 129,
|
||||||
|
"HIGH": 84,
|
||||||
|
"MEDIUM": 162,
|
||||||
|
"UNKNOWN": 12,
|
||||||
|
"CRITICAL": 2
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"result": "PASS",
|
||||||
|
"unchanged_mandatory_files": 19,
|
||||||
|
"trust_matrix_filled_as_required": true,
|
||||||
|
"scanned_files": 144,
|
||||||
|
"private_value_leaks": 0,
|
||||||
|
"scope": "mtusi2026lab7 only",
|
||||||
|
"secrets_ignored": true
|
||||||
|
}
|
||||||
@@ -0,0 +1,293 @@
|
|||||||
|
{
|
||||||
|
"before": {
|
||||||
|
"api1": {
|
||||||
|
"cpu_seconds": 3.77,
|
||||||
|
"rss_bytes": 133382144
|
||||||
|
},
|
||||||
|
"api2": {
|
||||||
|
"cpu_seconds": 8.38,
|
||||||
|
"rss_bytes": 152092672
|
||||||
|
},
|
||||||
|
"worker": {
|
||||||
|
"cpu_seconds": 16.57,
|
||||||
|
"rss_bytes": 204451840
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"after": {
|
||||||
|
"api1": {
|
||||||
|
"cpu_seconds": 5.0600000000000005,
|
||||||
|
"rss_bytes": 134062080
|
||||||
|
},
|
||||||
|
"api2": {
|
||||||
|
"cpu_seconds": 9.73,
|
||||||
|
"rss_bytes": 151969792
|
||||||
|
},
|
||||||
|
"worker": {
|
||||||
|
"cpu_seconds": 19.22,
|
||||||
|
"rss_bytes": 204537856
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"wall_seconds": 50.196087000193074,
|
||||||
|
"CPU_cores": {
|
||||||
|
"api1": 0.025699214362964958,
|
||||||
|
"api2": 0.026894526658916798,
|
||||||
|
"worker": 0.0527929597378737
|
||||||
|
},
|
||||||
|
"cgroup_snapshots": [
|
||||||
|
{
|
||||||
|
"BlockIO": "0B / 0B",
|
||||||
|
"CPUPerc": "6.63%",
|
||||||
|
"Container": "532c6ae329cc57bfd3d63cf8d0a602211e543d90f331f151da115314f5ae0ade",
|
||||||
|
"ID": "532c6ae329cc",
|
||||||
|
"MemPerc": "13.77%",
|
||||||
|
"MemUsage": "105.7MiB / 768MiB",
|
||||||
|
"Name": "mtusi-lab7-api1-1",
|
||||||
|
"NetIO": "1.57MB / 1.95MB",
|
||||||
|
"PIDs": "11"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"BlockIO": "0B / 0B",
|
||||||
|
"CPUPerc": "0.29%",
|
||||||
|
"Container": "34908e170f1a6548a7f545d5439c20e793fb89e9d4c6c488ca5cd018843ee5a3",
|
||||||
|
"ID": "34908e170f1a",
|
||||||
|
"MemPerc": "26.92%",
|
||||||
|
"MemUsage": "17.23MiB / 64MiB",
|
||||||
|
"Name": "mtusi-lab7-api1-tls-1",
|
||||||
|
"NetIO": "1.57MB / 1.95MB",
|
||||||
|
"PIDs": "2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"BlockIO": "0B / 0B",
|
||||||
|
"CPUPerc": "1.52%",
|
||||||
|
"Container": "6eef4d4148ccfa23de7fcf73a1d9126a152f8f1f219e642f4ad2f20078a4d54c",
|
||||||
|
"ID": "6eef4d4148cc",
|
||||||
|
"MemPerc": "15.42%",
|
||||||
|
"MemUsage": "118.4MiB / 768MiB",
|
||||||
|
"Name": "mtusi-lab7-api2-1",
|
||||||
|
"NetIO": "3.38MB / 4.09MB",
|
||||||
|
"PIDs": "11"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"BlockIO": "0B / 0B",
|
||||||
|
"CPUPerc": "0.28%",
|
||||||
|
"Container": "1832d7e7c2761bac24ebdabfac2c5941fb148dc01466bdaeaa73f480995e83f7",
|
||||||
|
"ID": "1832d7e7c276",
|
||||||
|
"MemPerc": "27.39%",
|
||||||
|
"MemUsage": "17.53MiB / 64MiB",
|
||||||
|
"Name": "mtusi-lab7-api2-tls-1",
|
||||||
|
"NetIO": "3.38MB / 4.09MB",
|
||||||
|
"PIDs": "2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"BlockIO": "0B / 0B",
|
||||||
|
"CPUPerc": "0.37%",
|
||||||
|
"Container": "dd5f838ab57e313110ba96401feebf80b95b6269d8455619816c0851b9ce41b7",
|
||||||
|
"ID": "dd5f838ab57e",
|
||||||
|
"MemPerc": "1.93%",
|
||||||
|
"MemUsage": "3.711MiB / 192MiB",
|
||||||
|
"Name": "mtusi-lab7-broker-1",
|
||||||
|
"NetIO": "1.86MB / 2.24MB",
|
||||||
|
"PIDs": "6"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"BlockIO": "0B / 0B",
|
||||||
|
"CPUPerc": "0.72%",
|
||||||
|
"Container": "45712657cf6aa74aecdb83e68ca4b55ec2d7063da6c12396275ecfaf99ff7f47",
|
||||||
|
"ID": "45712657cf6a",
|
||||||
|
"MemPerc": "26.15%",
|
||||||
|
"MemUsage": "16.74MiB / 64MiB",
|
||||||
|
"Name": "mtusi-lab7-broker-tls-1",
|
||||||
|
"NetIO": "1.85MB / 2.24MB",
|
||||||
|
"PIDs": "2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"BlockIO": "0B / 205kB",
|
||||||
|
"CPUPerc": "0.14%",
|
||||||
|
"Container": "a2ef0627a88fff64d30b3b92a13a8f57e994ba2e69cb0e4c05693bb54a674eaf",
|
||||||
|
"ID": "a2ef0627a88f",
|
||||||
|
"MemPerc": "27.16%",
|
||||||
|
"MemUsage": "69.54MiB / 256MiB",
|
||||||
|
"Name": "mtusi-lab7-grafana-1",
|
||||||
|
"NetIO": "29.8kB / 36.2kB",
|
||||||
|
"PIDs": "23"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"BlockIO": "0B / 0B",
|
||||||
|
"CPUPerc": "0.00%",
|
||||||
|
"Container": "ee477e4d799b342c6834976342dcff68366aeccd5fc75c11928c1a0a120a00ba",
|
||||||
|
"ID": "ee477e4d799b",
|
||||||
|
"MemPerc": "25.31%",
|
||||||
|
"MemUsage": "16.2MiB / 64MiB",
|
||||||
|
"Name": "mtusi-lab7-grafana-tls-1",
|
||||||
|
"NetIO": "29.8kB / 36.2kB",
|
||||||
|
"PIDs": "2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"BlockIO": "0B / 0B",
|
||||||
|
"CPUPerc": "0.01%",
|
||||||
|
"Container": "500a6a03b063fa318b3f64c9f060964bdfbd0f8516cc5de286aaa3f70a0ea94f",
|
||||||
|
"ID": "500a6a03b063",
|
||||||
|
"MemPerc": "7.78%",
|
||||||
|
"MemUsage": "59.77MiB / 768MiB",
|
||||||
|
"Name": "mtusi-lab7-janitor-1",
|
||||||
|
"NetIO": "307kB / 299kB",
|
||||||
|
"PIDs": "6"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"BlockIO": "0B / 0B",
|
||||||
|
"CPUPerc": "0.49%",
|
||||||
|
"Container": "d5f5ba88c4fddb025c500e7e29e28aeb3aeea3bb805468a156b6218fe599488f",
|
||||||
|
"ID": "d5f5ba88c4fd",
|
||||||
|
"MemPerc": "22.54%",
|
||||||
|
"MemUsage": "21.64MiB / 96MiB",
|
||||||
|
"Name": "mtusi-lab7-lb-1",
|
||||||
|
"NetIO": "2.6MB / 3.67MB",
|
||||||
|
"PIDs": "21"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"BlockIO": "4.1kB / 242kB",
|
||||||
|
"CPUPerc": "0.45%",
|
||||||
|
"Container": "5cbd65367e95af418794d1ef8012c5808cd3ca8c7f08187b3cc97ced1e5a70eb",
|
||||||
|
"ID": "5cbd65367e95",
|
||||||
|
"MemPerc": "13.92%",
|
||||||
|
"MemUsage": "53.45MiB / 384MiB",
|
||||||
|
"Name": "mtusi-lab7-loki-1",
|
||||||
|
"NetIO": "365kB / 471kB",
|
||||||
|
"PIDs": "8"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"BlockIO": "0B / 0B",
|
||||||
|
"CPUPerc": "0.00%",
|
||||||
|
"Container": "173897fcf2e179448c5e3d9f73ce5d184042ae6e73a7b5d464e1fe5f4c6edaea",
|
||||||
|
"ID": "173897fcf2e1",
|
||||||
|
"MemPerc": "25.30%",
|
||||||
|
"MemUsage": "16.19MiB / 64MiB",
|
||||||
|
"Name": "mtusi-lab7-loki-tls-1",
|
||||||
|
"NetIO": "365kB / 471kB",
|
||||||
|
"PIDs": "2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"BlockIO": "0B / 3.11MB",
|
||||||
|
"CPUPerc": "0.78%",
|
||||||
|
"Container": "993d19a06c3f8cfeff7c6b25cb333172f0ecc1e16b6bd0d59580477965501fd1",
|
||||||
|
"ID": "993d19a06c3f",
|
||||||
|
"MemPerc": "14.87%",
|
||||||
|
"MemUsage": "28.56MiB / 192MiB",
|
||||||
|
"Name": "mtusi-lab7-openbao-1",
|
||||||
|
"NetIO": "1.12MB / 1.58MB",
|
||||||
|
"PIDs": "22"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"BlockIO": "0B / 0B",
|
||||||
|
"CPUPerc": "0.47%",
|
||||||
|
"Container": "8810f5a992854811a8c4928ff7df7623fab8336722c1778943de8d82b8990969",
|
||||||
|
"ID": "8810f5a99285",
|
||||||
|
"MemPerc": "24.90%",
|
||||||
|
"MemUsage": "63.75MiB / 256MiB",
|
||||||
|
"Name": "mtusi-lab7-otel-collector-1",
|
||||||
|
"NetIO": "4.76MB / 2.42MB",
|
||||||
|
"PIDs": "24"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"BlockIO": "0B / 0B",
|
||||||
|
"CPUPerc": "0.17%",
|
||||||
|
"Container": "97be90467f1af2b2c49ae6a7fb95cb6c23f5694dede794807040fb4797ac3b08",
|
||||||
|
"ID": "97be90467f1a",
|
||||||
|
"MemPerc": "33.51%",
|
||||||
|
"MemUsage": "21.45MiB / 64MiB",
|
||||||
|
"Name": "mtusi-lab7-otel-collector-tls-1",
|
||||||
|
"NetIO": "4.76MB / 2.42MB",
|
||||||
|
"PIDs": "2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"BlockIO": "0B / 1.72MB",
|
||||||
|
"CPUPerc": "2.86%",
|
||||||
|
"Container": "f2adbecefc27ca79e306e870eecdd91949dd395c9a8892d4fbba87b5675e2788",
|
||||||
|
"ID": "f2adbecefc27",
|
||||||
|
"MemPerc": "12.15%",
|
||||||
|
"MemUsage": "46.66MiB / 384MiB",
|
||||||
|
"Name": "mtusi-lab7-postgres-1",
|
||||||
|
"NetIO": "1.77MB / 2.04MB",
|
||||||
|
"PIDs": "16"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"BlockIO": "0B / 483kB",
|
||||||
|
"CPUPerc": "0.25%",
|
||||||
|
"Container": "f8c7c861e674a7d3bac16ddf0776cfe5b04bb580f4315e14b30b11e649e94798",
|
||||||
|
"ID": "f8c7c861e674",
|
||||||
|
"MemPerc": "13.24%",
|
||||||
|
"MemUsage": "33.88MiB / 256MiB",
|
||||||
|
"Name": "mtusi-lab7-prometheus-1",
|
||||||
|
"NetIO": "688kB / 177kB",
|
||||||
|
"PIDs": "12"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"BlockIO": "0B / 0B",
|
||||||
|
"CPUPerc": "0.00%",
|
||||||
|
"Container": "46e6a1be537b3153a5c4a9c05828e3572d05aade05eb06cfd24b263d3df29240",
|
||||||
|
"ID": "46e6a1be537b",
|
||||||
|
"MemPerc": "25.31%",
|
||||||
|
"MemUsage": "16.2MiB / 64MiB",
|
||||||
|
"Name": "mtusi-lab7-prometheus-tls-1",
|
||||||
|
"NetIO": "688kB / 177kB",
|
||||||
|
"PIDs": "2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"BlockIO": "0B / 0B",
|
||||||
|
"CPUPerc": "0.53%",
|
||||||
|
"Container": "0bac01f00c75e16c8f9f909cb7ffd3a1baf99ff7e1f831930da6b2f912c998c2",
|
||||||
|
"ID": "0bac01f00c75",
|
||||||
|
"MemPerc": "6.26%",
|
||||||
|
"MemUsage": "48.09MiB / 768MiB",
|
||||||
|
"Name": "mtusi-lab7-publisher-1",
|
||||||
|
"NetIO": "1.65MB / 1.9MB",
|
||||||
|
"PIDs": "11"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"BlockIO": "0B / 983kB",
|
||||||
|
"CPUPerc": "0.31%",
|
||||||
|
"Container": "8d91f81edb659e2f4cd398b2e5d6afb70df178eef34b22f3b3f7be52cd612135",
|
||||||
|
"ID": "8d91f81edb65",
|
||||||
|
"MemPerc": "66.65%",
|
||||||
|
"MemUsage": "255.9MiB / 384MiB",
|
||||||
|
"Name": "mtusi-lab7-s3-1",
|
||||||
|
"NetIO": "2.06MB / 2.02MB",
|
||||||
|
"PIDs": "25"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"BlockIO": "0B / 3.74MB",
|
||||||
|
"CPUPerc": "0.16%",
|
||||||
|
"Container": "f270935fdcdca7602bcffe6e40f492d82ca43bc34cb25b5ef85b766ff2c4fd99",
|
||||||
|
"ID": "f270935fdcdc",
|
||||||
|
"MemPerc": "43.79%",
|
||||||
|
"MemUsage": "224.2MiB / 512MiB",
|
||||||
|
"Name": "mtusi-lab7-tempo-1",
|
||||||
|
"NetIO": "579kB / 144kB",
|
||||||
|
"PIDs": "8"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"BlockIO": "0B / 0B",
|
||||||
|
"CPUPerc": "0.05%",
|
||||||
|
"Container": "a8fea0679dcad4ea1cc0a0fee264f4238360f6c41901535267aca170477093a4",
|
||||||
|
"ID": "a8fea0679dca",
|
||||||
|
"MemPerc": "26.08%",
|
||||||
|
"MemUsage": "16.69MiB / 64MiB",
|
||||||
|
"Name": "mtusi-lab7-tempo-tls-1",
|
||||||
|
"NetIO": "579kB / 144kB",
|
||||||
|
"PIDs": "2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"BlockIO": "0B / 0B",
|
||||||
|
"CPUPerc": "2.24%",
|
||||||
|
"Container": "149ef6a239a02c9ec371f35a899822fa6bf00b2bb247cc564b240587cd093de4",
|
||||||
|
"ID": "149ef6a239a0",
|
||||||
|
"MemPerc": "6.98%",
|
||||||
|
"MemUsage": "107.2MiB / 1.5GiB",
|
||||||
|
"Name": "mtusi-lab7-worker-1",
|
||||||
|
"NetIO": "3.33MB / 3.06MB",
|
||||||
|
"PIDs": "16"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"clock_resolution_seconds": 1e-07,
|
||||||
|
"limitation": "Process snapshots include child workers, exclude client, DB, TLS sidecars and Collector from API CPU; container snapshots cover those separately. RSS is end snapshot, not worst-case peak."
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"lab": 7,
|
||||||
|
"workload": "closed-loop POST messages; no automatic retries",
|
||||||
|
"requested_duration_seconds": 30.0,
|
||||||
|
"elapsed_seconds": 31.162,
|
||||||
|
"concurrency": 4,
|
||||||
|
"successful_requests": 60,
|
||||||
|
"failed_requests": 0,
|
||||||
|
"error_ratio": 0.0,
|
||||||
|
"successful_rps": 1.925,
|
||||||
|
"successful_latency_ms": {
|
||||||
|
"p50": 2075.223,
|
||||||
|
"p95": 2090.692,
|
||||||
|
"p99": 2099.984
|
||||||
|
},
|
||||||
|
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"lab": 7,
|
||||||
|
"workload": "closed-loop POST messages; no automatic retries",
|
||||||
|
"requested_duration_seconds": 30.0,
|
||||||
|
"elapsed_seconds": 31.162,
|
||||||
|
"concurrency": 4,
|
||||||
|
"successful_requests": 60,
|
||||||
|
"failed_requests": 0,
|
||||||
|
"error_ratio": 0.0,
|
||||||
|
"successful_rps": 1.925,
|
||||||
|
"successful_latency_ms": {
|
||||||
|
"p50": 2075.223,
|
||||||
|
"p95": 2090.692,
|
||||||
|
"p99": 2099.984
|
||||||
|
},
|
||||||
|
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"result": "PASS",
|
||||||
|
"probes": [
|
||||||
|
{
|
||||||
|
"header": "traceparent",
|
||||||
|
"invalid_byte": "ff",
|
||||||
|
"status": 200
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"header": "tracestate",
|
||||||
|
"invalid_byte": "ff",
|
||||||
|
"status": 200
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
|
||||||
|
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"result": "PASS",
|
||||||
|
"malicious_header_bytes": 1048577,
|
||||||
|
"iterations": 100,
|
||||||
|
"duration_seconds": 5.336199956218479e-05,
|
||||||
|
"entry_points": [
|
||||||
|
"HTTP",
|
||||||
|
"consumer",
|
||||||
|
"relay"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,230 @@
|
|||||||
|
{
|
||||||
|
"result": "PASS",
|
||||||
|
"restored_count": 37,
|
||||||
|
"all_previously_running_containers_restored": true,
|
||||||
|
"no_volumes_removed": true,
|
||||||
|
"containers": [
|
||||||
|
{
|
||||||
|
"id": "1fbdc803701de7aae9302d57d54af5bfa87b6e33a9935b5d9dd2453082492e9b",
|
||||||
|
"name": "/mtusi-lab3-api-8",
|
||||||
|
"project": "mtusi-lab3",
|
||||||
|
"running": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "3cce86c2250ea5d5e903a80501ed915e0bbfa1286eda6ab60e7e8ddfa567fae6",
|
||||||
|
"name": "/mtusi-lab3-api-7",
|
||||||
|
"project": "mtusi-lab3",
|
||||||
|
"running": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "8712c3383d25a9c64637cca8ec72296831cf7a04808efc39634d1f0f49dfc95a",
|
||||||
|
"name": "/mtusi-lab2-api-1",
|
||||||
|
"project": "mtusi-lab2",
|
||||||
|
"running": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "4a132cc60729525b3573582a3b2097f6e4f12ab5b11271dcbe2f49bea7ea5d21",
|
||||||
|
"name": "/mtusi-lab6-publisher-1",
|
||||||
|
"project": "mtusi-lab6",
|
||||||
|
"running": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "c0d42a5d005cb6af990b2421ac72cf0a61c00444ab31a026a40e5d85cc06e937",
|
||||||
|
"name": "/mtusi-lab6-api1-1",
|
||||||
|
"project": "mtusi-lab6",
|
||||||
|
"running": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "71c7ea6884bfff9a99b48c57dff7b037c67f9311b23b9127b819a1d0cdd59dbb",
|
||||||
|
"name": "/mtusi-lab6-api2-1",
|
||||||
|
"project": "mtusi-lab6",
|
||||||
|
"running": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "9b5ac74a75647841ffbba89b9f9581ebc0d909db67ee903bb95d9eed7579591a",
|
||||||
|
"name": "/mtusi-lab6-worker-1",
|
||||||
|
"project": "mtusi-lab6",
|
||||||
|
"running": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "231f69c684202ee9699c13165d089d2ed33f893ccfa603887f62b93a6bc529ea",
|
||||||
|
"name": "/mtusi-lab6-janitor-1",
|
||||||
|
"project": "mtusi-lab6",
|
||||||
|
"running": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "86ca54f8560f0b5cf0b4aa6b41f7a9cf0849dfedf06eed401bd4548cfab9eef0",
|
||||||
|
"name": "/mtusi-lab6-otel-collector-1",
|
||||||
|
"project": "mtusi-lab6",
|
||||||
|
"running": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "c902d3972efc90fa9518897ffe8c47faebd41c29946e8f51ebc3c049f3ba8619",
|
||||||
|
"name": "/mtusi-lab6-grafana-1",
|
||||||
|
"project": "mtusi-lab6",
|
||||||
|
"running": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "b9499b204edf05c17637e0d4c4873e0f2d77567796f12db9f690beda0da693fd",
|
||||||
|
"name": "/mtusi-lab6-lb-1",
|
||||||
|
"project": "mtusi-lab6",
|
||||||
|
"running": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "96822b4e094537e4dd2645e64b4eba722a758468f6126bbcee3988f6ffa75a4e",
|
||||||
|
"name": "/mtusi-lab6-loki-1",
|
||||||
|
"project": "mtusi-lab6",
|
||||||
|
"running": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "0250edff31252c323d5fc92bacf6c6e709a2667a87141848ed7b1aadcb85f537",
|
||||||
|
"name": "/mtusi-lab6-prometheus-1",
|
||||||
|
"project": "mtusi-lab6",
|
||||||
|
"running": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "7934d27169ed819b94b837d1438225121a1c0a0c73d7f8044e5720c81e901308",
|
||||||
|
"name": "/mtusi-lab6-tempo-1",
|
||||||
|
"project": "mtusi-lab6",
|
||||||
|
"running": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "9513500e3c000d1e767890301d4b04e3413a413b3c10391b9d43314e71cffddb",
|
||||||
|
"name": "/mtusi-lab6-broker-1",
|
||||||
|
"project": "mtusi-lab6",
|
||||||
|
"running": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "9b0569428492613b55de895dc211f94c014c505c426d348ee4b0b0a952d0f1a1",
|
||||||
|
"name": "/mtusi-lab6-s3-1",
|
||||||
|
"project": "mtusi-lab6",
|
||||||
|
"running": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "401bd69228ba460eaf9c0dbc13cce5ccbba6f930fba3616109929c274167d52a",
|
||||||
|
"name": "/mtusi-lab6-postgres-1",
|
||||||
|
"project": "mtusi-lab6",
|
||||||
|
"running": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "cdb2985b7a90d988a472e3a95575b40210a668a5e03f3c61e1eee808c9207602",
|
||||||
|
"name": "/mtusi-lab5-api2-1",
|
||||||
|
"project": "mtusi-lab5",
|
||||||
|
"running": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "08f43d66ffc93acb166e6b22e086481c5cc68c5ba4c71b07ed7d07d8f852221a",
|
||||||
|
"name": "/mtusi-lab5-publisher-1",
|
||||||
|
"project": "mtusi-lab5",
|
||||||
|
"running": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "e5506ad77a3e78452a2b6236940e6f1a88dcc09a1130615ed372895058e1007f",
|
||||||
|
"name": "/mtusi-lab5-api1-1",
|
||||||
|
"project": "mtusi-lab5",
|
||||||
|
"running": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "54f793a1d24d2007fb51a0e4fa05d5891b8da36ab4db1e0cc27e47305559fbef",
|
||||||
|
"name": "/mtusi-lab5-janitor-1",
|
||||||
|
"project": "mtusi-lab5",
|
||||||
|
"running": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "0087f01d5747626eec0ec61e83df1863523448499e940beb70b31339c5103940",
|
||||||
|
"name": "/mtusi-lab5-worker-1",
|
||||||
|
"project": "mtusi-lab5",
|
||||||
|
"running": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "8f0f73c4ac37cc26c36aec49b228f1f143bbaa68e5ba97ccfe9737b38dc9e325",
|
||||||
|
"name": "/mtusi-lab5-lb-1",
|
||||||
|
"project": "mtusi-lab5",
|
||||||
|
"running": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "60e5fffbf85d87f2bccc121186222b5870b271e031a80592a985fe5be3561243",
|
||||||
|
"name": "/mtusi-lab5-broker-1",
|
||||||
|
"project": "mtusi-lab5",
|
||||||
|
"running": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "bbe0711ca3dd7531626aebc36f6f76e3356b462d311b395249a01d162e1cd4bc",
|
||||||
|
"name": "/mtusi-lab5-postgres-1",
|
||||||
|
"project": "mtusi-lab5",
|
||||||
|
"running": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "481e131cee68518b2e3b5c9f06738d2aab54a80dbf89c93d0a32da328ab0d6bc",
|
||||||
|
"name": "/mtusi-lab5-s3-1",
|
||||||
|
"project": "mtusi-lab5",
|
||||||
|
"running": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "3bad34fc48819516ebfbdd75b38d1c8e015418216fc0a106920172bc7014de3b",
|
||||||
|
"name": "/mtusi-lab4-api2-1",
|
||||||
|
"project": "mtusi-lab4",
|
||||||
|
"running": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "c261c7a76d99e33717ab14bd829013abb72a7226f4c2a2e2d2d98f59a19a2254",
|
||||||
|
"name": "/mtusi-lab4-api1-1",
|
||||||
|
"project": "mtusi-lab4",
|
||||||
|
"running": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "13ca0b06c44b8a23cd1111cbb2cbb8a30738d912af44952758c25527bf9d4432",
|
||||||
|
"name": "/mtusi-lab4-sweeper-1",
|
||||||
|
"project": "mtusi-lab4",
|
||||||
|
"running": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "5212e3bd02c59415565ed467301d4b70bacc4a7bfa7d77bc00087aae69f3baef",
|
||||||
|
"name": "/mtusi-lab4-lb-1",
|
||||||
|
"project": "mtusi-lab4",
|
||||||
|
"running": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "5f5654ba8e789dab79538e2b7a193d0615fcf593b4a2f0f9e107dc09bfa022e2",
|
||||||
|
"name": "/mtusi-lab4-postgres-1",
|
||||||
|
"project": "mtusi-lab4",
|
||||||
|
"running": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "1ee6a1570389be81c97ca01c2c87d4b6be02d5365fc3854635d92ffb6dbbf73e",
|
||||||
|
"name": "/mtusi-lab4-s3-1",
|
||||||
|
"project": "mtusi-lab4",
|
||||||
|
"running": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "0d69ca2aa51613f9b44260baa70e2113af65837f53373e3ccdc0eedb30919f49",
|
||||||
|
"name": "/mtusi-lab3-lb-1",
|
||||||
|
"project": "mtusi-lab3",
|
||||||
|
"running": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "05b93b52717949c66da25769121816d5ab21f8cfe0d2eee6849f5d663b22f9e3",
|
||||||
|
"name": "/mtusi-lab3-postgres-1",
|
||||||
|
"project": "mtusi-lab3",
|
||||||
|
"running": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "b47d70b5286f44c852fc31f7a8f25e436beef35cdbdac514249609a5ea440807",
|
||||||
|
"name": "/mtusi-lab3-redis-1",
|
||||||
|
"project": "mtusi-lab3",
|
||||||
|
"running": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "1543f104c8a8e6c5f198f5b942014c0e5ef95bf627210975c01d7f36b76cc7be",
|
||||||
|
"name": "/mtusi-lab2-postgres-1",
|
||||||
|
"project": "mtusi-lab2",
|
||||||
|
"running": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "1e84e689b4244d86e68d64e517d57a2548955aa2739db83146c3d302833bb853",
|
||||||
|
"name": "/mtusi-lab2-redis-1",
|
||||||
|
"project": "mtusi-lab2",
|
||||||
|
"running": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"result": "PASS",
|
||||||
|
"denied": [
|
||||||
|
"old cert auth denied",
|
||||||
|
"old token denied",
|
||||||
|
"old serial denied by gateway",
|
||||||
|
"old DB password denied",
|
||||||
|
"old S3 secret denied",
|
||||||
|
"old broker password denied"
|
||||||
|
],
|
||||||
|
"new_worker_cert_auth": true,
|
||||||
|
"new_broker_credentials": true,
|
||||||
|
"images_rebuilt": false
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"python": "3.12.16 (main, Nov 24 2026, 05:00:45) [GCC 12.2.0]", "openssl": "OpenSSL 3.0.22 25 Aug 2026", "platform": "Linux-6.18.33.2-microsoft-standard-WSL2-x86_64-with-glibc2.36"}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
sha256:26a33516c364a1810ee347db0e9987b0842a3ea14e3636b2adbdec7ddcb70e91
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
Checking verified TLS api1 8443
|
||||||
|
Checking verified TLS api2 8443
|
||||||
|
Checking verified TLS broker 6380
|
||||||
|
Checking verified TLS otel-collector 4319
|
||||||
|
Checking verified TLS otel-collector 8890
|
||||||
|
Checking verified TLS prometheus 9443
|
||||||
|
Checking verified TLS loki 3443
|
||||||
|
Checking verified TLS tempo 3443
|
||||||
|
Checking verified TLS tempo 4438
|
||||||
|
PASS: full TLS/mTLS matrix, wrong identities and plaintext bypasses
|
||||||
|
PASS: scoped Bao, DB, S3 and broker allow/deny
|
||||||
|
PASS: ACL/expiry/logout/rehash/shared rate limit/Argon2 measurements
|
||||||
|
PASS: expired Bao token denied; certificate re-auth issues new short-lived token
|
||||||
|
PASS: Grafana store identities can query, cannot ingest/admin or bypass with HTTP pipelining
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
PASS: lab7 public API scenario; infrastructure and grading evidence remain separate.
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
{
|
||||||
|
"result": "PASS",
|
||||||
|
"write_admin_denied": [
|
||||||
|
{
|
||||||
|
"client": "grafana",
|
||||||
|
"path": "/otlp/v1/logs",
|
||||||
|
"server": "loki",
|
||||||
|
"status": 403
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"client": "grafana",
|
||||||
|
"path": "/flush",
|
||||||
|
"server": "tempo",
|
||||||
|
"status": 403
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"client": "grafana",
|
||||||
|
"path": "/api/v1/admin/tsdb/delete_series",
|
||||||
|
"server": "prometheus",
|
||||||
|
"status": 403
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"pipelined_second_request_blocked": true
|
||||||
|
}
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
1fbdc803701d mtusi-lab3-api-8 mtusi-lab3
|
||||||
|
3cce86c2250e mtusi-lab3-api-7 mtusi-lab3
|
||||||
|
8712c3383d25 mtusi-lab2-api-1 mtusi-lab2
|
||||||
|
4a132cc60729 mtusi-lab6-publisher-1 mtusi-lab6
|
||||||
|
c0d42a5d005c mtusi-lab6-api1-1 mtusi-lab6
|
||||||
|
71c7ea6884bf mtusi-lab6-api2-1 mtusi-lab6
|
||||||
|
9b5ac74a7564 mtusi-lab6-worker-1 mtusi-lab6
|
||||||
|
231f69c68420 mtusi-lab6-janitor-1 mtusi-lab6
|
||||||
|
86ca54f8560f mtusi-lab6-otel-collector-1 mtusi-lab6
|
||||||
|
c902d3972efc mtusi-lab6-grafana-1 mtusi-lab6
|
||||||
|
b9499b204edf mtusi-lab6-lb-1 mtusi-lab6
|
||||||
|
96822b4e0945 mtusi-lab6-loki-1 mtusi-lab6
|
||||||
|
0250edff3125 mtusi-lab6-prometheus-1 mtusi-lab6
|
||||||
|
7934d27169ed mtusi-lab6-tempo-1 mtusi-lab6
|
||||||
|
9513500e3c00 mtusi-lab6-broker-1 mtusi-lab6
|
||||||
|
9b0569428492 mtusi-lab6-s3-1 mtusi-lab6
|
||||||
|
401bd69228ba mtusi-lab6-postgres-1 mtusi-lab6
|
||||||
|
cdb2985b7a90 mtusi-lab5-api2-1 mtusi-lab5
|
||||||
|
08f43d66ffc9 mtusi-lab5-publisher-1 mtusi-lab5
|
||||||
|
e5506ad77a3e mtusi-lab5-api1-1 mtusi-lab5
|
||||||
|
54f793a1d24d mtusi-lab5-janitor-1 mtusi-lab5
|
||||||
|
0087f01d5747 mtusi-lab5-worker-1 mtusi-lab5
|
||||||
|
8f0f73c4ac37 mtusi-lab5-lb-1 mtusi-lab5
|
||||||
|
60e5fffbf85d mtusi-lab5-broker-1 mtusi-lab5
|
||||||
|
bbe0711ca3dd mtusi-lab5-postgres-1 mtusi-lab5
|
||||||
|
481e131cee68 mtusi-lab5-s3-1 mtusi-lab5
|
||||||
|
3bad34fc4881 mtusi-lab4-api2-1 mtusi-lab4
|
||||||
|
c261c7a76d99 mtusi-lab4-api1-1 mtusi-lab4
|
||||||
|
13ca0b06c44b mtusi-lab4-sweeper-1 mtusi-lab4
|
||||||
|
5212e3bd02c5 mtusi-lab4-lb-1 mtusi-lab4
|
||||||
|
5f5654ba8e78 mtusi-lab4-postgres-1 mtusi-lab4
|
||||||
|
1ee6a1570389 mtusi-lab4-s3-1 mtusi-lab4
|
||||||
|
0d69ca2aa516 mtusi-lab3-lb-1 mtusi-lab3
|
||||||
|
05b93b527179 mtusi-lab3-postgres-1 mtusi-lab3
|
||||||
|
b47d70b5286f mtusi-lab3-redis-1 mtusi-lab3
|
||||||
|
1543f104c8a8 mtusi-lab2-postgres-1 mtusi-lab2
|
||||||
|
1e84e689b424 mtusi-lab2-redis-1 mtusi-lab2
|
||||||
@@ -0,0 +1,364 @@
|
|||||||
|
{
|
||||||
|
"result": "PASS",
|
||||||
|
"probes": [
|
||||||
|
{
|
||||||
|
"host": "api1",
|
||||||
|
"port": 8443,
|
||||||
|
"client": "none",
|
||||||
|
"result": "DENIED",
|
||||||
|
"stage": "identity_eof"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "api1",
|
||||||
|
"port": 8443,
|
||||||
|
"client": "foreign",
|
||||||
|
"result": "DENIED",
|
||||||
|
"stage": "identity_eof"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "api1",
|
||||||
|
"port": 8443,
|
||||||
|
"client": "intruder",
|
||||||
|
"result": "DENIED",
|
||||||
|
"stage": "identity_eof"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "api1",
|
||||||
|
"port": 8443,
|
||||||
|
"client": "expired",
|
||||||
|
"result": "DENIED",
|
||||||
|
"stage": "identity_eof"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "api1",
|
||||||
|
"port": 8443,
|
||||||
|
"client": "lb",
|
||||||
|
"result": "ALLOWED"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "api2",
|
||||||
|
"port": 8443,
|
||||||
|
"client": "none",
|
||||||
|
"result": "DENIED",
|
||||||
|
"stage": "identity_eof"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "api2",
|
||||||
|
"port": 8443,
|
||||||
|
"client": "foreign",
|
||||||
|
"result": "DENIED",
|
||||||
|
"stage": "identity_eof"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "api2",
|
||||||
|
"port": 8443,
|
||||||
|
"client": "intruder",
|
||||||
|
"result": "DENIED",
|
||||||
|
"stage": "identity_eof"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "api2",
|
||||||
|
"port": 8443,
|
||||||
|
"client": "expired",
|
||||||
|
"result": "DENIED",
|
||||||
|
"stage": "identity_eof"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "api2",
|
||||||
|
"port": 8443,
|
||||||
|
"client": "lb",
|
||||||
|
"result": "ALLOWED"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "broker",
|
||||||
|
"port": 6380,
|
||||||
|
"client": "none",
|
||||||
|
"result": "DENIED",
|
||||||
|
"stage": "identity_eof"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "broker",
|
||||||
|
"port": 6380,
|
||||||
|
"client": "foreign",
|
||||||
|
"result": "DENIED",
|
||||||
|
"stage": "identity_eof"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "broker",
|
||||||
|
"port": 6380,
|
||||||
|
"client": "intruder",
|
||||||
|
"result": "DENIED",
|
||||||
|
"stage": "identity_eof"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "broker",
|
||||||
|
"port": 6380,
|
||||||
|
"client": "expired",
|
||||||
|
"result": "DENIED",
|
||||||
|
"stage": "identity_eof"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "broker",
|
||||||
|
"port": 6380,
|
||||||
|
"client": "worker",
|
||||||
|
"result": "ALLOWED"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "otel-collector",
|
||||||
|
"port": 4319,
|
||||||
|
"client": "none",
|
||||||
|
"result": "DENIED",
|
||||||
|
"stage": "identity_eof"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "otel-collector",
|
||||||
|
"port": 4319,
|
||||||
|
"client": "foreign",
|
||||||
|
"result": "DENIED",
|
||||||
|
"stage": "identity_eof"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "otel-collector",
|
||||||
|
"port": 4319,
|
||||||
|
"client": "intruder",
|
||||||
|
"result": "DENIED",
|
||||||
|
"stage": "identity_eof"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "otel-collector",
|
||||||
|
"port": 4319,
|
||||||
|
"client": "expired",
|
||||||
|
"result": "DENIED",
|
||||||
|
"stage": "identity_eof"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "otel-collector",
|
||||||
|
"port": 4319,
|
||||||
|
"client": "api1",
|
||||||
|
"result": "ALLOWED"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "otel-collector",
|
||||||
|
"port": 8890,
|
||||||
|
"client": "none",
|
||||||
|
"result": "DENIED",
|
||||||
|
"stage": "identity_eof"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "otel-collector",
|
||||||
|
"port": 8890,
|
||||||
|
"client": "foreign",
|
||||||
|
"result": "DENIED",
|
||||||
|
"stage": "identity_eof"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "otel-collector",
|
||||||
|
"port": 8890,
|
||||||
|
"client": "intruder",
|
||||||
|
"result": "DENIED",
|
||||||
|
"stage": "identity_eof"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "otel-collector",
|
||||||
|
"port": 8890,
|
||||||
|
"client": "expired",
|
||||||
|
"result": "DENIED",
|
||||||
|
"stage": "identity_eof"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "otel-collector",
|
||||||
|
"port": 8890,
|
||||||
|
"client": "prometheus",
|
||||||
|
"result": "ALLOWED"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "prometheus",
|
||||||
|
"port": 9443,
|
||||||
|
"client": "none",
|
||||||
|
"result": "DENIED",
|
||||||
|
"stage": "identity_eof"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "prometheus",
|
||||||
|
"port": 9443,
|
||||||
|
"client": "foreign",
|
||||||
|
"result": "DENIED",
|
||||||
|
"stage": "identity_eof"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "prometheus",
|
||||||
|
"port": 9443,
|
||||||
|
"client": "intruder",
|
||||||
|
"result": "DENIED",
|
||||||
|
"stage": "identity_eof"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "prometheus",
|
||||||
|
"port": 9443,
|
||||||
|
"client": "expired",
|
||||||
|
"result": "DENIED",
|
||||||
|
"stage": "identity_eof"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "prometheus",
|
||||||
|
"port": 9443,
|
||||||
|
"client": "grafana",
|
||||||
|
"result": "ALLOWED"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "loki",
|
||||||
|
"port": 3443,
|
||||||
|
"client": "none",
|
||||||
|
"result": "DENIED",
|
||||||
|
"stage": "identity_eof"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "loki",
|
||||||
|
"port": 3443,
|
||||||
|
"client": "foreign",
|
||||||
|
"result": "DENIED",
|
||||||
|
"stage": "identity_eof"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "loki",
|
||||||
|
"port": 3443,
|
||||||
|
"client": "intruder",
|
||||||
|
"result": "DENIED",
|
||||||
|
"stage": "identity_eof"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "loki",
|
||||||
|
"port": 3443,
|
||||||
|
"client": "expired",
|
||||||
|
"result": "DENIED",
|
||||||
|
"stage": "identity_eof"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "loki",
|
||||||
|
"port": 3443,
|
||||||
|
"client": "grafana",
|
||||||
|
"result": "ALLOWED"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "tempo",
|
||||||
|
"port": 3443,
|
||||||
|
"client": "none",
|
||||||
|
"result": "DENIED",
|
||||||
|
"stage": "identity_eof"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "tempo",
|
||||||
|
"port": 3443,
|
||||||
|
"client": "foreign",
|
||||||
|
"result": "DENIED",
|
||||||
|
"stage": "identity_eof"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "tempo",
|
||||||
|
"port": 3443,
|
||||||
|
"client": "intruder",
|
||||||
|
"result": "DENIED",
|
||||||
|
"stage": "identity_eof"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "tempo",
|
||||||
|
"port": 3443,
|
||||||
|
"client": "expired",
|
||||||
|
"result": "DENIED",
|
||||||
|
"stage": "identity_eof"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "tempo",
|
||||||
|
"port": 3443,
|
||||||
|
"client": "grafana",
|
||||||
|
"result": "ALLOWED"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "tempo",
|
||||||
|
"port": 4438,
|
||||||
|
"client": "none",
|
||||||
|
"result": "DENIED",
|
||||||
|
"stage": "identity_eof"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "tempo",
|
||||||
|
"port": 4438,
|
||||||
|
"client": "foreign",
|
||||||
|
"result": "DENIED",
|
||||||
|
"stage": "identity_eof"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "tempo",
|
||||||
|
"port": 4438,
|
||||||
|
"client": "intruder",
|
||||||
|
"result": "DENIED",
|
||||||
|
"stage": "identity_eof"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "tempo",
|
||||||
|
"port": 4438,
|
||||||
|
"client": "expired",
|
||||||
|
"result": "DENIED",
|
||||||
|
"stage": "identity_eof"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "tempo",
|
||||||
|
"port": 4438,
|
||||||
|
"client": "otel-collector",
|
||||||
|
"result": "ALLOWED"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"plaintext_bypasses": [
|
||||||
|
{
|
||||||
|
"host": "api1",
|
||||||
|
"port": 8080,
|
||||||
|
"result": "blocked"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "api2",
|
||||||
|
"port": 8080,
|
||||||
|
"result": "blocked"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "broker",
|
||||||
|
"port": 6379,
|
||||||
|
"result": "blocked"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "otel-collector",
|
||||||
|
"port": 4318,
|
||||||
|
"result": "blocked"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "otel-collector",
|
||||||
|
"port": 8889,
|
||||||
|
"result": "blocked"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "prometheus",
|
||||||
|
"port": 9090,
|
||||||
|
"result": "blocked"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "loki",
|
||||||
|
"port": 3100,
|
||||||
|
"result": "blocked"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "tempo",
|
||||||
|
"port": 3200,
|
||||||
|
"result": "blocked"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "tempo",
|
||||||
|
"port": 4318,
|
||||||
|
"result": "blocked"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"host": "grafana",
|
||||||
|
"port": 3000,
|
||||||
|
"result": "blocked"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"wrong_hostname": "DENIED"
|
||||||
|
}
|
||||||
@@ -0,0 +1,256 @@
|
|||||||
|
{
|
||||||
|
"status": "success",
|
||||||
|
"data": {
|
||||||
|
"resultType": "streams",
|
||||||
|
"result": [
|
||||||
|
{
|
||||||
|
"stream": {
|
||||||
|
"code_filepath": "/app/src/telemetry.py",
|
||||||
|
"code_function": "event",
|
||||||
|
"code_lineno": "160",
|
||||||
|
"deployment_environment_name": "lab",
|
||||||
|
"detected_level": "info",
|
||||||
|
"event": "http.completed",
|
||||||
|
"flags": "1",
|
||||||
|
"http_method": "POST",
|
||||||
|
"http_route": "/api/v1/chats/{chat_id}/attachments",
|
||||||
|
"http_status": "202",
|
||||||
|
"observed_timestamp": "1796392414707707081",
|
||||||
|
"request_id": "e3d9f05c2b5c4ab78863ef02c0af3dac",
|
||||||
|
"scope_name": "messenger.telemetry",
|
||||||
|
"service_instance_id": "api2-7",
|
||||||
|
"service_name": "messenger-api",
|
||||||
|
"service_version": "7.0.0",
|
||||||
|
"severity_number": "9",
|
||||||
|
"severity_text": "INFO",
|
||||||
|
"span_id": "86895eaca8a28b7d",
|
||||||
|
"telemetry_sdk_language": "python",
|
||||||
|
"telemetry_sdk_name": "opentelemetry",
|
||||||
|
"telemetry_sdk_version": "1.31.1",
|
||||||
|
"trace_id": "75f2acdcc54d8ee921b67b94d6036ffd"
|
||||||
|
},
|
||||||
|
"values": [
|
||||||
|
[
|
||||||
|
"1796392414707674368",
|
||||||
|
"{\"timestamp\":\"2026-12-04T13:53:34.707631+00:00\",\"severity\":\"INFO\",\"service.name\":\"messenger-api\",\"event\":\"http.completed\",\"trace_id\":\"75f2acdcc54d8ee921b67b94d6036ffd\",\"span_id\":\"86895eaca8a28b7d\",\"request_id\":\"e3d9f05c2b5c4ab78863ef02c0af3dac\",\"http_method\":\"POST\",\"http_route\":\"/api/v1/chats/{chat_id}/attachments\",\"http_status\":202}"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"stream": {
|
||||||
|
"attempt": "1",
|
||||||
|
"code_filepath": "/app/src/telemetry.py",
|
||||||
|
"code_function": "event",
|
||||||
|
"code_lineno": "160",
|
||||||
|
"deployment_environment_name": "lab",
|
||||||
|
"detected_level": "info",
|
||||||
|
"event": "job.published",
|
||||||
|
"flags": "1",
|
||||||
|
"job_type": "attachment.process.v1",
|
||||||
|
"observed_timestamp": "1796392415012010308",
|
||||||
|
"scope_name": "messenger.telemetry",
|
||||||
|
"service_instance_id": "publisher-7",
|
||||||
|
"service_name": "messenger-publisher",
|
||||||
|
"service_version": "7.0.0",
|
||||||
|
"severity_number": "9",
|
||||||
|
"severity_text": "INFO",
|
||||||
|
"span_id": "56481d9c1ecf12cc",
|
||||||
|
"telemetry_sdk_language": "python",
|
||||||
|
"telemetry_sdk_name": "opentelemetry",
|
||||||
|
"telemetry_sdk_version": "1.31.1",
|
||||||
|
"trace_id": "75f2acdcc54d8ee921b67b94d6036ffd"
|
||||||
|
},
|
||||||
|
"values": [
|
||||||
|
[
|
||||||
|
"1796392415011962880",
|
||||||
|
"{\"timestamp\":\"2026-12-04T13:53:35.011901+00:00\",\"severity\":\"INFO\",\"service.name\":\"messenger-publisher\",\"event\":\"job.published\",\"trace_id\":\"75f2acdcc54d8ee921b67b94d6036ffd\",\"span_id\":\"56481d9c1ecf12cc\",\"job_type\":\"attachment.process.v1\",\"attempt\":1}"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"stream": {
|
||||||
|
"attempt": "1",
|
||||||
|
"code_filepath": "/app/src/telemetry.py",
|
||||||
|
"code_function": "event",
|
||||||
|
"code_lineno": "160",
|
||||||
|
"deployment_environment_name": "lab",
|
||||||
|
"detected_level": "info",
|
||||||
|
"event": "job.completed",
|
||||||
|
"flags": "1",
|
||||||
|
"job_type": "attachment.process.v1",
|
||||||
|
"observed_timestamp": "1796392415388888151",
|
||||||
|
"outcome": "ready",
|
||||||
|
"scope_name": "messenger.telemetry",
|
||||||
|
"service_instance_id": "worker-8",
|
||||||
|
"service_name": "messenger-worker",
|
||||||
|
"service_version": "7.0.0",
|
||||||
|
"severity_number": "9",
|
||||||
|
"severity_text": "INFO",
|
||||||
|
"span_id": "dee02c69e29ba0d7",
|
||||||
|
"telemetry_sdk_language": "python",
|
||||||
|
"telemetry_sdk_name": "opentelemetry",
|
||||||
|
"telemetry_sdk_version": "1.31.1",
|
||||||
|
"trace_id": "75f2acdcc54d8ee921b67b94d6036ffd"
|
||||||
|
},
|
||||||
|
"values": [
|
||||||
|
[
|
||||||
|
"1796392415388663808",
|
||||||
|
"{\"timestamp\":\"2026-12-04T13:53:35.388591+00:00\",\"severity\":\"INFO\",\"service.name\":\"messenger-worker\",\"event\":\"job.completed\",\"trace_id\":\"75f2acdcc54d8ee921b67b94d6036ffd\",\"span_id\":\"dee02c69e29ba0d7\",\"job_type\":\"attachment.process.v1\",\"outcome\":\"ready\",\"attempt\":1}"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"stats": {
|
||||||
|
"summary": {
|
||||||
|
"bytesProcessedPerSecond": 74806507,
|
||||||
|
"linesProcessedPerSecond": 128568,
|
||||||
|
"totalBytesProcessed": 929202,
|
||||||
|
"totalLinesProcessed": 1597,
|
||||||
|
"execTime": 0.012421,
|
||||||
|
"queueTime": 0.00025,
|
||||||
|
"subqueries": 0,
|
||||||
|
"totalEntriesReturned": 3,
|
||||||
|
"splits": 2,
|
||||||
|
"shards": 2,
|
||||||
|
"totalPostFilterLines": 3,
|
||||||
|
"totalStructuredMetadataBytesProcessed": 437124
|
||||||
|
},
|
||||||
|
"querier": {
|
||||||
|
"store": {
|
||||||
|
"totalChunksRef": 0,
|
||||||
|
"totalChunksDownloaded": 0,
|
||||||
|
"chunksDownloadTime": 0,
|
||||||
|
"queryReferencedStructuredMetadata": false,
|
||||||
|
"chunk": {
|
||||||
|
"headChunkBytes": 0,
|
||||||
|
"headChunkLines": 0,
|
||||||
|
"decompressedBytes": 0,
|
||||||
|
"decompressedLines": 0,
|
||||||
|
"compressedBytes": 0,
|
||||||
|
"totalDuplicates": 0,
|
||||||
|
"postFilterLines": 0,
|
||||||
|
"headChunkStructuredMetadataBytes": 0,
|
||||||
|
"decompressedStructuredMetadataBytes": 0
|
||||||
|
},
|
||||||
|
"chunkRefsFetchTime": 0,
|
||||||
|
"congestionControlLatency": 0,
|
||||||
|
"pipelineWrapperFilteredLines": 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"ingester": {
|
||||||
|
"totalReached": 2,
|
||||||
|
"totalChunksMatched": 5,
|
||||||
|
"totalBatches": 3,
|
||||||
|
"totalLinesSent": 3,
|
||||||
|
"store": {
|
||||||
|
"totalChunksRef": 9,
|
||||||
|
"totalChunksDownloaded": 9,
|
||||||
|
"chunksDownloadTime": 1772518,
|
||||||
|
"queryReferencedStructuredMetadata": false,
|
||||||
|
"chunk": {
|
||||||
|
"headChunkBytes": 330949,
|
||||||
|
"headChunkLines": 735,
|
||||||
|
"decompressedBytes": 598253,
|
||||||
|
"decompressedLines": 862,
|
||||||
|
"compressedBytes": 62479,
|
||||||
|
"totalDuplicates": 0,
|
||||||
|
"postFilterLines": 3,
|
||||||
|
"headChunkStructuredMetadataBytes": 110304,
|
||||||
|
"decompressedStructuredMetadataBytes": 326820
|
||||||
|
},
|
||||||
|
"chunkRefsFetchTime": 641848,
|
||||||
|
"congestionControlLatency": 0,
|
||||||
|
"pipelineWrapperFilteredLines": 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"cache": {
|
||||||
|
"chunk": {
|
||||||
|
"entriesFound": 0,
|
||||||
|
"entriesRequested": 0,
|
||||||
|
"entriesStored": 0,
|
||||||
|
"bytesReceived": 0,
|
||||||
|
"bytesSent": 0,
|
||||||
|
"requests": 0,
|
||||||
|
"downloadTime": 0,
|
||||||
|
"queryLengthServed": 0
|
||||||
|
},
|
||||||
|
"index": {
|
||||||
|
"entriesFound": 0,
|
||||||
|
"entriesRequested": 0,
|
||||||
|
"entriesStored": 0,
|
||||||
|
"bytesReceived": 0,
|
||||||
|
"bytesSent": 0,
|
||||||
|
"requests": 0,
|
||||||
|
"downloadTime": 0,
|
||||||
|
"queryLengthServed": 0
|
||||||
|
},
|
||||||
|
"result": {
|
||||||
|
"entriesFound": 0,
|
||||||
|
"entriesRequested": 0,
|
||||||
|
"entriesStored": 0,
|
||||||
|
"bytesReceived": 0,
|
||||||
|
"bytesSent": 0,
|
||||||
|
"requests": 0,
|
||||||
|
"downloadTime": 0,
|
||||||
|
"queryLengthServed": 0
|
||||||
|
},
|
||||||
|
"statsResult": {
|
||||||
|
"entriesFound": 1,
|
||||||
|
"entriesRequested": 1,
|
||||||
|
"entriesStored": 0,
|
||||||
|
"bytesReceived": 292,
|
||||||
|
"bytesSent": 0,
|
||||||
|
"requests": 1,
|
||||||
|
"downloadTime": 8913,
|
||||||
|
"queryLengthServed": 413000000000
|
||||||
|
},
|
||||||
|
"volumeResult": {
|
||||||
|
"entriesFound": 0,
|
||||||
|
"entriesRequested": 0,
|
||||||
|
"entriesStored": 0,
|
||||||
|
"bytesReceived": 0,
|
||||||
|
"bytesSent": 0,
|
||||||
|
"requests": 0,
|
||||||
|
"downloadTime": 0,
|
||||||
|
"queryLengthServed": 0
|
||||||
|
},
|
||||||
|
"seriesResult": {
|
||||||
|
"entriesFound": 0,
|
||||||
|
"entriesRequested": 0,
|
||||||
|
"entriesStored": 0,
|
||||||
|
"bytesReceived": 0,
|
||||||
|
"bytesSent": 0,
|
||||||
|
"requests": 0,
|
||||||
|
"downloadTime": 0,
|
||||||
|
"queryLengthServed": 0
|
||||||
|
},
|
||||||
|
"labelResult": {
|
||||||
|
"entriesFound": 0,
|
||||||
|
"entriesRequested": 0,
|
||||||
|
"entriesStored": 0,
|
||||||
|
"bytesReceived": 0,
|
||||||
|
"bytesSent": 0,
|
||||||
|
"requests": 0,
|
||||||
|
"downloadTime": 0,
|
||||||
|
"queryLengthServed": 0
|
||||||
|
},
|
||||||
|
"instantMetricResult": {
|
||||||
|
"entriesFound": 0,
|
||||||
|
"entriesRequested": 0,
|
||||||
|
"entriesStored": 0,
|
||||||
|
"bytesReceived": 0,
|
||||||
|
"bytesSent": 0,
|
||||||
|
"requests": 0,
|
||||||
|
"downloadTime": 0,
|
||||||
|
"queryLengthServed": 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"index": {
|
||||||
|
"totalChunks": 0,
|
||||||
|
"postFilterChunks": 0,
|
||||||
|
"shardsDuration": 0,
|
||||||
|
"usedBloomFilters": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,57 @@
|
|||||||
|
{
|
||||||
|
"result": "PASS",
|
||||||
|
"trace_id": "75f2acdcc54d8ee921b67b94d6036ffd",
|
||||||
|
"stored_spans": 34,
|
||||||
|
"api_worker_chain": true,
|
||||||
|
"metrics_series": 32,
|
||||||
|
"scrape_targets": [
|
||||||
|
{
|
||||||
|
"discoveredLabels": {
|
||||||
|
"__address__": "otel-collector:8887",
|
||||||
|
"__metrics_path__": "/metrics",
|
||||||
|
"__scheme__": "https",
|
||||||
|
"__scrape_interval__": "3s",
|
||||||
|
"__scrape_timeout__": "3s",
|
||||||
|
"job": "collector"
|
||||||
|
},
|
||||||
|
"labels": {
|
||||||
|
"instance": "otel-collector:8887",
|
||||||
|
"job": "collector"
|
||||||
|
},
|
||||||
|
"scrapePool": "collector",
|
||||||
|
"scrapeUrl": "https://otel-collector:8887/metrics",
|
||||||
|
"globalUrl": "https://otel-collector:8887/metrics",
|
||||||
|
"lastError": "",
|
||||||
|
"lastScrape": "2026-12-04T13:53:37.194477012Z",
|
||||||
|
"lastScrapeDuration": 0.011106228,
|
||||||
|
"health": "up",
|
||||||
|
"scrapeInterval": "3s",
|
||||||
|
"scrapeTimeout": "3s"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"discoveredLabels": {
|
||||||
|
"__address__": "otel-collector:8890",
|
||||||
|
"__metrics_path__": "/metrics",
|
||||||
|
"__scheme__": "https",
|
||||||
|
"__scrape_interval__": "3s",
|
||||||
|
"__scrape_timeout__": "3s",
|
||||||
|
"job": "messenger"
|
||||||
|
},
|
||||||
|
"labels": {
|
||||||
|
"instance": "otel-collector:8890",
|
||||||
|
"job": "messenger"
|
||||||
|
},
|
||||||
|
"scrapePool": "messenger",
|
||||||
|
"scrapeUrl": "https://otel-collector:8890/metrics",
|
||||||
|
"globalUrl": "https://otel-collector:8890/metrics",
|
||||||
|
"lastError": "",
|
||||||
|
"lastScrape": "2026-12-04T13:53:36.012620058Z",
|
||||||
|
"lastScrapeDuration": 0.011155658,
|
||||||
|
"health": "up",
|
||||||
|
"scrapeInterval": "3s",
|
||||||
|
"scrapeTimeout": "3s"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"private_probes": 4,
|
||||||
|
"leaks": 0
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"result": "PASS",
|
||||||
|
"HTTPS_smoke": true,
|
||||||
|
"public_TLS_negative": true,
|
||||||
|
"internal_mTLS": true,
|
||||||
|
"scoped_roles": true,
|
||||||
|
"ACL_sessions_rehash_rate_limit": true,
|
||||||
|
"Bao_sealed_fail_closed": true,
|
||||||
|
"secret_and_leaf_rotation": true,
|
||||||
|
"worker_compromise_track": true,
|
||||||
|
"persistence": true,
|
||||||
|
"failover": true
|
||||||
|
}
|
||||||
@@ -0,0 +1,56 @@
|
|||||||
|
{
|
||||||
|
"result": "PASS",
|
||||||
|
"accepted_jobs": 3,
|
||||||
|
"queued_while_revoked": true,
|
||||||
|
"ready_after_rotation": 3,
|
||||||
|
"originals_verified": 3,
|
||||||
|
"variants_each": 3,
|
||||||
|
"recovery_seconds": 13.557,
|
||||||
|
"image_unchanged": true,
|
||||||
|
"hypothesis": "Scoped worker loses authority to unrelated secrets, user/session/message DB and producer/admin broker operations; revocation blocks new worker connections while durable jobs survive.",
|
||||||
|
"before_worker": {
|
||||||
|
"id": "149ef6a239a02c9ec371f35a899822fa6bf00b2bb247cc564b240587cd093de4",
|
||||||
|
"image": "sha256:b5d6848207edaf512648d3b4ea45a33286c864f370dded8de3c2d6185cbda55f",
|
||||||
|
"started_at": "2026-12-04T13:37:05.340166233Z",
|
||||||
|
"user": "app",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_private",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 1610612736,
|
||||||
|
"cpu_limit": 2000000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"after_worker": {
|
||||||
|
"id": "149ef6a239a02c9ec371f35a899822fa6bf00b2bb247cc564b240587cd093de4",
|
||||||
|
"image": "sha256:b5d6848207edaf512648d3b4ea45a33286c864f370dded8de3c2d6185cbda55f",
|
||||||
|
"started_at": "2026-12-04T13:40:23.798524479Z",
|
||||||
|
"user": "app",
|
||||||
|
"privileged": false,
|
||||||
|
"network_mode": "mtusi-lab7_private",
|
||||||
|
"read_only": true,
|
||||||
|
"cap_drop": [
|
||||||
|
"ALL"
|
||||||
|
],
|
||||||
|
"security_opt": [
|
||||||
|
"no-new-privileges:true"
|
||||||
|
],
|
||||||
|
"memory_limit": 1610612736,
|
||||||
|
"cpu_limit": 2000000000,
|
||||||
|
"ports": {},
|
||||||
|
"mount_destinations": [
|
||||||
|
"/run/pki",
|
||||||
|
"/run/tls"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"limitation": "Authorized worker can still alter allowed image results and job state. Revocation is bounded by cache/active connection lifetime; host/operator compromise is outside this model."
|
||||||
|
}
|
||||||
@@ -0,0 +1,57 @@
|
|||||||
|
{
|
||||||
|
"result": "PASS",
|
||||||
|
"bao_token_ttl_seconds": 30,
|
||||||
|
"least_privilege_comparison_in_isolated_lab7": [
|
||||||
|
{
|
||||||
|
"table": "users",
|
||||||
|
"lab6_style_owner_can_select": true,
|
||||||
|
"worker_can_select": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"table": "sessions",
|
||||||
|
"lab6_style_owner_can_select": true,
|
||||||
|
"worker_can_select": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"table": "messages",
|
||||||
|
"lab6_style_owner_can_select": true,
|
||||||
|
"worker_can_select": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"table": "jobs",
|
||||||
|
"lab6_style_owner_can_select": true,
|
||||||
|
"worker_can_select": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"table": "attachments",
|
||||||
|
"lab6_style_owner_can_select": true,
|
||||||
|
"worker_can_select": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"denied": [
|
||||||
|
"secret/data/api1",
|
||||||
|
"sys/policies/acl/evil",
|
||||||
|
"secret/data/worker",
|
||||||
|
"SELECT * FROM users LIMIT 1",
|
||||||
|
"SELECT * FROM sessions LIMIT 1",
|
||||||
|
"SELECT * FROM messages LIMIT 1",
|
||||||
|
"CREATE TABLE public.compromised(x int)",
|
||||||
|
"ALTER ROLE worker SUPERUSER",
|
||||||
|
"redis_admin_or_producer_denied",
|
||||||
|
"redis_admin_or_producer_denied",
|
||||||
|
"redis_admin_or_producer_denied",
|
||||||
|
"redis_admin_or_producer_denied",
|
||||||
|
"s3_prefix_delete_or_admin_denied",
|
||||||
|
"s3_prefix_delete_or_admin_denied",
|
||||||
|
"s3_prefix_delete_or_admin_denied",
|
||||||
|
"s3_prefix_delete_or_admin_denied"
|
||||||
|
],
|
||||||
|
"allowed": [
|
||||||
|
"read own KV",
|
||||||
|
"read jobs",
|
||||||
|
"update attachment result",
|
||||||
|
"broker consumer",
|
||||||
|
"put/get results prefix"
|
||||||
|
],
|
||||||
|
"residual_risk": "Worker can corrupt available image results and consume/drop notification deliveries. Durable DB jobs allow relay recovery, but least privilege is not an integrity proof against a malicious authorized worker."
|
||||||
|
}
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
FROM golang:1.24.2-bookworm AS server-build
|
||||||
|
RUN git clone --depth 1 --branch RELEASE.2025-04-22T22-12-26Z https://github.com/minio/minio.git /source
|
||||||
|
WORKDIR /source
|
||||||
|
RUN CGO_ENABLED=0 go build -trimpath -ldflags="$(go run buildscripts/gen-ldflags.go)" -o /out/minio .
|
||||||
|
|
||||||
|
FROM golang:1.24.2-bookworm AS client-build
|
||||||
|
RUN git clone --depth 1 --branch RELEASE.2025-04-16T18-13-26Z https://github.com/minio/mc.git /source
|
||||||
|
WORKDIR /source
|
||||||
|
RUN CGO_ENABLED=0 go build -trimpath -ldflags="$(go run buildscripts/gen-ldflags.go)" -o /out/mc .
|
||||||
|
|
||||||
|
FROM python:3.12.11-slim-bookworm AS server
|
||||||
|
COPY --from=server-build /out/minio /usr/local/bin/minio
|
||||||
|
LABEL org.opencontainers.image.source="https://github.com/minio/minio" org.opencontainers.image.version="RELEASE.2025-04-22T22-12-26Z"
|
||||||
|
ENTRYPOINT ["minio"]
|
||||||
|
|
||||||
|
FROM python:3.12.11-slim-bookworm AS client
|
||||||
|
COPY --from=client-build /out/mc /usr/local/bin/mc
|
||||||
|
LABEL org.opencontainers.image.source="https://github.com/minio/mc" org.opencontainers.image.version="RELEASE.2025-04-16T18-13-26Z"
|
||||||
|
ENTRYPOINT ["mc"]
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Action":["s3:ListBucket"],"Resource":["arn:aws:s3:::messenger-attachments"]},{"Effect":"Allow","Action":["s3:PutObject","s3:GetObject"],"Resource":["arn:aws:s3:::messenger-attachments/staging/*"]},{"Effect":"Allow","Action":["s3:GetObject"],"Resource":["arn:aws:s3:::messenger-attachments/results/*"]}]}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -eu
|
||||||
|
export SSL_CERT_FILE=/run/pki/ca.crt
|
||||||
|
mc alias set local https://s3:9000 "$(cat /run/secrets/minio_root_user)" "$(cat /run/secrets/minio_root_password)" >/dev/null
|
||||||
|
mc mb --ignore-existing local/messenger-attachments >/dev/null
|
||||||
|
mc anonymous set none local/messenger-attachments >/dev/null
|
||||||
|
for role in api worker operator; do
|
||||||
|
mc admin policy create local messenger-$role /config/$role-policy.json >/dev/null
|
||||||
|
mc admin user add local "$(cat /run/secrets/${role}_s3_key)" "$(cat /run/secrets/${role}_s3_secret)" >/dev/null
|
||||||
|
mc admin policy attach local messenger-$role --user "$(cat /run/secrets/${role}_s3_key)" >/dev/null
|
||||||
|
done
|
||||||
|
echo 'Private bucket, scoped users and policies prepared over verified TLS.'
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
bind 127.0.0.1
|
||||||
|
port 6379
|
||||||
|
protected-mode yes
|
||||||
|
aclfile /run/broker.acl
|
||||||
|
dir /data
|
||||||
|
appendonly yes
|
||||||
|
appendfsync always
|
||||||
|
save ""
|
||||||
|
maxmemory 128mb
|
||||||
|
maxmemory-policy noeviction
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"port": 8443,
|
||||||
|
"target": 8080,
|
||||||
|
"clients": [
|
||||||
|
"lb"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"port": 8443,
|
||||||
|
"target": 8080,
|
||||||
|
"clients": [
|
||||||
|
"lb"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"port": 6380,
|
||||||
|
"target": 6379,
|
||||||
|
"clients": [
|
||||||
|
"api1",
|
||||||
|
"api2",
|
||||||
|
"worker",
|
||||||
|
"publisher",
|
||||||
|
"operator"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"port": 3443,
|
||||||
|
"target": 3000,
|
||||||
|
"clients": []
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,49 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"port": 3443,
|
||||||
|
"target": 3100,
|
||||||
|
"clients": [
|
||||||
|
"otel-collector",
|
||||||
|
"grafana",
|
||||||
|
"operator"
|
||||||
|
],
|
||||||
|
"http_permissions": {
|
||||||
|
"grafana": [
|
||||||
|
{
|
||||||
|
"methods": [
|
||||||
|
"GET",
|
||||||
|
"POST"
|
||||||
|
],
|
||||||
|
"paths": [
|
||||||
|
"/ready",
|
||||||
|
"/loki/api/v1/query",
|
||||||
|
"/loki/api/v1/query_range",
|
||||||
|
"/loki/api/v1/labels",
|
||||||
|
"/loki/api/v1/series",
|
||||||
|
"/loki/api/v1/index/stats",
|
||||||
|
"/loki/api/v1/index/volume",
|
||||||
|
"/loki/api/v1/index/volume_range"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"methods": [
|
||||||
|
"GET"
|
||||||
|
],
|
||||||
|
"prefix_paths": [
|
||||||
|
"/loki/api/v1/label/"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"otel-collector": [
|
||||||
|
{
|
||||||
|
"methods": [
|
||||||
|
"POST"
|
||||||
|
],
|
||||||
|
"paths": [
|
||||||
|
"/otlp/v1/logs"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"port": 4319,
|
||||||
|
"target": 4318,
|
||||||
|
"clients": [
|
||||||
|
"api1",
|
||||||
|
"api2",
|
||||||
|
"worker",
|
||||||
|
"publisher",
|
||||||
|
"janitor",
|
||||||
|
"operator"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"port": 8890,
|
||||||
|
"target": 8889,
|
||||||
|
"clients": [
|
||||||
|
"prometheus",
|
||||||
|
"operator"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"port": 8887,
|
||||||
|
"target": 8888,
|
||||||
|
"clients": [
|
||||||
|
"prometheus",
|
||||||
|
"operator"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"port": 9443,
|
||||||
|
"target": 9090,
|
||||||
|
"clients": [
|
||||||
|
"grafana",
|
||||||
|
"operator"
|
||||||
|
],
|
||||||
|
"http_permissions": {
|
||||||
|
"grafana": [
|
||||||
|
{
|
||||||
|
"methods": [
|
||||||
|
"GET",
|
||||||
|
"POST"
|
||||||
|
],
|
||||||
|
"paths": [
|
||||||
|
"/-/ready",
|
||||||
|
"/api/v1/query",
|
||||||
|
"/api/v1/query_range",
|
||||||
|
"/api/v1/labels",
|
||||||
|
"/api/v1/series",
|
||||||
|
"/api/v1/metadata",
|
||||||
|
"/api/v1/status/buildinfo",
|
||||||
|
"/api/v1/status/runtimeinfo"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"methods": [
|
||||||
|
"GET"
|
||||||
|
],
|
||||||
|
"prefix_paths": [
|
||||||
|
"/api/v1/label/"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,48 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"port": 3443,
|
||||||
|
"target": 3200,
|
||||||
|
"clients": [
|
||||||
|
"grafana",
|
||||||
|
"operator"
|
||||||
|
],
|
||||||
|
"http_permissions": {
|
||||||
|
"grafana": [
|
||||||
|
{
|
||||||
|
"methods": [
|
||||||
|
"GET",
|
||||||
|
"POST"
|
||||||
|
],
|
||||||
|
"paths": [
|
||||||
|
"/ready",
|
||||||
|
"/api/search",
|
||||||
|
"/api/v2/search",
|
||||||
|
"/api/search/tags",
|
||||||
|
"/api/v2/search/tags",
|
||||||
|
"/api/metrics/query",
|
||||||
|
"/api/metrics/query_range"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"methods": [
|
||||||
|
"GET"
|
||||||
|
],
|
||||||
|
"prefix_paths": [
|
||||||
|
"/api/traces/",
|
||||||
|
"/api/v2/traces/",
|
||||||
|
"/api/search/tag/",
|
||||||
|
"/api/v2/search/tag/"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"port": 4438,
|
||||||
|
"target": 4318,
|
||||||
|
"clients": [
|
||||||
|
"otel-collector",
|
||||||
|
"operator"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -0,0 +1,740 @@
|
|||||||
|
{
|
||||||
|
"uid": "messenger-lab7",
|
||||||
|
"title": "Messenger Lab7: secure metrics, logs, traces",
|
||||||
|
"schemaVersion": 40,
|
||||||
|
"version": 1,
|
||||||
|
"editable": false,
|
||||||
|
"refresh": "5s",
|
||||||
|
"time": {
|
||||||
|
"from": "now-15m",
|
||||||
|
"to": "now"
|
||||||
|
},
|
||||||
|
"tags": [
|
||||||
|
"lab6"
|
||||||
|
],
|
||||||
|
"panels": [
|
||||||
|
{
|
||||||
|
"id": 1,
|
||||||
|
"title": "API RPS",
|
||||||
|
"type": "timeseries",
|
||||||
|
"gridPos": {
|
||||||
|
"x": 0,
|
||||||
|
"y": 0,
|
||||||
|
"w": 12,
|
||||||
|
"h": 8
|
||||||
|
},
|
||||||
|
"datasource": {
|
||||||
|
"type": "prometheus",
|
||||||
|
"uid": "prometheus"
|
||||||
|
},
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"refId": "A",
|
||||||
|
"expr": "sum(rate(http_server_requests_total{service_name=\"messenger-api\"}[1m]))",
|
||||||
|
"legendFormat": "{{service_instance_id}} {{outcome}}",
|
||||||
|
"queryType": "range"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"unit": "reqps"
|
||||||
|
},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"legend": {
|
||||||
|
"displayMode": "table",
|
||||||
|
"placement": "bottom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "sum(rate(http_server_requests_total{service_name=\"messenger-api\"}[1m]))"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 2,
|
||||||
|
"title": "API 5xx ratio",
|
||||||
|
"type": "timeseries",
|
||||||
|
"gridPos": {
|
||||||
|
"x": 12,
|
||||||
|
"y": 0,
|
||||||
|
"w": 12,
|
||||||
|
"h": 8
|
||||||
|
},
|
||||||
|
"datasource": {
|
||||||
|
"type": "prometheus",
|
||||||
|
"uid": "prometheus"
|
||||||
|
},
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"refId": "A",
|
||||||
|
"expr": "sum(rate(http_server_requests_total{service_name=\"messenger-api\",status_class=\"5xx\"}[1m])) / clamp_min(sum(rate(http_server_requests_total{service_name=\"messenger-api\"}[1m])),0.001)",
|
||||||
|
"legendFormat": "{{service_instance_id}} {{outcome}}",
|
||||||
|
"queryType": "range"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"unit": "percentunit"
|
||||||
|
},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"legend": {
|
||||||
|
"displayMode": "table",
|
||||||
|
"placement": "bottom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "5xx / all business API responses, excludes health, includes client 4xx in denominator."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 3,
|
||||||
|
"title": "API p50",
|
||||||
|
"type": "timeseries",
|
||||||
|
"gridPos": {
|
||||||
|
"x": 0,
|
||||||
|
"y": 8,
|
||||||
|
"w": 12,
|
||||||
|
"h": 8
|
||||||
|
},
|
||||||
|
"datasource": {
|
||||||
|
"type": "prometheus",
|
||||||
|
"uid": "prometheus"
|
||||||
|
},
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"refId": "A",
|
||||||
|
"expr": "histogram_quantile(0.5,sum by(le)(rate(http_server_duration_seconds_bucket{service_name=\"messenger-api\"}[1m])))",
|
||||||
|
"legendFormat": "{{service_instance_id}} {{outcome}}",
|
||||||
|
"queryType": "range"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"unit": "s"
|
||||||
|
},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"legend": {
|
||||||
|
"displayMode": "table",
|
||||||
|
"placement": "bottom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "Histogram buckets aggregated across API replicas before quantile; seconds."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 4,
|
||||||
|
"title": "API p95",
|
||||||
|
"type": "timeseries",
|
||||||
|
"gridPos": {
|
||||||
|
"x": 12,
|
||||||
|
"y": 8,
|
||||||
|
"w": 12,
|
||||||
|
"h": 8
|
||||||
|
},
|
||||||
|
"datasource": {
|
||||||
|
"type": "prometheus",
|
||||||
|
"uid": "prometheus"
|
||||||
|
},
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"refId": "A",
|
||||||
|
"expr": "histogram_quantile(0.95,sum by(le)(rate(http_server_duration_seconds_bucket{service_name=\"messenger-api\"}[1m])))",
|
||||||
|
"legendFormat": "{{service_instance_id}} {{outcome}}",
|
||||||
|
"queryType": "range"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"unit": "s"
|
||||||
|
},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"legend": {
|
||||||
|
"displayMode": "table",
|
||||||
|
"placement": "bottom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "Histogram buckets aggregated across API replicas before quantile; seconds."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 5,
|
||||||
|
"title": "API p99",
|
||||||
|
"type": "timeseries",
|
||||||
|
"gridPos": {
|
||||||
|
"x": 0,
|
||||||
|
"y": 16,
|
||||||
|
"w": 12,
|
||||||
|
"h": 8
|
||||||
|
},
|
||||||
|
"datasource": {
|
||||||
|
"type": "prometheus",
|
||||||
|
"uid": "prometheus"
|
||||||
|
},
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"refId": "A",
|
||||||
|
"expr": "histogram_quantile(0.99,sum by(le)(rate(http_server_duration_seconds_bucket{service_name=\"messenger-api\"}[1m])))",
|
||||||
|
"legendFormat": "{{service_instance_id}} {{outcome}}",
|
||||||
|
"queryType": "range"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"unit": "s"
|
||||||
|
},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"legend": {
|
||||||
|
"displayMode": "table",
|
||||||
|
"placement": "bottom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "Histogram buckets aggregated across API replicas before quantile; seconds."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 6,
|
||||||
|
"title": "Worker outcomes",
|
||||||
|
"type": "timeseries",
|
||||||
|
"gridPos": {
|
||||||
|
"x": 12,
|
||||||
|
"y": 16,
|
||||||
|
"w": 12,
|
||||||
|
"h": 8
|
||||||
|
},
|
||||||
|
"datasource": {
|
||||||
|
"type": "prometheus",
|
||||||
|
"uid": "prometheus"
|
||||||
|
},
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"refId": "A",
|
||||||
|
"expr": "sum by(outcome)(rate(worker_jobs_total{service_name=\"messenger-worker\"}[1m]))",
|
||||||
|
"legendFormat": "{{service_instance_id}} {{outcome}}",
|
||||||
|
"queryType": "range"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"unit": "ops"
|
||||||
|
},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"legend": {
|
||||||
|
"displayMode": "table",
|
||||||
|
"placement": "bottom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "sum by(outcome)(rate(worker_jobs_total{service_name=\"messenger-worker\"}[1m]))"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 7,
|
||||||
|
"title": "Worker p95 processing",
|
||||||
|
"type": "timeseries",
|
||||||
|
"gridPos": {
|
||||||
|
"x": 0,
|
||||||
|
"y": 24,
|
||||||
|
"w": 12,
|
||||||
|
"h": 8
|
||||||
|
},
|
||||||
|
"datasource": {
|
||||||
|
"type": "prometheus",
|
||||||
|
"uid": "prometheus"
|
||||||
|
},
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"refId": "A",
|
||||||
|
"expr": "histogram_quantile(0.95,sum by(le)(rate(worker_job_duration_seconds_bucket{service_name=\"messenger-worker\"}[1m])))",
|
||||||
|
"legendFormat": "{{service_instance_id}} {{outcome}}",
|
||||||
|
"queryType": "range"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"unit": "s"
|
||||||
|
},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"legend": {
|
||||||
|
"displayMode": "table",
|
||||||
|
"placement": "bottom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "histogram_quantile(0.95,sum by(le)(rate(worker_job_duration_seconds_bucket{service_name=\"messenger-worker\"}[1m])))"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 8,
|
||||||
|
"title": "Ready p95 end to end",
|
||||||
|
"type": "timeseries",
|
||||||
|
"gridPos": {
|
||||||
|
"x": 12,
|
||||||
|
"y": 24,
|
||||||
|
"w": 12,
|
||||||
|
"h": 8
|
||||||
|
},
|
||||||
|
"datasource": {
|
||||||
|
"type": "prometheus",
|
||||||
|
"uid": "prometheus"
|
||||||
|
},
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"refId": "A",
|
||||||
|
"expr": "histogram_quantile(0.95,sum by(le)(rate(attachment_ready_duration_seconds_bucket[1m])))",
|
||||||
|
"legendFormat": "{{service_instance_id}} {{outcome}}",
|
||||||
|
"queryType": "range"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"unit": "s"
|
||||||
|
},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"legend": {
|
||||||
|
"displayMode": "table",
|
||||||
|
"placement": "bottom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "histogram_quantile(0.95,sum by(le)(rate(attachment_ready_duration_seconds_bucket[1m])))"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 9,
|
||||||
|
"title": "Durable queue depth",
|
||||||
|
"type": "timeseries",
|
||||||
|
"gridPos": {
|
||||||
|
"x": 0,
|
||||||
|
"y": 32,
|
||||||
|
"w": 12,
|
||||||
|
"h": 8
|
||||||
|
},
|
||||||
|
"datasource": {
|
||||||
|
"type": "prometheus",
|
||||||
|
"uid": "prometheus"
|
||||||
|
},
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"refId": "A",
|
||||||
|
"expr": "max(queue_depth{service_name=\"messenger-publisher\"})",
|
||||||
|
"legendFormat": "{{service_instance_id}} {{outcome}}",
|
||||||
|
"queryType": "range"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"unit": "short"
|
||||||
|
},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"legend": {
|
||||||
|
"displayMode": "table",
|
||||||
|
"placement": "bottom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "max(queue_depth{service_name=\"messenger-publisher\"})"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 10,
|
||||||
|
"title": "Oldest unfinished job",
|
||||||
|
"type": "timeseries",
|
||||||
|
"gridPos": {
|
||||||
|
"x": 12,
|
||||||
|
"y": 32,
|
||||||
|
"w": 12,
|
||||||
|
"h": 8
|
||||||
|
},
|
||||||
|
"datasource": {
|
||||||
|
"type": "prometheus",
|
||||||
|
"uid": "prometheus"
|
||||||
|
},
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"refId": "A",
|
||||||
|
"expr": "max(queue_oldest_age_seconds{service_name=\"messenger-publisher\"})",
|
||||||
|
"legendFormat": "{{service_instance_id}} {{outcome}}",
|
||||||
|
"queryType": "range"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"unit": "s"
|
||||||
|
},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"legend": {
|
||||||
|
"displayMode": "table",
|
||||||
|
"placement": "bottom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "max(queue_oldest_age_seconds{service_name=\"messenger-publisher\"})"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 11,
|
||||||
|
"title": "DB pool used / process",
|
||||||
|
"type": "timeseries",
|
||||||
|
"gridPos": {
|
||||||
|
"x": 0,
|
||||||
|
"y": 40,
|
||||||
|
"w": 12,
|
||||||
|
"h": 8
|
||||||
|
},
|
||||||
|
"datasource": {
|
||||||
|
"type": "prometheus",
|
||||||
|
"uid": "prometheus"
|
||||||
|
},
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"refId": "A",
|
||||||
|
"expr": "db_pool_used",
|
||||||
|
"legendFormat": "{{service_instance_id}} {{outcome}}",
|
||||||
|
"queryType": "range"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"unit": "short"
|
||||||
|
},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"legend": {
|
||||||
|
"displayMode": "table",
|
||||||
|
"placement": "bottom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "db_pool_used"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 12,
|
||||||
|
"title": "DB pool waiting / process",
|
||||||
|
"type": "timeseries",
|
||||||
|
"gridPos": {
|
||||||
|
"x": 12,
|
||||||
|
"y": 40,
|
||||||
|
"w": 12,
|
||||||
|
"h": 8
|
||||||
|
},
|
||||||
|
"datasource": {
|
||||||
|
"type": "prometheus",
|
||||||
|
"uid": "prometheus"
|
||||||
|
},
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"refId": "A",
|
||||||
|
"expr": "db_pool_waiting",
|
||||||
|
"legendFormat": "{{service_instance_id}} {{outcome}}",
|
||||||
|
"queryType": "range"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"unit": "short"
|
||||||
|
},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"legend": {
|
||||||
|
"displayMode": "table",
|
||||||
|
"placement": "bottom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "db_pool_waiting"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 13,
|
||||||
|
"title": "Worker busy / configured capacity",
|
||||||
|
"type": "timeseries",
|
||||||
|
"gridPos": {
|
||||||
|
"x": 0,
|
||||||
|
"y": 48,
|
||||||
|
"w": 12,
|
||||||
|
"h": 8
|
||||||
|
},
|
||||||
|
"datasource": {
|
||||||
|
"type": "prometheus",
|
||||||
|
"uid": "prometheus"
|
||||||
|
},
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"refId": "A",
|
||||||
|
"expr": "max(worker_busy)/clamp_min(max(worker_capacity),1)",
|
||||||
|
"legendFormat": "{{service_instance_id}} {{outcome}}",
|
||||||
|
"queryType": "range"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"unit": "percentunit"
|
||||||
|
},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"legend": {
|
||||||
|
"displayMode": "table",
|
||||||
|
"placement": "bottom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "max(worker_busy)/clamp_min(max(worker_capacity),1)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 14,
|
||||||
|
"title": "Process resident RAM",
|
||||||
|
"type": "timeseries",
|
||||||
|
"gridPos": {
|
||||||
|
"x": 12,
|
||||||
|
"y": 48,
|
||||||
|
"w": 12,
|
||||||
|
"h": 8
|
||||||
|
},
|
||||||
|
"datasource": {
|
||||||
|
"type": "prometheus",
|
||||||
|
"uid": "prometheus"
|
||||||
|
},
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"refId": "A",
|
||||||
|
"expr": "process_memory_bytes",
|
||||||
|
"legendFormat": "{{service_instance_id}} {{outcome}}",
|
||||||
|
"queryType": "range"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"unit": "bytes"
|
||||||
|
},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"legend": {
|
||||||
|
"displayMode": "table",
|
||||||
|
"placement": "bottom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "process_memory_bytes"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 15,
|
||||||
|
"title": "Process CPU cores",
|
||||||
|
"type": "timeseries",
|
||||||
|
"gridPos": {
|
||||||
|
"x": 0,
|
||||||
|
"y": 56,
|
||||||
|
"w": 12,
|
||||||
|
"h": 8
|
||||||
|
},
|
||||||
|
"datasource": {
|
||||||
|
"type": "prometheus",
|
||||||
|
"uid": "prometheus"
|
||||||
|
},
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"refId": "A",
|
||||||
|
"expr": "rate(process_cpu_seconds_total[1m])",
|
||||||
|
"legendFormat": "{{service_instance_id}} {{outcome}}",
|
||||||
|
"queryType": "range"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"unit": "short"
|
||||||
|
},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"legend": {
|
||||||
|
"displayMode": "table",
|
||||||
|
"placement": "bottom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "rate(process_cpu_seconds_total[1m])"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 16,
|
||||||
|
"title": "Local alerts",
|
||||||
|
"type": "timeseries",
|
||||||
|
"gridPos": {
|
||||||
|
"x": 12,
|
||||||
|
"y": 56,
|
||||||
|
"w": 12,
|
||||||
|
"h": 8
|
||||||
|
},
|
||||||
|
"datasource": {
|
||||||
|
"type": "prometheus",
|
||||||
|
"uid": "prometheus"
|
||||||
|
},
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"refId": "A",
|
||||||
|
"expr": "ALERTS{alertstate=\"firing\"}",
|
||||||
|
"legendFormat": "{{service_instance_id}} {{outcome}}",
|
||||||
|
"queryType": "range"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"unit": "short"
|
||||||
|
},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"legend": {
|
||||||
|
"displayMode": "table",
|
||||||
|
"placement": "bottom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "ALERTS{alertstate=\"firing\"}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 17,
|
||||||
|
"title": "API structured logs",
|
||||||
|
"type": "logs",
|
||||||
|
"gridPos": {
|
||||||
|
"x": 0,
|
||||||
|
"y": 64,
|
||||||
|
"w": 12,
|
||||||
|
"h": 8
|
||||||
|
},
|
||||||
|
"datasource": {
|
||||||
|
"type": "loki",
|
||||||
|
"uid": "loki"
|
||||||
|
},
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"refId": "A",
|
||||||
|
"expr": "{service_name=\"messenger-api\"} | json",
|
||||||
|
"legendFormat": "{{service_instance_id}} {{outcome}}",
|
||||||
|
"queryType": "range"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"unit": "short"
|
||||||
|
},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"legend": {
|
||||||
|
"displayMode": "table",
|
||||||
|
"placement": "bottom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "{service_name=\"messenger-api\"} | json"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 18,
|
||||||
|
"title": "Worker structured logs",
|
||||||
|
"type": "logs",
|
||||||
|
"gridPos": {
|
||||||
|
"x": 12,
|
||||||
|
"y": 64,
|
||||||
|
"w": 12,
|
||||||
|
"h": 8
|
||||||
|
},
|
||||||
|
"datasource": {
|
||||||
|
"type": "loki",
|
||||||
|
"uid": "loki"
|
||||||
|
},
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"refId": "A",
|
||||||
|
"expr": "{service_name=\"messenger-worker\"} | json",
|
||||||
|
"legendFormat": "{{service_instance_id}} {{outcome}}",
|
||||||
|
"queryType": "range"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"unit": "short"
|
||||||
|
},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"legend": {
|
||||||
|
"displayMode": "table",
|
||||||
|
"placement": "bottom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "{service_name=\"messenger-worker\"} | json"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 19,
|
||||||
|
"title": "Exporter failed spans",
|
||||||
|
"type": "timeseries",
|
||||||
|
"gridPos": {
|
||||||
|
"x": 0,
|
||||||
|
"y": 72,
|
||||||
|
"w": 12,
|
||||||
|
"h": 8
|
||||||
|
},
|
||||||
|
"datasource": {
|
||||||
|
"type": "prometheus",
|
||||||
|
"uid": "prometheus"
|
||||||
|
},
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"refId": "A",
|
||||||
|
"expr": "sum(rate(otelcol_exporter_send_failed_spans_total[1m]))",
|
||||||
|
"legendFormat": "{{service_instance_id}} {{outcome}}",
|
||||||
|
"queryType": "range"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"unit": "ops"
|
||||||
|
},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"legend": {
|
||||||
|
"displayMode": "table",
|
||||||
|
"placement": "bottom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "sum(rate(otelcol_exporter_send_failed_spans_total[1m]))"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 20,
|
||||||
|
"title": "Collector queue usage",
|
||||||
|
"type": "timeseries",
|
||||||
|
"gridPos": {
|
||||||
|
"x": 12,
|
||||||
|
"y": 72,
|
||||||
|
"w": 12,
|
||||||
|
"h": 8
|
||||||
|
},
|
||||||
|
"datasource": {
|
||||||
|
"type": "prometheus",
|
||||||
|
"uid": "prometheus"
|
||||||
|
},
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"refId": "A",
|
||||||
|
"expr": "otelcol_exporter_queue_size / clamp_min(otelcol_exporter_queue_capacity,1)",
|
||||||
|
"legendFormat": "{{service_instance_id}} {{outcome}}",
|
||||||
|
"queryType": "range"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"unit": "percentunit"
|
||||||
|
},
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"legend": {
|
||||||
|
"displayMode": "table",
|
||||||
|
"placement": "bottom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"description": "otelcol_exporter_queue_size / clamp_min(otelcol_exporter_queue_capacity,1)"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"annotations": {
|
||||||
|
"list": []
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
apiVersion: 1
|
||||||
|
providers:
|
||||||
|
- name: Messenger
|
||||||
|
orgId: 1
|
||||||
|
folder: Lab6
|
||||||
|
type: file
|
||||||
|
disableDeletion: true
|
||||||
|
options: {path: /var/lib/grafana/dashboards}
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
apiVersion: 1
|
||||||
|
datasources:
|
||||||
|
- name: Prometheus
|
||||||
|
uid: prometheus
|
||||||
|
type: prometheus
|
||||||
|
access: proxy
|
||||||
|
url: http://prometheus:9090
|
||||||
|
isDefault: true
|
||||||
|
jsonData: {timeInterval: 3s}
|
||||||
|
- name: Loki
|
||||||
|
uid: loki
|
||||||
|
type: loki
|
||||||
|
access: proxy
|
||||||
|
url: http://loki:3100
|
||||||
|
jsonData:
|
||||||
|
derivedFields:
|
||||||
|
- name: TraceID
|
||||||
|
matcherRegex: '"trace_id":"([a-f0-9]{32})"'
|
||||||
|
datasourceUid: tempo
|
||||||
|
url: '$${__value.raw}'
|
||||||
|
- name: Tempo
|
||||||
|
uid: tempo
|
||||||
|
type: tempo
|
||||||
|
access: proxy
|
||||||
|
url: http://tempo:3200
|
||||||
|
jsonData:
|
||||||
|
tracesToLogsV2:
|
||||||
|
datasourceUid: loki
|
||||||
|
spanStartTimeShift: '-1m'
|
||||||
|
spanEndTimeShift: '1m'
|
||||||
|
filterByTraceID: true
|
||||||
|
filterBySpanID: false
|
||||||
|
tags: [{key: service.name, value: service_name}]
|
||||||
|
nodeGraph: {enabled: true}
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
global
|
||||||
|
maxconn 128
|
||||||
|
ssl-default-bind-options ssl-min-ver TLSv1.2
|
||||||
|
ssl-default-server-options ssl-min-ver TLSv1.2
|
||||||
|
defaults
|
||||||
|
mode http
|
||||||
|
timeout connect 5s
|
||||||
|
timeout check 5s
|
||||||
|
timeout client 35s
|
||||||
|
timeout server 35s
|
||||||
|
resolvers docker
|
||||||
|
nameserver dns 127.0.0.11:53
|
||||||
|
hold valid 1s
|
||||||
|
hold obsolete 1s
|
||||||
|
frontend public
|
||||||
|
bind *:8443 ssl crt /run/tls/bundle.pem
|
||||||
|
http-request deny if { path_beg /internal-test/ }
|
||||||
|
default_backend api
|
||||||
|
backend api
|
||||||
|
balance roundrobin
|
||||||
|
option httpchk GET /health/ready
|
||||||
|
http-check expect status 200
|
||||||
|
retries 2
|
||||||
|
option redispatch
|
||||||
|
server api1 api1:8443 ssl verify required ca-file /run/pki/ca.crt crt /run/tls/bundle.pem verifyhost api1 sni str(api1) check check-sni api1 inter 1s fall 1 rise 1 resolvers docker init-addr libc,none
|
||||||
|
server api2 api2:8443 ssl verify required ca-file /run/pki/ca.crt crt /run/tls/bundle.pem verifyhost api2 sni str(api2) check check-sni api2 inter 1s fall 1 rise 1 resolvers docker init-addr libc,none
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -eu
|
||||||
|
export MINIO_ROOT_USER="$(cat /run/secrets/minio_root_user)"
|
||||||
|
export MINIO_ROOT_PASSWORD="$(cat /run/secrets/minio_root_password)"
|
||||||
|
mkdir -p /tmp/minio-certs
|
||||||
|
cp /run/tls/cert.crt /tmp/minio-certs/public.crt
|
||||||
|
cp /run/tls/key.key /tmp/minio-certs/private.key
|
||||||
|
exec minio server /data --address :9000 --console-address 127.0.0.1:9001 --certs-dir /tmp/minio-certs
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
ui = true
|
||||||
|
api_addr = "https://openbao:8200"
|
||||||
|
storage "file" { path = "/bao/data" }
|
||||||
|
listener "tcp" {
|
||||||
|
address = "0.0.0.0:8200"
|
||||||
|
tls_cert_file = "/run/tls/cert.crt"
|
||||||
|
tls_key_file = "/run/tls/key.key"
|
||||||
|
tls_client_ca_file = "/run/pki/ca.crt"
|
||||||
|
tls_min_version = "tls12"
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
path "secret/data/api1" { capabilities = ["read"] }
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
path "secret/data/api2" { capabilities = ["read"] }
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
path "secret/data/janitor" { capabilities = ["read"] }
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
path "secret/data/publisher" { capabilities = ["read"] }
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
path "secret/data/worker" { capabilities = ["read"] }
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Action":["s3:ListBucket"],"Resource":["arn:aws:s3:::messenger-attachments"]},{"Effect":"Allow","Action":["s3:GetObject","s3:PutObject","s3:DeleteObject"],"Resource":["arn:aws:s3:::messenger-attachments/staging/*","arn:aws:s3:::messenger-attachments/results/*"]}]}
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
groups:
|
||||||
|
- name: lab6-slo
|
||||||
|
interval: 3s
|
||||||
|
rules:
|
||||||
|
- record: messenger:api_error_ratio:15s
|
||||||
|
expr: sum(rate(http_server_requests_total{service_name="messenger-api",status_class="5xx"}[15s])) / clamp_min(sum(rate(http_server_requests_total{service_name="messenger-api"}[15s])), 0.001)
|
||||||
|
- record: messenger:api_error_ratio:60s
|
||||||
|
expr: sum(rate(http_server_requests_total{service_name="messenger-api",status_class="5xx"}[60s])) / clamp_min(sum(rate(http_server_requests_total{service_name="messenger-api"}[60s])), 0.001)
|
||||||
|
- alert: APIHighErrorRate
|
||||||
|
expr: messenger:api_error_ratio:15s > 0.05
|
||||||
|
for: 6s
|
||||||
|
labels: {severity: warning}
|
||||||
|
annotations:
|
||||||
|
summary: Business API 5xx exceeds 5 percent over 15 seconds
|
||||||
|
runbook_url: https://localhost:3007/d/messenger-lab7
|
||||||
|
description: See RUNBOOK.md. Use storage.failure logs and db spans to distinguish DB failure from handler latency.
|
||||||
|
- alert: APIErrorBudgetBurn
|
||||||
|
expr: (messenger:api_error_ratio:15s / 0.01 > 6) and (messenger:api_error_ratio:60s / 0.01 > 6)
|
||||||
|
for: 10s
|
||||||
|
labels: {severity: critical}
|
||||||
|
annotations:
|
||||||
|
summary: API 99 percent SLO consumes budget at more than 6x in both windows
|
||||||
|
description: Educational compressed windows 15s and 60s; see RUNBOOK.md for production limitations.
|
||||||
|
- alert: QueueLagGrowing
|
||||||
|
expr: max(queue_oldest_age_seconds{service_name="messenger-publisher"}) > 10 and max(deriv(queue_oldest_age_seconds{service_name="messenger-publisher"}[15s])) > 0.1
|
||||||
|
for: 6s
|
||||||
|
labels: {severity: warning}
|
||||||
|
annotations:
|
||||||
|
summary: Durable backlog age exceeds 10 seconds and grows
|
||||||
|
description: Check worker busy/capacity, job completions, consumer logs and trace. Restore worker and verify backlog drains.
|
||||||
|
- alert: ReadyErrorBudgetBurn
|
||||||
|
expr: ((sum(rate(attachment_ready_duration_seconds_count[15s])) - sum(rate(attachment_ready_duration_seconds_bucket{le="10"}[15s]))) / clamp_min(sum(rate(attachment_ready_duration_seconds_count[15s])),0.001) / 0.05 > 3) and ((sum(rate(attachment_ready_duration_seconds_count[60s])) - sum(rate(attachment_ready_duration_seconds_bucket{le="10"}[60s]))) / clamp_min(sum(rate(attachment_ready_duration_seconds_count[60s])),0.001) / 0.05 > 3)
|
||||||
|
for: 6s
|
||||||
|
labels: {severity: warning}
|
||||||
|
annotations:
|
||||||
|
summary: Ready within 10s SLO budget burns in both windows
|
||||||
|
description: Completed-job SLI has survivorship delay; QueueLagGrowing covers uncompleted jobs. See RUNBOOK.md.
|
||||||
@@ -0,0 +1,53 @@
|
|||||||
|
receivers:
|
||||||
|
otlp:
|
||||||
|
protocols:
|
||||||
|
grpc: {endpoint: "127.0.0.1:4317"}
|
||||||
|
http: {endpoint: "127.0.0.1:4318"}
|
||||||
|
processors:
|
||||||
|
memory_limiter:
|
||||||
|
check_interval: 1s
|
||||||
|
limit_mib: 192
|
||||||
|
spike_limit_mib: 48
|
||||||
|
batch:
|
||||||
|
timeout: 1s
|
||||||
|
send_batch_size: 128
|
||||||
|
send_batch_max_size: 256
|
||||||
|
exporters:
|
||||||
|
prometheus:
|
||||||
|
endpoint: "127.0.0.1:8889"
|
||||||
|
resource_to_telemetry_conversion: {enabled: true}
|
||||||
|
otlphttp/tempo:
|
||||||
|
endpoint: https://tempo:4438
|
||||||
|
tls: {ca_file: /run/pki/ca.crt, cert_file: /run/tls/cert.crt, key_file: /run/tls/key.key}
|
||||||
|
timeout: 2s
|
||||||
|
sending_queue: {enabled: true, num_consumers: 2, queue_size: 64}
|
||||||
|
retry_on_failure: {enabled: true, initial_interval: 1s, max_interval: 5s, max_elapsed_time: 15s}
|
||||||
|
otlphttp/loki:
|
||||||
|
endpoint: https://loki:3443/otlp
|
||||||
|
tls: {ca_file: /run/pki/ca.crt, cert_file: /run/tls/cert.crt, key_file: /run/tls/key.key}
|
||||||
|
timeout: 2s
|
||||||
|
sending_queue: {enabled: true, num_consumers: 2, queue_size: 64}
|
||||||
|
retry_on_failure: {enabled: true, initial_interval: 1s, max_interval: 5s, max_elapsed_time: 15s}
|
||||||
|
extensions:
|
||||||
|
health_check: {endpoint: "127.0.0.1:13133"}
|
||||||
|
service:
|
||||||
|
extensions: [health_check]
|
||||||
|
telemetry:
|
||||||
|
metrics:
|
||||||
|
readers:
|
||||||
|
- pull:
|
||||||
|
exporter:
|
||||||
|
prometheus: {host: "127.0.0.1", port: 8888}
|
||||||
|
pipelines:
|
||||||
|
metrics:
|
||||||
|
receivers: [otlp]
|
||||||
|
processors: [memory_limiter, batch]
|
||||||
|
exporters: [prometheus]
|
||||||
|
logs:
|
||||||
|
receivers: [otlp]
|
||||||
|
processors: [memory_limiter, batch]
|
||||||
|
exporters: [otlphttp/loki]
|
||||||
|
traces:
|
||||||
|
receivers: [otlp]
|
||||||
|
processors: [memory_limiter, batch]
|
||||||
|
exporters: [otlphttp/tempo]
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
auth_enabled: false
|
||||||
|
server: {http_listen_address: 127.0.0.1, http_listen_port: 3100, grpc_listen_address: 127.0.0.1}
|
||||||
|
common:
|
||||||
|
instance_addr: 127.0.0.1
|
||||||
|
path_prefix: /loki
|
||||||
|
replication_factor: 1
|
||||||
|
ring: {kvstore: {store: inmemory}}
|
||||||
|
storage:
|
||||||
|
filesystem: {chunks_directory: /loki/chunks, rules_directory: /loki/rules}
|
||||||
|
schema_config:
|
||||||
|
configs:
|
||||||
|
- from: 2024-01-01
|
||||||
|
store: tsdb
|
||||||
|
object_store: filesystem
|
||||||
|
schema: v13
|
||||||
|
index: {prefix: index_, period: 24h}
|
||||||
|
limits_config:
|
||||||
|
allow_structured_metadata: true
|
||||||
|
retention_period: 168h
|
||||||
|
compactor:
|
||||||
|
working_directory: /loki/compactor
|
||||||
|
retention_enabled: true
|
||||||
|
delete_request_store: filesystem
|
||||||
|
analytics: {reporting_enabled: false}
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
{
|
||||||
|
"global": {
|
||||||
|
"scrape_interval": "3s",
|
||||||
|
"evaluation_interval": "3s"
|
||||||
|
},
|
||||||
|
"rule_files": [
|
||||||
|
"/etc/prometheus/alerts.yaml"
|
||||||
|
],
|
||||||
|
"scrape_configs": [
|
||||||
|
{
|
||||||
|
"job_name": "messenger",
|
||||||
|
"scheme": "https",
|
||||||
|
"tls_config": {
|
||||||
|
"ca_file": "/run/pki/ca.crt",
|
||||||
|
"cert_file": "/run/tls/cert.crt",
|
||||||
|
"key_file": "/run/tls/key.key"
|
||||||
|
},
|
||||||
|
"static_configs": [
|
||||||
|
{
|
||||||
|
"targets": [
|
||||||
|
"otel-collector:8890"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"job_name": "collector",
|
||||||
|
"scheme": "https",
|
||||||
|
"tls_config": {
|
||||||
|
"ca_file": "/run/pki/ca.crt",
|
||||||
|
"cert_file": "/run/tls/cert.crt",
|
||||||
|
"key_file": "/run/tls/key.key"
|
||||||
|
},
|
||||||
|
"static_configs": [
|
||||||
|
{
|
||||||
|
"targets": [
|
||||||
|
"otel-collector:8887"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
server: {http_listen_address: 127.0.0.1, http_listen_port: 3200, grpc_listen_address: 127.0.0.1}
|
||||||
|
distributor:
|
||||||
|
receivers:
|
||||||
|
otlp:
|
||||||
|
protocols:
|
||||||
|
grpc: {endpoint: "127.0.0.1:4317"}
|
||||||
|
http: {endpoint: "127.0.0.1:4318"}
|
||||||
|
ingester: {max_block_duration: 5m, lifecycler: {address: 127.0.0.1}}
|
||||||
|
compactor:
|
||||||
|
compaction: {block_retention: 168h}
|
||||||
|
storage:
|
||||||
|
trace:
|
||||||
|
backend: local
|
||||||
|
wal: {path: /var/tempo/wal}
|
||||||
|
local: {path: /var/tempo/blocks}
|
||||||
|
usage_report: {reporting_enabled: false}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
local all all trust
|
||||||
|
hostnossl all all 0.0.0.0/0 reject
|
||||||
|
hostssl messenger all 0.0.0.0/0 scram-sha-256
|
||||||
|
hostnossl all all ::/0 reject
|
||||||
|
hostssl messenger all ::/0 scram-sha-256
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -eu
|
||||||
|
cp /run/tls/key.key /tmp/server.key
|
||||||
|
cp /run/tls/cert.crt /tmp/server.crt
|
||||||
|
chmod 600 /tmp/server.key
|
||||||
|
chown postgres:postgres /tmp/server.key /tmp/server.crt
|
||||||
|
exec docker-entrypoint.sh postgres -c ssl=on -c ssl_cert_file=/tmp/server.crt -c ssl_key_file=/tmp/server.key -c hba_file=/etc/postgresql/pg_hba.conf
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Action":["s3:ListBucket"],"Resource":["arn:aws:s3:::messenger-attachments"]},{"Effect":"Allow","Action":["s3:GetObject","s3:DeleteObject"],"Resource":["arn:aws:s3:::messenger-attachments/staging/*"]},{"Effect":"Allow","Action":["s3:GetObject","s3:PutObject"],"Resource":["arn:aws:s3:::messenger-attachments/results/*"]}]}
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
CREATE TABLE IF NOT EXISTS users (
|
||||||
|
id uuid PRIMARY KEY, username text UNIQUE NOT NULL, display_name text NOT NULL,
|
||||||
|
password_hash text NOT NULL, created_at timestamptz NOT NULL DEFAULT clock_timestamp()
|
||||||
|
);
|
||||||
|
CREATE TABLE IF NOT EXISTS sessions (
|
||||||
|
token_hash text PRIMARY KEY, user_id uuid NOT NULL REFERENCES users(id), expires_at timestamptz NOT NULL
|
||||||
|
);
|
||||||
|
CREATE TABLE IF NOT EXISTS chats (
|
||||||
|
id uuid PRIMARY KEY, title text NOT NULL, created_at timestamptz NOT NULL DEFAULT clock_timestamp()
|
||||||
|
);
|
||||||
|
CREATE TABLE IF NOT EXISTS members (
|
||||||
|
chat_id uuid REFERENCES chats(id), user_id uuid REFERENCES users(id), PRIMARY KEY(chat_id,user_id)
|
||||||
|
);
|
||||||
|
CREATE INDEX IF NOT EXISTS members_user_idx ON members(user_id,chat_id);
|
||||||
|
CREATE TABLE IF NOT EXISTS attachments (
|
||||||
|
id uuid PRIMARY KEY, chat_id uuid NOT NULL REFERENCES chats(id), owner_id uuid NOT NULL REFERENCES users(id),
|
||||||
|
filename text NOT NULL, object_key text UNIQUE NOT NULL, content_type text NOT NULL,
|
||||||
|
size_bytes bigint NOT NULL CHECK(size_bytes BETWEEN 1 AND 10485760), sha256 text NOT NULL,
|
||||||
|
created_at timestamptz NOT NULL DEFAULT clock_timestamp(), updated_at timestamptz NOT NULL DEFAULT clock_timestamp(),
|
||||||
|
availability text NOT NULL DEFAULT 'present' CHECK(availability IN ('present','missing'))
|
||||||
|
);
|
||||||
|
CREATE TABLE IF NOT EXISTS messages (
|
||||||
|
id uuid PRIMARY KEY, chat_id uuid NOT NULL REFERENCES chats(id), sender_id uuid NOT NULL REFERENCES users(id),
|
||||||
|
text text NOT NULL, created_at timestamptz NOT NULL DEFAULT clock_timestamp()
|
||||||
|
);
|
||||||
|
CREATE INDEX IF NOT EXISTS messages_order_idx ON messages(chat_id,created_at,id);
|
||||||
|
CREATE INDEX IF NOT EXISTS chats_order_idx ON chats(created_at,id);
|
||||||
|
CREATE TABLE IF NOT EXISTS message_attachments (
|
||||||
|
message_id uuid REFERENCES messages(id), attachment_id uuid REFERENCES attachments(id),
|
||||||
|
position integer NOT NULL, PRIMARY KEY(message_id,attachment_id), UNIQUE(message_id,position)
|
||||||
|
);
|
||||||
|
CREATE TABLE IF NOT EXISTS idempotency (
|
||||||
|
user_id uuid REFERENCES users(id), chat_id uuid REFERENCES chats(id), key text NOT NULL,
|
||||||
|
body_hash text NOT NULL, message_id uuid NOT NULL REFERENCES messages(id),
|
||||||
|
expires_at timestamptz NOT NULL, PRIMARY KEY(user_id,chat_id,key)
|
||||||
|
);
|
||||||
|
CREATE TABLE IF NOT EXISTS missing_observations (
|
||||||
|
attachment_id uuid PRIMARY KEY REFERENCES attachments(id), first_seen timestamptz NOT NULL DEFAULT clock_timestamp()
|
||||||
|
);
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
ALTER TABLE attachments ADD COLUMN IF NOT EXISTS status text NOT NULL DEFAULT 'queued' CHECK(status IN ('queued','processing','ready','failed'));
|
||||||
|
ALTER TABLE attachments ADD COLUMN IF NOT EXISTS staging_key text;
|
||||||
|
ALTER TABLE attachments ADD COLUMN IF NOT EXISTS pipeline_version integer NOT NULL DEFAULT 1 CHECK(pipeline_version > 0);
|
||||||
|
ALTER TABLE attachments ADD COLUMN IF NOT EXISTS variants jsonb NOT NULL DEFAULT '[]';
|
||||||
|
ALTER TABLE attachments ADD COLUMN IF NOT EXISTS error_code text;
|
||||||
|
CREATE TABLE IF NOT EXISTS jobs (
|
||||||
|
id uuid PRIMARY KEY, attachment_id uuid NOT NULL REFERENCES attachments(id),
|
||||||
|
pipeline_version integer NOT NULL CHECK(pipeline_version > 0),
|
||||||
|
attempts integer NOT NULL DEFAULT 0, status text NOT NULL DEFAULT 'queued'
|
||||||
|
CHECK(status IN ('queued','processing','ready','failed','superseded')),
|
||||||
|
next_attempt_at timestamptz NOT NULL DEFAULT clock_timestamp(), lease_until timestamptz,
|
||||||
|
error_code text, created_at timestamptz NOT NULL DEFAULT clock_timestamp(),
|
||||||
|
UNIQUE(attachment_id,pipeline_version)
|
||||||
|
);
|
||||||
|
CREATE INDEX IF NOT EXISTS jobs_due ON jobs(status,next_attempt_at);
|
||||||
|
CREATE TABLE IF NOT EXISTS outbox (
|
||||||
|
job_id uuid PRIMARY KEY REFERENCES jobs(id),
|
||||||
|
published_at timestamptz, publish_count integer NOT NULL DEFAULT 0
|
||||||
|
);
|
||||||
|
CREATE TABLE IF NOT EXISTS job_audit (
|
||||||
|
id bigserial PRIMARY KEY, job_id uuid NOT NULL REFERENCES jobs(id),
|
||||||
|
event text NOT NULL, detail text NOT NULL DEFAULT '',
|
||||||
|
created_at timestamptz NOT NULL DEFAULT clock_timestamp()
|
||||||
|
);
|
||||||
|
CREATE TABLE IF NOT EXISTS fault_rules (
|
||||||
|
job_id uuid PRIMARY KEY REFERENCES jobs(id), point text NOT NULL,
|
||||||
|
remaining integer NOT NULL DEFAULT 1
|
||||||
|
);
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
-- Durable W3C context belongs to the accepted job and survives relay restarts.
|
||||||
|
ALTER TABLE jobs ADD COLUMN IF NOT EXISTS traceparent text;
|
||||||
|
ALTER TABLE jobs ADD COLUMN IF NOT EXISTS tracestate text;
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
CREATE TABLE IF NOT EXISTS login_limits (
|
||||||
|
key text PRIMARY KEY, window_start timestamptz NOT NULL DEFAULT clock_timestamp(),
|
||||||
|
attempts integer NOT NULL DEFAULT 0
|
||||||
|
);
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
annotated-doc==0.0.7
|
||||||
|
annotated-types==0.8.0
|
||||||
|
anyio==4.15.1
|
||||||
|
argon2-cffi==25.1.0
|
||||||
|
argon2-cffi-bindings==26.1.0
|
||||||
|
boto3==1.38.46
|
||||||
|
botocore==1.38.46
|
||||||
|
certifi==2026.11.20
|
||||||
|
cffi==2.1.1
|
||||||
|
charset-normalizer==3.5.2
|
||||||
|
click==8.5.0
|
||||||
|
cryptography==51.0.1
|
||||||
|
Deprecated==3.0.0
|
||||||
|
fastapi==0.141.1
|
||||||
|
googleapis-common-protos==1.75.0
|
||||||
|
h11==0.16.0
|
||||||
|
idna==3.20
|
||||||
|
importlib_metadata==8.6.1
|
||||||
|
jmespath==1.1.0
|
||||||
|
opentelemetry-api==1.31.1
|
||||||
|
opentelemetry-exporter-otlp-proto-common==1.31.1
|
||||||
|
opentelemetry-exporter-otlp-proto-http==1.31.1
|
||||||
|
opentelemetry-proto==1.31.1
|
||||||
|
opentelemetry-sdk==1.31.1
|
||||||
|
opentelemetry-semantic-conventions==0.52b1
|
||||||
|
pillow==13.0.0
|
||||||
|
protobuf==5.29.6
|
||||||
|
psutil==7.0.0
|
||||||
|
psycopg==3.2.9
|
||||||
|
psycopg-binary==3.2.9
|
||||||
|
psycopg-pool==3.2.6
|
||||||
|
pycparser==3.11
|
||||||
|
pydantic==2.14.0
|
||||||
|
pydantic_core==2.50.0
|
||||||
|
python-dateutil==2.9.0.post0
|
||||||
|
redis==6.2.0
|
||||||
|
requests==2.34.2
|
||||||
|
s3transfer==0.13.1
|
||||||
|
six==1.17.0
|
||||||
|
starlette==1.10.0
|
||||||
|
typing-inspection==0.4.4
|
||||||
|
typing_extensions==4.16.0
|
||||||
|
urllib3==2.8.0
|
||||||
|
uvicorn==0.34.3
|
||||||
|
wrapt==2.5.0
|
||||||
|
zipp==4.1.1
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
fastapi==0.141.1
|
||||||
|
uvicorn==0.34.3
|
||||||
|
psycopg[binary]==3.2.9
|
||||||
|
boto3==1.38.46
|
||||||
|
Pillow==13.0.0
|
||||||
|
argon2-cffi==25.1.0
|
||||||
|
redis==6.2.0
|
||||||
|
psycopg-pool==3.2.6
|
||||||
|
psutil==7.0.0
|
||||||
|
opentelemetry-sdk==1.31.1
|
||||||
|
opentelemetry-exporter-otlp-proto-http==1.31.1
|
||||||
|
cryptography==51.0.1
|
||||||
@@ -0,0 +1,110 @@
|
|||||||
|
"""Explicit operator init/unseal/configure. Operator material is NOT mounted in Bao/app."""
|
||||||
|
import json
|
||||||
|
import os
|
||||||
|
from pathlib import Path
|
||||||
|
import ssl
|
||||||
|
import sys
|
||||||
|
import urllib.request
|
||||||
|
import urllib.error
|
||||||
|
import psycopg
|
||||||
|
from psycopg import sql
|
||||||
|
ROOT = Path(__file__).resolve().parents[1]
|
||||||
|
SECRETS = ROOT/'secrets'
|
||||||
|
|
||||||
|
|
||||||
|
def value(name):
|
||||||
|
return (SECRETS/name).read_text().strip()
|
||||||
|
|
||||||
|
|
||||||
|
def bao(path,body=None,token=None,method=None):
|
||||||
|
ctx = ssl.create_default_context(cafile=str(ROOT/'pki/ca.crt'))
|
||||||
|
ctx.load_cert_chain(str(SECRETS/'tls/operator/cert.crt'),str(SECRETS/'tls/operator/key.key'))
|
||||||
|
headers = {'Content-Type':'application/json'}
|
||||||
|
if token:
|
||||||
|
headers['X-Vault-Token'] = token
|
||||||
|
request = urllib.request.Request('https://openbao:8200/v1/'+path,
|
||||||
|
data=json.dumps(body).encode() if body is not None else None,headers=headers,method=method)
|
||||||
|
with urllib.request.urlopen(request,context=ctx,timeout=10) as response:
|
||||||
|
return json.load(response) if response.status!=204 else {}
|
||||||
|
|
||||||
|
|
||||||
|
def root_token():
|
||||||
|
return json.loads((SECRETS/'operator/bao-init.json').read_text())['root_token']
|
||||||
|
|
||||||
|
|
||||||
|
def configure():
|
||||||
|
folder = SECRETS/'operator'
|
||||||
|
folder.mkdir(exist_ok=True)
|
||||||
|
if not bao('sys/init')['initialized']:
|
||||||
|
init = bao('sys/init',{'secret_shares':3,'secret_threshold':2})
|
||||||
|
(folder/'bao-init.json').write_text(json.dumps(init))
|
||||||
|
init = json.loads((folder/'bao-init.json').read_text())
|
||||||
|
if bao('sys/seal-status')['sealed']:
|
||||||
|
for key in init['keys'][:2]:
|
||||||
|
bao('sys/unseal',{'key':key})
|
||||||
|
token = init['root_token']
|
||||||
|
mounts = bao('sys/mounts',token=token)
|
||||||
|
if 'secret/' not in mounts:
|
||||||
|
bao('sys/mounts/secret',{'type':'kv','options':{'version':'2'}},token)
|
||||||
|
if 'cert/' not in bao('sys/auth',token=token):
|
||||||
|
bao('sys/auth/cert',{'type':'cert'},token)
|
||||||
|
if 'file/' not in bao('sys/audit',token=token):
|
||||||
|
bao('sys/audit/file',{'type':'file','options':{'file_path':'/bao/data/audit.json'}},token)
|
||||||
|
for role in ('api1','api2','worker','publisher','janitor'):
|
||||||
|
policy = 'path "secret/data/'+role+'" { capabilities = ["read"] }'
|
||||||
|
(ROOT/'infra/openbao'/('policy-'+role+'.hcl')).write_text(policy+'\n')
|
||||||
|
bao('sys/policies/acl/'+role,{'policy':policy},token)
|
||||||
|
bao('auth/cert/certs/'+role,{'certificate':(SECRETS/'tls'/role/'cert.crt').read_text(),
|
||||||
|
'allowed_dns_sans':[role],'token_policies':[role],'token_ttl':30,'token_max_ttl':60,'token_no_default_policy':True},token)
|
||||||
|
dbrole = 'api' if role.startswith('api') else role
|
||||||
|
s3role = 'operator' if role=='janitor' else 'api' if role.startswith('api') or role=='publisher' else role
|
||||||
|
brokerrole = 'api' if role.startswith('api') else 'operator' if role=='janitor' else role
|
||||||
|
values = {'DATABASE_URL':'postgresql://'+dbrole+':'+value(dbrole+'_db_password')+'@postgres:5432/messenger?sslmode=verify-full&sslrootcert=/run/pki/ca.crt',
|
||||||
|
'CURSOR_SECRET':value('cursor_secret'), 'S3_ACCESS_KEY_ID':value(s3role+'_s3_key'),
|
||||||
|
'S3_SECRET_ACCESS_KEY':value(s3role+'_s3_secret'),
|
||||||
|
'BROKER_URL':'rediss://'+brokerrole+':'+value(brokerrole+'_broker_password')+'@broker:6380/0'}
|
||||||
|
if not role.startswith('api'):
|
||||||
|
values.pop('CURSOR_SECRET')
|
||||||
|
if role=='publisher':
|
||||||
|
values.pop('S3_ACCESS_KEY_ID')
|
||||||
|
values.pop('S3_SECRET_ACCESS_KEY')
|
||||||
|
if role=='janitor':
|
||||||
|
values.pop('BROKER_URL')
|
||||||
|
bao('secret/data/'+role,{'data':values},token)
|
||||||
|
print('OpenBao initialized/unsealed with persistent storage; pinned cert roles and scoped KV paths ready.')
|
||||||
|
|
||||||
|
|
||||||
|
def database():
|
||||||
|
with psycopg.connect('host=postgres dbname=messenger user=messenger password='+value('postgres_password')+' sslmode=verify-full sslrootcert='+str(ROOT/'pki/ca.crt')) as conn:
|
||||||
|
for path in sorted((ROOT/'migrations').glob('*.sql')):
|
||||||
|
conn.execute(path.read_text())
|
||||||
|
conn.execute('REVOKE CREATE ON SCHEMA public FROM PUBLIC')
|
||||||
|
for role in ('api','worker','publisher','janitor'):
|
||||||
|
if not conn.execute('SELECT 1 FROM pg_roles WHERE rolname=%s',(role,)).fetchone():
|
||||||
|
conn.execute(sql.SQL('CREATE ROLE {} LOGIN').format(sql.Identifier(role)))
|
||||||
|
conn.execute(sql.SQL('ALTER ROLE {} PASSWORD {}').format(sql.Identifier(role),sql.Literal(value(role+'_db_password'))))
|
||||||
|
conn.execute(sql.SQL('GRANT CONNECT ON DATABASE messenger TO {}').format(sql.Identifier(role)))
|
||||||
|
conn.execute(sql.SQL('GRANT USAGE ON SCHEMA public TO {}').format(sql.Identifier(role)))
|
||||||
|
permissions = {
|
||||||
|
'api':{'SELECT,INSERT,UPDATE,DELETE':['users','sessions','chats','members','messages','message_attachments','idempotency','attachments','login_limits'], 'SELECT,INSERT':['jobs','outbox','job_audit']},
|
||||||
|
'worker':{'SELECT,UPDATE':['jobs','attachments','outbox'],'INSERT':['job_audit']},
|
||||||
|
'publisher':{'SELECT,UPDATE':['jobs','attachments','outbox'],'INSERT':['job_audit']},
|
||||||
|
'janitor':{'SELECT':['attachments']}}
|
||||||
|
for role,rights in permissions.items():
|
||||||
|
for verbs,tables in rights.items():
|
||||||
|
for table in tables:
|
||||||
|
conn.execute(sql.SQL('GRANT '+verbs+' ON {} TO {}').format(sql.Identifier(table),sql.Identifier(role)))
|
||||||
|
if role!='janitor':
|
||||||
|
conn.execute(sql.SQL('GRANT USAGE,SELECT ON SEQUENCE job_audit_id_seq TO {}').format(sql.Identifier(role)))
|
||||||
|
print('Schema and least-privilege DB roles ready over verify-full TLS.')
|
||||||
|
|
||||||
|
|
||||||
|
if __name__=='__main__':
|
||||||
|
if len(sys.argv)>1 and sys.argv[1]=='unseal':
|
||||||
|
init = json.loads((SECRETS/'operator/bao-init.json').read_text())
|
||||||
|
for key in init['keys'][:2]:
|
||||||
|
bao('sys/unseal',{'key':key})
|
||||||
|
print('Operator unseal completed.')
|
||||||
|
else:
|
||||||
|
configure()
|
||||||
|
database()
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
"""Read-only Git/public contract and secret scan. Never print secret values."""
|
||||||
|
import json
|
||||||
|
from pathlib import Path
|
||||||
|
import subprocess
|
||||||
|
ROOT=Path(__file__).resolve().parents[1]
|
||||||
|
def git(*args):return subprocess.check_output(['git',*args],cwd=ROOT,text=True,encoding='utf-8').strip()
|
||||||
|
public=git('ls-files','--','README.md','COURSE.md','CONTRIBUTING.md','tests','contracts').splitlines()
|
||||||
|
public=[name for name in public if name!='contracts/trust-matrix.md']
|
||||||
|
changed=[name for name in public if git('hash-object','--path',name,name)!=git('rev-parse','HEAD:'+name)]
|
||||||
|
assert not changed,'Mandatory files changed: '+', '.join(changed)
|
||||||
|
private=[]
|
||||||
|
for path in (ROOT/'secrets').rglob('*'):
|
||||||
|
if path.is_file() and path.suffix not in ('.crt',):
|
||||||
|
raw=path.read_bytes()
|
||||||
|
if path.suffix not in ('.json','.yaml','.pem','.key') and len(raw.strip())>=16:
|
||||||
|
private.append(raw.strip())
|
||||||
|
scan=[]
|
||||||
|
for path in ROOT.rglob('*'):
|
||||||
|
if path.is_file() and path.suffix in ('.md','.py','.json','.txt','.yaml','.yml','.hcl','.cfg','.conf','.lock') and not set(path.relative_to(ROOT).parts)&{'.git','secrets','pki','.venv','__pycache__'}:
|
||||||
|
scan.append(path)
|
||||||
|
marker=b'-----BEGIN PRIVATE KEY-----'
|
||||||
|
leaks=[str(p.relative_to(ROOT)) for p in scan if any(v in p.read_bytes() for v in private) or
|
||||||
|
p.read_bytes().startswith(marker) or b'\n'+marker+b'\n' in p.read_bytes()]
|
||||||
|
assert not leaks,'Private material found in '+', '.join(leaks)
|
||||||
|
result={'result':'PASS','unchanged_mandatory_files':len(public),'trust_matrix_filled_as_required':True,
|
||||||
|
'scanned_files':len(scan),'private_value_leaks':0,'scope':'mtusi2026lab7 only',
|
||||||
|
'secrets_ignored':bool(git('check-ignore','secrets/postgres_password','pki/ca.crt','.env'))}
|
||||||
|
(ROOT/'evidence/integrity.json').write_text(json.dumps(result,indent=2),encoding='utf-8')
|
||||||
|
print(json.dumps(result))
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
"""Public load workload plus actual process/cgroup snapshots on the same stand."""
|
||||||
|
import json
|
||||||
|
import sys
|
||||||
|
import time
|
||||||
|
from verify import ROOT,BASE,CA,command,compose,save
|
||||||
|
|
||||||
|
|
||||||
|
def stats(role):
|
||||||
|
tag='src.app:app' if role.startswith('api') else 'src.worker'
|
||||||
|
code="import psutil,json; p=next(p for p in psutil.process_iter() if p.name().startswith('python') and "+repr(tag)+" in p.cmdline()); procs=[p]+p.children(recursive=True); print(json.dumps({'cpu_seconds':sum(sum(x.cpu_times()[:2]) for x in procs),'rss_bytes':sum(x.memory_info().rss for x in procs)}))"
|
||||||
|
return json.loads(compose('exec','-T',role,'python','-c',code))
|
||||||
|
|
||||||
|
|
||||||
|
if __name__=='__main__':
|
||||||
|
before={r:stats(r) for r in ('api1','api2','worker')}
|
||||||
|
started=time.monotonic()
|
||||||
|
command([sys.executable,'-X','utf8','tests/load.py','--base-url',BASE,'--ca-file',CA,'--duration','30','--concurrency','4','--output','evidence/load.json'],'load.txt')
|
||||||
|
elapsed=time.monotonic()-started
|
||||||
|
after={r:stats(r) for r in before}
|
||||||
|
ids=compose('ps','-q').split()
|
||||||
|
containers=command(['docker','stats','--no-stream','--format','{{json .}}',*ids])
|
||||||
|
save('load-resources.json',{'before':before,'after':after,'wall_seconds':elapsed,
|
||||||
|
'CPU_cores':{r:(after[r]['cpu_seconds']-before[r]['cpu_seconds'])/elapsed for r in before},
|
||||||
|
'cgroup_snapshots':[json.loads(line) for line in containers.splitlines()],
|
||||||
|
'clock_resolution_seconds':time.get_clock_info('monotonic').resolution,
|
||||||
|
'limitation':'Process snapshots include child workers, exclude client, DB, TLS sidecars and Collector from API CPU; container snapshots cover those separately. RSS is end snapshot, not worst-case peak.'})
|
||||||
|
print('PASS: public HTTPS load and process/container resource snapshots')
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
from pathlib import Path
|
||||||
|
from src.storage import db
|
||||||
|
|
||||||
|
with db() as conn:
|
||||||
|
conn.execute('SELECT pg_advisory_xact_lock(440001)')
|
||||||
|
for path in sorted(Path('migrations').glob('*.sql')):
|
||||||
|
conn.execute(path.read_text())
|
||||||
|
print('Schema ready (idempotent migration).')
|
||||||
@@ -0,0 +1,90 @@
|
|||||||
|
"""Operator-only local PKI. Never mount this directory into applications."""
|
||||||
|
import datetime as dt
|
||||||
|
import ipaddress
|
||||||
|
import json
|
||||||
|
import os
|
||||||
|
from pathlib import Path
|
||||||
|
import sys
|
||||||
|
from cryptography import x509
|
||||||
|
from cryptography.hazmat.primitives import hashes, serialization
|
||||||
|
from cryptography.hazmat.primitives.asymmetric import ec
|
||||||
|
from cryptography.x509.oid import NameOID, ExtendedKeyUsageOID
|
||||||
|
|
||||||
|
ROOT = Path(__file__).resolve().parents[1]
|
||||||
|
PRIVATE = ROOT/'secrets'
|
||||||
|
PUBLIC = ROOT/'pki'
|
||||||
|
|
||||||
|
|
||||||
|
def key_bytes(key):
|
||||||
|
return key.private_bytes(serialization.Encoding.PEM,serialization.PrivateFormat.PKCS8,serialization.NoEncryption())
|
||||||
|
|
||||||
|
|
||||||
|
def authority(name):
|
||||||
|
path = PRIVATE/'operator'/name
|
||||||
|
path.mkdir(parents=True,exist_ok=True)
|
||||||
|
if not (path/'key.key').exists():
|
||||||
|
key = ec.generate_private_key(ec.SECP256R1())
|
||||||
|
subject = x509.Name([x509.NameAttribute(NameOID.COMMON_NAME,name)])
|
||||||
|
now = dt.datetime.now(dt.timezone.utc)
|
||||||
|
cert = x509.CertificateBuilder().subject_name(subject).issuer_name(subject).public_key(key.public_key()).serial_number(x509.random_serial_number()).not_valid_before(now-dt.timedelta(minutes=1)).not_valid_after(now+dt.timedelta(days=365)).add_extension(x509.BasicConstraints(ca=True,path_length=0),True).add_extension(x509.KeyUsage(True,False,False,False,False,True,True,False,False),True).sign(key,hashes.SHA256())
|
||||||
|
(path/'key.key').write_bytes(key_bytes(key))
|
||||||
|
(path/'cert.crt').write_bytes(cert.public_bytes(serialization.Encoding.PEM))
|
||||||
|
key=serialization.load_pem_private_key((path/'key.key').read_bytes(),None)
|
||||||
|
cert=x509.load_pem_x509_certificate((path/'cert.crt').read_bytes())
|
||||||
|
try:
|
||||||
|
cert.extensions.get_extension_for_class(x509.SubjectKeyIdentifier)
|
||||||
|
except x509.ExtensionNotFound:
|
||||||
|
cert=x509.CertificateBuilder().subject_name(cert.subject).issuer_name(cert.issuer).public_key(key.public_key()).serial_number(cert.serial_number).not_valid_before(cert.not_valid_before_utc).not_valid_after(cert.not_valid_after_utc).add_extension(x509.BasicConstraints(ca=True,path_length=0),True).add_extension(x509.KeyUsage(True,False,False,False,False,True,True,False,False),True).add_extension(x509.SubjectKeyIdentifier.from_public_key(key.public_key()),False).add_extension(x509.AuthorityKeyIdentifier.from_issuer_public_key(key.public_key()),False).sign(key,hashes.SHA256())
|
||||||
|
(path/'cert.crt').write_bytes(cert.public_bytes(serialization.Encoding.PEM))
|
||||||
|
return key,cert
|
||||||
|
|
||||||
|
|
||||||
|
def issue(role,hours=24,foreign=False,force=False):
|
||||||
|
folder = PRIVATE/'tls'/role
|
||||||
|
folder.mkdir(parents=True,exist_ok=True)
|
||||||
|
if (folder/'cert.crt').exists() and not force:
|
||||||
|
old=x509.load_pem_x509_certificate((folder/'cert.crt').read_bytes())
|
||||||
|
try:
|
||||||
|
old.extensions.get_extension_for_class(x509.AuthorityKeyIdentifier)
|
||||||
|
return
|
||||||
|
except x509.ExtensionNotFound:
|
||||||
|
pass
|
||||||
|
key,ca = authority('foreign-ca' if foreign else 'lab7-ca')
|
||||||
|
leaf_key = ec.generate_private_key(ec.SECP256R1())
|
||||||
|
now = dt.datetime.now(dt.timezone.utc)
|
||||||
|
if hours<0:
|
||||||
|
now -= dt.timedelta(days=2)
|
||||||
|
hours = 1
|
||||||
|
san = [x509.DNSName(role)]
|
||||||
|
if role in ('lb','openbao','grafana'):
|
||||||
|
san += [x509.DNSName('localhost'),x509.IPAddress(ipaddress.ip_address('127.0.0.1'))]
|
||||||
|
leaf = x509.CertificateBuilder().subject_name(x509.Name([x509.NameAttribute(NameOID.COMMON_NAME,role)])).issuer_name(ca.subject).public_key(leaf_key.public_key()).serial_number(x509.random_serial_number()).not_valid_before(now-dt.timedelta(minutes=2)).not_valid_after(now+dt.timedelta(hours=hours)).add_extension(x509.BasicConstraints(ca=False,path_length=None),True).add_extension(x509.SubjectAlternativeName(san),False).add_extension(x509.ExtendedKeyUsage([ExtendedKeyUsageOID.SERVER_AUTH,ExtendedKeyUsageOID.CLIENT_AUTH]),False).add_extension(x509.KeyUsage(True,False,False,False,False,False,False,False,False),True).add_extension(x509.SubjectKeyIdentifier.from_public_key(leaf_key.public_key()),False).add_extension(x509.AuthorityKeyIdentifier.from_issuer_public_key(key.public_key()),False).sign(key,hashes.SHA256())
|
||||||
|
(folder/'cert.crt').write_bytes(leaf.public_bytes(serialization.Encoding.PEM))
|
||||||
|
(folder/'key.key').write_bytes(key_bytes(leaf_key))
|
||||||
|
(folder/'bundle.pem').write_bytes((folder/'cert.crt').read_bytes()+(folder/'key.key').read_bytes())
|
||||||
|
# Native PostgreSQL rejects group/world-readable private keys on Linux.
|
||||||
|
(folder/'key.key').chmod(0o600)
|
||||||
|
if os.name!='nt':
|
||||||
|
for path in folder.iterdir():
|
||||||
|
os.chown(path,10001,10001)
|
||||||
|
|
||||||
|
|
||||||
|
def main():
|
||||||
|
PUBLIC.mkdir(exist_ok=True)
|
||||||
|
_,ca = authority('lab7-ca')
|
||||||
|
(PUBLIC/'ca.crt').write_bytes(ca.public_bytes(serialization.Encoding.PEM))
|
||||||
|
if not (PUBLIC/'revoked.json').exists():
|
||||||
|
(PUBLIC/'revoked.json').write_text('[]')
|
||||||
|
roles = ['lb','api1','api2','worker','publisher','janitor','postgres','s3','broker','otel-collector','prometheus','loki','tempo','grafana','openbao','operator','probe','intruder']
|
||||||
|
if len(sys.argv)>1:
|
||||||
|
issue(sys.argv[1],force=True)
|
||||||
|
else:
|
||||||
|
for role in roles:
|
||||||
|
issue(role)
|
||||||
|
issue('foreign',foreign=True)
|
||||||
|
issue('expired',hours=-1)
|
||||||
|
print('Local PKI prepared; no private material displayed.')
|
||||||
|
|
||||||
|
|
||||||
|
if __name__=='__main__':
|
||||||
|
main()
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user