Serverlessly fetch keys, passwords, and credentials using IP whitelist validation.
Add keys and credentials to the local store:
node access add-cred <key> <value>
Keys can be removed:
node access remove-cred <key>
To print all keys in the store:
node access print-store
To print all key-value pairs in the store:
node access print-store -v
Once you have configured your keys, add your IPs with description to the whitelist:
node access add-ip <ip> <desc>
IPs can be removed:
node access remove-ip <ip>
To print whitelisted IPs:
node access print-ips
You can now deploy your endpoint:
sls deploy
Once your serverless endpoint is deployed, you can fetch your stored credentials using GET as long as the client IP is present in the whitelist.
Retrieve a single credential:
GET /get-value?key=KEY_ID
Retrieve multiple credentials:
GET /get-values?keys=KEY_1,KEY_2,KEY_3
Check your IP:
GET /get-source-ip
Check your authentication status:
GET /is-authenticated