BetterCloud / vault-java-driver

Zero-dependency Java client for HashiCorp's Vault
https://bettercloud.github.io/vault-java-driver/
335 stars 224 forks source link

Are there plans to support CAS write operations for kv-v2? #212

Open jjmonzon opened 4 years ago

jjmonzon commented 4 years ago

So right now there seems to be a race that could occur if 2 clients write to the same path which can potentially cause data (secret) loss. Looks like the API provides a way to perform an atomic put via the cas option (https://www.vaultproject.io/api/secret/kv/kv-v2.html#inlinecode-cas). Are plans to support this option in the near future?

trailrunner-taulia commented 4 years ago

I submitted a change PR that exposes the CAS on write functionality https://github.com/BetterCloud/vault-java-driver/pull/230