What problem does it solve?
Spring applications often require secrets to be stored and retrieved securely. This skill enables integrating with CredHub to perform credential reads, writes, and interpolations, including generated passwords and certificates, while supporting mutual-TLS or OAuth2 authentication.
Core Features & Use Cases
- Read and write credentials from CredHub using typed credential classes (e.g., PasswordCredential, JsonCredential).
- Generate credentials (passwords, certificates) on demand and wire them into application configuration.
- Support interpolation of credentials into configuration values and runtime behavior.
- Use with mutual TLS or OAuth2 authentication to secure CredHub access in Spring Boot apps.
- Use case: A Spring service retrieves a database password from CredHub and uses it to configure a DataSource at startup.
Quick Start
Configure your Spring app to use CredHub, add the spring-credhub starter, and read credentials via a focused service.