1.1.5 • Published 5 years ago

akv_handler v1.1.5

Weekly downloads
6
License
ISC
Repository
github
Last release
5 years ago

Small package to retrieve a secret from Azure Key Vault. The environment where this package will be used needs to have permissions to read Azure Key Vault Secrets in the specified account.

The function returns a Promise which resolves to an array of objects contenting the secret name and value for each one, or rejects to the err object.

This is the form of the response object:

{
  secretsArray[0]: secretValue0,
  secretsArray[1]: secretValue1,
  ...
}

Usage: Run this command: npm install --save akv_handler

In your code:

var akvHandler = require('akv_handler')

akvHandler.getSecrets(keyVaultName, secretsArray)
  .then((secretsArray) => {
    console.log({secretsArray})
  })
  .catch((err) => {
    console.log({err})
  })

keyVaultName is the name given to the Azure Key Vault. secretName is the name of the secret with the version in this format: my_secret/version (to get the version, go to Azure Portal, then to the Key Vault and then to Secrets)

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago