ЛР 7 — БВТ2301 — Курлова — на 4

Перенесён минимум lab6 (API без изменений), добавлена защита на границах доверия:
- внешний HTTPS; обязательный mTLS LB -> API с allowlist identity и отзывом по serial;
- TLS на всех связях: PostgreSQL verify-full, MinIO HTTPS, RabbitMQ AMQPS mTLS (EXTERNAL),
  Valkey TLS + ACL, Collector и хранилища телеметрии через mTLS с отдельными CA;
- OpenBao в server mode: cert auth, токены 15 мин, политики только на свой путь;
- роли БД, S3-политики и права брокера по принципу минимальных прав;
- Argon2id с замером, rehash, общий лимит входа, бюджет защиты от login DoS;
- hardening всех контейнеров, scan образов с разбором, модель угроз, матрица доверия;
- отрицательные тесты: TLS-аудит (135 проверок), ACL, ротации, sealed OpenBao.
This commit is contained in:
alenchha
2026-11-16 10:49:13 +03:00
parent 20afc2c790
commit 861e7722b5
116 changed files with 14522 additions and 63 deletions
+9
View File
@@ -0,0 +1,9 @@
# Prometheus web listener (lab7): TLS + mandatory client certificate from the "Telemetry Clients CA" only
# (collector-out for OTLP ingest, grafana-out for queries, operator for evidence scripts and the healthcheck).
# Root-signed service identities (api, worker, lb) are not in this CA and are refused at the handshake.
tls_server_config:
cert_file: /run/secrets/server.crt
key_file: /run/secrets/server.key
client_auth_type: RequireAndVerifyClientCert
client_ca_file: /run/secrets/telemetry-ca.crt
min_version: TLS12