read-azure-secrets

1.0.3 • Public • Published

read-azure-secrets

This reads all secrets from the azure key vault. It returns only enabled secrets if more than one secret versions are available. Authenticate application by client ID and client secret & use your key vault URI to read secrets.

Installing

npm i read-azure-secrets

Versioning

We use SemVer for versioning.

Example

let secretClient = require('read-azure-secrets');

async function loadKeyVaultValues() {

    let applicationID = '';
    let applicationSecret = '';
    let vaultURL = 'https://<your-key-vault-name>.vault.azure.net/';
    let secrets = await secretClient.getSecrets(applicationID, applicationSecret, vaultURL);

    secrets.forEach(secret => {
        console.log(secret);
    });

}

loadKeyVaultValues();

Authors

  • Rahul Patil

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details

Package Sidebar

Install

npm i read-azure-secrets

Weekly Downloads

2,336

Version

1.0.3

License

MIT

Unpacked Size

6.53 kB

Total Files

5

Last publish

Collaborators

  • rahul-patil