SteeltoeOSS / Security

ASP.NET Security Providers for CloudFoundry
Apache License 2.0
27 stars 9 forks source link

UseCredHubInterpolation method probably don't work at all #6

Closed szogun1987 closed 6 years ago

szogun1987 commented 6 years ago

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:

cf-gitbot commented 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.

TimHess commented 6 years ago

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!