1
0
mirror of https://github.com/Luzifer/vault-patch.git synced 2024-09-07 20:49:11 +00:00
Very small utility to "patch" a Vault key
Go to file
2024-04-10 20:51:57 +02:00
.github/workflows Replace CI env 2024-04-10 20:25:42 +02:00
ci Replace CI env 2024-04-10 20:25:42 +02:00
.gitignore Initial version 2017-06-19 13:51:20 +02:00
.golangci.yml Replace CI env 2024-04-10 20:25:42 +02:00
CONTRIBUTING.md Add meta files 2017-06-19 14:00:16 +02:00
go.mod Update dependencies 2024-04-10 18:32:05 +02:00
go.sum Update dependencies 2024-04-10 18:32:05 +02:00
History.md prepare release v0.3.0 2024-04-10 20:51:57 +02:00
LICENSE Replace placeholder 2024-04-10 18:31:51 +02:00
main.go Modernize code 2024-04-10 18:46:24 +02:00
Makefile Replace CI env 2024-04-10 20:25:42 +02:00
README.md Add modules support 2022-07-02 18:31:11 +02:00

Luzifer / vault-patch

vault-patch is a very small utility to "patch" a Vault key. In case you don't want to replace the whole data stored in that key but only want to modify one (or more) specific data pair(s) this can come handy:

# vault read secret/test
Key                     Value
---                     -----
refresh_interval        768h0m0s
field1                  test1
field2                  test2


# vault-patch secret/test field2=test4 field3=test3
INFO[0000] Data successfully written to key "secret/test"

# vault read secret/test
Key                     Value
---                     -----
refresh_interval        768h0m0s
field1                  test1
field2                  test4
field3                  test3

As you can see only the data given in the command was touched and the field1 was kept as it was before.