# read-azure-secrets

> Read all secrets from azure key vault

Latest version **1.0.3** (published 2023-01-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install read-azure-secrets
pnpm add read-azure-secrets
yarn add read-azure-secrets
bun add read-azure-secrets
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2023-01-04 |
| First published | 2019-07-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 6.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Rahul Patil |
| Maintainers | rahul-patil |
| Keywords | read-azure-secrets, get-azure-secrets, load-azure-secrets |

## Links

- npm: https://www.npmjs.com/package/read-azure-secrets
- Repository: https://github.com/rrpatilcse/read-az-keyvault-secrets
- Homepage: https://github.com/rrpatilcse/read-az-keyvault-secrets#readme
- Issues: https://github.com/rrpatilcse/read-az-keyvault-secrets/issues
- npm.io page: https://npm.io/package/read-azure-secrets

## Dependencies (2)

- [adal-node](https://npm.io/package/adal-node.md) ^0.1.28
- [azure-keyvault](https://npm.io/package/azure-keyvault.md) ^3.0.4

## Recent versions

- 1.0.3 (latest) — 2023-01-04
- 1.0.2 — 2023-01-04
- 1.0.1 — 2019-07-25
- 1.0.0 — 2019-07-25

## README

# 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](http://semver.org/) 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](https://github.com/rrpatilcse/read-az-keyvault-secrets/graphs/contributors) who participated in this project.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details

---
_Source: https://npm.io/package/read-azure-secrets · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
