The HashiCorp Vault plugin fetches the KV secret from HashiCorp Vault
npm install insomnia-plugin-hashicorp-vault-secrets
If you like this plugin, leave it a ⭐ on Github!
Application -> Preferences -> Plugins and enter insomnia-plugin-hashicorp-vault-secrets in the npm package name field and click on the button Install Plugin.This will download and install the plugin. After installation, you will see the plugin in the list of installed plugins
and the action "HashiCorp Vault Secrets" will be available in the context menu of a folder, no restart required.

json
{
"HASHICORP_URL": "https://hashicorp.client.net",
"HASHICORP_KV_VERSION": "2",
"HASHICORP_TOKEN": " TO_BE_REPLACED "
}
`
In HashiCorp: create a KV secret (or mount), a secret and a JSON.For instance:
- KV secret (or mount):
keycloak_v2
- secret: dev
- JSON:
`json
{
"client_id": "client2",
"client_secret": "$my_secret!"
}
`

Press Ctrl + Space in any place where an environment variable is available and pick HashiCorp Vault Secret

Set in KV Secret Name a path to the Vault Secret. The syntax is
/mount/secret/jsonName
For instance: /keycloak_v2/dev/client_id. The client2 value is retrieved from HashiCorp Vault

Repeat the same action for the client_secret (with
/keycloak_v2/dev/client_secret path)

How to Debug
1) Open the Log folders (Insomnia Menu: Help -> Show App Log Folders)
2) Open the file: renderer.log
3) See log with [hashicorp-vault-secrets]`