in the uk, communications service providers must retain data under a European Union data retention directive and, under the UK regulation of investigatory powers act (RIPA), to ensure such data can be disclosed in a timely manner to UK law enforcement agencies, the security services and a number of prescribed public authorities. Certain agencies can also seek a warrant from the secretary of state to intercept communications.