Skip to content

Add possibility to connect to Postgres / Cockroach DB databases using SSL #81

Description

@stefan-g-netmine

Is your feature request related to a problem? Please describe.
I'm testing the possibilty to use Portabase to backup several different types of databses.
Postgres works quite well without TLS
I tried connecting to a local CockRoachDB cluster (Should use the same tools as Postgres for the most part) but I'm getting stuck on the NoTls part of the postgres connection.
Row 20 in src/domain/postgres/connection.rs

The only error that appears in the log is Ping => Failed

Describe the solution you'd like
A setting in databases.json that gives the option of SSL connection of not for postgres databases

Describe alternatives you've considered
A clean implementation of CockRoachdb as a Database, I however doubt this would be necessary since the differences are so small

Additional context
Cutout from dockerlog:
2026-07-14T09:16:12 INFO Connecting to postgres database 10.56.102.8:26257
2026-07-14T09:16:12 INFO Ping => false

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions