docs(adr): allow a loopback ssh forward for the keycloak admin api #135

Sammanfogat
supernaut sammanfogade 1 incheckning från docs/keycloak-admin-tunnel in i main 2026-10-08 19:18:18 +00:00
Ägare

OpenTofu needs to reach the Keycloak admin API (ADR 0044). A plain SSH tunnel does not work today: ADR 0015 forbids TCP forwarding, and rootless container addresses are not reachable from the host's SSH user.

What

  • ADR 0015: a dated amendment with one exception. User admin may forward to 127.0.0.1:18080 only. Keycloak publishes its HTTP port there on loopback. Every other forward stays refused.
  • ADR 0044: "Admin surface not public" says how the forward works. The drift check runs from the operator machine or a host timer, because CI cannot reach the admin API (bitborg/bitborg-infra#576). ADR 0015 is added to "Amends".

Rejected: an nc or socat exec-channel workaround, and running OpenTofu on the host.

Implementation: bitborg/bitborg-infra feat/sshd-keycloak-admin-forward. Refs bitborg/bitborg-infra#571.

OpenTofu needs to reach the Keycloak admin API (ADR 0044). A plain SSH tunnel does not work today: ADR 0015 forbids TCP forwarding, and rootless container addresses are not reachable from the host's SSH user. ## What - **ADR 0015:** a dated amendment with one exception. User `admin` may forward to `127.0.0.1:18080` only. Keycloak publishes its HTTP port there on loopback. Every other forward stays refused. - **ADR 0044:** "Admin surface not public" says how the forward works. The drift check runs from the operator machine or a host timer, because CI cannot reach the admin API (bitborg/bitborg-infra#576). ADR 0015 is added to "Amends". Rejected: an `nc` or `socat` exec-channel workaround, and running OpenTofu on the host. Implementation: bitborg/bitborg-infra feat/sshd-keycloak-admin-forward. Refs bitborg/bitborg-infra#571.
supernaut lade till 1 incheckning 2026-10-08 19:17:30 +00:00
docs(adr): allow a loopback ssh forward for the keycloak admin api
Alla kontroller lyckades
ci / ci (pull_request) Successful in 13s
527e9b6734
Refs bitborg/bitborg-infra#571
supernaut schemalade den här ändringsförfrågan för automatisk sammanfogning när alla kontroller lyckas 2026-10-08 19:18:15 +00:00
supernaut sammanfogade incheckning fa5c9a0a0e till main 2026-10-08 19:18:18 +00:00
supernaut tog bort grenen docs/keycloak-admin-tunnel 2026-10-08 19:18:18 +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-docs!135
Ingen beskrivning angiven.