This is a tool to automate initialising Vault, encrypting the resulting root token with AWS KMS, and storing that token on AWS S3.
The instructions below are only necessary if you intend to work on the source code.
- Ensure that you have a properly configured Go workspace.
- For dependency management, you'll need
depwhich can be installed withbrew install dep.
- Fetch the code with
go get -v github.com/Intellection/vault-init. - Install the Go development tools via
make tools. - Install
depviacurl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh.brew install depcan also be used if using macOS. - Install application dependencies via
make dependencies(they'll be placed in./vendor). Requires [golang/dep][dep] package manager. - Build and install the binary with
make build tag=x.y.z.
- Install the Go testing tools via
make tools. - Run linter using
make lintand test usingmake test.