Skip to content

dmitriykiz/vaultdiff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vaultdiff

A CLI tool to compare two HashiCorp Vault secret paths and output structured diffs.


Installation

go install github.com/yourusername/vaultdiff@latest

Or build from source:

git clone https://github.com/yourusername/vaultdiff.git
cd vaultdiff
go build -o vaultdiff .

Usage

Ensure your Vault environment variables are set (VAULT_ADDR, VAULT_TOKEN), then run:

vaultdiff <path-a> <path-b>

Example:

vaultdiff secret/data/app/staging secret/data/app/production

Sample output:

~ db_password   : "hunter2" → "c0rrectH0rse"
+ new_feature   : "enabled"
- deprecated_key: "old_value"
Symbol Meaning
~ Value changed
+ Key added in path-b
- Key removed in path-b

Flags

Flag Description Default
--format Output format: text, json text
--no-color Disable colored output false
--version Print version and exit

Requirements

  • Go 1.21+
  • HashiCorp Vault with a valid token and network access

License

MIT © 2024 Your Name

About

CLI tool to compare two HashiCorp Vault secret paths and output structured diffs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages