Vault-API
Axios-like NodeJS API for Hashicorp Vault.
Installation
vault-api
require Node.js >= v8.17.0.
npm install vault-api
Basic Usage
Requests can be made by passing the relevant config to vault
function.
Importing
import vault from 'vault-api';
vault(config)
vault({
method: 'write',
path: 'secret/apiKey',
data: {
webApp: '5cfdf55e-cfa9-5da8-b2b2-64f30a462a09value'
}
});
vault({
method: 'read',
path: 'secret/apiKey'
});
Docs
Documentation and guides are available at Repo's Github Wiki
Supported Secrets Engines
- Key/Value Version 1
- Key/Value Version 2
Contributing
See CONTRIBUTING.md for Contributing guidelines.
Code of Conduct
See CODE_OF_CONDUCT.md for Code of Conduct guidelines.
License
Checkout the project license at LICENSE.md.
Credits
vault-api
is heavily inspired by axios
. I was inspired by the simplicity of the axios
and wanted to make a similar library for Hashicorp Vault. The ultimate goal of this library is to provide a simple, easy to use, extensible API for interacting with Hashicorp Vault. I hope you enjoy using it!
Resources