Closed szogun1987 closed 6 years ago
We have created an issue in Pivotal Tracker to manage this:
https://www.pivotaltracker.com/story/show/159610087
The labels on this github issue will be updated when the story is started.
Hi @szogun1987,
Thanks for spotting that - you're right, it was not done correctly. I think we will be OK updating the VCAP_SERVICES environment variable directly since the CloudFoundryConfigProvider has a direct link to it and will take the updated values later.
For what it's worth, this code was written before it was known that "Assisted Mode" credential interpolation would be supported by the platform, making this approach less likely to be useful. As such, we would be interested to hear of any real-world usage of this functionality!
I have statically analyzed this method, but currently don't have access to environment where I can verify my thesis. There are 2 reasons for this method to don't work:
Even if current implementation was working it would have additional unexpected behavior: It would override other configuration transformations.
I have couple ideas to fix it: