The man who was in charge of the Government Communications Security Bureau when Kim Dotcom was placed under surveillance has resigned from the spy agency.
Hugh Wolfensohn was deputy director of the GCSB, and was acting director when the internet entrepreneur was illegally monitored.
Radio New Zealand's political staff say it's understood Mr Wolfensohn has been on leave since late last year.
The bureau has confirmed he has resigned and a spokesperson said they had no further comment.
Meanwhile, an investigation that began in October last year into the GCSB's performance will be completed soon.
The review is being carried out by senior public servant Rebecca Kitteridge who was seconded to the GCSB for a period of six months.