Skip to content

0x646e78/apicreds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

apicreds

A more secure than plaintext API credential management system. Credentials are stored in an AES encrypted filestore.

This is presently tailored for AWS, the idea is to make this more generic.

You can use it to load creds into your environment at the start of your work session, or just print them once if you prefer.

Install

  1. Clone this repository

  2. Install dependencies:

virtualenv venv
. venv/bin/activate
pip install -r requirements.txt
  1. I suggest adding the repo location to $PATH
cd apicreds && printf "\n# ApiCreds\nPATH=$PATH:$(pwd)" >> ~/.bashrc
  1. Currently doesn't work with OSX bash sessions enabled, so:
touch ~/.bash_sessions_disable file

Use

By default your keys will be stored in an AES encrypted file at ~/.apicreds.aes

You can change this location with the switch -f

Upon your first use, you will be prompted to choose a passphrase.

Storing a credential set

$ apicreds -i
Enter your passphrase>

Enter the name of your new AWS environment: prod
Enter a brief desciption of the environment: AWS prod environment
Enter your AWS Access Key ID: <ACCESS-KEY-ID>
Enter your AWS Secret Key: <SECRET-ACCESS-KEY>
Enter the default region for this environment (blank for none):

Exporting variables into your current shell

. apicreds -e <env>

List all stored credential sets

apicreds -l

TODO

Refer to the project Wiki for further ideas of expansion:

https://github.com/auraltension/apicreds/wiki/TODO

About

API Key Management

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages