@purista/vault-secret-store
v2.2.0
Published
State store adapter for HashiCorp Vault
Downloads
172
Readme
@purista/vault-secret-store
A secret store for using HashiCorp Vault as storage.
const config = {
endpoint: 'http://localhost:8200',
token: 'root',
}
const store = new VaultSecretStore(config)
await store.setSecret('mySecret', 'value')
let value = await store.getSecret('mySecret')
console.log(value) // outputs: { mySecret: 'value' }
await store.removeSecret('mySecret')
value = await store.getSecret('mySecret')
console.log(value) // outputs: undefinedVisit purista.dev
Follow on Twitter @purista_js Join the Discord Chat
