Skip to content

[Gap-Audit] 042 Payment RLS Policies: un-skip 25 E2E test stubs and verify policies #44

@TortoiseWolfe

Description

@TortoiseWolfe

Summary

20+ RLS policies are written in the monolithic migration. The work is verification, not new code: un-skip 25 test stubs in tests/e2e/payment/08-security-rls.spec.ts, run them, fix any policies that fail to enforce what they claim.

What's shipped

  • 20+ RLS policies in supabase/migrations/20251006_complete_monolithic_setup.sql
  • 2 live E2E tests in 08-security-rls.spec.ts

Gap

  • 25 E2E test stubs awaiting un-skip + run
  • Rate-limit UI for payment endpoints missing

Plan

  1. Un-skip tests one at a time
  2. For each that fails: read the assertion, check the policy, decide whether the test is correct or the policy needs adjustment
  3. Adjust either the test or the policy until all 25 pass
  4. Add the rate-limit UI as a separate sub-task

Reference

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggap-auditIdentified during 2026-04-25 planned-vs-shipped auditpriority:p1High — fix soon (stability hotspot, low-hanging fruit, single-decision unlocks)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions