Search code examples
spring-cloud-confighashicorp-vaultspring-cloud-vault-configspring-vault

Using Hashicorp Vault and Spring Cloud in different environments


We are using vault to get rid of all secrets from our codebase and config servers. Vault aws auth with its secure introduction seems like the perfect fit for this. However our dev environment is not on aws and vault cannot work with config server to fetch different configurations per environment.

Do you guys see a way out where I could still use the aws auth for staging and prod and a different auth for dev?

Thanks, Chris.


Solution

  • Authentication methods can be configured via bootstrap.properties so ideally have multiple profiles, one of them to use AWS authentication and the other one for dev.