Quentin-M / etcd-cloud-operator

Deploying and managing production-grade etcd clusters on cloud providers: failure recovery, disaster recovery, backups and resizing.
Apache License 2.0
234 stars 42 forks source link

pkg/*: Add support for jwt auth token in the ECO. #63

Closed yifan-gu closed 3 years ago

yifan-gu commented 3 years ago

According to https://github.com/etcd-io/etcd/issues/9629#issuecomment-384641934 The simple auth token will be invalid if the membership changes, which is probably the reason we saw errors like

 etcdserver: failed to revoke 463a791ababbfc2d ("auth: invalid auth token")

which prevents the lease entry from being moved in the etcd store.

This PR adds the support to enable the jwt auth token feature.