Vault Lab
This is playground for spring-booter to test integrating with Vault the Hashi-Corp product. Secret-Engines that are available now:
- Transit : Encrypt and Decrypt
Prerequisites
- Install Vault and Run Vault
brew tap hashicorp/tap
brew install hashicorp/tap/vault
vault server -dev
- Enable Vault's Transit Secret Engine (Open New Terminal)
vault secrets enable transit
You can access local vault ui via Vault UI. You'll notice in vault server dev running log on yellow highlighted text. Take the value of Root Token. You need to use value for authentication. Please set the root token value in application.yml.
Running Vault Lab
- Go to Vault Lab App Folder
cd VaultLab
./gradlew bootRun
Reference Documentation
For further reference, please consider the following sections:
- Official Gradle documentation
- Spring Boot Gradle Plugin Reference Guide
- Create an OCI image
- Vault Client Quick Start
Additional Links
These additional references should also help you: