Sitemap

Member-only story

Spring Boot 3 — Manage Secrets using HashiCorp Vault and PostgreSQL as Backend: Part 2

5 min readApr 29, 2025

In the previous story, we had configured a Hashicorp Vault server.
In this story, we’ll explain how to manage vault secrets with a Spring Boot application.

· Prerequisites
· Create the KV Secrets Engine
What is the KV secrets engine?
Creating a Secret using the Vault Web UI
· Let’s code
Spring Cloud Vault
Spring Boot App
Configure application.yml
Accessing Secrets in Spring Boot
· Test the REST APIs
· Conclusion
· References

Prerequisites

This is the list of all the prerequisites for Part 2:

  • Spring Boot 3+
  • Maven 3.6.3
  • Java 21
  • Postman / insomnia or any other API testing tool.
  • All steps in Part 1 must be completed

Create the KV Secrets Engine

After following all the vault installation and configuration steps described in Part…

--

--

No responses yet