Files
akyldash/infra/bootstrap/test-host-guard.sh
agent 16f97d5f73
CI / tests-and-images (pull_request) Has been cancelled
Guard recovery bootstrap from production host
2026-10-11 19:16:54 +03:00

13 lines
402 B
Bash

#!/usr/bin/env bash
set -euo pipefail
source "$(dirname "${BASH_SOURCE[0]}")/host-guard.sh"
akyldash_is_production_host avprogs.hlab.kz 127.0.0.1
akyldash_is_production_host other.example $'10.0.0.2\n206.223.249.118'
if akyldash_is_production_host recovery.example 10.0.0.2; then
echo 'FAIL unrelated recovery host identified as production' >&2
exit 1
fi
echo 'PASS recovery host identity guard'