etcdserver: don't let InternalAuthenticateRequest have password

This commit is contained in:
Hitoshi Mitake 2020-04-26 23:23:02 +09:00 committed by Sahdev P. Zala
parent 91b1a9182a
commit 963b242846

View File

@ -428,9 +428,10 @@ func (s *EtcdServer) Authenticate(ctx context.Context, r *pb.AuthenticateRequest
return nil, err
}
// internalReq doesn't need to have Password because the above s.AuthStore().CheckPassword() already did it.
// In addition, it will let a WAL entry not record password as a plain text.
internalReq := &pb.InternalAuthenticateRequest{
Name: r.Name,
Password: r.Password,
SimpleToken: st,
}