@revbits/pam-secretman-js-plugin
v1.0.7
Published
RevBits PAM Secret Manager JavaScript Plugin
Downloads
3
Readme
RevBits PAM - Secret Manager JavaScript Plugin
RevBits PAM Secret Manager JavaScript Plugin allows you to connect to your RevBits PAM Server and get secret values by connecting to Secretman Service.
Installation
It requires Node.js v16+ to run.
Install the dependencies and devDependencies and start the server.
npm i @revbits/pam-secretman-js-plugin
Plugins
This NPM Package uses following packages as well.
| Package | README | | ------ | ------ | | CryptoJS | https://www.npmjs.com/package/crypto-js | | Axios | https://www.npmjs.com/package/axios |
Functions
| Function | Definition | | ------ | ------ | | generateSecret | generateSecret(hostName,secretKey,apiKey) |
const secretman = require('@revbits/pam-secretman-js-plugin');
(async function(){
const secretKey = '<Your Secretman Secret Key here>';
const apiKey = '<You secretman API Access Key here>';
const secretValue = await secretman.generateSecret('https://<Your revbits base url here>',secretKey,apiKey);
})();
License
MIT