-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
server/auth: fix auth panic bug when user changes password #15432
Conversation
Please also add unit tests cc @mitake |
done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for finding and fixing the issue @tangcong! I commented for 2 minor points, could you take a look? The overall change LGTM. |
Signed-off-by: tangcong <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This shows lack of etcd upgrade testing.
LGTM, I'm merging. Thanks a lot @tangcong ! |
@mitake The PR #9817 is included in release-3.4, but see Lines 518 to 569 in 4b91b6d
|
Just as we discussed in slack, 3.4 doesn't have this issue because it doesn't check |
What happened?
When the etcd cluster is migrated from the old version before 3.5 to the version 3.5+, if user changes the password will trigger a panic bug.
Reason
Old etcd version user's option is nil. I checked the code and found that user.Options.NoPassword is always false. It seems that there is no need to check here, and it is not allowed to set an empty password.