I want to store some secrets/credentials during runtime in my application, similar to the following command.
vault kv put -path=secret/application key1=val1
I have reviewed the HashiCorp SDK, but it only provides a write command that overrides previous keys/values in my secrets. I want to update key-value instead of override, how can I do that programmatically.
After digging through the code, I figured out. So what I have to do is to call the method ::opsForKeyValue, it returns the operations for managing key-value including patch command. So with patch command I'm be able to update key-vaule without overriding the previous one.
** Note that it only supports KV version 2.