-
Notifications
You must be signed in to change notification settings - Fork 40.2k
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
Placeholder cannot be resolved #20614
Comments
Thanks for the report. This could be a duplicate of #20432 or #20438. To eliminate the former, could you please try with a 2.2.6 snapshot available from https://repo.spring.io/.snapshot |
I tried with 2.2.6.BUILD-SNAPSHOT, same issue. |
Thanks for trying a snapshot. To allow us to investigate further, can you please provide a small sample that reproduces the problem? You can share it with us by zipping it up and attaching it to this issue or by pushing it to a separate repository. |
Just attached a sample app. |
Thanks for the sample. Unfortunately, it leaves more moving parts than I would like to be able to effectively diagnose the problem. Let's try a different approach. Could you please share the value of the |
Not sure if this is helpful, but here it is:
|
Thanks. It helps a little, but still leaves quite a bit of unknown, particularly as you're using a custom buildpack. The key thing that's missing is what is populating the I can reproduce the symptom that you've reported by running the same app with a Can you please double-check that you continue to experience the problem with the latest 2.2.6 snapshot? If you do and you'd like us to spend some more time investigating this problem, we're going to need a more complete sample that describes everything that's necessary to reproduce it. |
Cloud Foundry's container runtime does some magic in the application container to replace any While a Cloud Foundry user running a command like
The best way to see what the application actually gets in its Environment is to enable the Spring Boot Actuators |
I double-checked, it worked indeed with 2.2.6 snapshot. Sorry I didn't get back to you yesterday, I was pretty busy with something else. |
Great. Thanks for letting us know. |
I'm deploying a spring boot application in PCF, using the CredHub service for storing credentials. However, when I'm using version 2.2.5.RELEASE of spring boot, the placeholders from CredHub can't be resolved when words are separated with a . (or dash) in the placeholder. For example
vcap.services.credhub-instance-name.credentials.ssl.trust-password // not working
vcap.services.credhub-instance-name.credentials.someplaceholder // working
I tried using version 2.2.4.RELEASE, that one works fine for both placeholders.
The text was updated successfully, but these errors were encountered: