spring-projects / spring-projects/spring-boot
Support for gRPC server TLS certificate rotation
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 81.5k
- Forks
- 42.7k
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 65
Description
Feature Request: Support for Hot TLS Certificate Rotation
Description
Is there currently support for hot TLS certificate rotation in Spring gRPC? Hot TLS certificate rotation refers to the ability to update/replace TLS certificates without restarting the gRPC server.
Use Case
In production environments, TLS certificates need to be rotated periodically for security reasons or when they expire. Restarting servers to apply new certificates causes service disruption. Hot certificate rotation would allow for certificate updates while maintaining service availability.
Current Understanding
Based on reviewing the codebase and documentation:
- Spring gRPC supports TLS configuration through Spring Boot's SSL bundle configuration
- Custom TrustManager implementations are possible (as documented in detail)
- However, there doesn't appear to be a mechanism to reload/rotate certificates at runtime
Potential Implementation Approaches
If this feature doesn't exist yet, potential approaches might include:
- A certificate watcher that monitors certificate files for changes
- An API to programmatically update certificates at runtime
- Integration with Spring Boot's SSL bundle refresh mechanisms (if available)
Question
- Is hot TLS certificate rotation currently supported?
- If not, are there plans to add this feature in the future?
- Are there any workarounds or recommended approaches for certificate rotation without service disruption?
Thank you for your consideration.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Spring Boot SSL bundle configuration and the documented custom TrustManager support mentioned in the issue, checking whether either exposes runtime certificate replacement. Done would require an agreed approach for rotating server TLS certificates without restarting and clear guidance or tests for the supported behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- grpc, java, spring-boot
- Domain
- backend-api-design, security
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100