feat: accept OTLP only through an mTLS gateway with an identity allowlist

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 23:49:58 +03:00
co-authored by Claude Opus 5.5
parent ac75ad4a6d
commit 0a4f95eca7
39 changed files with 2943 additions and 145 deletions
+45 -2
View File
@@ -171,7 +171,8 @@ services:
image: *ci-image
volumes: !reset []
configs: *config-toml
# владелец — app (UID 10001 образа API); ключ 0400, остальное 0444
# владелец — app (UID 10001 образа API); ключи 0400, остальное 0444. С
# change telemetry-mtls — ещё клиентский leaf api-client (шлюз Collector)
secrets: !override
- source: ca.crt
uid: "10001"
@@ -189,6 +190,14 @@ services:
uid: "10001"
gid: "10001"
mode: 0400
- source: api-client.crt
uid: "10001"
gid: "10001"
mode: 0444
- source: api-client.key
uid: "10001"
gid: "10001"
mode: 0400
cleaner:
image: *ci-image
@@ -277,7 +286,32 @@ services:
# наблюдаемость (design change otel-telemetry, решение 20): те же сервисы,
# конфиги — configs; у хранилищ остаётся только именованный volume, у
# Grafana — tmpfs (не volumes) и ни одного порта на хосте
# Grafana — tmpfs (не volumes) и ни одного порта на хосте.
# Шлюз Collector (change telemetry-mtls): gateway.cfg и конфигурация OpenSSL
# LB — configs, файлы PKI — владелец haproxy (UID 99), пара 0400, CA и CRL
# 0444. Collector — в сетевом пространстве шлюза (network_mode основного
# файла): сетей override ему не добавляет
otel-gateway:
volumes: !reset []
configs:
- source: otel_gateway_cfg
target: /usr/local/etc/haproxy/haproxy.cfg
- source: haproxy_openssl_cnf
target: /usr/local/etc/haproxy/openssl.cnf
secrets: !override
- source: ca.crt
uid: "99"
gid: "99"
mode: 0444
- source: crl.pem
uid: "99"
gid: "99"
mode: 0444
- source: otel-collector.pem
uid: "99"
gid: "99"
mode: 0400
otel-collector:
volumes: !reset []
configs:
@@ -344,6 +378,8 @@ configs:
environment: CI_HAPROXY_CFG
haproxy_openssl_cnf:
environment: CI_HAPROXY_OPENSSL_CNF
otel_gateway_cfg:
environment: CI_OTEL_GATEWAY_CFG
otel_collector:
environment: CI_OTEL_COLLECTOR
prometheus_yml:
@@ -401,3 +437,10 @@ secrets: !override
environment: CI_PKI_WORKER_CRT
worker.key:
environment: CI_PKI_WORKER_KEY
# шлюз Collector и клиентский leaf API (change telemetry-mtls)
otel-collector.pem:
environment: CI_PKI_OTEL_COLLECTOR_PEM
api-client.crt:
environment: CI_PKI_API_CLIENT_CRT
api-client.key:
environment: CI_PKI_API_CLIENT_KEY