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:
@@ -13,3 +13,14 @@ appendonly no
|
||||
|
||||
# без пароля сервер не примет соединения извне контейнера
|
||||
protected-mode yes
|
||||
|
||||
# только TLS (change storage-tls, design, решение 3): command задаёт
|
||||
# --port 0 (слушателя без TLS нет) и --tls-port. Сертификат и ключ identity
|
||||
# valkey — secrets сервиса; CA сервер требует при включённом TLS, но
|
||||
# сертификата клиента не проверяет (идентичность — пароль, ACL — change
|
||||
# storage-roles). Клиенты стенда договариваются только о TLS 1.3
|
||||
tls-cert-file /run/secrets/valkey.crt
|
||||
tls-key-file /run/secrets/valkey.key
|
||||
tls-ca-cert-file /run/secrets/ca.crt
|
||||
tls-auth-clients no
|
||||
tls-protocols "TLSv1.3"
|
||||
|
||||
Reference in New Issue
Block a user