The project aims to show a quick sample of a Spring Application using data from different Vault Paths and making use of Vault APP Role authentication method.
docker-compose up -d vault
docker exec -it vault /usr/local/bin/vault-init.sh
The Role ID and Secret ID are displayed at the end of the script output and should be added in application-dev.properties
and application-prod.properties
./gradlew bootRun --args='--spring.profiles.active=dev'
./gradlew bootRun --args='--spring.profiles.active=prod'
The Vault can be accessed locally at http://localhost:8200
with the token 00000000-0000-0000-0000-000000000000