Vault Simplified

These were the software dependencies that I used to make this guide up.
Software | Version |
---|---|
RaspbianOS | 10 (buster) |
Hashicorp Vault | 1.10.3 |
Hashicorp Vault CLI | 1.15.2 |
...this isn't a step by step kind of post, more, useful commands that might make life easier getting to know Vault.
Install Vault Client (Mac)
Install Vault Client (Win 10 or above)
Make sure you’ve got the right environment variables setup on your client machine, vault client uses these to connect and authenticate to the vault server. Each OS has its own way of setting these. First time you connect using the Client, use the root token and create yourself a less-able user:
As root, you might want to create a token (will time out after 32 days, unless renewed)…
Details of my token
List out keys in a store...
Put a new secret in a tokens personal store
Get a secret (including its metadata) from a store
Get the actual value from a specified path
Renew a token
To access a centrally created engine and the secrets underneath, need to define this as a new policy…
1#allows enumeration of all secret engines
2path "sys/mounts" {
3 capabilities = ["read"]
4}
5
6#allows the any assigned token/client access into my central store of secrets
7path "mycentralstore/*" {
8 capabilities = ["read", "list"]
9}
…then create a token referencing that policy