Лабораторная 7: безопасность, mTLS и OpenBao, оценка 3

This commit is contained in:
Nurlygayanova Ekaterina
2026-11-13 12:41:35 +03:00
parent 20afc2c790
commit 4408471ed5
217 changed files with 21288 additions and 106 deletions
+20
View File
@@ -0,0 +1,20 @@
#!/bin/sh
set -eu
cd "$(dirname "$0")/.."
python3 scripts/bootstrap.py
docker compose build
docker compose up -d openbao
# Init endpoint is not available until TLS listener starts.
python3 - <<'PY'
import ssl,time,urllib.request
ctx=ssl.create_default_context(cafile='secrets/ca.crt')
for _ in range(60):
try:
urllib.request.urlopen('https://localhost:18200/v1/sys/init',context=ctx,timeout=2).close()
break
except OSError: time.sleep(1)
else: raise SystemExit('OpenBao TLS did not become ready')
PY
python3 scripts/bao-setup.py
docker compose up -d --wait
python3 scripts/wait-ready.py