Spring / Spring CredHub Interview questions
How do you configure the CredHub server URL?
Set the spring.credhub.url property, either in application.yml or as an environment variable, pointing at the CredHub server's address:
spring: credhub: url: https://credhub.service.cf.internal:8844
On Cloud Foundry, apps typically use the platform-internal address shown above rather than a public URL, since CredHub is reached over the internal network using mutual TLS.
That single property is enough for auto-configuration to build a working CredHubOperations bean using mutual TLS; OAuth2 properties are only needed when an app isn't authenticating via mTLS.
More Related questions...