Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Server automatically reloads TLS cert files on change #2346

Merged
merged 4 commits into from
Sep 27, 2021

Conversation

mitchellh
Copy link
Contributor

This makes it so that the Waypoint server will automatically rotate the TLS certificate when it detects a file change on disk. This happens with no disruption to any network connections.

This is particularly useful in a Kubernetes environment where the TLS certs may be coming from a mounted secret. When the secret changes, Kubernetes will update the files. In this scenario, the Waypoint server will begin using the new TLS certificate as soon as it can.

I brought in an internal/pkg/cert package that I've been copying around for years in various projects. 😛

@mitchellh mitchellh added this to the 0.6.0 milestone Sep 23, 2021
@mitchellh mitchellh requested a review from a team September 23, 2021 19:52
Copy link
Contributor

@krantzinator krantzinator left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copy/paste seems fine 😄

@mitchellh mitchellh merged commit d7d34fb into main Sep 27, 2021
@mitchellh mitchellh deleted the feature/reloadable-tls branch September 27, 2021 19:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants