supabase-security

Apply Supabase security best practices for RLS policies, auth, and edge functions.

1|Updated Feb 10, 2026
One-click install
npx skills add https://github.com/opsMachine/OM-Agency --skill supabase-security-opsmachine
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: supabase-security
Source: https://github.com/opsMachine/OM-Agency/tree/main/skills/supabase-security
Command: npx skills add https://github.com/opsMachine/OM-Agency --skill supabase-security-opsmachine

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides secure patterns and practices for Supabase projects, covering tables, RLS, edge functions, and client/server code reviews.

Core Features & Use Cases

  • Enforces RLS on tables and describes policy patterns, ensuring data is only accessible to authorized users.
  • Guides secure handling of API keys, edge functions, and client-side code to prevent data leakage.
  • Includes a practical checklist and patterns for common Supabase security scenarios.

Quick Start

Consult this guide when starting a Supabase project to implement secure patterns from the database to edge functions.

Frequently Asked Questions about supabase-security

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce row level security in Supabase?

Enforce Supabase row level security (RLS) by creating mandatory RLS policies on your tables. This ensures data is only accessible to authorized users based on specific policy patterns, preventing unauthorized database access.

What is the best way to secure Supabase edge functions?

The best way to secure Supabase edge functions is by implementing strict JWT verification and safe API key management. This prevents data leakage and ensures that only authenticated requests execute your serverless logic.

How should I handle Supabase API keys in client-side code?

Handle Supabase API keys safely by applying secure key management patterns to prevent data leakage in client-side code. This involves using appropriate keys for web and server environments to protect sensitive access credentials.

Do I need JWT verification for Supabase authorization?

Yes, you need JWT verification for Supabase authorization to validate user identities securely. Implementing JSON Web Token checks ensures that data access requests and edge function executions are strictly authenticated.

What are the limitations of Supabase RLS policies?

While RLS policies secure data access, limitations arise if they are not applied mandatorily across all tables. You must follow strict policy patterns and security checklists to avoid edge cases where unauthorized client-side queries bypass protections.