User Guide

2. Connections

Chapter 2 of 14 · JiveDB User Guide

A connection is a saved set of details JiveDB uses to reach one database: its type, address, and login. This chapter explains how to create, edit, and organize connections, including secure options like TLS/SSL and an SSH tunnel.


1. Supported database types

When you create a connection, you choose one Database type:

Note: The TLS/SSL and SSH Tunnel tabs described below only appear for server-based connections (PostgreSQL, MySQL, MariaDB, Redis). SQLite connections only show the Connection tab, since a local file does not need network security settings.

2. Create a new connection

  1. Click New connection in the toolbar, or click the + icon at the top of the sidebar's Connections panel.
  2. In the connection dialog, stay on the first tab, Connection.
  3. Fill in the fields:
    • Connection name — any label you choose (for example, "Local Postgres").
    • Group — optional. Type a name to file this connection under a folder in the sidebar. Leave it empty to keep the connection outside any folder.
    • Database type — pick PostgreSQL, MySQL, MariaDB, SQLite, or Redis.
    • Host and Port — the server address. Port has up/down stepper arrows and a sensible default per database type.
    • Username and Password — your login credentials.
    • Database (optional) — the specific database/schema to open by default.
  4. Click Test to check that JiveDB can reach the server with these details, before saving.
  5. Click Save.
The connection dialog on the Connection tab, editing a PostgreSQL connection
Figure 2.1 — Editing a connection on the Connection tab.

Once saved, the connection appears in the sidebar tree, with an icon that matches its database type (for example, an elephant icon for PostgreSQL).

3. Secure a connection with TLS/SSL

If your database server requires an encrypted connection, switch to the TLS/SSL tab in the connection dialog:

  1. Open the connection dialog (new or existing connection) and click the TLS/SSL tab.
  2. Choose a TLS Mode:
    • Disable — no encryption.
    • Require (encrypt only) — encrypts the connection but does not check the server's identity.
    • Verify CA — encrypts and checks that the server certificate was signed by a trusted authority.
    • Verify Full — the strongest option: encrypts, checks the certificate authority, and also checks that the hostname matches the certificate.
  3. If you chose Verify CA or Verify Full, fill in:
    • Server CA — the path to your CA certificate file, or browse for it with the folder icon.
  4. If your server also requires mutual TLS (mTLS), fill in Client Auth:
    • A client certificate file and a client private key file. Both must be provided together.
  5. Click Test, then Save.
The connection dialog on the TLS/SSL tab, with Verify Full selected
Figure 2.2 — Configuring TLS/SSL with "Verify Full" mode selected.

When TLS/SSL is turned on for a connection, its tab shows a small green dot, so you can see at a glance which tab is active.

4. Reach a database through an SSH tunnel

If your database is only reachable through a jump/bastion server, use an SSH tunnel instead of connecting directly:

  1. Open the connection dialog and click the SSH Tunnel tab.
  2. Check Connect via SSH tunnel.
  3. Fill in:
    • SSH Host and Port — the address of the SSH server (default port 22).
    • SSH User — your SSH login name.
    • SSH Password — leave this empty if you are using a key file instead.
    • Key Path — the path to your private key file (for example ~/.ssh/id_rsa). You can browse for it with the folder icon.
    • Key Passphrase — leave this empty if your key file is not encrypted.
    • SSH Timeout (s) — how many seconds to wait before giving up on the tunnel.
  4. Click Test, then Save.
The connection dialog on the SSH Tunnel tab, with a key file configured
Figure 2.3 — Configuring an SSH tunnel with a private key file.

Like the TLS/SSL tab, the SSH Tunnel tab shows a green dot when the tunnel is turned on for that connection.

5. Organize connections into groups

As you save more connections, you can file them into folders (called groups) inside the sidebar's Connections panel:

  1. Click the folder-plus icon at the top of the Connections panel.
  2. In the New group dialog, type a Group name.
  3. Click Confirm.
The New group dialog, used to create a folder for connections
Figure 2.4 — Creating a new connection group.

To move an existing connection into a group, either set the Group field in its connection dialog (see section 2), or right-click the connection in the sidebar and choose a "move to group" action. Right-click menus for the sidebar tree are covered in Chapter 3 — Navigation and search.

Note: Groups are a display-only feature of the sidebar. They are saved on your computer separately from the connection's own settings, so grouping connections never changes how JiveDB connects to the database itself.

6. How your password is stored

JiveDB encrypts every saved password at rest, using AES-256-GCM, before writing it to disk. The encryption key file and the connections file are both saved with restricted file permissions on your computer, so only your own user account can read them.

This is why the Test button exists: it lets you confirm the connection works before you save it, without needing to re-enter the password later.