Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By yorrickv0.1.3MITIn 1 marketplace
Audits Supabase schemas that browsers reach directly through PostgREST, catching GRANT, RLS and trigger gaps that enable privilege escalation. Its read-only audit script needs a DATABASE_URL and bundles Supabase's Splinter linter.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Access-control rules for Supabase projects exposed directly to a browser via PostgREST, plus a read-only audit script.
# Claude Code
claude plugin marketplace add yorrick/agent-skills
claude plugin install supabase-security@yorrick
# Codex
codex plugin marketplace add yorrick/agent-skills
codex plugin add supabase-security@yorrick
The three enforcement layers and — the part that causes most confusion — their order:
GRANT is checked before RLS, RLS constrains rows and cannot correlate OLD with NEW,
and only a trigger sees everything at once. Getting that order wrong is what makes an
admin policy silently unreachable behind a revoked column.
Ten rules, a column-authorization trigger pattern with a test matrix, and a pre-merge checklist.
uv run scripts/audit_rls.py --db-url "$DATABASE_URL"
uv run scripts/audit_rls.py --db-url "$DATABASE_URL" --json # for CI
uv run scripts/audit_rls.py --db-url "$DATABASE_URL" --no-splinter # own rules only
Read-only, enforced by a read-only transaction rather than merely asserted.
Splinter is Supabase's work, not ours. It is
a pure-SQL linter (~29 rules) that powers the dashboard's Security Advisor and the
get_advisors MCP tool. Upstream publishes a single self-contained splinter.sql
explicitly for project linting; it is vendored here unmodified at
vendor/splinter.sql, pinned to the commit in vendor/SPLINTER_VERSION.
This script runs it and adds four rules Splinter does not have:
R1 | policies covering ALL commands, or applying TO PUBLIC |
R2 | RLS tables with no RESTRICTIVE policy pinning tenancy |
R4 | delete-and-reinsert defeating a column-level UPDATE revoke |
R11 | TRUNCATE, which no RLS policy applies to, including default privileges that grant it to new tables |
It also sets pgrst.db_schemas before running, so Splinter audits every schema PostgREST
actually exposes. Without that, several of its API-exposure lints silently fall back to
public only — upstream's README warns about this, and it is easy to get a clean report
on a project that serves an api schema.
Findings are prefixed splinter: where they come from Splinter. You can always run it
standalone: psql -f vendor/splinter.sql "$DATABASE_URL".
See vendor/README.md for provenance and the licence position.
Lints check configuration; only tests check reality. Assert 401/403/empty on every table, view and RPC using the publishable key alone, and again with a second tenant's JWT.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub yorrick/agent-skills --plugin supabase-securityPlugins from other owners that cover similar ground