Skip to content

Does etcd support automatic/dynamic server certificate reload? #15444

Closed Answered by ahrtr
rahulbapumore asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, etcd supports dynamically reloading certificates. Each time when etcdserver receives a new connection, it reloads the certificate automatically via the GetCertificate, but it will not affect the ongoing client connections/requests.

For example,

  1. Assuming client1 connects to the etcdserver, and keep reading or writing data;
  2. You manually changed the etcdserver's certificate (--cert-file) or key (--key-file);
  3. Run the client program in another terminal, you will see error message something like below on server side, the client side gets context deadline exceeded error.
{"level":"warn","ts":"2023-03-11T06:37:38.996398+0800","caller":"embed/config_logging.go:187","msg":"rejected connectio…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ahrtr
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants