Authentication modes
When you register a database, you pick one of three execution modes that decides how KnoxCall actually talks to it. The right pick depends on where the database lives and how you want credentials to flow.Quick decision guide
Direct
KnoxCall opens a TCP connection straight from the control plane to your database, authenticates with the admin credential you registered, and runsCREATE USER / DROP USER SQL against the DB.
Use it when:
- Your DB is publicly reachable (or KnoxCall’s IP is allow-listed in your DB firewall).
- TLS is already in place (default
sslmode=require). - You’re OK with the admin credential leaving the customer network on each issue/revoke.
Agent tunnel (retired)
SSH tunnel
KnoxCall opens an SSH connection to a customer-supplied SSH host (a jump server, bastion, or any reachable Linux box that can see the DB), usesforwardOut to tunnel a TCP connection to your DB, and then runs SQL through that tunnel.
The SSH private key is encrypted with your tenant master key and stored alongside the connection. The matching public key lives on the SSH host in ~/.ssh/authorized_keys — KnoxCall is the client, just like any developer’s laptop.
Use it when:
- Your DB isn’t publicly reachable, but you have a bastion or jump host.
- You’d rather manage
authorized_keysthan another moving part.
IAM (AWS RDS / Aurora)
For RDS Postgres or RDS / Aurora MySQL clusters with IAM database authentication enabled. KnoxCall uses the AWS RDS Signer SDK to mint a 15-minute auth token for an existing IAM-enabled DB user — no admin password is stored, no dynamic CREATE USER runs. The DB user is one you’ve already provisioned and granted IAM auth on:rds-db:connect on the cluster’s user ARN.
Use it when:
- You’re on RDS and want to skip storing admin passwords entirely.
- Your application already supports IAM auth.
Comparison
Testing before you save
Every New Database page has a Test button that runs the smallest possible probe for the selected mode:- Direct / SSH tunnel — opens a real connection and runs
SELECT 1(orpingfor Mongo). - IAM — calls RDS Signer once and confirms a token was minted.