fix: disable TLS 1.3 session tickets on the HAProxy ingress

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-17 12:06:55 +03:00
co-authored by Claude Opus 5.5
parent 465d7383aa
commit b56157b109
12 changed files with 236 additions and 30 deletions
@@ -4905,6 +4905,8 @@ LBTO_CLIENT_SILENT_S = 35
LBTO_BODY_BYTES = 10 * 1024 * 1024
LBTO_UPLOAD_PATH = f"{CHATS}/{uuid.UUID(int=1)}/attachments"
LBTO_READY_TIMEOUT_S = 30
# путь конфигурации OpenSSL в контейнере LB (OPENSSL_CONF сервиса haproxy)
LBTO_OPENSSL_CONF = "/usr/local/etc/haproxy/openssl.cnf"
# заглушка реплики на asyncio (stdlib образа API): /health/ready — 200,
# остальное — по параметру case; тело читает только там, где сказано
LBTO_STUB = r"""
@@ -5115,6 +5117,15 @@ def cmd_lb_upload_timeouts(config: str, image: str) -> int:
f"type=bind,src={config_path},"
"dst=/usr/local/etc/haproxy/haproxy.cfg,readonly"
)
# конфигурация OpenSSL процесса LB стенда (без билетов TLS 1.3, change
# https-tooling) — как у сервиса haproxy в docker-compose.yml
openssl_conf = [
"-e",
f"OPENSSL_CONF={LBTO_OPENSSL_CONF}",
"--mount",
f"type=bind,src={ROOT / 'infra' / 'haproxy' / 'openssl.cnf'},"
f"dst={LBTO_OPENSSL_CONF},readonly",
]
try:
# файлы PKI стенда — те же, что у LB и реплик стенда (change
# pki-ingress-mtls): ingress по HTTPS, к заглушке — mTLS
@@ -5135,6 +5146,7 @@ def cmd_lb_upload_timeouts(config: str, image: str) -> int:
"API_PORT=8080",
"--mount",
mount,
*openssl_conf,
*lb_pki,
haproxy,
"haproxy",
@@ -5189,6 +5201,7 @@ def cmd_lb_upload_timeouts(config: str, image: str) -> int:
f"127.0.0.1:{port}:8443",
"--mount",
mount,
*openssl_conf,
*lb_pki,
haproxy,
)