Fix etcdv3 auth#69202
Conversation
|
Thanks for tackling this @Dkhil - the missing One concern with the current change: I reproduced that against etcd v3.5 with auth disabled (the default). As written, this makes Could the call be guarded so it only authenticates when credentials are present? e.g. self.client = etcd3.Client(host=self.host, port=self.port, **self.xargs)
if self.xargs.get("username") and self.xargs.get("password"):
self.client.auth()That keeps your fix for the credentialed path while leaving the no-auth path working. (Heads-up that this constructor is also the connection path for an |
|
@ggiesen thanks for catching that, calling |
|
Guard is exactly the shape I had in mind, thanks for the quick turnaround. One thing on the new |
What does this PR do?
fix authification for etcd module when using user/password based auth
Revolution1/etcd3-py#41
What issues does this PR fix or reference?
Fixes
auth when using user/passsword based authentification with etcdv3