Prompt Buddy logoPrompt Buddy

supabase · Supabase Docs

Supabase Storage Access Control

Teaches how to implement security for Supabase Storage using Postgres Row Level Security (RLS) policies on the storage.objects table, including specific patterns for uploads, folder-based restrictions, and user-specif...

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Supabase Storage Access Control

Teaches how to implement security for Supabase Storage using Postgres Row Level Security (RLS) policies on the storage.objects table, including specific patterns for uploads, folder-based restrictions, and user-specif...

When To Use

Use when you need to restrict file uploads to authenticated users, enforce folder-level permissions, or create user-specific private storage paths using RLS policies.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/supabase-storage-access-control-workflow-guide.mdA guide explaining how to implement Row Level Security policies to restrict file upload and access permissions within Supabase Storage.Questions about a guide explaining how to implement Row Level Security policies to restrict file upload and access permissions within...
examples/supabase-storage-access-control-sql-policies.sqlSQL statements for creating Row Level Security policies on the storage.objects table to control file access.Exact payloads, commands, or snippets shown in SQL statements for creating Row Level Security policies on the storage.objects table to control file access.
examples/supabase-storage-access-control-sql-policies-2.sqlSQL statements for creating Row Level Security policies on the storage.objects table to control bucket access.Exact payloads, commands, or snippets shown in SQL statements for creating Row Level Security policies on the storage.objects table to control bucket access.
examples/supabase-storage-access-control-sql-policies-3.sqlSQL statements for creating Row Level Security policies to control authenticated uploads and access within Supabase storage buckets.Exact payloads, commands, or snippets shown in SQL statements for creating Row Level Security policies to control authenticated uploads and access within Supabase s...
examples/supabase-storage-access-control-sql-policies-4.sqlSQL statements for creating Row Level Security policies to control authenticated uploads in Supabase Storage.Exact payloads, commands, or snippets shown in SQL statements for creating Row Level Security policies to control authenticated uploads in Supabase Storage.
examples/supabase-storage-access-control-sql-policies-5.sqlSQL statements for creating Row Level Security policies on the storage.objects table to control user access.Exact payloads, commands, or snippets shown in SQL statements for creating Row Level Security policies on the storage.objects table to control user access.

What This Skill Covers

  • Learn how to restrict Supabase file uploads.
  • Main sections: Access policies, Policy examples, Bypassing access controls.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://supabase.com/docs/guides/storage/security/access-control