Skip to main content
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.
Not the transaction pooler (port 6543).
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).
Midplane carries Supabase’s root CA: TLS verified, no CA to paste. Before the switch, the role check warns about postgres owning the tables made in Supabase’s dashboard.
The role was made without Read past row-level security: make a new script with it ticked, run it, and switch.