ShellYard
Last reviewed against v0.9.0 source: internal/dbconnect/dbconnect.go::OpenOptions.Dial

SSH-tunnel routing for DB connections

A DB connection's 'Route via' field references a saved SSH connection. The Manager opens that session and tunnels the DB protocol through it.

A DB connection’s Route via field references a saved SSH connection ID. The dbconnect Manager opens that SSH session and tunnels the DB protocol through it.

Same via_connection_id field as the HTTP client uses — so a Space’s “bastion-prod” connection serves both surfaces.

Why use it

  • A Postgres on a private VPC subnet without a bastion port-forward.
  • A MySQL on a controller VLAN reachable only from a saved switch.
  • A Redis bound to localhost on an EC2 host.

The dbconnect Manager keeps one SSH session open per saved host across all DB connections that route through it.