Fetch the right ball: Ember sniffs your Supabase function search_path
Tell Ember "fetch the ball" in a park full of balls and you'll get a ball. Maybe not yours.
A Postgres function with no search_path of its own borrows the caller's, so it can grab the wrong table. Supabase's Security Advisor flags this as lint 0011, Function Search Path Mutable. It matters most for security definer functions, which run as their owner, usually bypassing RLS.
The two-minute check
- Open the Security Advisor and look for lint 0011.
- Run
alter function public.my_function(uuid) set search_path = '';then schema-qualify names likepublic.profiles. Our guide has the SQL. - Then scan your own app on SniffPup for other open doors.
Want one 2-minute check like this every morning? Sign up below.
Named after Ember, my black Pomeranian. Built by a software engineer and vibe-coding hobbyist to help you ship safely.