#!/bin/sh # Restart hook (tests/resilience.py --mode persistence): restart every store keeping all volumes, then the services. # business stores: postgres, valkey, minio, rabbitmq # secret store: openbao -> comes back SEALED; the operator step `scripts/bao.sh unseal` uses 2 of 3 shares # from secrets/operator/ (lab compromise documented in REPORT.md). Without it the services would # wait for OpenBao after their own restart. # telemetry: prometheus, loki, tempo, otel-collector, grafana # services: worker, api-1, api-2, nginx (they log in to OpenBao again and re-read their secrets) # Never removes volumes, never re-seeds. Prints no secrets. set -eu cd "$(dirname "$0")/.." docker compose restart -t 10 postgres valkey minio rabbitmq openbao >/dev/null sh scripts/bao.sh unseal >/dev/null docker compose restart -t 10 prometheus loki tempo otel-collector grafana >/dev/null docker compose restart -t 25 worker api-1 api-2 nginx >/dev/null