1
Give the server a certificate for its host name
For TLS verified, the certificate must name the host in the
connection string and come from a CA you can paste in the connect form.
- Postgres:
ssl = on,ssl_cert_fileandssl_key_fileinpostgresql.conf, then reload. - MySQL: TLS is on by default, but the certificate MySQL makes for
itself doesn’t name your host. Set
ssl_ca,ssl_certandssl_key.
2
Let Midplane in
Postgres must listen where Midplane can reach it (
listen_addresses),
with hostssl lines in pg_hba.conf for your region’s egress
addresses; MySQL, on its bind_address. Open the port to those
addresses in the firewall (allowlists). On a
private network, use an SSH bastion.3
Run the role script
As a superuser or a role with
CREATEROLE on Postgres; as root or a
user that can create users and grant SELECT on MySQL
(the role script). If pg_hba.conf names its users,
add the new role first.