Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xordataexchange/crypt
Store and retrieve encrypted configs from etcd or consul
https://github.com/xordataexchange/crypt
Last synced: about 1 month ago
JSON representation
Store and retrieve encrypted configs from etcd or consul
- Host: GitHub
- URL: https://github.com/xordataexchange/crypt
- Owner: xordataexchange
- License: mit
- Created: 2014-10-17T21:08:33.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2021-09-10T11:12:28.000Z (over 3 years ago)
- Last Synced: 2024-10-29T19:58:37.515Z (about 1 month ago)
- Language: Go
- Homepage: http://xordataexchange.github.io/crypt/
- Size: 2.02 MB
- Stars: 525
- Watchers: 18
- Forks: 112
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-consul - crypt: Store and retrieve encrypted configs
- awesome - crypt - Store and retrieve encrypted configs from etcd or consul (Go)
README
# crypt
You can use crypt as a command line tool or as a configuration library:
* [crypt cli](bin/crypt)
* [crypt/config](config)## Demo
Watch Kelsey explain `crypt` in this quick 5 minute video:
[![Crypt Demonstration Video](https://img.youtube.com/vi/zYpqqfuGwW8/0.jpg)](https://www.youtube.com/watch?v=zYpqqfuGwW8)
## Generating gpg keys and keyrings
The crypt cli and config package require gpg keyrings.
### Create a key and keyring from a batch file
```
vim app.batch
``````
%echo Generating a configuration OpenPGP key
Key-Type: default
Subkey-Type: default
Name-Real: app
Name-Comment: app configuration key
Name-Email: [email protected]
Expire-Date: 0
%pubring .pubring.gpg
%secring .secring.gpg
%commit
%echo done
```Run the following command:
```
gpg2 --batch --armor --gen-key app.batch
```You should now have two keyrings, `.pubring.gpg` which contains the public keys, and `.secring.gpg` which contains the private keys.
> Note the private key is not protected by a passphrase.