> ## Documentation Index
> Fetch the complete documentation index at: https://midplane.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Neon

> Connect Neon to Midplane: the direct connection string, verified TLS, the role script with its plain-text password, and what autosuspend means.

**1. Copy the direct connection string**

Under **Connect** on the project's dashboard, choose the branch and
database, turn connection pooling off, and copy the string. Its host
has no `-pooler`. A read replica's compute is best.

```text theme={null}
postgres://neondb_owner:<password>@ep-cool-darkness-123456.eu-central-1.aws.neon.tech/neondb?sslmode=require&channel_binding=require
```

Leave its parameters as they are: Midplane keeps
`channel_binding=require`, and `options`, which Neon routes by.

**2. Let Midplane in, if IP Allow is on**

Add both of your region's [egress addresses](https://midplane.ai/docs/connect/allowlist.md) to
Neon's [IP Allow](https://neon.com/docs/introduction/ip-allow).

**3. Run the role script, not Neon's Roles page**

Run it in Neon's SQL Editor, on the same branch and database
([the role script](https://midplane.ai/docs/connect/role.md)). On Neon it carries the password in
plain text, the only form Neon takes; Neon stores it hashed. A role made
under **Roles** in Neon's console joins `neon_superuser`, which can do
far more than read.

Neon's certificates come from a public authority: **TLS verified**. Before
the switch, the role check warns about `neondb_owner` if it owns the
tables.

> [accordion] If the test says the database did not answer
>
> A compute that scaled to zero wakes on the first connection: **Test
> again**.

> [accordion] If your compute autosuspends
>
> Midplane reads each source's catalog every 5 minutes, so a compute set
> to suspend after 5 minutes idle may stay awake.

> [accordion] If you use branches
>
> A source reads one branch: the one in its connection string.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.