Skip to content

v0.3.0 - Tenant-Scoped Uniqueness, Atomic Terminal Guards, and Integrity Hardening

Choose a tag to compare

@sfelixalejandro sfelixalejandro released this 28 Oct 00:35
· 60 commits to main since this release

Highlights in v0.3.0

Database Uniqueness & Concurrency Protection

  • Tenant-Scoped Unique Index: Uniqueness constraint on provider_subscription_id scoped by resource and tenant (tenant_id), backed by a PostgreSQL unique index.
  • Atomic Terminal State Guards: Prevents obsolete webhook events from modifying or resurrecting terminal subscriptions (:canceled, :incomplete_expired).

Security & Developer Experience

  • Customer Identity Association: Enforced atomic customer identity checks. Contradictory customer mappings produce safe retryable errors.
  • Credential Redaction: Automatic redaction of API keys and webhook secrets from diagnostics and exceptions.
  • Igniter Installer Improvements: Automated domain/resource registration and endpoint raw-body preservation.
  • Plug Raw Body Preservation: AshBilling.Plug.read_body/2 captures raw webhook payload bytes for signature verification.

For full migration instructions and diagnostic SQL, refer to CHANGELOG.md.