Repository navigation
v0.4.0 - Enterprise Security, Webhook Deduplication & Multi-Tenant Isolation
Highlights in v0.4.0 (2026-10-30)
Security & Hardening
- Strict Attribute Protection: Explicit protection against mass assignment on billing attributes (
stripe_customer_id,stripe_subscription_id,stripe_price_id,billing_deleted_at). Wildcard accepts likeaccept: :*no longer expose billing identifiers to untrusted callers. - Stripe Serialization (
Ash.CiString): Fixed form parameter serializer to properly convert case-insensitive string values (Ash.CiString) to binary strings instead of failing or treating them as map structures. - Connect Scope & Account Validation: Enforces exact match of account ID and Stripe mode (live vs. test) across all provider operations.
Resilience & Concurrency
- PostgreSQL Webhook Deduplication: Atomic lease acquisition with TTL and commit lifecycle. Concurrent duplicate deliveries safely converge: the winning process executes inside a shared transaction while parallel arrivals receive HTTP 503 for controlled Stripe retries.
- Transaction Rollback Protection: Unpersisted or failed local database operations release webhook leases cleanly, preventing ghost subscriptions and ensuring Stripe delivers retries.
- Out-of-Order Delivery Protection: Webhooks arriving out-of-order for terminated or transitioned subscriptions are safely ignored.
Developer Experience & Upgrading
- Added comprehensive upgrade guide:
documentation/topics/upgrading-to-0.4.md. - Updated DSL references and regenerated documentation.
- CI pipeline enriched with dependency auditing, strict documentation checks (
--warnings-as-errors), and packaging validation (mix hex.build).
Upgrade Guide: Please consult Upgrading to 0.4.0 for breaking changes and schema migrations.