Skip to content

CLI tool to synchronize data from Vault Hashicorp

License

Notifications You must be signed in to change notification settings

rca0/vault-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Simple and straight-forward tool to synchronize data from vault.

Authentication

Currently, there are 2 auth methods supported

Github auth method

Your vault cluster must be configured to accept this option, read more about it here

How to use

Firstly you must build the tool, using Makefile just execute:

make build

Using homebrew to download binary

brew install rca0/tap/vault-sync

Secret paths

Currently, this CLI tool support these vault secret paths

  • kv-v2/
  • secrets/

image

Params

NAME:
   vault-sync - copy vault data

USAGE:
    [global options] command [command options] [arguments...]

COMMANDS:
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --srcaddr value   Source Vault Address
   --srctoken value  Source Vault Token
   --dstaddr value   Destination Vault Address
   --dsttoken value  Destination Vault Token
   --method value    Define auth method (github/token) (default: "github")
   --help, -h        show help

Running

vault-sync --srcaddr https://vault.domain --dstaddr https://vault-2.domain

About

CLI tool to synchronize data from Vault Hashicorp

Resources

License

Stars

Watchers

Forks

Packages

No packages published