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

Where to set the reference

The nine vaults

Everywhere, password is the field read when the reference names none.

VaultReferenceExampleWhat this computer needs
HashiCorp Vaultvault://mount/path#key (KV version 2, then version 1)vault://secret/servers/web-01.massive-dynamic.fr#passwordThe Vault server address, set in HexaConnect
1Passwordop://vault/item/field or op://vault/item/section/fieldop://Operations/web-01.massive-dynamic.fr/passwordThe 1Password op CLI, signed in (1Password app integration, or op signin)
Bitwarden / Vaultwardenbw://item#field: item name or ID; field password, username, totp, notes, uri or a custom fieldbw://srv-web-01.atlas-industrie.fr#passwordThe bw CLI, with an account signed in (bw login; bw config server for Vaultwarden)
CyberArkcyberark://appid/safe/object, optional #property (Content, the password, by default)cyberark://HexaConnect/Linux-Production/root-web-01.massive-dynamic.frThe Central Credential Provider (CCP) address, set in HexaConnect; the application must be recognized by CyberArk
KeePass / KeePassXCkdbx://Group/entry#field: path from the root, or a title unique in the database; field password, username, url, notes or a custom fieldkdbx://Servers/web-01.atlas-industrie.fr#passwordThe .kdbx file, set in HexaConnect; keepassxc-cli only in keepassxc-cli mode
Passboltpassbolt://resource-id#field: the resource ID (UUID), shown in its address; field password, username, uri or descriptionpassbolt://4f1c2a9e-7b3d-4e6a-9c58-2d0b7e1f3a64#passwordThe server address and the account's private key; or go-passbolt-cli, installed and configured
Azure Key Vaultazkv://vault/secret or azkv://vault/secret/version; optional #key to read a key of a JSON secretazkv://kv-atlas-prod/srv-web-01#passwordThe Azure CLI az, signed in (az login)
AWS Secrets Managerawssm://region/name-or-ARN; optional ?profile=profile and #keyawssm://eu-west-3/prod/web-01.atlas-industrie.fr?profile=operations#passwordThe aws CLI, configured (profile, SSO or role)
Delinea Secret Serverdelinea://id#field: the secret number, shown in its address; template field (password, username, domain, notes…)delinea://4127#passwordThe 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.

1Password

“Other enterprise vaults” card.

Bitwarden / Vaultwarden

“Other enterprise vaults” card.

CyberArk

“Other enterprise vaults” card.

Azure Key Vault

“Other enterprise vaults” card.

AWS Secrets Manager

“AWS Secrets Manager” card.

Delinea Secret Server

“Delinea Secret Server” card.

Passbolt

“Passbolt” card.

KeePass / KeePassXC

“KeePass / KeePassXC” card.

Common messages

MessageWhat 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.