Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 630 Bytes

File metadata and controls

21 lines (13 loc) · 630 Bytes
This application will fetch vault key-vaule from Hashicorp Vault.

Setup :
Run local HashiCorp Vault -  `docker compose up` command.

export VAULT_TOKEN="mb04281999"
export VAULT_ADDR="http://127.0.0.1:8200"

Now add key-value pairs in Vault.
vault kv put secret/gs-vault-config config.username=bismaya config.password=bismayam123
vault kv put secret/gs-vault-config/cloud config.username=bismayam config.password=bismayam123


Now we can see entries in Vault `secret/vault-config` and `secret/vault-config/cloud`.

Run the Application and check user/pass fetched from Vault

 cd vault-config/module1
 mvn spring-boot:run