Refine error handling in MountInfo lookup.

We now do not cache failures caused by VaultException but rather return an unavailable MountInfo.
Also, VaultKeyValueAdapter now throws an exception if the mount info isn't available.

Closes gh-889
This commit is contained in:
Mark Paluch
2025-04-25 11:47:02 +02:00
parent f1193f4415
commit 7d19a76244
4 changed files with 86 additions and 0 deletions

View File

@@ -9,6 +9,8 @@ As of version 2.4, Spring Vault can use additionally key/value version 2 secrets
NOTE: Deletes within versioned key/value secrets engine use the `DELETE` operation. Secrets are not destroyed through `CrudRepository.delete(…)`.
NOTE: Vault Repositories determine the mount path through Vault's `sys/internal/ui/mounts/…` endpoint. Make sure that your policy allows accessing that path, otherwise you won't be able to use the repository abstraction.
NOTE: Read more about Spring Data Repositories in the https://docs.spring.io/spring-data/commons/docs/current/reference/html/#repositories[Spring Data Commons reference documentation].
The reference documentation will give you an introduction to Spring Data repositories.