Skip to content
Back to skills

Draconian Rls Audit

ASecurity

Default-Deny security posture for Supabase. Mandates strict RLS and 'WITH CHECK' clauses.

  • 207 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added February 7, 2026
securityrustsqlsecurity

Works with

  • cli

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add NeverSight/skills_feed --skill draconian_rls_audit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Draconian Rls Audit?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Draconian Rls Audit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/neversight-draconian-rls-audit/badge)](https://www.skillsdirectory.com/skills/neversight-draconian-rls-audit)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: draconian_rls_audit
description: Default-Deny security posture for Supabase. Mandates strict RLS and 'WITH CHECK' clauses.
allowed-tools: Read, Edit, Write
---

# Draconian RLS Audit Protocol

## 1. Zero Trust (Default-Deny)
- **Mandate**: Every Table MUST have RLS enabled.
- **Policy**: The default state of any table should be NO ACCESS. Access is granted explicitly via Policy.
- **Detector**: Run `SELECT ... WHERE rowsecurity = false` to hunt down naked tables.

## 2. The "WITH CHECK" Imperative
- **Vulnerability**: An `INSERT` or `UPDATE` policy without `WITH CHECK` allows users to write data they cannot read, or worse, escalate privileges (e.g., "Give myself admin role").
- **Rule**: ALL modification policies MUST have a `WITH CHECK` clause matching the `USING` clause (or stricter).

## 3. Client-Side Key Ban
- **Strict Rule**: The string `service_role` MUST NOT exist in any file within `src/`.
- **Enforcement**: Grep for it. If found, STOP and warn the user.

## 4. Explicit `auth.uid()` Binding
- **Rule**: Policies should almost always bind to `auth.uid()`.
- **Ban**: Never hardcode UUIDs or email addresses in SQL policies.

## 5. Audit Checklist
- [ ] RLS enabled?
- [ ] Default policy is DENY?
- [ ] `WITH CHECK` present on writes?
- [ ] No `service_role` in client code?

Files in this skill

  • SKILL.md1.3 KB
  • description_cn.txt94 B
  • description_de.txt114 B
  • description_en.txt90 B
  • description_es.txt113 B
  • description_fr.txt113 B
  • description_ja.txt122 B
  • description_ko.txt112 B
  • description_tw.txt94 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.