You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Billing attribution: bind checkout and admin invoice subscriptions to WorkOS identity #6492
admin-toolInternal tools for AAO staffclaude-triagedIssue has been triaged by the Claude Code triage routine. Remove to re-triage.enhancementNew feature or requesttriage:verify-closeNeeds verification that linked work landed, then close if satisfied
Decision: Bind checkout and invoice attribution to the authenticated WorkOS identity; attacker-controlled email input must not redirect payment or entitlement.
Next gate: Reproduce the mismatch, add a regression test, patch both checkout and webhook reconciliation, and have security/billing review the exact-head change.
The initial P0 classification was based on the issue text; current-main source inspection shows the requested containment is already present:
checkout and invoice creation stamp workos_organization_id and workos_user_id;
org-scoped invoices without signer metadata are rejected;
public/Addie billing routes derive identity and email from the authenticated member context, not caller input;
email-matched Stripe customers owned by another org (or lacking org metadata) are skipped;
webhook resolution prefers the DB binding and server-authored Stripe metadata.
Focused verification passed: stripe-client.test.ts, invoice-signer-metadata.test.ts, and billing-tools.test.ts — 172 tests passed. This includes caller-supplied email and cross-org email-match cases.
Corrected recommendation: remove from P0 and mark verify-close. The security/revenue risk described here is already contained on current main; close as completed unless production evidence demonstrates a remaining path.
Current main already binds checkout and invoice flows to server-authored WorkOS identities, rejects unsigned org invoices, and passes the focused billing/cross-org email regression suite. Closing as implemented.
admin-toolInternal tools for AAO staffclaude-triagedIssue has been triaged by the Claude Code triage routine. Remove to re-triage.enhancementNew feature or requesttriage:verify-closeNeeds verification that linked work landed, then close if satisfied
Activity
bokelley commentedon Sep 21, 2026
Maintainer triage — 2026-09-21
Classification: Security/revenue bug
Status: P0 — investigate and fix now
Decision: Bind checkout and invoice attribution to the authenticated WorkOS identity; attacker-controlled email input must not redirect payment or entitlement.
Next gate: Reproduce the mismatch, add a regression test, patch both checkout and webhook reconciliation, and have security/billing review the exact-head change.
bokelley commentedon Sep 21, 2026
Verification correction — 2026-09-21
The initial P0 classification was based on the issue text; current-main source inspection shows the requested containment is already present:
workos_organization_idandworkos_user_id;Focused verification passed:
stripe-client.test.ts,invoice-signer-metadata.test.ts, andbilling-tools.test.ts— 172 tests passed. This includes caller-supplied email and cross-org email-match cases.Corrected recommendation: remove from P0 and mark verify-close. The security/revenue risk described here is already contained on current main; close as completed unless production evidence demonstrates a remaining path.
bokelley commentedon Sep 21, 2026
Current main already binds checkout and invoice flows to server-authored WorkOS identities, rejects unsigned org invoices, and passes the focused billing/cross-org email regression suite. Closing as implemented.