Law & Policy

Data Retention Laws: How Long You Stay in the Logs

May 22, 2026 9 min read Haven Team

Surveillance debates usually focus on whether someone can read your messages. The quieter, more consequential question is how long the record of who you contacted, when, and from where is required by law to keep existing. Encryption protects content. It does nothing about a log that a statute orders a company to retain.


A wiretap is a deliberate, targeted act. A data retention regime is the opposite — it is passive, automatic, and applies to everyone in advance. Instead of asking a court to start collecting information about a specific person, an investigator with a retention regime simply asks for records that the law already forced a telecom or platform to keep. The surveillance happened before anyone became a suspect.

That structural difference is why retention law matters even if your communications are end-to-end encrypted. Retention rules almost never touch message content. They touch metadata: the connection records, IP assignments, subscriber details, and traffic logs that describe the shape of your life without quoting a word of it.

What Retention Laws Actually Require

There is no single global standard. Retention obligations are written country by country, and they vary enormously in scope and duration. But most regimes target a recognizable set of records:

The thing that is almost universally excluded is the content itself — the audio of a call, the body of a message. Lawmakers learned early that mandating content retention is politically radioactive and technically enormous. Metadata retention sounds modest by comparison. It is not. As surveillance researchers have repeatedly pointed out, metadata is often more revealing than content, because it is structured, machine-readable, and trivial to aggregate across millions of people.

"We kill people based on metadata." — Gen. Michael Hayden, former Director of the NSA and CIA, 2014

The Wildly Uneven Global Map

Retention duration is where regimes diverge most sharply. The numbers below are illustrative of how broad the spread is — retention law changes frequently, so treat any specific figure as a starting point for your own check, not a permanent fact.

Approach What it looks like in practice
Mandatory blanket retention The law orders providers to retain metadata on the entire population for a fixed period — often somewhere between six months and two years — regardless of suspicion.
No mandate, but business-as-usual logging No statute compels retention, but providers keep records anyway for billing, fraud, and operations. The data still exists; it is just not legally guaranteed to.
Targeted / preservation orders Retention is triggered only by a specific request — an investigator asks a provider to "freeze" records for a named account going forward.
Constitutionally constrained Courts have struck down blanket retention, forcing legislatures toward narrower, judicially-supervised models.

The European Union is the clearest example of that last category. The EU's 2006 Data Retention Directive mandated blanket retention across member states — and the Court of Justice of the European Union invalidated it in 2014 (the Digital Rights Ireland ruling), holding that indiscriminate retention of the whole population's metadata was a disproportionate interference with fundamental rights. The Court has reaffirmed that position in subsequent cases, and member states have spent the decade since trying to write retention laws that survive judicial review. The result is a patchwork that is still being litigated.

The United States has no general mandatory retention statute for communications metadata. Instead it has a strong culture of voluntary logging, plus targeted preservation: under federal law, a provider that receives a preservation request must hold the relevant records for 90 days, extendable once. So the data tends to exist not because a statute demands it, but because keeping it is cheap and discarding it is rarely a priority.

Why "We Encrypt Everything" Doesn't Close This Gap

A privacy-conscious reader might reasonably ask: if my messages are end-to-end encrypted, why does retention law touch me at all? The answer is that retention regimes are aimed precisely at the layer encryption leaves exposed.

Consider what a provider can be compelled to retain even with perfect content encryption. Your ISP knows which IP address you held and when. Your mobile carrier knows which towers your phone touched. A messaging service — even one that cannot read a single message — still knows your account exists, when it connected, and from where. None of that is content. All of it is retainable.

The honest framing

Encryption changes what can be retained, not whether retention happens. The strongest content encryption in the world still leaves a connection record, and a connection record is exactly what retention statutes are written to preserve.

This is also why architecture matters more than policy promises. A service that never holds your IP address cannot be ordered to retain it. A service that derives keys client-side and stores only ciphertext has nothing to hand over from the content side regardless of what a retention law says. The protections that survive a subpoena are the ones built into the data model — see our breakdown of metadata surveillance for how far that reasoning extends.

What You Can Actually Do About It

Retention law is not something an individual can opt out of by clicking a setting. But the exposure is reducible:

Where Haven Fits

Haven cannot rewrite the retention statutes of any country, and we will not pretend otherwise. What we can control is how little there is to retain in the first place. Message content is encrypted client-side with keys derived from a passphrase that never leaves your device — there is no plaintext on our side to keep. We work to minimize the operational metadata we hold, because the cleanest answer to a retention obligation is having little subject to it.

Haven is one honest option among several built on that principle, and the right choice depends on your threat model. But if you are evaluating any service, retention is the question to ask out loud: not "is it encrypted," but "what, specifically, do you keep — and for how long?"

Try Haven free for 15 days

Encrypted email and chat in one app. No credit card required.

Get Started →