payment → reconcile trigger adapter wiring (ADR 0037 P4) #14

Öppen
öppnade 2026-08-01 20:26:24 +00:00 av supernaut · 3 kommentarer
Ägare

Part of the event-driven reconcile trigger (ADR 0037). Phase 4: payment adapter wiring.

What

After any Keycloak group and role write (subscription success, cancel, failure), the payment service calls the reconcile auth shim with its payment bearer token, which prompts a reconcile. Contract: key and "reconcile please" only, never desired state.

Done already

  • Payment side shipped in #73 (v0.4.0): every tier_pro write posts to the shim with a bearer token.
  • Infra side merged as bitborg-infra#533. It is inert until vault_payments_webhook_token is set and billing is enabled.
  • The firewall allowlist item is moot: billing and the shim share one host and podman network. mTLS was considered and not added.
  • Entitlement writes go to Keycloak roles and groups (bitborg/bitborg-docs#127).

Left

  • Verify on prod: a test tier_pro grant shows kick reason=payment in the shim log.
  • The ReconcileEventPathSilent alert counts only kicks from the web container, so a dead billing-to-shim path raises no alert (see bitborg-infra#533, "Alerting gap").
Part of the event-driven reconcile trigger (ADR 0037). **Phase 4: payment adapter wiring.** ## What After any Keycloak group and role write (subscription success, cancel, failure), the payment service calls the reconcile **auth shim** with its `payment` bearer token, which prompts a reconcile. Contract: key and "reconcile please" only, never desired state. ## Done already - Payment side shipped in #73 (v0.4.0): every `tier_pro` write posts to the shim with a bearer token. - Infra side merged as bitborg-infra#533. It is inert until `vault_payments_webhook_token` is set and billing is enabled. - The firewall allowlist item is moot: billing and the shim share one host and podman network. mTLS was considered and not added. - Entitlement writes go to Keycloak roles and groups (bitborg/bitborg-docs#127). ## Left - Verify on prod: a test `tier_pro` grant shows `kick reason=payment` in the shim log. - The `ReconcileEventPathSilent` alert counts only kicks from the web container, so a dead billing-to-shim path raises no alert (see bitborg-infra#533, "Alerting gap").
supernaut lade till detta till projektet Bitborg Payment 2026-08-01 20:27:02 +00:00
Upphovsperson
Ägare

Board grooming 2026-10-03: dropped blocked. The dependency has cleared: the auth shim v0.1.2 is live in production since 2026-09-29. Until this is wired, the 5-minute reconcile tick applies a tier change.

Board grooming 2026-10-03: dropped `blocked`. The dependency has cleared: the auth shim `v0.1.2` is live in production since 2026-09-29. Until this is wired, the 5-minute reconcile tick applies a tier change.
Upphovsperson
Ägare

Board pass 2026-10-04. The payment side shipped in #73 (v0.4.0): every tier_pro write posts to the shim with a bearer token. The infra side merged as bitborg-infra#533 and is inert until vault_payments_webhook_token is set and billing is enabled.

Left before this closes:

  • The ReconcileEventPathSilent alert counts only kicks from the web container, so a dead billing-to-shim path raises no alert (see bitborg-infra#533, "Alerting gap").
  • Verify on prod: a test tier_pro grant shows kick reason=payment in the shim log.

The firewall allowlist item is moot: billing and the shim share one host and podman network. mTLS was considered and not added.

Board pass 2026-10-04. The payment side shipped in #73 (v0.4.0): every `tier_pro` write posts to the shim with a bearer token. The infra side merged as bitborg-infra#533 and is inert until `vault_payments_webhook_token` is set and billing is enabled. Left before this closes: - The `ReconcileEventPathSilent` alert counts only kicks from the web container, so a dead billing-to-shim path raises no alert (see bitborg-infra#533, "Alerting gap"). - Verify on prod: a test `tier_pro` grant shows `kick reason=payment` in the shim log. The firewall allowlist item is moot: billing and the shim share one host and podman network. mTLS was considered and not added.
Upphovsperson
Ägare

Retarget: Kanidm is being replaced by Keycloak before launch (bitborg/bitborg-docs#127). Entitlement writes go to Keycloak roles and groups.

Retarget: Kanidm is being replaced by Keycloak before launch (bitborg/bitborg-docs#127). Entitlement writes go to Keycloak roles and groups.
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#14
Ingen beskrivning angiven.