Write plan entitlements to Keycloak #111

Stängd
öppnade 2026-10-08 14:52:51 +00:00 av supernaut · 1 kommentar
Ägare

Replace src/kanidm.ts with a Keycloak admin client.

  • tier_pro membership add and remove, and add-on role mapping add and remove.
  • Client-credentials token for bitborg-billing. Same call sites in src/billing.ts.
  • Env KEYCLOAK_* replaces KANIDM_API_URL and KANIDM_PAYMENT_TOKEN.
  • Billing stays disabled on prod.

Done when: tests pass and a staging payment in test mode moves the account into tier_pro.

Depends on: bitborg/bitborg-infra#571
Depends on: payment#101
Epic: bitborg/bitborg-docs#127

Replace `src/kanidm.ts` with a Keycloak admin client. - [ ] `tier_pro` membership add and remove, and add-on role mapping add and remove. - [ ] Client-credentials token for `bitborg-billing`. Same call sites in `src/billing.ts`. - [ ] Env `KEYCLOAK_*` replaces `KANIDM_API_URL` and `KANIDM_PAYMENT_TOKEN`. - [ ] Billing stays disabled on prod. Done when: tests pass and a staging payment in test mode moves the account into `tier_pro`. Depends on: bitborg/bitborg-infra#571 Depends on: payment#101 Epic: bitborg/bitborg-docs#127
supernaut lade till detta till projektet Bitborg Payment 2026-10-08 14:56:38 +00:00
Upphovsperson
Ägare

Done on staging, 2026-10-11: a Swish test payment (Mollie test mode) made the subscription active and put the account in tier_pro in Keycloak. After one reconciler run the Forgejo quota group was paid.

The webhook first got 403: a staging Caddy apply had run with billing disabled, which drops the webhook route. Re-applied; not a code fault.

Done on staging, 2026-10-11: a Swish test payment (Mollie test mode) made the subscription active and put the account in `tier_pro` in Keycloak. After one reconciler run the Forgejo quota group was `paid`. The webhook first got 403: a staging Caddy apply had run with billing disabled, which drops the webhook route. Re-applied; not a code fault.
Logga in för att delta i denna konversation.
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-payment#111
Ingen beskrivning angiven.