This is sample application to showcase, how can we avoid hardcoding user credentials and secrets inside our source-code by using Hashicorp-vault
In this sample app, I have used MongoDB as backend storage to manage our employee records.
I have used Node.js for backend and HTML/CSS for frontend development. In this setup, since we are getting credentials from vault secret manager via vault-api , check out package node-vault
Pre-requisite:
- Setup vault click here
- Setup MongoDB, create employee Database and user account
- Add DB user account, password in VAULT secret engine.
- NPM and Node.js