1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/vault.md

28 lines
526 B
Markdown
Raw Normal View History

2017-09-07 10:42:31 +02:00
# vault
2017-09-07 18:50:18 +02:00
> A CLI to interact with HashiCorp Vault.
2017-09-07 10:42:31 +02:00
- Create a new vault, requiring at least 2 out of 5 keyshares to unseal:
`vault init -key-shares={{5}} -key-threshold={{2}}`
2017-09-07 18:50:18 +02:00
- Unseal the vault:
2017-09-07 10:42:31 +02:00
`vault unseal {{key-share-x}}`
- Authenticate client against vault, using an authentication token:
`vault auth {{authentication-token}}`
- Store a new secret in the vault:
`vault write {{secret/hello}} value={{world}}`
- Read a secret from the vault:
`vault read {{secret/hello}}`
2017-09-07 18:50:18 +02:00
- Seal the vault again:
2017-09-07 10:42:31 +02:00
`vault seal`