Supabase RLS Fixer

•
4
•

Resolves Supabase Row Level Security issues and manages user context for background jobs and system processes.

This skill provides a comprehensive toolkit for troubleshooting and implementing robust Row Level Security (RLS) within Supabase environments. It addresses common pitfalls like 'relation does not exist' errors and failures in background jobs by introducing standardized helper functions that distinguish between authenticated users and system-level processes. By utilizing provided templates and debugging queries, developers can ensure their data access layers are both secure and resilient, even when operating without an active user session or within complex multi-tenant architectures.

主な機能

01Built-in debugging queries for verifying session context and row access
024 GitHub stars
03System process detection to prevent background job authentication failures
04Standardized RLS templates for multi-tenant and user-owned tables
05Universal access checker functions for simplified policy management
06Compatibility views for resolving 'user_tenants' relation errors

ユースケース

01Fixing background jobs that fail due to missing user authentication context
02Implementing multi-tenant security policies on new database tables
03Troubleshooting 'Insufficient Privileges' errors in PostgreSQL environments