openpencil/deploy/collab-relay-locator/check-cn-docker-user-firewall-interface-address.awk
Kayshen-X a39406c12b feat(deploy): collab-relay production configs, CN docker firewall, HSM locator
Add production deployment configs for the collab relay and locator: region-split
compose (CN/global), direct nginx gateways and location maps, the CN docker-user
firewall install/verify/validate tooling and systemd unit, and an SoftHSM-backed
locator variant. Extend the collab security/deployment boundary checks to cover
the new artifacts.

The CN application host address is a placeholder (10.0.0.10); substitute the real
private address at deploy time.
2026-08-11 21:46:47 +08:00

12 lines
284 B
Awk

# Count exact configured IPv4 assignments in `ip -4 -o addr show dev` output.
$3 == "inet" {
split($4, address_and_prefix, "/")
if (address_and_prefix[1] == expected_ipv4 &&
address_and_prefix[2] ~ /^[0-9]+$/) {
matches++
}
}
END {
print matches + 0
}