Media coverage of alleged historic misconduct by undercover police officers has led to the creation of a public inquiry into undercover policing. The inquiry has highlighted the tension between accountability and secrecy when mistakes have been made.