Закрыть внешний вход TLS и выдавать секреты через OpenBao.

LB ходит в API только с клиентским сертификатом нужной identity, остальные связи проверяют серверный сертификат, root token в приложение не попадает.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-11-26 19:48:38 +03:00
co-authored by Cursor
parent fb566d874c
commit 9b501b2020
33 changed files with 1243 additions and 221 deletions
+20
View File
@@ -0,0 +1,20 @@
global
log stdout format raw local0 info
maxconn 200
defaults
log global
mode http
timeout connect 3s
timeout client 60s
timeout server 60s
frontend ft_otlp
bind *:4318 ssl crt /certs/otel.pem ca-file /certs/ca.crt verify required
acl api_id ssl_c_san -m sub spiffe://messenger/api
acl worker_id ssl_c_san -m sub spiffe://messenger/worker
http-request deny unless api_id or worker_id
default_backend be_local
backend be_local
server collector 127.0.0.1:14318