Help › Tunnels, sign-in and passwords

Use a password manager

Fetch a connection's password from 1Password, HashiCorp Vault, LastPass, Bitwarden, AWS Secrets Manager or Azure Key Vault each time it connects.

Querlyn 0.1.0 is not released yet. This help describes it ahead of release.

Instead of saving a password in the keychain, a connection can name where the password lives in a password manager. Querlyn fetches it each time the connection connects, keeps it in memory while the connection is open, and never saves it.

This works for the database password and for each SSH hop's password or key passphrase.

What you need

ManagerWhat Querlyn uses
1PasswordThe 1Password command-line program, op, installed and connected to the 1Password app.
LastPassThe LastPass command-line program, lpass, signed in with lpass login.
BitwardenThe Bitwarden command-line program, bw, signed in with bw login.
VaultNothing to install: Querlyn talks to the HashiCorp Vault server itself.
AWS Secrets ManagerYour AWS credentials, as the AWS CLI uses them (~/.aws): access keys, an IAM Identity Center (SSO) sign-in, or a role. Nothing to install: Querlyn calls AWS itself.
Azure Key VaultA Microsoft sign-in: the Azure CLI's (az login), or one in the browser or with a code. Querlyn calls Key Vault itself.

Querlyn does not include these programs. Settings, under Tools, shows whether each was found and lets you give its path.

Point a connection at a password

  1. In the connection dialog, under Where the password is kept, choose the manager. The password field is replaced by the reference's fields.
  2. Fill in the reference (see the manager's section below).
  3. Choose Test (Command Palette › Database: Test Fetching the Password). Querlyn fetches the password and reports only its length, for example "Found a 24-character value." The value is not shown or kept.
  4. Choose Test Connection, then Save & Connect.

When you connect, fetching the password is a step of its own in the list of steps, for example "Get the password from 1Password".

1Password

Under Secret reference, enter the item's secret reference, in the form op://vault/item/field.

1Password account is needed only if op knows several accounts; empty uses its default.

1Password may ask you to approve the read, for example with Touch ID. Querlyn waits up to two minutes for that.

HashiCorp Vault

Under Secrets engine, choose how the secret is stored:

EngineFields
KV v2 or KV v1Mount (usually secret), Secret path (for example apps/orders) and Field (usually password).
Database credentialsMount (usually database) and Role. Vault creates a database user for the connection. It replaces User, is renewed while you are connected and revoked when you disconnect. For database passwords only.

Under the password, the Vault server is set once for the connection and shared with its SSH hops:

FieldWhat to enter
Vault addressThe server's address, such as https://vault.example.com:8200. Empty uses VAULT_ADDR. Plain http:// is accepted only for an address on your own computer.
NamespaceEmpty uses VAULT_NAMESPACE, or none.
CA certificateA certificate authority file, if the server's certificate is from a private one.
Sign in to Vault withVault token uses VAULT_TOKEN, or the token vault login saved in ~/.vault-token; Querlyn reads it when connecting and never stores it. Browser sign-in (OIDC) signs in with your identity provider in the browser; the Vault token then stays in memory until Querlyn quits. For OIDC, OIDC mount and OIDC role may stay empty for the usual ones.

The Vault server's certificate is always verified.

LastPass

Under Item, enter the item's name, folder/name, or its ID. Field (optional) names another field than the password.

If you are not signed in, the error shows the command to run, with a Copy button. If several items match, Querlyn refuses and lists their IDs; use the ID.

Bitwarden

Under Item, enter the item's ID or its exact name. Field (optional) names another field than the password, such as a custom field.

If your vault is locked, Querlyn asks for your master password once, in a masked field, and uses it to unlock the vault. It keeps only the session key Bitwarden returns, in memory, until you quit Querlyn or lock it.

Two buttons appear under the password while Bitwarden is in use:

  • Sync Vault (Command Palette › Database: Sync Bitwarden Vault) fetches the latest vault from the server. Fetching a password does not do this by itself.
  • Lock (Command Palette › Database: Lock Bitwarden) makes Querlyn forget its session key. You are asked for the master password again at the next connect.

Querlyn uses the server your bw is configured for.

AWS Secrets Manager

Under Secret name or ARN, enter the secret's name (for example prod/orders/db) or its ARN. JSON key (optional) names the key to read when the secret is a JSON object; empty reads password from a JSON object that has one (as the secrets Amazon RDS manages do), and otherwise the whole secret.

Under the password, set once for the connection and shared with its SSH hops:

FieldWhat to enter
AWS profileA profile of your AWS configuration. Empty uses AWS_PROFILE, else default.
RegionEmpty uses the region in an ARN, else AWS_REGION, else the profile's.

The identity needs permission for secretsmanager:GetSecretValue on the secret (and to decrypt with its key, when the secret uses a key of your own). When an IAM Identity Center sign-in has expired, the error shows the aws sso login command to run, with a Copy button. Secrets stored as binary data are not read.

Azure Key Vault

Enter the Key vault (its name, such as orders-kv, or its https://orders-kv.vault.azure.net address), the Secret name and, only to read an older value, its Version (optional).

Under the password, choose how Querlyn signs in to Microsoft for Key Vault, once for the connection:

ChoiceWhat happens
Azure CLIUses the account you signed in to with az login. When the Azure CLI is not signed in, the error shows the command to run.
BrowserOpens Microsoft's sign-in page at the first connect.
Device CodeShows a code to enter on Microsoft's page, on any device.

Tenant names the directory the vault belongs to, when your account is in several; empty uses your account's. A sign-in in the browser or with a code is kept in memory until you quit Querlyn and serves every connection that signs in the same way.

Your account needs the Key Vault Secrets User role on the vault, or an access policy that allows reading secrets. Only vaults in Azure's global cloud (vault.azure.net) can be used.

When the password changes

If the server refuses a password that came from a manager, Querlyn fetches it once more and tries again. So after a password is rotated in the manager, a new connection picks it up without any change in Querlyn.

What is not supported

  • Choosing an item from a list: you type or paste the reference.
  • KeePassXC, and Azure Key Vault in Azure's national clouds (China, US Government).
  • Secrets stored as binary data in AWS Secrets Manager.
  • Vault sign-in methods other than a token and OIDC.
  • A connection that signs in with AWS IAM or Microsoft Entra ID has no password to fetch.

Help for Querlyn 0.1.0. All help topics