Skip to content

Permissions issue with storage #4289

@silentworks

Description

@silentworks

Describe the bug

The latest beta version (2.50.11) doesn't allow for you to write RLS rules for the storage bucket as it says you aren't the owner of the storage.objects table. I wanted to highlight this before a public release of the CLI happens as it is a critical bug.

To Reproduce
Steps to reproduce the behavior:

  1. Create a migration with the following
-- Set up storage for user_images
insert into storage.buckets (id, name, public)
  values ('user_images', 'user_images', true);

create policy "User images are publicly accessible." on storage.objects
for select 
using (bucket_id = 'user_images');
  1. In your terminal run npx supabase@beta start
  2. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots

Image

System information
Rerun the failing command with --create-ticket flag.

  • Crash ID: 807d8c58774c488f80bc58024c1646bd
  • Version of OS: Ubuntu 24.04
  • Version of CLI: 2.50.11
  • Version of Docker: v28.3.3
  • Versions of services: [output from supabase services command]

Additional context
If applicable, add any other context about the problem here.

  • Browser [e.g. chrome, safari]
  • Version of supabase-js [e.g. v2.22.0]
  • Version of Node.js [e.g. v16.20.0]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions