1
0
Fork 0
mirror of https://github.com/Luzifer/vault-patch.git synced 2024-12-20 12:51:19 +00:00
Very small utility to "patch" a Vault key
Find a file
Knut Ahlers 95400370d5
Remove old vendoring
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2022-07-02 18:30:53 +02:00
.gitignore Initial version 2017-06-19 13:51:20 +02:00
.repo-runner.yaml Add building blocks 2017-06-19 13:54:45 +02:00
CONTRIBUTING.md Add meta files 2017-06-19 14:00:16 +02:00
History.md prepare release v0.1.0 2017-06-19 14:01:56 +02:00
LICENSE Add meta files 2017-06-19 14:00:16 +02:00
main.go Initial version 2017-06-19 13:51:20 +02:00
Makefile Add building blocks 2017-06-19 13:54:45 +02:00
README.md Add meta files 2017-06-19 14:00:16 +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.


project status