Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic certificate reloading for Terminating Gateways #8198

Open
freddygv opened this issue Jun 27, 2020 · 0 comments
Open

Dynamic certificate reloading for Terminating Gateways #8198

freddygv opened this issue Jun 27, 2020 · 0 comments
Labels
theme/certificates Related to creating, distributing, and rotating certificates in Consul theme/connect Anything related to Consul Connect, Service Mesh, Side Car Proxies theme/terminating-gw Track terminating gateway work

Comments

@freddygv
Copy link
Contributor

freddygv commented Jun 27, 2020

Feature Description

Terminating Gateways can be configured with certificates for TLS origination to destination services.

These certificates are currently loaded from disk, and the path they are loaded from is not watched for changes. This means that is the certificates for any service are rotated, then Envoy needs to be restarted to pick them back up.

To avoid downtime, after a key/cert rotation users need to do a rolling restart or an Envoy hot-restart. Ideally neither of these would be required.

This could be achieved by specifying these key/cert files via the Envoy SDS API (Relevant Envoy PR). Envoy will subscribe to filesystem changed to resources watched by SDS, and update dynamically.

Note: it seems the watch will only trigger if there is an atomic symlink swap, not if individual files are updated. That would need to be documented.

@freddygv freddygv added the theme/terminating-gw Track terminating gateway work label Jun 27, 2020
@jsosulska jsosulska added the theme/connect Anything related to Consul Connect, Service Mesh, Side Car Proxies label Jul 2, 2020
@jsosulska jsosulska added the theme/certificates Related to creating, distributing, and rotating certificates in Consul label Sep 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme/certificates Related to creating, distributing, and rotating certificates in Consul theme/connect Anything related to Consul Connect, Service Mesh, Side Car Proxies theme/terminating-gw Track terminating gateway work
Projects
None yet
Development

No branches or pull requests

2 participants