
Nitrokey has welcomed Tabularis into its Community Program, providing security keys we use to test how Tabularis works with hardware-backed SSH keys.
Nitrokey builds open-source security hardware in Germany. Both the hardware and the firmware of its keys are published, so anyone can review how they work. That approach is close to how we build Tabularis: the code is public, and trust comes from being able to look inside.
Why a database client needs security keys
Many production databases are not exposed to the internet. You reach them through a bastion host over an SSH tunnel, and more teams protect that bastion with keys stored on a hardware token. The private key never leaves the device, and every connection requires the key to be present, often with a PIN and a physical touch.
That is a good security model, and an easy one to break in a desktop app. A tunnel that expects to authenticate silently will just fail when the token asks for a PIN or waits for a touch.
Since v0.13.4, Tabularis handles this case. When a connection has Allow SSH password/PIN prompt enabled, Tabularis acts as its own SSH askpass helper:
- it shows a native dialog for the security key PIN, and the secret goes straight to SSH without being written to disk;
- it shows a touch your security key notice that closes by itself once SSH confirms your presence;
- it pauses the tunnel readiness timeout while a prompt is open, so typing a PIN cannot time out the connection.
The details are in the SSH tunneling guide.
Testing on real hardware
This flow touches the OS, OpenSSH, the token firmware and our own prompt handling, on Linux, macOS and Windows. Mocks only get you so far: the only reliable way to know a PIN prompt or a touch request works is to plug in a key and try.
The Nitrokey test devices let us do exactly that. We use them to exercise the full path, from creating a FIDO2 SSH key to opening a tunnel and running queries through it, and to check the askpass flow on real hardware whenever it changes.
Use a FIDO2 key with Tabularis
You need OpenSSH 8.2 or later on both your machine and the SSH server, and a FIDO2 security key.
Create an SSH key stored on the security key:
ssh-keygen -t ed25519-sk -O verify-required -f ~/.ssh/id_ed25519_skThe file on disk is only a handle; the private key stays on the device.
-O verify-requiredasks for the key PIN on every use.Add the content of
~/.ssh/id_ed25519_sk.pubto~/.ssh/authorized_keyson the bastion host.In Tabularis, open the connection editor, check Use SSH Tunnel and set up the SSH connection with your host, username and the key file
~/.ssh/id_ed25519_sk.Enable Allow SSH password/PIN prompt and click Test Connection.
Enter the PIN when Tabularis asks for it, then touch the key. The tunnel opens and you can browse schemas and run queries as usual.
Leave the prompt option off for connections that must never wait for input, such as those using an SSH agent with stored credentials.
Thank you, Nitrokey
Thank you to the Nitrokey team for supporting Tabularis through the Community Program. Having real hardware on our desks lets us test security features the way people actually use them.
If you maintain an open-source project working on security software or hardware, the Nitrokey Community Program accepts applications for free test devices.
You can find Nitrokey alongside the other organizations helping the project on our sponsors page. If you connect to your databases through a hardware-protected SSH key, we would love to hear how it works for you.
The Tabularis Team
