Missing RLS on a sensitive webhook table.
This is the kind of launch-blocking drift the report is built to surface: a migration creates a table for sensitive webhook payloads, but the AI-generated schema forgets the explicit row-level security boundary.
create table public.webhook_events (
id uuid primary key,
provider text not null,
payload jsonb not null,
created_at timestamptz default now()
);
-- missing explicit RLS boundary
alter table public.webhook_events
enable row level security;
create policy "internal webhook review only"
on public.webhook_events
for select
using (auth.jwt() ->> 'role' = 'admin');