insomnia-plugin-azure-keyvault-secrets

1.0.2 • Public • Published

If you like this plugin, leave it a on Github!

Azure Key Vault Secrets for Insomnia

Azure Key Vault Secrets for Insomnia Logo

A plugin for Insomnia to retrieve secrets from Azure Key Vault and use them in your environment.

This plugin installs a template tag to read secrets from a Azure Key Vault.

Prerequisites

  • Install the Azure Cli and login with az login. The plugin will automaticlaly read the cached credentials.

Installation

You can find the plugin at this link.

How to use it

  • Install the plugin from the Insomnia plugin Hub.
  • Add an environment variable with the name AZURE_KEYVAULT, only the name will do, the plugin will create the full url. For example if the full key vault url is https://my-key-vault-name.vault.azure.net, the variable will be "AZURE_KEYVAULT": "my-key-vault-name".

image

  • Hit Ctrl + Space in any place where an environment variable is available and pick Azure Key Vault Secret

image

  • The template tag will become red indicating an error, in fact it requires a secret name, click on it

image

  • Set the secret name

image

The live preview will show the value. Click Done.

  • The template tag shows now the secret name

image

Notes

The secrets are retrieved once and cached for the lifetime of the application because Insomnia evaluates all environment variables and template tags very often. To force the retrieval of the secrets simply restart Insomnia.

Package Sidebar

Install

npm i insomnia-plugin-azure-keyvault-secrets

Weekly Downloads

269

Version

1.0.2

License

MIT

Unpacked Size

110 kB

Total Files

7

Last publish

Collaborators

  • gianluigiconti