chore: finalize lab7 security verification
CI / verify (pull_request) Failing after 3m27s

This commit is contained in:
2026-11-06 21:39:31 +03:00
parent 5ac64f51fa
commit 97a52eeee6
41 changed files with 759 additions and 150 deletions
+7 -4
View File
@@ -20,14 +20,17 @@ if [ ! -f "$repo_dir/.runtime/security/openbao/tls.crt" ]; then
fi
"$script_dir/openbao-seed.sh" "$env_file"
"$script_dir/sync-docker-workspace.sh"
compose up -d security-bootstrap openbao-permissions openbao
openbao_address=$(compose port openbao 8200)
BAO_ADDR="https://$openbao_address"
if [ -z "${BAO_ADDR:-}" ]; then
openbao_address=$(compose port openbao 8200)
BAO_ADDR="https://$openbao_address"
fi
BAO_CACERT="$repo_dir/.runtime/security/openbao/ca.crt"
export BAO_ADDR BAO_CACERT ENV_FILE="$env_file"
remaining=60
until curl --silent --show-error --cacert "$BAO_CACERT" \
until curl --silent --show-error --connect-timeout 2 --max-time 3 --cacert "$BAO_CACERT" \
--output /dev/null "$BAO_ADDR/v1/sys/health"; do
remaining=$((remaining - 1))
[ "$remaining" -gt 0 ] || {
@@ -40,7 +43,7 @@ done
ENV_FILE="$env_file" "$script_dir/openbao-init.sh"
ENV_FILE="$env_file" "$script_dir/openbao-unseal.sh"
remaining=60
until curl --fail --silent --show-error --cacert "$BAO_CACERT" \
until curl --fail --silent --show-error --connect-timeout 2 --max-time 3 --cacert "$BAO_CACERT" \
--output /dev/null "$BAO_ADDR/v1/sys/health"; do
remaining=$((remaining - 1))
[ "$remaining" -gt 0 ] || {