sidelab-key-vault
v1.0.1
Published
A package to manage secrets using key vault
Downloads
1
Readme
Description
A package to manage secrets using key vault.
Install
$ yarn add sidelab-key-vault
Set up
# local and on CI/CD tool
export AZURE_CLIENT_ID="<CLIENT_ID>"
export AZURE_CLIENT_SECRET="<CLIENT_SECRET>"
export AZURE_TENANT_ID="<TENANT_ID>"
Usage
import { KeyVault } from 'sidelab-key-vault';
const keyVault = new KeyVault({
keyVaultName,
environment
});
const secret = keyVault.getSecret(secretName);
Contribute
Clone this repository
Make your changes
Open a Pull Request
Add method to get new secrets
Create a constant for the new secret on constants.ts file.
Add a new method on key-vault.ts file.