Vibeleaderboard
← All Intel
Clip / AI Agents

Skill vs MCP-only: the Postgres RLS view bypass test

From Combine Skills and MCP to Close the Context Gap — Pedro Rodrigues, Supabase · ≈3:46

A concrete A/B showing an agent with a product skill correctly set security_invoker=true on a view over an RLS table while the MCP-only agent silently exposed protected data.

What’s in it
  • A concrete A/B showing an agent with a product skill correctly set security_invoker=true on a view over an RLS table while the MCP-only agent silently exposed protected data.
Clip transcript
experienced giving the same agent in this case was Claude Sonnet 4.6 the same prompt for a simple task. Like we had an app like a collaboration collaborative app and we wanted to create this new SQL view, right? On top of table that already had row level security enabled. So the users could only see the information that belonged to them. We gave we gave them just the the MCP on one condition and the MCP plus the the agents the agent skills. And the result was well the expected. If you don't know in Postgres, if you create a skill over a table on top of a table that has RLS enabled, if you don't explicitly pass that that flag over there the security invoker equals true, it will bypass the RLS. So basically the view will expose data that is not this exposed by default on the on the table. So the agent with the skill with the knowledge was able to get this this information implemented correctly and safely while the one that only had access to the integration to the to the MCP tool did not. So
Recommended reads
Comments

Checking sign-in…

Loading comments…