PR #266 · pramaan-io/pramaan-functions · merged 2026-06-08
Right now, anyone in the firm can see every matter.
Record-level access, before the leak.
One missed call. One leaked matter.
The fix — Firm-scoped is not enough — rows must know who may read them.
sequenceDiagram autonumber participant user as Request participant app as Application participant db as Database / RLS user->>app: read matters app->>app: appends user identity app->>db: query with identity db->>db: RLS policy filters rows db->>app: only allowed rows app->>user: safe result
Spike design for record-level RLS on matters and clients: behavior audit, RLS design, cross-repo impact, and ticket plan.
Status : Proposed| File | ± |
|---|---|
docs/notes/record-level-access-spike.md ★ | +451 |