https://github.com/intellection/vault-init
https://github.com/intellection/vault-init
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/intellection/vault-init
- Owner: Intellection
- License: mit
- Created: 2019-09-20T15:10:48.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-11-20T14:05:06.000Z (over 6 years ago)
- Last Synced: 2024-03-27T09:05:55.395Z (about 2 years ago)
- Language: Go
- Size: 43.9 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# Vault Init
[](https://travis-ci.org/Intellection/vault-init)
This is a tool to automate initialising Vault, encrypting the resulting root token with AWS KMS, and storing that token on AWS S3.
## Development
The instructions below are only necessary if you intend to work on the source code.
### Requirements
1. Ensure that you have a [properly
configured](https://golang.org/doc/code.html#Workspaces) Go workspace.
1. For dependency management, you'll need `dep` which can be installed with
`brew install dep`.
### Building
1. Fetch the code with `go get -v github.com/Intellection/vault-init`.
1. Install the Go development tools via `make tools`.
1. Install `dep` via `curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh`. `brew install dep` can also be used if using macOS.
1. Install application dependencies via `make dependencies` (they'll be placed
in `./vendor`). Requires [golang/dep][dep] package manager.
1. Build and install the binary with `make build tag=x.y.z`.
### Testing
1. Install the Go testing tools via `make tools`.
2. Run linter using `make lint` and test using `make test`.