DEV Community

Cover image for Best practices for handling patient data under the CLOUD Act
binadit
binadit

Posted on Originally published at binadit.com

Best practices for handling patient data under the CLOUD Act

The CLOUD Act doesn't care which AWS region you picked

Here's a question that breaks a lot of compliance checklists: you've configured your EU data residency settings, your buckets are in Frankfurt, your encryption is enabled at rest and in transit. Are you actually compliant for patient data? Not necessarily. If your provider is a US company, jurisdiction follows the corporate entity, not the data centre.

This is for anyone building or maintaining systems that touch patient data (referral letters, lab results, appointment metadata) and routes any of it through Gmail, Outlook, Google Drive or OneDrive.

The core technical misunderstanding

Most teams treat "data region" and "legal jurisdiction" as the same setting. They aren't.

Microsoft 365 / OneDrive / Teams  -> Microsoft Corporation, Redmond, WA
Google Workspace / Drive / Gmail  -> Google LLC, Mountain View, CA
Enter fullscreen mode Exit fullscreen mode

Both vendors let you pin storage to an EU region. That setting controls where the disks physically sit. It does not change which country's courts can compel the parent company to produce data. Under the US CLOUD Act (enacted 23 March 2018), a US-jurisdiction provider must hand over data in its possession, custody or control if served with a valid US warrant, subpoena or court order, regardless of where the underlying server lives.

It doesn't mean your mailbox is being actively monitored. It means the legal reach follows the company, not the storage location. Treat that as a hard constraint when designing data flows for special category data (health data falls under GDPR Article 9).

Encryption doesn't solve this problem

If a vendor's answer to "what about the CLOUD Act" is "we encrypt everything," that's a mismatch between question and answer.

Encryption in transit and at rest protects against external attackers. It does nothing against a lawful order served directly on the provider, because the provider holds the keys. Different threat model entirely. Don't let this get conflated in a security review.

Check your actual legal basis, not just your region config

GDPR Chapter V (Articles 44-50) requires an adequacy decision or appropriate safeguards (like SCCs) before personal data can leave the EEA. Article 48 is explicit on this: a foreign government order does not, on its own, make a transfer lawful. Article 24 puts the burden of proof on the controller, i.e., you, not the vendor.

Pull your current contract and find the answer to: which transfer mechanism does it actually rely on?

The framework has a track record worth knowing

Three EU-US frameworks in roughly 25 years:

  • Safe Harbor (2000), struck down 2015
  • Privacy Shield (2016), struck down in the Schrems II ruling, July 2020
  • EU-US Data Privacy Framework, adopted 10 July 2023, currently in force

The current framework is under legal challenge. The EU General Court dismissed an action (Case T-553/23) on 3 September 2025; an appeal (Case C-703/25 P) was filed 31 October 2025 and is pending before the Court of Justice. No judgment yet, nothing to act on today, but worth tracking if you're the one who gets asked "is our legal basis stable" in an audit.

Ask the question directly, get it in writing

On 10 June 2025, Microsoft France's director of public and legal affairs, Anton Carniaux, testified under oath before a French Senate inquiry. Asked whether he could guarantee French citizens' data would never be handed over under a US government order without French authorisation, his answer was: "Non, je ne peux pas le garantir" (no, he could not guarantee it), while noting it hadn't happened so far.

No major US cloud provider can give a different answer here; the CLOUD Act doesn't leave room for that guarantee. If you haven't put this question to your own vendor in writing, that's a reasonable first step before any migration work.

Map data flows, not just storage systems

Your EHR probably gets audited. Your mailbox and shared drives usually don't, and that's often where the real exposure sits:

  • Referral letters as email attachments
  • Calendar invites with patient names in the subject line
  • Shared drive folders holding intake forms

These move protected data outside your primary system constantly, with no dedicated access controls.

A practical remediation order

Don't try to migrate everything simultaneously. Prioritize by sensitivity and volume:

  1. Shared intake mailbox
  2. Referral and lab-result exchange
  3. Appointment booking system
  4. Discharge summary storage

Fixing these four first gets you most of the risk reduction without a full-org migration.

A minimal tracking table

Something like this, kept current, covers most audit questions:

Question What to record
Where is data stored System name, hosting region
Who's the legal entity Parent company, country, CLOUD Act exposure (yes/no)
Transfer mechanism Adequacy decision, SCCs, DPF, or none needed
Vendor confirmation Date requested, date replied, summary
Review cadence Recurring, not one-off

If you do migrate, migrate the whole workflow

Patient data isn't in one place. It's in the mailbox, the drive, the calendar, the video consult link, the booking page. Moving email off a US platform while leaving files and scheduling behind solves a fraction of the exposure and leaves you maintaining two systems instead of one.

Full article with more detail: CLOUD Act and healthcare patient data

Originally published on binadit.com

Top comments (0)