Creating multiple key-value using vault.logical().write() - VaultJavaDriver

I want to store multiple Key-Value at a secret path say ‘secret/hello’ like key1-val1, key2-val2.

I have to add this different key-values from different parts of the code, so I am invoking the vault.logical().write() expecting it to add the new key-value to the secret/hello path. But instead it overwrites the previous key-value using new key-value pair.

How can I achieve this using the Vault Java Driver “


Hi Vipin,

You’re welcome to post here because a community member might now. However, please do note that the Vault and HashiCorp team don’t own or support that driver, so you may have better luck asking the maintainers there.