Introduction

  • 基于 Java 的配置类进行 Spring 配置支持

  • VaultTemplate 辅助类,可提高执行常见 Vault 操作的效率

  • Vault 响应和 POJO 之间的集成对象映射

  • @VaultPropertySource 支持,以将 Vault 密钥后端作为属性源挂载

  • Vault 存储库,使用 Spring 数据存储库与 Vault 交互,将其作为数据源

本节解释入门主题,例如如何入门以及每次发布的新增和值得注意的更改。

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

Vault 支持包含以下内容的各种功能。

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

  • Spring configuration support using Java based @Configuration classes

  • 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 secret backends as property sources.

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

对于大多数任务,你会发现自己使用 VaultTemplate,它利用丰富的通信功能。VaultTemplate 是用于寻找访问功能(例如从 Vault 中读取数据或发布管理命令)的地方。VaultTemplate 还提供回调方法,这样你就可以轻松掌握低级 API 制品(例如 RestTemplate),以便直接与 Vault 通信。

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 such as RestTemplate to communicate directly with Vault.