Skip to content

MathisBellamy/vault-move-kv-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is it?

This tool allows to do the following actions on a Vault/OpenBao instance :

  • Move a kv or a folder
  • Destroy a kv or a folder
  • Backup a kv or a folder in a json file
  • Restore a json file in a mount point

Prerequisites

This tool requires the following env variables:

export VAULT_ADDR=<changeme>
export VAULT_TOKEN=<changeme>

How does this function?

Get the executable or compile it, the signature of the executable is as follows:

Vault/OpenBao CLI to move, destroy, backup and restore

Usage: 
Move    > vault-move-kv-rs move [--destroy] --mount <MOUNT> <SOURCE_PATH> <DEST_PATH>
Destroy > vault-move-kv-rs destroy --mount <MOUNT> <SOURCE_PATH>
Backup  > vault-move-kv-rs backup --mount <MOUNT> --file <FILE> <SOURCE_PATH>
Restore > vault-move-kv-rs restore --mount <MOUNT> --file <FILE>

About

Vault CLI to move, destroy, backup & restore

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages