Spring / Spring CredHub Interview questions
Describe CredHubInterpolationOperations?
CredHubInterpolationOperations, returned by credHubOperations.interpolation(), has a single job: taking the VCAP_SERVICES-style data structure Cloud Foundry gives a bound app and replacing any CredHub credential references inside it with the actual values.
When a service broker binds an app to a CredHub-backed service, the binding it returns often contains a reference — a credential name — rather than the secret itself. Calling interpolateServiceData(servicesData) resolves every one of those references in place.
This means an app can read its bound-service credentials the normal Spring Cloud Connectors way, without ever calling CredHub's credential API directly for each one.
More Related questions...