feat: drop capabilities, run read-only and non-root in every container, mTLS for the S3 gRPC gateway

Every service of the stand gets the x-hardening anchor (cap_drop ALL,
no-new-privileges, read-only root) with an empty exception table, tmpfs
with size limits, pids limits by measurement and non-root users for
PostgreSQL, Valkey, RabbitMQ and SeaweedFS. The S3 gateway gRPC accepts
only mTLS with the stand CA. make hardening_check checks inspect data,
processes and listeners against the compose model; a fast test keeps the
override files from removing restrictions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-27 05:23:13 +03:00
co-authored by Claude Opus 5.5
parent 1f45bfe011
commit 157b878289
26 changed files with 2639 additions and 130 deletions
+3
View File
@@ -48,6 +48,9 @@ export CI_OTEL_COLLECTOR CI_PROMETHEUS_YML CI_LOKI_YAML CI_TEMPO_YAML \
# конфигурация сервера OpenBao (change openbao-tooling)
CI_OPENBAO_CONFIG="$(cat infra/openbao/config.hcl)$nl"
export CI_OPENBAO_CONFIG
# mTLS служебного gRPC шлюза S3 (change container-hardening)
CI_S3_SECURITY="$(cat infra/s3/security.toml)$nl"
export CI_S3_SECURITY
# файлы PKI прогона (change https-tooling, design, решение 3) — secrets
# override из окружения: каталог стенда, который заполнил make pki_stand