Модель угроз, worker bounds и полный TLS аудит

This commit is contained in:
EgorAnti
2026-11-27 14:39:11 +03:00
parent 415edbf722
commit 567d568569
12 changed files with 588 additions and 10 deletions
+2
View File
@@ -67,6 +67,8 @@ burst на границе окна; лимитер ограничивает rate
| Read-only root и capability drop | Stateless-сервисы используют `read_only: true` и `cap_drop: ALL`; везде `no-new-privileges:true`, CPU/RAM/PID limits и отдельный tmpfs | `scripts/check-compose-hardening.ps1` проверяет каждый сервис из `docker compose config`; `scripts/test-container-secret-boundaries.ps1` сверяет runtime | **PASS** |
| Stateful writable-root исключения | Только postgres, redis, rabbitmq и minio сохраняют writable root: их entrypoints перед сменой UID подготавливают persistent named volume. Drop шести опасных capabilities и `no-new-privileges` сохранены; tmpfs выделен отдельно | Скрипт печатает причину каждого исключения и требует ожидаемый data volume; вывод в `evidence/dependency-image-scan.txt` | **PASS (4 объяснённых исключения)** |
| Dependency/image scan | OSV по Gradle `runtimeClasspath`; Trivy по собранному `hla-lab7-app:local`. Для каждого HIGH/CRITICAL указаны package/version, reachability, fix и временный контроль | `scripts/scan-dependencies.ps1 -FailOnHigh`; Trivy command и разбор в `evidence/dependency-image-scan.txt` | **PASS** |
| Upload-worker resource bounds | Container: 1 CPU, 1 GiB, 256 PID; process: concurrency 2/prefetch 1, 40M pixels, 512 MiB fair semaphore, 2 s permit wait, 60 s job timeout и lease 90 s | `scripts/test-worker-resource-bounds.ps1`; `ImageVariantProcessorTest`; `AttachmentWorkerLimitsTest` | **PASS** |
| Telemetry non-disclosure canary | Header/body capture выключен; Collector удаляет Authorization, request/response/message bodies, DB parameters и query во всех pipelines | `scripts/test-telemetry-redaction.ps1`: canary отсутствует в container logs, Loki, Tempo sensitive tags и Prometheus labels | **PASS** |
## Health, scrape и bootstrap