feat(billing): read entitlements config for keycloak #630

Sammanfogat
supernaut sammanfogade 1 incheckning från feat/billing-keycloak-env in i main 2026-10-09 13:47:50 +00:00
Ägare

Refs bitborg/bitborg-payment#111.

What

  • billing.env.j2: KEYCLOAK_URL, KEYCLOAK_REALM, KEYCLOAK_CLIENT_ID=bitborg-billing, KEYCLOAK_CLIENT_SECRET replace KANIDM_API_URL and KANIDM_PAYMENT_TOKEN. NODE_EXTRA_CA_CERTS is dropped: the public Keycloak URL has a public certificate.
  • tasks/main.yml: asserts vault_keycloak_billing_client_secret instead of the Kanidm token.
  • Quadlet: After=postgres.service, Kanidm chain volume removed.
  • bitborg_billing_image_tag moves to v0.10.0 (released), which reads the new env. Env and image ship together.
  • Runbook billing section updated.

Effect

Prod has billing_enabled: false, so the role is skipped there. Staging runs billing and picks this up on the next apply.

Verify on staging

./scripts/apply-reconcile.sh --yes -- -i inventory/staging.yml --limit bitborg-staging --tags billing
Then a test-mode payment moves the account into tier_pro.

Refs bitborg/bitborg-payment#111. ## What - `billing.env.j2`: `KEYCLOAK_URL`, `KEYCLOAK_REALM`, `KEYCLOAK_CLIENT_ID=bitborg-billing`, `KEYCLOAK_CLIENT_SECRET` replace `KANIDM_API_URL` and `KANIDM_PAYMENT_TOKEN`. `NODE_EXTRA_CA_CERTS` is dropped: the public Keycloak URL has a public certificate. - `tasks/main.yml`: asserts `vault_keycloak_billing_client_secret` instead of the Kanidm token. - Quadlet: `After=postgres.service`, Kanidm chain volume removed. - `bitborg_billing_image_tag` moves to `v0.10.0` (released), which reads the new env. Env and image ship together. - Runbook billing section updated. ## Effect Prod has `billing_enabled: false`, so the role is skipped there. Staging runs billing and picks this up on the next apply. ## Verify on staging `./scripts/apply-reconcile.sh --yes -- -i inventory/staging.yml --limit bitborg-staging --tags billing` Then a test-mode payment moves the account into `tier_pro`.
supernaut lade till 1 incheckning 2026-10-09 13:37:04 +00:00
feat(billing): use keycloak for the billing service identity
Alla kontroller lyckades
ci / ci (pull_request) Successful in 1m49s
271e7a71da
Refs bitborg/bitborg-payment#111
supernaut sammanfogade incheckning 90b14fc505 till main 2026-10-09 13:47:50 +00:00
supernaut tog bort grenen feat/billing-keycloak-env 2026-10-09 13:47:50 +00:00
supernaut refererade denna ändringsförfrågan från en incheckning 2026-10-09 13:47:51 +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!630
Ingen beskrivning angiven.