Alternatively, just use Hashicorp vault (https://vaultproject.io)
https://github.com/segmentio/chamber