Skip to content

bismayam/vault-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors