Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

37
vault Normal file
View File

@@ -0,0 +1,37 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# vault
> Interact with HashiCorp Vault.
> More information: <https://www.vaultproject.io/docs/commands>.
- Connect to a Vault server and initialize a new encrypted data store:
`vault init`
- Unseal (unlock) the vault, by providing one of the key shares needed to access the encrypted data store:
`vault unseal {{key-share-x}}`
- Authenticate the CLI client against the Vault server, using an authentication token:
`vault auth {{authentication_token}}`
- Store a new secret in the vault, using the generic back-end called "secret":
`vault write secret/{{hello}} value={{world}}`
- Read a value from the vault, using the generic back-end called "secret":
`vault read secret/{{hello}}`
- Read a specific field from the value:
`vault read -field={{field_name}} secret/{{hello}}`
- Seal (lock) the Vault server, by removing the encryption key of the data store from memory:
`vault seal`