Skip to content

feat(webhook): Auth0 users + Konnect customer provisioning#37

Draft
eliteprox wants to merge 5 commits into
feat/go-bootstrap-clifrom
feat/webhook-customer-provision
Draft

feat(webhook): Auth0 users + Konnect customer provisioning#37
eliteprox wants to merge 5 commits into
feat/go-bootstrap-clifrom
feat/webhook-customer-provision

Conversation

@eliteprox

Copy link
Copy Markdown
Collaborator

Summary

  • Wire identity-webhook to @pymthouse/builder-sdk@^0.5.0 billing config: lazy Konnect provision on /authorize and POST /admin/customers for Auth0 user + customer creation
  • Bootstrap emits AUTH0_MGMT_*, OPENMETER_DEFAULT_PLAN_KEY, and compose passes OpenMeter/Auth0 env to the webhook service
  • Document admin API and remove per-customer provisioning from follow-ups

Depends on: builder-sdk v0.5.0 release (stacked on #36)

Test plan

  • go test ./...
  • Publish/install @pymthouse/builder-sdk@0.5.0, then docker compose ... up --build identity-webhook
  • POST /admin/customers with WEBHOOK_SECRET → Konnect customer + subscription
  • Device-auth JWT → signer /authorize → lazy provision + auth_id

…strap

Port the runtime deploy layer from feat/deploy-stack onto feat/go-bootstrap-cli:
Kafka, go-livepeer remote signer, OpenMeter/Benthos collector, Railway deploy
scripts, and Makefile stack-up/down/logs targets. Docs reference
clearinghouse-bootstrap instead of the TS pnpm bootstrap scripts.
Add identity-webhook service (builder-sdk OIDC handler) to the Docker stack
and wire remote-signer to it by default. Bootstrap now emits
REMOTE_SIGNER_WEBHOOK_URL and OPENMETER_INGEST_URL in .env.livepeer, with
PLATFORM_URL override for serverless production deploys.
…omers

Use builder-sdk billing webhook config, emit mgmt creds and default plan key from
bootstrap, and document POST /admin/customers plus lazy provision on authorize.
Replace raw @openmeter/sdk instantiation so customer provision works against
us.api.konghq.com/v3/openmeter, not only openmeter.io URLs.
Wire identity-webhook to builder-sdk v0.6.0 ports; document single-tenant vs
multi-tenant billing architecture and pymthouse reference patterns.
@eliteprox eliteprox force-pushed the feat/identity-webhook branch 3 times, most recently from 3deb669 to 5b683d8 Compare June 18, 2026 22:33
@eliteprox eliteprox changed the base branch from feat/identity-webhook to feat/go-bootstrap-cli June 18, 2026 23:47
@eliteprox eliteprox marked this pull request as draft June 18, 2026 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant