From 8be632a07eef1c940689cdc40309ce806d84e107 Mon Sep 17 00:00:00 2001 From: Codex Date: Sat, 23 May 2026 20:41:00 +0300 Subject: [PATCH] Verify platform Authentik wiring during deploy --- infra/synology/deploy-current.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/infra/synology/deploy-current.sh b/infra/synology/deploy-current.sh index 74eb5a3..76441fb 100755 --- a/infra/synology/deploy-current.sh +++ b/infra/synology/deploy-current.sh @@ -173,6 +173,20 @@ Verify: sudo /usr/local/bin/docker exec nodedc-platform-launcher-1 sh -lc \ 'touch /app/server/storage/.write-test /app/server/storage/uploads/.write-test && rm /app/server/storage/.write-test /app/server/storage/uploads/.write-test && echo storage-ok' +sudo /usr/local/bin/docker exec nodedc-platform-launcher-1 sh -lc ' + echo "$NODEDC_AUTHENTIK_BASE_URL" + getent hosts nodedc-platform-authentik-server + for attempt in 1 2 3 4 5 6 7 8 9 10; do + wget -qSO- \ + --header "Authorization: Bearer $NODEDC_AUTHENTIK_SERVICE_TOKEN" \ + "$NODEDC_AUTHENTIK_BASE_URL/api/v3/core/groups/?search=nodedc_admin" \ + 2>&1 | head -n 25 && exit 0 + echo "authentik-api-not-ready attempt=$attempt" + sleep 10 + done + exit 1 +' + curl -k -sS --compressed https://id.nodedc.ru/if/flow/default-authentication-flow/ \ | grep -aE 'hub.nodedc.ru|launcher.local|getLauncherBaseUrl|Запросить доступ'