# mTLS-шлюз Tempo (Tempo в namespace этого контейнера: HTTP 127.0.0.1:3201, OTLP 127.0.0.1:4319). # otel-collector — только POST /v1/traces (:4318); grafana — только чтение /api/* (без overrides); # prometheus — GET /metrics. global log stdout format raw local0 notice maxconn 1024 ssl-default-bind-options ssl-min-ver TLSv1.2 no-tls-tickets stats socket /tmp/haproxy.sock mode 600 level admin defaults mode http log global option httplog option dontlognull timeout connect 1s timeout client 60s timeout server 60s timeout http-request 10s timeout http-keep-alive 30s # Отказ в доступе — 403 с причиной (без деталей сертификата). errorfile 403 /usr/local/etc/haproxy/403.http frontend tempo_otlp bind :4318 ssl crt /run/tls/self/tls.pem ca-file /run/tls/trust/ca.crt crl-file /run/tls/trust/crl.pem verify required alpn http/1.1 http-request deny deny_status 403 unless { ssl_c_s_dn(CN) -m str otel-collector } METH_POST { path /v1/traces } default_backend tempo_otlp backend tempo_otlp server t 127.0.0.1:4319 frontend tempo_api bind :3200 ssl crt /run/tls/self/tls.pem ca-file /run/tls/trust/ca.crt crl-file /run/tls/trust/crl.pem verify required alpn http/1.1 acl id_grafana ssl_c_s_dn(CN) -m str grafana acl id_prom ssl_c_s_dn(CN) -m str prometheus http-request allow if id_grafana { path_beg /api/ } !{ path_beg /api/overrides } http-request allow if id_prom METH_GET { path /metrics } http-request deny deny_status 403 default_backend tempo_api backend tempo_api server t 127.0.0.1:3201