A simple tool to store env vars in keyring and execute programs with them injected.
This tool is in early development, the api is likely to change
There are some of solutions to store secrets and inject them as env var during runtime like vault. Tho i like the idea of storing them into a single source of truth, i do not like managing a server instance for my private projects. I normally store API keys etc. in keepass and copy them into my terminal session. This tool makes it easier for me to manage my env var secrets. It is very similar to 99designs/aws-vault.
I will not provide binaries in the reposiories release section. Bare in mind, this tool manages your secrets, you will not want precompiled binaries to see them. Compile it yourself or use tools like gobinaries.com which will download the source code and compile it on the fly (if you trust them).
It's recommended to use go install
. This will download and compile the program:
go install github.com/janstuemmel/env-vault
If you trust services like gobinaries, type:
curl -sf https://gobinaries.com/janstuemmel/env-vault | sh
Creates a new environment
env-vault create my-project
Adds a var to environment
env-vault add my-project MY_SECRET=s3cret
Removes a environment
env-vault remove my-project
Removes a environment
env-vault remove my-project MY_SECRET
List all environments
env-vault list
List all vars in environment
env-vault list my-project
Execute command with env injected
env-vault exec my-project env