Files
mtusi2026lab7-safronov/infra/postgres/pg_hba.conf
ricoromaandClaude Opus 5.5 8bca5543fd feat: require TLS to PostgreSQL, Valkey and S3
Storage servers accept only TLS 1.3 (pg_hba hostssl / hostnossl reject,
Valkey port 0, S3 gateway HTTPS only) with stand identities postgres,
valkey and s3. Clients trust only the stand CA from [client_tls] ca_file
and check the host name; no switch to disable verification. Processes
exit with code 2 without a CA or with an IP storage address. Temporary
stands, CI and bench/ run on TLS storages; make storage_tls_check adds
negative checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 21:17:49 +03:00

20 lines
1.4 KiB
Plaintext

# pg_hba.conf стенда (change storage-tls, design, решения 3 и 7; спек
# transport-security, «TLS к хранилищам стенда»). Сервису postgres — bind
# read-only (-c hba_file=/etc/postgresql/pg_hba.conf), в CI — configs.
#
# Граница открытого текста — только сокет внутри контейнера PostgreSQL: его
# видят лишь процессы контейнера (временный сервер инициализации образа,
# docker compose exec … psql оператора, hook стенда отказов, run_isolated.py,
# оркестратор bench/). Пути из сети к сокету нет.
#
# Сеть (сеть compose и порт 127.0.0.1 хоста) — только TLS (не ниже 1.3,
# ssl_min_protocol_version в command сервиса) и пароль SCRAM; соединение без
# TLS отвергается до аутентификации («pg_hba.conf rejects connection … no encryption»).
# Сертификата клиента сервер не требует: идентичность клиента — пароль роли
# (раздельные роли — change storage-roles).
#
# TYPE DATABASE USER ADDRESS METHOD
local all all trust
hostssl all all all scram-sha-256
hostnossl all all all reject