What you’ll need
- A Supabase project
- Your Supabase Project URL
- A Supabase Service Role Key
- Permissions to access project resources
Connecting Supabase
Guided walkthrough
Let’s set this up together:DIY: Using environment variables
Or add these directly to your.env:
Option 3: Persistent store
Finding your Supabase credentials
- Log in to Supabase
- Open your project
- Navigate to Settings → API
- Copy the Project URL
- Copy the Service Role Key
- Add these values to your OpenSRE configuration
The Service Role Key has elevated privileges. Store it securely and never expose it in client-side applications or public repositories.
Investigation tools
When OpenSRE investigates a Supabase-related alert, these tools are available:Service health
Checks the health of PostgREST, Auth, Storage, and other Supabase services for the project. Useful when triaging 503 or 401 errors from a Supabase-backed application.Storage buckets
Lists all Storage buckets and their configuration metadata — public vs private access, file size limits, and allowed MIME types.Verify it works
Let’s make sure everything is connected:Troubleshooting
Security best practices
- Use the service role key only on the server side — never in client apps or public repos.
- Rotate the service role key if it is ever exposed.
- Prefer a dedicated Supabase project or restricted key for investigation workloads when possible.