From e39840cca2c7e55077a72dcaea9ef68e19dba9b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Rodrigues?= Date: Sat, 20 Jun 2026 15:49:26 +0100 Subject: [PATCH] fix(infra): use GET not POST for Gitea runner registration token API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The endpoint GET /api/v1/admin/runners/registration-token returns the token — POST returns 405. Bootstrapper was silently failing, leaving the secret empty and the act-runner unable to register. Co-Authored-By: Claude Sonnet 4.6 --- infrastructure/terraform/gitea.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrastructure/terraform/gitea.tf b/infrastructure/terraform/gitea.tf index a4d8bff..b039604 100644 --- a/infrastructure/terraform/gitea.tf +++ b/infrastructure/terraform/gitea.tf @@ -125,7 +125,7 @@ resource "terraform_data" "gitea_runner_registration" { PASSWORD=$(kubectl get secret gitea-admin -n gitea \ -o jsonpath='{.data.password}' | base64 -d) - TOKEN=$(curl -sf -X POST \ + TOKEN=$(curl -sf \ -u "admin:$PASSWORD" \ "http://git.homelab.local/api/v1/admin/runners/registration-token" \ | grep -o '"token":"[^"]*"' | cut -d'"' -f4)