For the latest stable version, please use Spring Vault 4.1.0!

Introduction

This section explains introductory topics such as how to get started and the new and noteworthy changes for each release.

The Vault support contains a wide range of features which are summarized below.

  • Spring configuration support using Java-based @Configuration classes

  • Fluent VaultClient for path-oriented Vault requests serving as the foundation for the Template API.

  • VaultTemplate helper class that increases productivity performing common Vault operations and its reactive variant. Includes integrated object mapping between Vault responses and POJOs.

  • @VaultPropertySource support to mount Vault secrets engines as property sources.

  • Vault repositories to interact with Vault as data source using Spring Data repositories.

For most tasks, you will find yourself using VaultTemplate that leverages the rich communication functionality. VaultTemplate is the place to look for accessing functionality such as reading data from Vault or issuing administrative commands. VaultTemplate also provides callback methods so that it is easy for you to get a hold of the low-level API artifacts to communicate directly with Vault. VaultTemplate is built on top of RestTemplate as low-level HTTP interface.