Spring / Spring CredHub Interview questions
How does Spring Cloud Config Server use CredHub as a backend?
Spring Cloud Config Server can use CredHub as an environment repository backend instead of, or alongside, Git: configuration values are stored as CredHub credentials and served back to client apps through the normal Config Server API.
Configuring it means activating the credhub profile and pointing the server at CredHub's URL:
spring: profiles: active: credhub cloud: config: server: credhub: url: https://credhub:8844
Values are then set with the CredHub CLI under a path convention the Config Server understands, for example credhub set --name "/demo-app/default/master/toggles" --type=json --value='{"toggle.button":"blue"}'. This is particularly useful for secrets that shouldn't sit in a Git-backed config repo, while still letting client apps fetch them through the same Config Server client they already use for everything else.
More Related questions...