I am using hashicorp's vault and trying to add secrets in that using java. I am able to add secrets in the vault but it always replaces the older secrets.
public static void main(String[] args) throws VaultException {
final Vault vault = new Vault(new VaultConfig()
.address("https://vault")
.token("s.")
.build());
final Map<String, Object> secrets = new HashMap<>();
secrets.put("kk1", "value1234");
secrets.put("kk", "value");
LogicalResponse write = vault.logical().write("v1/kartike", secrets);
}
I just wanted to confirm if it is a bug at hashicorp api or there is something I am missing. I am stuck at it.