≈ the.bay.news

You Gave Your SECURITY DEFINER Function a Dedicated Owner Role. It Broke. Here's Why.

DEV Community
You Gave Your SECURITY DEFINER Function a Dedicated Owner Role. It Broke. Here's Why.
The least-privilege pattern for Supabase SECURITY DEFINER functions breaks in two places: set_option blocks the ownership transfer, and the new owner has no table grants. Both failures, the exact fix sequence, and the one-query audit.

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.