Setting Up Supabase Storage
Connect Media Cloud to a public Supabase Storage bucket using your project URL and service role key.
2 min read·3 tags
Supabase Storage is a managed object storage service built on Postgres and S3-compatible primitives. Media Cloud’s Supabase driver talks to Supabase’s Storage API directly.
Supabase Storage support is labeled Beta in Media Cloud.
Limitations
- No ACLs. Files are public or private based on the bucket, not per-file ACLs. Media Cloud cannot change the privacy of individual files.
- No pre-signed URLs. The pre-signed URL settings are hidden for this provider.
- No direct uploads. Uploads go through WordPress and are then copied to Supabase.
- Use a public bucket if you want Media Cloud’s URLs to work without additional authentication.
Before you start
You need:
- A Supabase project.
- A storage bucket.
- The project URL.
- The
service_rolekey.
Step 1 – Create a public bucket
- Open your Supabase project.
- Go to Storage.
- Create a bucket for Media Cloud.
- Make the bucket public.
Step 2 – Copy the project URL and service key
- Open Project Settings → API.
- Copy the Project URL, for example
https://abcdefghijklm.supabase.co. - Copy the service_role key from the project API keys section.
The service role key bypasses row-level security. Keep it private and only enter it in the WordPress admin.
Step 3 – Configure Media Cloud
- Go to Media Cloud → Settings → Cloud Storage.
- Set Storage Provider to Supabase Storage.
- Fill in the provider settings:
| Field | Value |
|---|---|
| Supabase Storage URL | https://<project-ref>.supabase.co |
| Key | service_role key |
| Bucket | Bucket name |
- Turn on Enable Cloud Storage.
- Save and run Media Cloud → System Compatibility.
Upload handling
Supabase’s driver exposes only the provider settings; upload privacy and cache options are not available. Files inherit the bucket’s public/private setting.
Troubleshooting
| Problem | Likely cause |
|---|---|
| 401 or 403 from Supabase | The key is not the service_role key, or the project URL is wrong. |
| Uploads succeed but files are not publicly readable | The bucket is private. Make it public or serve files through Supabase policies. |
| Storage tool will not enable | The project URL, service key, or bucket name is empty. |
| Direct upload setting does not work | Supabase does not support direct uploads in Media Cloud. |
Need a hand with this guide?
Send support the exact step you’re stuck on and we’ll help you finish the setup.