Commit 9f309aef9c

9f309aef9cd94a4afa91302cf7d4628ce4cb5db5

parent: 8b73af24fa

Verified · cmc

cmc <hello@cleberg.net> · 2026-09-29 04:28 UTC

deploy: the flood test adds and removes its key with gitbay auth keys

Ref #260

Layout: unified · split

deploy/runner-auth-flood-test.sh +2 −2
@@ -56,7 +56,7 @@ job=flood260
5656tmp=$(mktemp -d)
5757fp=
5858cleanup() {
59 if [ -n "$fp" ]; then gitbay keys remove "$fp" >/dev/null || echo "remove key $fp by hand" >&2; fi
59 if [ -n "$fp" ]; then gitbay auth keys remove "$fp" >/dev/null || echo "remove key $fp by hand" >&2; fi
6060 fp=
6161 rm -rf "$tmp"
6262}
@@ -65,7 +65,7 @@ trap 'cleanup; exit 130' INT TERM
6565
6666echo "==> an expired key"
6767ssh-keygen -q -t ed25519 -N '' -C auth-flood-260 -f "$tmp/key"
68gitbay keys add --scope git --label auth-flood-260 --ttl 1s <"$tmp/key.pub" >/dev/null
68gitbay auth keys add --scope git --label auth-flood-260 --ttl 1s <"$tmp/key.pub" >/dev/null
6969fp=$(ssh-keygen -lf "$tmp/key.pub" | awk '{print $2}')
7070sleep 2
7171