1
Copy a connection string
Under Connect at the top of the project, choose one
(Supabase’s guide):
-
Session pooler: IPv4 on every plan, with the user
postgres.<project ref>. -
Direct connection:
db.<project ref>.supabase.co, IPv6 unless you have the IPv4 add-on. Midplane connects over IPv6 too.
2
Let Midplane in, if network restrictions are on
Add both of your region’s egress addresses, IPv4
and IPv6, to Supabase’s
network restrictions.
3
Keep Read past row-level security ticked
It comes ticked on Supabase: without it, Midplane’s role reads no rows
from a table whose policies don’t name it. Midplane’s own access rules
still apply. Run the script in the SQL Editor, which is connected to
postgres. On the session pooler, Midplane logs in as
midplane_….<project ref> by itself (the role script).postgres owning the tables
made in Supabase’s dashboard.
If agents get empty tables
If agents get empty tables
The role was made without Read past row-level security: make a new
script with it ticked, run it, and switch.