main.go

Store/retrieve encrypted configs from etcd or Consul (Go library)

Install

All systems
curl cmd.cat/main.go.sh
Debian Debian
apt-get install golang-github-xordataexchange-crypt-dev
Ubuntu
apt-get install golang-github-xordataexchange-crypt-dev
image/svg+xml Kali Linux
apt-get install golang-github-xordataexchange-crypt-dev
Windows (WSL2)
sudo apt-get update sudo apt-get install golang-github-xordataexchange-crypt-dev
Raspbian
apt-get install golang-github-xordataexchange-crypt-dev

golang-github-xordataexchange-crypt-dev

Store/retrieve encrypted configs from etcd or Consul (Go library)

Fess up. You have passwords and usernames hard coded in your apps. You have IP addresses checked in to your source code repository. You have entire configuration files that were created by the developer who wrote the app and haven’t been changed since she typed "git init". "crypt" is here to lead you back to the Path of Enlightened Configuration. Store encrypted configuration values in etcd or Consul using a command-line application. Decrypt them before starting your application using a wrapper script and the handy CLI tool, or inside the app using the "crypt/config" library. "crypt" is built on time-tested standards like OpenPGP, base64, and gzip. Your data is encrypted using public key encryption, and can only be decrypted by when the private key is available. After compression, it is encrypted, and base64-encoded so it can be stored in your key/value store of choice. etcd and Consul are supported out of the box, but adding other storage tools is a trivial task, thanks to Go’s interfaces. This package provides the "github.com/xordataexchange/crypt/config" Go library.