From c5a1de305a9d7d2f4eb0079ecebc71fc4a2d814c Mon Sep 17 00:00:00 2001 From: Ivan Aracki Date: Sun, 17 Nov 2019 05:18:37 +0100 Subject: [PATCH] safe: add page (#3534) --- pages/common/safe.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pages/common/safe.md diff --git a/pages/common/safe.md b/pages/common/safe.md new file mode 100644 index 0000000000..749b677a38 --- /dev/null +++ b/pages/common/safe.md @@ -0,0 +1,36 @@ +# safe + +> A CLI to interact with HashiCorp Vault. +> More information: . + +- Add a safe target: + +`safe target {{vault_addr}} {{target_name}}` + +- Authenticate the CLI client against the Vault server, using an authentication token: + +`safe auth {{authentication_token}}` + +- Print the environment variables describing the current target: + +`safe env` + +- Display a tree hierarchy of all reachable keys for a given path: + +`safe tree {{path}}` + +- Move a secret from one path to another: + +`safe move {{old/path/to/secret}} {{new/path/to/secret}}` + +- Generate a new 2048-bit SSH keypair and store it: + +`safe ssh {{2048}} {{path/to/secret}}` + +- Set non-sensitive keys for a secret: + +`safe set {{path/to/secret}} {{key}}={{value}}` + +- Set auto-generated password in a secret: + +`safe gen {{path/to/secret}} {{key}}`