Install hashicorp vault on mac
2 min readJul 12, 2023
Its very easy to install the vault on your local machine. There is different way of installing the vault.
I am going to provide details here how you can install using the brew.
Run following commands to install the vault-
brew tap hashicorp/tap
brew install hashicorp/tap/vault
To run the server :
vault server --dev --dev-root-token-id="00000000-0000-0000-0000-000000000000"
IF everything goes well you will see the output like
You may need to set the following environment variables:
$ export VAULT_ADDR='http://127.0.0.1:8200'
The unseal key and root token are displayed below in case you want to
seal/unseal the Vault or re-authenticate.
Unseal Key: KR53wRfm1RqB6xdXbIm/mCGlPdyARzSAHZwV7cLBs/8=
Root Token: 00000000-0000-0000-0000-000000000000
After that you can access the vault UI using the -
http://127.0.0.1:8200
To create the entry for your secret set those env variable
export export VAULT_TOKEN="00000000-0000-0000-0000-000000000000"
export VAULT_ADDR="http://127.0.0.1:8200"
Now you can create a secret using-
vault kv put secret/gs-vault-config example.username=demouser example.password=demopassword
You can validate the same in the console too-