fix(keycloak): reach the admin api on the internal url #632

Sammanfogat
supernaut sammanfogade 1 incheckning från fix/keycloak-internal-admin-url in i main 2026-10-09 15:11:09 +00:00
Ägare

Refs bitborg/bitborg-web#311, bitborg/bitborg-payment#111.

Why

Sign-up on staging failed with Keycloak user create failed: HTTP 404. The public Keycloak vhost answers 404 outside /realms/bitborg/* and /resources/* (Caddyfile), so the admin API is not reachable there. Web and billing both pointed KEYCLOAK_URL at the public host.

What

  • New keycloak_internal_url: http://keycloak:8080 on the shared container network, the same upstream Caddy uses.
  • Web and billing KEYCLOAK_URL use it. OIDC stays on the public issuer.

Verified

Applied to staging from this branch, reconcile clean. From inside both containers the admin API answers 401 (reachable) instead of 404.

On prod the web container restarts once on the next apply. The pinned image ignores the value.

Refs bitborg/bitborg-web#311, bitborg/bitborg-payment#111. ## Why Sign-up on staging failed with `Keycloak user create failed: HTTP 404`. The public Keycloak vhost answers 404 outside `/realms/bitborg/*` and `/resources/*` (Caddyfile), so the admin API is not reachable there. Web and billing both pointed `KEYCLOAK_URL` at the public host. ## What - New `keycloak_internal_url`: `http://keycloak:8080` on the shared container network, the same upstream Caddy uses. - Web and billing `KEYCLOAK_URL` use it. OIDC stays on the public issuer. ## Verified Applied to staging from this branch, reconcile clean. From inside both containers the admin API answers 401 (reachable) instead of 404. On prod the web container restarts once on the next apply. The pinned image ignores the value.
supernaut lade till 1 incheckning 2026-10-09 15:08:40 +00:00
fix(keycloak): reach the admin api on the internal url
Alla kontroller lyckades
ci / ci (pull_request) Successful in 1m53s
ec5aded6c3
The public Keycloak vhost answers 404 outside the realm and resources, so web and billing admin calls failed. Refs bitborg/bitborg-web#311
supernaut schemalade den här ändringsförfrågan för automatisk sammanfogning när alla kontroller lyckas 2026-10-09 15:09:01 +00:00
supernaut sammanfogade incheckning 6f78040999 till main 2026-10-09 15:11:09 +00:00
supernaut tog bort grenen fix/keycloak-internal-admin-url 2026-10-09 15:11:09 +00:00
Logga in för att delta i denna konversation.
Inga granskare
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-infra!632
Ingen beskrivning angiven.