site-web-targo/supabase/migrations/20260212161055_c60ac228-2b45-4eb5-87a0-6d3780e2eb4c.sql
louispaulb 88dc3714a1 Initial deploy: gigafibre.ca website with self-hosted address search
React/Vite/shadcn-ui site for Gigafibre ISP.
Address qualification via PostgreSQL (5.2M AQ addresses, pg_trgm fuzzy search).
No Supabase dependency for address search.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 14:37:50 -04:00

11 lines
375 B
SQL

-- Remove the permissive public INSERT policy
DROP POLICY IF EXISTS "Anyone can insert search logs" ON public.search_logs;
-- Add a restrictive policy that blocks anonymous/authenticated inserts
-- The edge function uses service_role which bypasses RLS entirely
CREATE POLICY "Block direct inserts on search logs"
ON public.search_logs
FOR INSERT
WITH CHECK (false);