8cadacb553
gates / gates (push) Successful in 26s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
18 lines
2.0 KiB
Bash
18 lines
2.0 KiB
Bash
# After the gate opened: the app's own switch (app.yaml record + the running container's env), and a stranger's
|
|
# sign-up sent STRAIGHT to the app on the docker network (past the address block).
|
|
for a in gitea calcom gramps-web adventurelog homebox; do
|
|
f=/opt/docker/stacks/$a/app.yaml
|
|
rec=$(awk '/^after_setup:/{f=1;next} f&&/^[a-z]/{f=0} f' $f | tr -s ' ' | tr '\n' ' ')
|
|
nl=$(grep -o 'native_lock: [a-z]*' $f)
|
|
env=$(grep -oE 'SIGNUP_(CLOSED|OPEN): "?[a-z]+' $f)
|
|
echo "$a: after_setup {$rec} $nl app.yaml $env"
|
|
done
|
|
echo "running env: gitea $(docker exec gitea printenv GITEA__service__DISABLE_REGISTRATION) | calcom $(docker exec calcom printenv NEXT_PUBLIC_DISABLE_SIGNUP) | gramps-web $(docker exec gramps-web printenv GRAMPSWEB_REGISTRATION_DISABLED) | adventurelog $(docker exec adventurelog printenv DISABLE_REGISTRATION) | homebox $(docker exec homebox printenv HBOX_OPTIONS_ALLOW_REGISTRATION)"
|
|
C() { printf ' %s -> ' "$1"; shift; docker exec felhom-controller sh -c "curl -s -m 8 -o /tmp/n.b -w '%{http_code}' $* ; echo \" \$(head -c 100 /tmp/n.b | tr '\n' ' ')\"; rm -f /tmp/n.b"; }
|
|
echo "stranger sign-up straight at the app (no traefik, no block):"
|
|
C "gitea GET /user/sign_up (form or 'disabled')" "http://gitea:3000/user/sign_up | grep -oiE 'Registration is disabled|name=.user_name.' | head -1 >/tmp/n.b; echo"
|
|
C "calcom POST /api/auth/signup" "-X POST -H 'Content-Type: application/json' -d '{\"username\":\"strx\",\"email\":\"sx@x.hu\",\"password\":\"Xx12345678z!A\"}' http://calcom:3000/api/auth/signup"
|
|
C "gramps-web POST register" "-X POST -H 'Content-Type: application/json' -d '{\"email\":\"sx@x.hu\",\"password\":\"Xx12345678z\",\"full_name\":\"S\"}' http://gramps-web:5000/api/users/strx/register/"
|
|
C "homebox POST /api/v1/users/register" "-X POST -H 'Content-Type: application/json' -d '{\"name\":\"S\",\"email\":\"sx@x.hu\",\"password\":\"Xx12345678z\"}' http://homebox:7745/api/v1/users/register"
|
|
C "adventurelog backend is-registration-disabled" "http://adventurelog:80/auth/is-registration-disabled/"
|