The reason for this post's existence is to encourage more teams to make the
effort to move their credentials, certificates and other relevant files -
bbl up to a proper secret store.
Most of us are guilty of taking the easy way out by checking in all our
secrets and certs into a private git repo . And although we install tools
like the cred-alert-cli git
to keep us in check, let us face the reality of our frequent usage of the
Eventually our hasty human nature coupled with
--no-verify will lead us
to expensing the costly mistake of leaking credentials into a repo that is
public or may become public in the future - OSS for the win!.
We need to take the stance of not storing any credentials in git.
This post is one of a multi-part post that will be published to help us
deploy, configure and use Vault as part of our workday lives and CI systems.
This will NOT be a post to debate the pros and cons of other tools like
lpass and how those tools can be used to mitigate this problem.
TXTrecord in Route 53.
There are comments in the config to explain the what and why of the properties.
service: type: NodePort ingress: enabled: true hosts:
secretName: vault-tls vault:
dev: false customSecrets:
## Helm Install ```bash export NAMESPACE_NAME="myteam-vault" kubectl create namespace "$NAMESPACE_NAME" kubectl create secret generic vault-gcs-service-account \ --from-file=key.json="/tmp/sa.json" \ --namespace "$NAMESPACE_NAME" kubectl create secret tls vault-tls \ --cert "/tmp/vault-tls.crt" \ --key "/tmp/vault-tls.key" \ --namespace "$NAMESPACE_NAME" helm repo add incubator \ http://storage.googleapis.com/kubernetes-charts-incubator helm install incubator/vault \ --name vault \ --values "/tmp/helm-config-values.yml" \ --namespace "$NAMESPACE_NAME" ``` ## Other Manual Steps Required After vault is deployed we need to manually edit the ingress service. See the github issue below descrbing the reason for this change. This will show you the ingress service. ``` kuebctl get ingresses --namespace $NAMESPACE_NAME ``` By default the name of the ingress will be `<ReleaseName>-<ChartName>` which in this case will be `vault-vault`. If you'd like to override it, specify the property `nameOverride` in the helm config. Edit the ingress service and remove `path: /` ``` kubectl edit ingresses vault-vault --namespace $NAMESPACE_NAME ``` **More Info:** - [`nameOverride`](https://github.com/helm/charts/blob/e64ba7aa8b2743715e0177dfc78a3a070e3a2b2d/incubator/vault/templates/_helpers.tpl#L13): If you'd like to override the ingress service name. - [Github Issue](https://github.com/helm/charts/issues/6719): the reason we have to remove `path: /` --- You may now target your vault using the `vault` CLI ```bash export VAULT_ADDR=https://vault.myteam.ci.cf-app.com vault status ``` Understandably this is a bit of a 🐔 and 🥚 problem where we need some secrets to stand up our secret store. We've decided to store these secrets in LastPass. ## Cleanup - Make sure to destroy sensitive information like the service account key and certs from your local machine. ## Next... Let's [configure vault for your team](https://engineering.pivotal.io/post/configure-vault-for-team/)