2.20 Credential vaults
Translated from French; the French version prevails if the two differ.
In short. A session can read its password from a credential vault instead of keeping it on this computer. It keeps only a reference to the secret, never the password. The secret is read at each connection, used while the session opens, then erased. HexaConnect supports nine vaults: HashiCorp Vault, 1Password, Bitwarden / Vaultwarden, CyberArk, KeePass / KeePassXC, Passbolt, Azure Key Vault, AWS Secrets Manager and Delinea Secret Server.
How it works
- A reference points to a secret. It is not a secret: you can read, copy or export it safely.
- When connecting, HexaConnect reads the secret from the vault. It is used as the session's password, then erased from memory.
- The secret is never written to this computer: not in the session database, not in the settings, not in a file, not in a log.
- The user name stays the session's. Only the password comes from the vault.
- What opens the vault (master password, passphrase, Secret Server password) is asked for at the first secret, in a window named after the vault. It is not the computer's password. Three attempts at most.
- What unlocks the vault (session key, token) stays in memory only, until “Lock” or “Forget token”, or until HexaConnect stops. Only the HashiCorp Vault token can be kept in Windows Credential Manager, until it expires; a token with no expiry never is.
- If the event log is enabled, each read is recorded there (
credential.readevent) with the reference and the vault, never the value. - A session delivered by your organization (“Organization” badge) asks for the password if the vault cannot be reached or denies access. Other sessions show the error.
Where to set the reference
- In the Credential source field of a session's or a folder's form.
- It applies to SSH, SFTP and remote desktop (RDP) sessions. Other session types ignore it.
- Empty field: the session takes its folder's source. The field then shows “Inherited from "folder name"”.
- Value
none: no source, even if the folder has one. The session asks for the password, or uses the saved one. - The reference is checked when you save: a wrong syntax is refused.
The nine vaults
Everywhere, password is the field read when the reference names none.
| Vault | Reference | Example | What this computer needs |
|---|---|---|---|
| HashiCorp Vault | vault://mount/path#key (KV version 2, then version 1) | vault://secret/servers/web-01.massive-dynamic.fr#password | The Vault server address, set in HexaConnect |
| 1Password | op://vault/item/field or op://vault/item/section/field | op://Operations/web-01.massive-dynamic.fr/password | The 1Password op CLI, signed in (1Password app integration, or op signin) |
| Bitwarden / Vaultwarden | bw://item#field: item name or ID; field password, username, totp, notes, uri or a custom field | bw://srv-web-01.atlas-industrie.fr#password | The bw CLI, with an account signed in (bw login; bw config server for Vaultwarden) |
| CyberArk | cyberark://appid/safe/object, optional #property (Content, the password, by default) | cyberark://HexaConnect/Linux-Production/root-web-01.massive-dynamic.fr | The Central Credential Provider (CCP) address, set in HexaConnect; the application must be recognized by CyberArk |
| KeePass / KeePassXC | kdbx://Group/entry#field: path from the root, or a title unique in the database; field password, username, url, notes or a custom field | kdbx://Servers/web-01.atlas-industrie.fr#password | The .kdbx file, set in HexaConnect; keepassxc-cli only in keepassxc-cli mode |
| Passbolt | passbolt://resource-id#field: the resource ID (UUID), shown in its address; field password, username, uri or description | passbolt://4f1c2a9e-7b3d-4e6a-9c58-2d0b7e1f3a64#password | The server address and the account's private key; or go-passbolt-cli, installed and configured |
| Azure Key Vault | azkv://vault/secret or azkv://vault/secret/version; optional #key to read a key of a JSON secret | azkv://kv-atlas-prod/srv-web-01#password | The Azure CLI az, signed in (az login) |
| AWS Secrets Manager | awssm://region/name-or-ARN; optional ?profile=profile and #key | awssm://eu-west-3/prod/web-01.atlas-industrie.fr?profile=operations#password | The aws CLI, configured (profile, SSO or role) |
| Delinea Secret Server | delinea://id#field: the secret number, shown in its address; template field (password, username, domain, notes…) | delinea://4127#password | The Secret Server address and a Secret Server account, set in HexaConnect |
Without #key, Azure Key Vault and AWS Secrets Manager return the whole secret value. The command-line tools (op, bw, az, aws, keepassxc-cli, go-passbolt-cli) are not shipped with HexaConnect: install them, put them in the PATH, then reopen HexaConnect.
Settings for each vault
Vaults are set in Settings › Secrets and passwords. Settings hold no secret: only addresses, names and paths. A value imposed by an organization policy is grayed out. Test checks access without reading any session secret.
HashiCorp Vault
“Enterprise vault (HashiCorp Vault)” card.
- Address: for example
https://vault.massive-dynamic.fr:8200. https is required, except to this computer (for example through an SSH tunnel). - Namespace: Vault Enterprise only; empty otherwise.
- Login method: typed token, OIDC (browser) or AppRole. With OIDC, the role must allow
http://localhost:8250/oidc/callback. With AppRole, thesecret_idis asked for when connecting. - Role: OIDC role, or AppRole
role_id. Auth method path: empty foroidcorapprole. - Certificate authority: PEM or DER file of an internal authority; empty for the Windows ones.
- Test shows the account and the token expiry. Forget token erases it.
1Password
“Other enterprise vaults” card.
- The detected
opCLI is shown. Approval happens in the 1Password app (Windows Hello). - 1Password account: optional, if the CLI knows several accounts (
op account list). - Test asks the CLI for the signed-in account.
Bitwarden / Vaultwarden
“Other enterprise vaults” card.
- The detected
bwCLI is shown. The server is set in the CLI (bw config server). - The master password is asked for at the first secret. The session key stays in memory until Lock.
- Test shows the server, the account and the state (locked or not).
CyberArk
“Other enterprise vaults” card.
- CyberArk CCP: Central Credential Provider address, for example
https://ccp.massive-dynamic.fr. - Client certificate: SHA-1 thumbprint of a certificate in the Windows store (the private key stays there), or a
.pfxfile without a password. Empty if CyberArk recognizes the application another way (address or Windows account). - Certificate authority: as for HashiCorp Vault.
- No password is asked for.
Azure Key Vault
“Other enterprise vaults” card.
- The detected
azCLI is shown. The sign-in is that ofaz login; the token stays in memory until it expires. - Azure Key Vault domain: empty for
vault.azure.net(public cloud). Sovereign clouds:vault.azure.cn,vault.usgovcloudapi.net. - Entra ID tenant: optional, if the account knows several.
- The account must be able to read secrets: “Key Vault Secrets User” role, or “Get” access policy.
- Test gets a token. Forget token erases it.
AWS Secrets Manager
“AWS Secrets Manager” card.
- The detected
awsCLI is shown. Profiles, SSO and roles are those of the CLI. - Default AWS profile: used when the reference has no
?profile=; empty forAWS_PROFILEordefault. - The account needs the
secretsmanager:GetSecretValuepermission, and access to the secret's KMS key. - Test shows the caller identity, without reading any secret.
Delinea Secret Server
“Delinea Secret Server” card.
- Address: on-premises Secret Server, path included, or Secret Server Cloud. For example
https://pam.massive-dynamic.fr/SecretServer. https is required. - Secret Server user: the account that reads the secrets. Domain: optional, Active Directory domain of the account; empty for a local Secret Server account.
- Delinea Platform: optional, for example
https://massive-dynamic.delinea.app. The token is then requested from the platform for a service user. The user is the client ID, and the client secret is asked for. - Certificate authority: as for HashiCorp Vault.
- The password is asked for at the first secret, then forgotten as soon as the token is obtained. The token stays in memory until Lock.
- Test gets a token and shows its expiry.
Passbolt
“Passbolt” card.
- Server address: for example
https://passbolt.massive-dynamic.fr. https is required. - Passbolt access: Automatic (go-passbolt-cli if installed and configured, otherwise the Passbolt API), go-passbolt-cli, or Passbolt API.
- Passbolt user ID: UUID of your account (address of your profile in Passbolt), for the API's JWT authentication. Empty: GPGAuth.
- Passbolt private key:
.ascfile of the recovery kit. Import stores it in Windows Credential Manager, still encrypted by its passphrase, and removes the path from the settings. Remove imported key erases it. - Certificate authority: as for HashiCorp Vault.
- The key's passphrase is asked for at the first secret. Lock forgets it.
- Test shows the mode in use and the state.
KeePass / KeePassXC
“KeePass / KeePassXC” card.
- KeePass database (.kdbx): path of the file. Key file: optional.
- Reading: Built-in reader (KDBX 3.1 and 4 databases, read-only) or keepassxc-cli (the KeePassXC tool, installed separately).
- The built-in reader does not read Twofish encryption, KeePass 1.x databases (
.kdb), the Windows account as a key component, or YubiKey: choose keepassxc-cli instead. - The master password is asked for at the first secret. The first opening can take a few seconds.
- Lock forgets the database key.
Common messages
| Message | What to do |
|---|---|
| “Session "…": invalid credential source” | Fix the reference (see the vault table), or set none. |
| “… is not configured (Settings › Secrets)” | Set up this vault in Settings › Secrets and passwords. |
| “… is not allowed by the organization policy” | Your organization does not allow this vault. Use an allowed vault, or ask your administrator. |
“"op" not found in the PATH” (or bw, az, aws, keepassxc-cli) | Install the vault's CLI, put it in the PATH, then reopen HexaConnect. |
| “The vault must be reached over https” | Use an https address. http is only allowed to this computer. |
| “Key "…" not found in …” | The requested field does not exist in this secret. Fix the part after #. |
| HashiCorp Vault: “Vault: error 403” | The token is not allowed to read this path. Check the Vault policy with the vault's administrator. |
| HashiCorp Vault: “Port 8250 on this computer is already in use” | Another program uses this port. Close it, then reconnect. |
| 1Password: “CLI not signed in” | Turn on the CLI integration in the 1Password app, or run op signin. |
| Bitwarden: “no account signed in” | Run bw login in a terminal (and bw config server for Vaultwarden). |
| Vault password refused three times (Bitwarden, KeePass, Passbolt, Delinea) | Reconnect the session and type the vault password again. It is not the computer's password. |
| Azure Key Vault: “the Azure CLI is not signed in” | Run az login, then try again. |
| Azure Key Vault: “access denied to secret …” | The account signed in to the Azure CLI needs the “Key Vault Secrets User” role or the “Get” access policy. |
| AWS: “the session of profile … has expired” | Run aws sso login (with --profile if needed), then try again. |
| AWS: “no credentials for profile …” | Configure the CLI (aws configure sso or aws configure), or choose another profile. |
| AWS Secrets Manager: “access denied” or “secret not found” | Check the secretsmanager:GetSecretValue permission, the KMS key, the region and the secret name. |
| Delinea: “requires an action in Secret Server” | Do the check-out, the comment or the approval request in Secret Server, then reconnect. |
| Delinea: “refuses to read” | Unknown secret, field missing from the template, or missing permissions for this account. |
| Passbolt: “requires two-step verification” | API mode does not support it: switch to go-passbolt-cli mode. |
| KeePass: “several entries are named …” | Give the entry's path from the root, for example kdbx://Servers/web-01. |
| KeePass: “not read by the built-in reader” | Choose reading through keepassxc-cli. |
Enterprise policy
With the Enterprise plan, the “Vaults allowed as credential sources” policy (credentialsources) limits the accepted vaults; a session that uses another one is refused when connecting (see 2.10).
Plan required: Discovery. Credential vaults can be used in every plan. The policy that limits them requires the Enterprise plan.