feat: secure messenger ingress and rate-limit logins

This commit is contained in:
Dmitrii Grishko
2026-11-14 19:24:51 +03:00
parent e3d7df4e72
commit 48e6a6ac0d
16 changed files with 337 additions and 76 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/bin/sh
set -eu
cd "$(dirname "$0")/.."
port=$(docker compose port haproxy 8443)
for attempt in $(seq 1 30); do
if curl --silent --fail --max-time 2 --cacert secrets/tls/lab7-ca.crt \
"https://localhost:${port##*:}/health/ready" >/dev/null; then
exit 0
fi
sleep 1
done
printf 'HTTPS ingress did not become ready\n' >&2
exit 1