feat(billing): write plan entitlements to keycloak #127
Inga granskare
Etiketter
Inga etiketter
area/backups
area/ci
area/control-panel
area/identity
area/infra
area/observability
area/payments
area/security
area/storage
area/web
blocked
needs-info
needs-triage
priority
high
priority
low
priority
medium
ready-for-implementation
type
bug
type
chore
type
docs
type
epic
type
feature
type
task
wontfix
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Inget förfallodatum satt.
Beroenden
Inga beroenden satta
Referens
bitborg/bitborg-payment!127
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "feat/keycloak-entitlements"
Borttagning av en gren är permanent. Även om den borttagna grenen kan fortsätta existera en kort tid innan den faktiskt tas bort, kan det INTE ångras i de flesta fall. Vill du fortsätta?
Refs #111. Staging verification is still open, so keep #111 open after merge.
What
src/kanidm.tsis replaced bysrc/keycloak.ts. TheIdentityinterface and thebilling.tscall sites are unchanged.bitborg-billing, cached and refreshed 30 s before expiry.tier_promembership add and remove by exact group name. Keycloak returns 204 for a repeat add or an absent remove.KEYCLOAK_URL,KEYCLOAK_REALM,KEYCLOAK_CLIENT_ID,KEYCLOAK_CLIENT_SECRETreplaceKANIDM_API_URLandKANIDM_PAYMENT_TOKEN.Not in this PR
bitborg-billingcannot read realm roles (403 on staging). It comes with the first add-on writer.Deploy
Merging deploys nothing: infra pins the image tag. The billing role env must switch to
KEYCLOAK_*in the same infra change that moves the tag tov0.10.0, or the service fails on start.Tests
413 pass with
TEST_DATABASE_URL. Covers token reuse and expiry, idempotent add and remove, zero, two and prefix user matches, missing group, 403 and token refusal, no identifiers in errors.