forked from mtusi2026/mtusi2026lab7
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>
This commit is contained in:
@@ -22,9 +22,22 @@ services:
|
||||
# включает его только на этапе плана, между прогонами. max_connections
|
||||
# — конфигурация серии трека 1 (граница пула), у прочих профилей 100,
|
||||
# как у образа (решение 1 design change scaling-bench)
|
||||
# TLS — те же -c, что у сервиса postgres в docker-compose.yml (change
|
||||
# storage-tls): command заменяет список целиком. Файлы — secrets PKI
|
||||
# прогона, pg_hba.conf стенда — bind основного файла
|
||||
command:
|
||||
- postgres
|
||||
- -c
|
||||
- ssl=on
|
||||
- -c
|
||||
- ssl_cert_file=/run/secrets/postgres.crt
|
||||
- -c
|
||||
- ssl_key_file=/run/secrets/postgres.key
|
||||
- -c
|
||||
- ssl_min_protocol_version=TLSv1.3
|
||||
- -c
|
||||
- hba_file=/etc/postgresql/pg_hba.conf
|
||||
- -c
|
||||
- shared_preload_libraries=auto_explain
|
||||
- -c
|
||||
- max_connections=${BENCH_DB_MAX_CONNECTIONS:?run make bench}
|
||||
|
||||
Reference in New Issue
Block a user