forked from bchanot/claude
699 B
699 B
paths
| paths | ||
|---|---|---|
|
Supabase — secure by default, domain 4
Path-scoped body of rules/secure-by-default.md domain 4 (BDR-125 phase 1);
the always-on line there keeps RLS and the client-side key ban.
- RLS enabled on every table, in the migration that creates it.
- Policies limited to the owner:
(select auth.uid())per operation, roleauthenticated. Nousing (true)on writes, no anon write. - No
service_roleor secret key client-side: not in a bundle, not in aNEXT_PUBLIC_,VITE_orPUBLIC_variable. - Views
security_invoker.security definerfunctions pinsearch_pathand revoke execute from anon. Buckets private by default.