You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use of Config server/Credhub with a client with the propertie spring.cloud.config.name with multi names #1873
Describe the bug
In the client app i have the configuration: spring.cloud.config.name=nomapp,application,nom2
The problem is that the config server want to load the file (see in actuator/env of the app): {"name":"bootstrapProperties-credhub-nomapp,application,nom2-cloud-master","properties":{}}
But it's not possible to add in Credhub a secret with a path separated with commas.
If i try with "spring.cloud.config.name=nomapp" it worked.
Is it possible to do that? Or is it a futur feature?
I guess in CredhubEnvironmentRepository : environment.add(new PropertySource("credhub-" + application + "-" + profile + "-" + label,findProperties(application, profile, label)));
You use application string. But if it contains comma you will have my problem. Maybe you should replace comma by underscore ? Or iterated over application names.
Activity
JulianAffaire commentedon May 5, 2021
I guess in CredhubEnvironmentRepository :
environment.add(new PropertySource("credhub-" + application + "-" + profile + "-" + label,findProperties(application, profile, label)));You use application string. But if it contains comma you will have my problem. Maybe you should replace comma by underscore ? Or iterated over application names.
spencergibb commentedon Jun 3, 2021
PRs welcome