Skip to content

Commit

Permalink
etcdserver: don't let InternalAuthenticateRequest have password (#11818)
Browse files Browse the repository at this point in the history
  • Loading branch information
mitake authored May 6, 2020
1 parent 035e1db commit feb5629
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion etcdserver/v3_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -441,9 +441,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,
}

Expand Down

0 comments on commit feb5629

Please sign in to comment.