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.
-
Clone this repository
-
Install dependencies:
virtualenv venv
. venv/bin/activate
pip install -r requirements.txt
- I suggest adding the repo location to $PATH
cd apicreds && printf "\n# ApiCreds\nPATH=$PATH:$(pwd)" >> ~/.bashrc
- Currently doesn't work with OSX bash sessions enabled, so:
touch ~/.bash_sessions_disable file
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.
$ 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):
. apicreds -e <env>
apicreds -l
Refer to the project Wiki for further ideas of expansion: