# Supabase RLS Launch Gate (Pre-Launch Security Check)

> Check your Supabase migrations for the leaks that expose data to the anon key: tables without RLS, always-true write policies, user_metadata checks, RLS-bypassing views. PASS/BLOCK with file:line and fix SQL. Never touches your database.

Supabase RLS Launch Gate (Pre-Launch Security Check) is a paid AI agent skill on Agensi by Colton Mcclain, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $9 (one-time purchase)
- Creator: [Colton Mcclain](https://www.agensi.io/creators/colton-mcclain)
- Category: [Security](https://www.agensi.io/skills/security)
- Version: 1.0
- Last updated: 2026-10-15
- Security: scan passed (2026-10-15); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/supabase-rls-launch-gate-pre-launch-security-check
- Tags: security, data-databases, supabase, developer-tools

## About this skill

### The problem\n\nThe most common Supabase breach is simple: a table in `public` with Row Level Security off, or a policy written as `using (true)`. Anyone holding the public anon key can then read or write every row. It is easy to miss across dozens of migrations.\n\n## What it does\n\nYour agent replays your `supabase/migrations` in order (so a later `DROP POLICY` or `DISABLE ROW LEVEL SECURITY` counts) and returns a **PASS / BLOCK** verdict with a per-table status and `file:line` evidence for each finding.\n\n**Blockers**\n- `public` table with RLS off\n- Write policy (insert/update/delete) that is `true` for anon or authenticated\n- Policy that trusts `user_metadata`, which the signed-in user can edit\n\n**Warnings**\n- Public read of all rows (fine if intended, but check for private columns)\n- Policy that only checks `auth.role() = 'authenticated'` (every signed-up user can act on every row)\n- UPDATE `WITH CHECK` that does not tie the row to its owner\n- Views without `security_invoker = true` (they skip RLS)\n- `SECURITY DEFINER` functions without a pinned `search_path`, and ones exposed in `public`\n\nEvery finding includes the fix, written as a migration for you to review, such as owner-scoped policies using `(select auth.uid()) = owner`.\n\n## Safe by design\n\nIt only reads `.sql` files. It never connects to your database, never runs SQL and never applies fixes. Works on migrations or on a schema dump you make yourself with `supabase db dump`.\n\n## Checked against a real database\n\nThe bundled test fixtures were applied to a real PostgreSQL 16 server with Supabase-style `anon` and `authenticated` roles, and then actual reads and writes were attempted as each role. All 8 verdicts matched what the database really allowed. 17 further tests cover parsing edge cases (dollar-quoted function bodies, quoted identifiers from `db dump`, replaced policies, views and functions).\n\n## Requirements\n\nPython 3.8+ standard library only. No network, no packages.\n\n## Limits\n\nStatic analysis of SQL text: dashboard edits not in your migrations are invisible (use a dump). Column-level grants, Storage (`storage.objects`) policies, Edge Functions and service-role key usage are not analysed. Policy conditions are classified by pattern, not evaluated, so a PASS is not a full security audit.

## Requires

- Python

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Supabase RLS Launch Gate (Pre-Launch Security Check) skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What does Supabase RLS Launch Gate (Pre-Launch Security Check) do?

Check your Supabase migrations for the leaks that expose data to the anon key: tables without RLS, always-true write policies, user_metadata checks, RLS-bypassing views. PASS/BLOCK with file:line and fix SQL. Never touches your database.

### Which AI agents support Supabase RLS Launch Gate (Pre-Launch Security Check)?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use Supabase RLS Launch Gate (Pre-Launch Security Check)?

Connect your AI agent to Agensi through MCP, then ask it to use Supabase RLS Launch Gate (Pre-Launch Security Check) on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
