Enforces strict isolation of service_role key to server-side contexts only.
97
97%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Passed
No known issues
SUPABASE_SERVICE_ROLE_KEY to client-side code, browser bundles, or public environment variables. HALT immediately upon detection.NEXT_PUBLIC_, VITE_, NUXT_PUBLIC_, or any client-exposed env prefix.anon or authenticated that internally use service_role without explicit authorization guards.supabase-mcp-verification is not installed or not passing.service_role Supabase client exclusively in server-only modules.import 'server-only' in Next.js) to prevent client import of admin modules.SECURITY DEFINER functions.SECURITY DEFINER function execution grants — REVOKE from public, grant only to required roles.SUPABASE_SERVICE_ROLE_KEY only in server-scoped environment variables and secrets managers.