draconian_rls_audit

Draconian RLS Audit Protocol

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "draconian_rls_audit" with this command: npx skills add cityfish91159/maihouses/cityfish91159-maihouses-draconian-rls-audit

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.

  1. 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).

  1. 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.

  1. Explicit auth.uid() Binding
  • Rule: Policies should almost always bind to auth.uid() .

  • Ban: Never hardcode UUIDs or email addresses in SQL policies.

  1. Audit Checklist
  • RLS enabled?

  • Default policy is DENY?

  • WITH CHECK present on writes?

  • No service_role in client code?

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Security

audit_logging

No summary provided by upstream source.

Repository SourceNeeds Review
Security

security_audit

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

code-review-excellence

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

agentic_architecture

No summary provided by upstream source.

Repository SourceNeeds Review