etcd icon indicating copy to clipboard operation
etcd copied to clipboard

I forgot the admin password in production environment, what should I do???

Open ckeyer opened this issue 7 years ago • 8 comments

v3

ckeyer avatar Mar 11 '18 10:03 ckeyer

We encrypt auth passwords with bcrypt, and do not support password recovery. I would restore from recent snapshot to create a new cluster. /cc @mitake

gyuho avatar Mar 13 '18 11:03 gyuho

@gyuho probably adding a salvation tool like etcd-dump-db to etcdctl would be helpful?

mitake avatar Mar 15 '18 05:03 mitake

@mitake How would it work? Is it to reset root password?

gyuho avatar Mar 15 '18 20:03 gyuho

@gyuho probably draining all the data from existing files of snapshot and wal and put them to a new cluster as an ordinary etcd cluster would be straightforward. Modifying the data (in this case, bcrypted password) in the files is a little bit risky because the tool can bypass the consensus process of Raft.

mitake avatar Mar 16 '18 07:03 mitake

@joelegasse Hi Joe, just a friendly reminder, just wondering is there any progress on this one, or is there a plan? Thanks!

wenjiaswe avatar Oct 11 '18 18:10 wenjiaswe

I'm not sure why I got assigned this. I can take a look and see what it would take as far as a recovery plan, though.

joelegasse avatar Oct 11 '18 18:10 joelegasse

It seems like there should be a way for a local administrator to overwrite the relevant password(s) on each of the member nodes (writing into the nodes' local db) without needing to know the original password. That is, of course, assuming that the password is not being used to encrypt at-rest data.

devinrsmith avatar Feb 24 '20 20:02 devinrsmith

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 21 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 21 '22 02:09 stale[bot]

I got the same problem. Fortunately, It's test environment. If there is a safe_mode=on to start only listen on 127.0.0.1 without auth will be kindly.

bugfyi avatar Dec 13 '22 08:12 bugfyi