test: add Qedix complex production risk case - #8
Conversation
Qedix evidence is readyRisk: High-risk review recommended Review summary This PR modifies the Stripe billing webhook handler at apps/webapp/app/routes/api.v1.projects.$projectRef.webhooks.stripe.billing-sync.ts and introduces multiple high-risk issues requiring careful review. The webhook endpoint processes payment events without visible Stripe signature verification, exposing the system to forged webhook attacks that could manipulate financial state and grant unauthorized entitlements. Additionally, payment state transitions lack visible allowed-state validation, meaning invalid state changes like marking failed invoices as paid or reactivating canceled subscriptions could occur without proper guards. The PR also modifies the API contract and billing logic, which could break downstream clients and affect tax, proration, and revenue recognition. Event ordering is not validated, so out-of-order webhook events could regress payment or subscription state. This PR should not be merged without addressing signature verification, state machine validation, and proper idempotency handling. Evidence summary
Suggested review focus
Advisory only. Maintainers decide. |
Adds a controlled production-looking Remix API route for Qedix evaluation.
This intentionally includes:
Expected Qedix behavior: