vault-diff

module
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2023 License: MIT

README

vault-diff

A simple CLI utility to observe changes in non-sealed Vault secrets, like KV.

Release GitHub license GitHub Workflow Status Go Doc Go Report Card

Installation

Run

go install github.com/mih-kopylov/vault-diff/app/vd@latest

Or just download a binary from the latest release

UI Mode Usage

The following command will start UI mode that allows selecting desired vault secrets and show their difference.

vd ui --url http://localhost:8200 --token hvs.replace-token

Once run press h button to show help

https://user-images.githubusercontent.com/6898003/211198459-2cda383a-bcb0-44d4-9790-a02a229c2c1c.mp4

Diff Mode Usage

The following command will show difference between 15 and 16 versions of /my/secret KV secret.

vd diff --url http://localhost:8200 --token hvs.replace-token --left /my/secret:15 --right /my/secret:16 

It can also compare different secrets of any versions.

vd diff --url http://localhost:8200 --token hvs.replace-token --left /my/secret:15 --right /my/another/secret:33 

Example

Directories

Path Synopsis
app
vd
internal
ui

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL