Закрыть внешний вход 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
+4 -1
View File
@@ -1,10 +1,13 @@
#!/bin/sh
# Restart API replicas and every store they use. Volumes are kept.
# Restart API replicas and the stores they use. Volumes stay. OpenBao is left running
# so it does not need another unseal; API logs in again with the AppRole files.
set -eu
ROOT=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
cd "$ROOT"
if [ -f .env ]; then
docker compose --env-file .env restart postgres redis s3 rabbitmq api worker
docker compose --env-file .env restart s3-tls rabbit-mtls
else
docker compose restart postgres redis s3 rabbitmq api worker
docker compose restart s3-tls rabbit-mtls
fi