People can read bookings without signing in.
Anyone with your site’s address can open customer appointment records. Fix before inviting customers.
public.bookingsSigned-out checkWhy it matters
Anyone with your site’s address can open customer appointment records. Fix before inviting customers.
What we observed
We visited the app as a signed-out visitor, used only the public key already delivered to browsers, and asked the database for bookings. It answered.
| Affected resource | public.bookings |
|---|---|
| Tested as | Signed-out visitor (role: anon) |
| Result | Read allowed · 24 records returned |
| Audit date | 2026-11-23 09:42 UTC |
Sanitized evidence
GET /rest/v1/bookings?select=* · role=anon → 200 OK · 24 rows · values maskedWe count records and fields; individual bookings are never stored or shown.
How to fix it
Use the prompt as a starting point. Review every proposed change before deploying.
Your Lovable prompt for Fieldwork
Review SQL fix · Supabase · for review
ALTER TABLE public.bookings ENABLE ROW LEVEL SECURITY;
CREATE POLICY "customers_read_own_bookings"
ON public.bookings FOR SELECT TO authenticated
USING ((select auth.uid()) = customer_id);How to confirm it worked
- 01Deploy the reviewed change to fieldwork.example.
- 02Recheck the same signed-out request for bookings.
- 03Sign in as a test customer and confirm their own booking remains visible.
This is a fictional demonstration; recheck actions here do not contact Fieldwork.