Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple spring application name for Vault #1356

Closed
Viimmo opened this issue Apr 18, 2019 · 0 comments · Fixed by #1379 · May be fixed by keepsilence233/springcloud#2 or keepsilence233/springcloud#3
Closed

Multiple spring application name for Vault #1356

Viimmo opened this issue Apr 18, 2019 · 0 comments · Fixed by #1379 · May be fixed by keepsilence233/springcloud#2 or keepsilence233/springcloud#3
Labels
Milestone

Comments

@Viimmo
Copy link

Viimmo commented Apr 18, 2019

My spring cloud config client has multiple spring.application.name to get differents property files with GIT but Vault is not working like GIT.

application.properties of my server :

spring.config.name=configserver
server.port=8188

spring.profiles.active=git,vault
 
spring.cloud.config.server.git.uri=https://.../config.git
spring.cloud.config.server.git.username=config
spring.cloud.config.server.git.password=*************
spring.cloud.config.server.git.clone-on-start=true
 
management.endpoints.web.exposure.include=*

spring.cloud.config.server.vault.port=8200
spring.cloud.config.server.vault.host=120.0.0.1
spring.cloud.config.server.vault.profileSeparator=/

bootstrap.properties of my client :

spring.application.name=application1,application2
spring.profiles.active=next
spring.cloud.config.uri=http://localhost:8188

spring.cloud.config.token=********

With this configuration, I am able to load with GIT my 2 property files application1-next.yml and application2-next.yml.

Sadly Vault is not working like I was expected : load values from the 2 paths

application1/next/
application2/next

It is looking for keys in the single path

application1,application2/next

Does anyone have a solution about this ? or maybe I miss something...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment