feat(keycloak): let billing manage tier_trial and tier_participant #667

Sammanfogat
supernaut sammanfogade 1 incheckning från feat/billing-manages-tier-groups in i main 2026-10-11 16:09:09 +00:00
Ägare

Refs bitborg/bitborg-payment#131

Billing needs to remove tier_trial and tier_participant when a payment activates tier_pro.

  • Split the portal group permission. forgejo_users stays portal-only (policy portal).
  • tier_participant and tier_trial move to a new shared_tiers permission with the existing writers policy (bitborg-web-admin and bitborg-billing).
  • tier_pro is unchanged. Billing gets nothing on forgejo_users.
  • Health gate: new billing checks. Billing can write tier_pro, tier_trial and tier_participant, and cannot write forgejo_users. The portal check is unchanged.

Staging plan: 1 to add (keycloak_group_admin_permissions.shared_tiers), 1 to change (keycloak_group_admin_permissions.portal, group_ids only), 0 to destroy.

Apply order: the Keycloak realm apply first, then the Ansible health gate.

Checked: tofu fmt -check, tofu validate, ansible-playbook --syntax-check site.yml, ansible-lint, gitleaks, pre-push hooks.

Refs bitborg/bitborg-payment#131 Billing needs to remove `tier_trial` and `tier_participant` when a payment activates `tier_pro`. - Split the portal group permission. `forgejo_users` stays portal-only (policy `portal`). - `tier_participant` and `tier_trial` move to a new `shared_tiers` permission with the existing `writers` policy (`bitborg-web-admin` and `bitborg-billing`). - `tier_pro` is unchanged. Billing gets nothing on `forgejo_users`. - Health gate: new billing checks. Billing can write `tier_pro`, `tier_trial` and `tier_participant`, and cannot write `forgejo_users`. The portal check is unchanged. Staging plan: 1 to add (`keycloak_group_admin_permissions.shared_tiers`), 1 to change (`keycloak_group_admin_permissions.portal`, group_ids only), 0 to destroy. Apply order: the Keycloak realm apply first, then the Ansible health gate. Checked: `tofu fmt -check`, `tofu validate`, `ansible-playbook --syntax-check site.yml`, ansible-lint, gitleaks, pre-push hooks.
supernaut lade till 1 incheckning 2026-10-11 16:06:26 +00:00
feat(keycloak): let billing manage tier_trial and tier_participant
Alla kontroller lyckades
ci / ci (pull_request) Successful in 1m55s
380e1a4c58
Split the portal group permission. forgejo_users stays portal-only.
The trial and participant tiers use the writers policy so billing can
remove them when a payment activates tier_pro. The health gate checks
both clients' rights.
supernaut sammanfogade incheckning 60feae6717 till main 2026-10-11 16:09:09 +00:00
supernaut tog bort grenen feat/billing-manages-tier-groups 2026-10-11 16:09: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!667
Ingen beskrivning angiven.