fix(kanidm): account-policy gate needs Caddy on a fresh host #562

Stängd
öppnade 2026-10-07 09:12:59 +00:00 av supernaut · 1 kommentar
Ägare

On a fresh host with the reconciler token already in the vault, site.yml fails in the kanidm role:

TASK [kanidm : Read the live account policy for idm_all_persons (#275)]
Status code was -1 ... <urlopen error [Errno 111] Connection refused>

The task reads {{ kanidm_url }}, the public https://auth... name. Caddy serves that name, and the caddy role runs after kanidm, forgejo, billing and web. Kanidm itself was up and ready.

Found in the staging tear-down rehearsal (staging VM destroyed and re-created, data volume kept). Workaround used: site.yml --tags caddy, then the full site.yml. A prod rebuild from backup would hit the same.

Done when a fresh-host converge passes in one run. Options: read the policy from the host over https://127.0.0.1:{{ kanidm_bind_port }} with the Host header set (Kanidm serves its own certificate), or move the gate after the caddy role.

On a fresh host with the reconciler token already in the vault, `site.yml` fails in the kanidm role: ``` TASK [kanidm : Read the live account policy for idm_all_persons (#275)] Status code was -1 ... <urlopen error [Errno 111] Connection refused> ``` The task reads `{{ kanidm_url }}`, the public `https://auth...` name. Caddy serves that name, and the caddy role runs after kanidm, forgejo, billing and web. Kanidm itself was up and ready. Found in the staging tear-down rehearsal (staging VM destroyed and re-created, data volume kept). Workaround used: `site.yml --tags caddy`, then the full `site.yml`. A prod rebuild from backup would hit the same. Done when a fresh-host converge passes in one run. Options: read the policy from the host over `https://127.0.0.1:{{ kanidm_bind_port }}` with the Host header set (Kanidm serves its own certificate), or move the gate after the caddy role.
Upphovsperson
Ägare

Superseded: Kanidm is being replaced by Keycloak before launch (bitborg/bitborg-docs#127). This Kanidm-specific work is no longer needed.

Superseded: Kanidm is being replaced by Keycloak before launch (bitborg/bitborg-docs#127). This Kanidm-specific work is no longer needed.
Logga in för att delta i denna konversation.
Ingen milstolpe
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#562
Ingen beskrivning angiven.