lab7: TLS/mTLS по trust matrix, OpenBao (cert auth, KV, policies), роли БД, Argon2id+rehash, лимит входа, hardening, secprobe и тесты

This commit is contained in:
2026-11-12 12:39:15 +03:00
parent 20afc2c790
commit c063b15869
138 changed files with 18136 additions and 4 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/bin/sh
set -eu
# Перезапуск API, LB, pipeline, всех хранилищ (PostgreSQL, Redis, S3, RabbitMQ), OpenBao и стека
# наблюдаемости с сохранением volumes. После рестарта OpenBao запечатан: оператор выполняет
# unseal (здесь — scripts/bootstrap.py unseal с долями из secrets/operator), и только затем
# стартуют процессы, которым при запуске нужны секреты. Никаких down -v / повторного seed.
cd "$(dirname "$0")/.."
docker compose stop lb api reconciler relay worker
docker compose restart postgres redis s3 rabbitmq openbao otel-collector prometheus loki tempo grafana
${PYTHON:-python3} scripts/bootstrap.py unseal
until [ "$(docker inspect -f '{{.State.Health.Status}}' "$(docker compose ps -q postgres)")" = healthy ]; do sleep 1; done
until [ "$(docker inspect -f '{{.State.Health.Status}}' "$(docker compose ps -q redis)")" = healthy ]; do sleep 1; done
until [ "$(docker inspect -f '{{.State.Health.Status}}' "$(docker compose ps -q s3)")" = healthy ]; do sleep 1; done
until [ "$(docker inspect -f '{{.State.Health.Status}}' "$(docker compose ps -q rabbitmq)")" = healthy ]; do sleep 1; done
docker compose start api lb reconciler relay worker