Skip to content

Commit

Permalink
etcdserver: don't let InternalAuthenticateRequest have password
Browse files Browse the repository at this point in the history
  • Loading branch information
mitake authored and spzala committed Jun 23, 2020
1 parent c511894 commit 5858140
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 @@ -378,9 +378,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 5858140

Please sign in to comment.