Data sovereignty vs data residency: which one do you need?

Residency is where your data sits. Sovereignty is whose law can reach it. How to tell which one your contract, regulator or customer is asking for.

Hidde KehrerHidde Kehrer13 min readGuides
A strongbox on a table inside a walled courtyard, a creature pointing at it, and a cord running from its keyhole over the wall to a distant cold tower where a far-off figure waits; a second creature follows the cord with its eyes.
On this page · 13 min

Why it matters: the EU region that passed one check and failed the other

Picture a 60-person software company in Utrecht that sells scheduling software to hospitals. Its first big German customer adds one line to the contract: customer data stays in the European Union. The platform team picks a large US cloud provider's Frankfurt region for production, and the same provider's hosted dev environments for the engineers, also in Europe. The data is resident in the EU, and the contract is met.

A year later the customer's procurement team sends a new security questionnaire. One question reads: which companies with access to our data can be legally compelled by a government outside the EU to hand it over? For the Frankfurt region the answer is the US parent company. The US CLOUD Act of 2018 added 18 U.S.C. § 2713, which requires providers under US jurisdiction to disclose data in their possession, custody or control whether it's stored inside or outside the United States. In June 2025 the general counsel of Microsoft France told a French Senate hearing that he could not guarantee under oath that French data would never reach the US government without French consent, though he added it had never happened.

The team also has to look past production. Engineers pull database extracts onto their dev environments to debug, CI runners load fixtures built from real records, and the coding agents the team started using copy files onto whatever sandbox they run in. Each of those machines holds customer data, so the answer to the questionnaire has to cover them too. The company had bought residency, and the customer was asking about sovereignty.

What data sovereignty means

Data sovereignty means your data is governed by the law you expect, and every company that could be compelled to hand it over is under that law. In its original sense it's a property of countries: data collected or stored within a country's borders falls under that country's laws. For a company, the useful version is narrower. It's your control over who can access, process and move your data, and your ability to show that no outside legal system can override that control.

What decides it is the chain of companies between your data and the hardware. Every company that operates, owns or has admin access to the infrastructure brings its own legal obligations, and a court order served on any of them may reach your data. So sovereignty requirements ask about jurisdiction and ownership: where the operator has its head office, who owns it, which courts its contract names, which subcontractors can reach the systems, and who holds the encryption keys.

You'll sometimes see "digital sovereignty" used as another word for it, which is broader and covers software and operations too. "Indigenous data sovereignty" is a separate idea about Indigenous peoples' right to govern data about them. When an IT buyer writes "data sovereignty" in a requirement, they nearly always mean the legal control described here.

What data residency means, and what it means in the EU

Data residency is the physical location where data is stored and processed. A residency requirement names a place, such as "the EU" or "Germany", usually in a data processing agreement (DPA), the contract that sets how a supplier may handle a customer's personal data. You meet it by keeping every copy there. Backups, replicas, logs, caches, support tooling and the machines your engineers and agents work on all count.

Data localisation is residency made mandatory by law. Germany's social code is one example: § 80 SGB X lets social data be processed on someone's behalf only in Germany, another state of the EEA (the EU plus Iceland, Liechtenstein and Norway), or a country the EU has declared adequate. Even that rule allows countries with an adequacy decision, which today includes US companies certified under the framework described below, so read the exact wording of any rule that applies to your customers' data.

GDPR, which most European buyers have in mind, doesn't require data to stay in the EU at all. It regulates transfers out of it: under Article 44 of the GDPR, personal data may leave the EU only through one of the transfer mechanisms the GDPR sets out. That can be an adequacy decision, where the European Commission rules that a country protects data well enough, or safeguards such as Standard Contractual Clauses, the model contract terms the Commission publishes. For the US, that basis today is the EU-US Data Privacy Framework, adopted in July 2023 after the Schrems II ruling in 2020 struck down its predecessor. The EU General Court upheld it in September 2025, and the French MP who brought that case has appealed to the Court of Justice, where the appeal is pending. So "data residency in the EU" is usually a contract term or a sector rule rather than a GDPR obligation, and a customer who asks for it may be hedging against the framework being struck down, as its predecessor was.

Data sovereignty vs data residency: the key differences

Residency answers where the data is, and sovereignty answers who can be made to hand it over. Localisation sits between them: it's residency that a law requires, so you can't negotiate it away.

Data residencyData localisationData sovereignty
Question it answersWhere is the data stored and processed?Does a law require it to stay in one place?Whose law governs it, and who can be compelled to disclose it?
What decides itThe region you pick, for every copyThe law that applies to your sectorWho operates and owns the infrastructure, and under which law
Who usually sets itA customer contract or DPAA national or sector lawA customer's security team, a regulator or your own risk policy
How you prove itRegion settings, sub-processor list, backup locationsSame as residency, plus records for the regulatorOperator's head office and owners, contract jurisdiction, admin access, key custody
What breaks itA backup, log or debug copy in another regionSame as residencyA foreign parent company, subcontractor or key holder

Residency is part of sovereignty, but only part. Data that sits in Frankfurt on a platform run by a company under US law is resident in the EU and still reachable through that company. Self-hosting comes at it from the other side: you pick the country and you're the operator, so the only companies in the chain are you and your hardware or cloud provider.

A sovereignty requirement in writing looks like SecNumCloud, the cloud qualification run by ANSSI, France's national cybersecurity agency. Its version 3.2 added protection against extra-European law: the provider's head office must be in an EU member state, and rules on shareholders limit how much control non-EU companies can hold, so a provider with a data centre in France doesn't qualify on location alone.

The options for where your data runs, and what each gives you

Where your machines run decides both properties at once. The same choice applies to production, but production usually gets a review, so the table covers the machines that tend to skip one: the dev environments, CI runners and agent sandboxes that hold copies of your data.

OptionResidencySovereigntyWhat you take onExamples
European provider, EU regionYes, if you pick the EU region and every copy stays thereYes, if its own hosting and sub-processors are European tooNothing to run; check its sub-processorsboxd (Frankfurt); European clouds such as OVHcloud or Scaleway, if you build the dev and sandbox layer yourself
Non-European provider, EU regionYes, if every copy stays in that regionNo: the parent company's law also appliesNothing to run; check backups and support accessGitHub Codespaces (Europe West), E2B (europe-west1)
Hyperscaler sovereign cloudYesPartly: EU entities and EU-resident staff, but a US parentNothing to run; a separate cloud to adoptAWS European Sovereign Cloud
BYOC (bring your own cloud)In the account's regionPartly: you control the account, but the cloud provider's law still appliesA cloud account and its contractboxd, E2B, Northflank
Self-hostedWherever you put itYes, if the hardware or cloud you pick is under your chosen lawRunning a platformboxd, E2B, Coder
Air-gappedOn your own siteYes, and nothing can leave over the networkRunning a platform with no outside updatesboxd on request, Coder, Northflank

boxd sits in the first row: it's a Dutch company based in Amsterdam, its contracts are under Dutch courts, and a boxd machine in the Frankfurt cluster stays on infrastructure within the EU or EEA. It also has a New York region, so choose Frankfurt when you create machines that hold European data, and ask for its sub-processor list as you would from any provider.

The non-European providers in the second row do some things better. They run in more regions, and if residency is all your contract asks for, they meet it with nothing extra to operate. They can't change which law applies to their parent company, though, so they can't fully answer the sovereignty question.

The hyperscalers have tried to close that gap. AWS opened its European Sovereign Cloud in Brandenburg in January 2026, run by German legal entities and EU-resident staff, physically and logically separate from its other regions, with more than 90 services. That covers much of what a sovereignty reviewer asks about. The parent company is still American, though, and whether the CLOUD Act's "control" reaches through to a separate subsidiary is exactly the question your customer's lawyers will weigh.

With BYOC, the vendor operates the platform inside your own cloud account, so you control the account and see what runs in it. If that account is on AWS, Google Cloud or Azure, though, the cloud underneath is still run by a US company.

Self-hosting and air-gapped installs are the rows where you choose every company in the chain. Self-hosting used to mean operating a heavy platform, which is one reason teams avoid it. A self-hosted boxd cluster is a single Rust binary with no Kubernetes, external Postgres or Redis to run, on bare metal, Google Cloud or AWS. A reviewer will also ask what the vendor still sees: a self-hosted boxd cluster sends one usage report an hour with counts only, and a licence key with telemetry opt-out turns that off. If sovereignty is the goal, bare metal from a European provider is the combination that removes the last non-EU company.

How to choose between data sovereignty and data residency

Start from what's written down in your contracts, your sector's law and your customers' questionnaires. Each wording points to a row of the table above.

  • You need neither beyond GDPR when the data has nothing personal in it, such as source code or synthetic test data, and no customer has asked. Then choose on speed and features. Check that the test data really is synthetic, because fixtures built from production records still contain personal data.
  • You need residency when a contract names a place. An EU region from any provider meets it, as long as you check backups, logs, support access and the dev and CI machines that hold copies.
  • You need localisation when a sector law names a place. Treat it like residency, and confirm where every sub-processor processes the data, because the law applies to them too.
  • You need sovereignty when a contract or questionnaire names a law, a government or the operator's ownership. You need a European operator under EU law whose own hosting is European too, or infrastructure you run yourself. A non-European provider's EU region won't pass.
  • You need air-gapped when the data must never touch the internet, as with classified or defence work. That means self-hosting on your own site.

For the sovereignty case, the checks are the same for any provider: the operator's head office and owners, the courts its contract names, its sub-processors (the companies it uses that touch your data, such as its hosting provider), who can get admin access, where backups go, and whether it has a US entity, which may bring it under US jurisdiction. Ask for each in writing, because those answers are what your customer's questionnaire will want.

If you're weighing boxd for the sovereignty case, the useful property is that you don't have to settle hosted versus self-hosted up front. The self-hosted version runs the same release as boxd cloud, with the same CLI, SDKs and console, so a team can start on the Frankfurt cluster and move onto its own hardware when a customer asks for more, without changing tools. The CLI commands show how to choose a machine's region when you create it.

The simplest fix is often upstream of all this: stop copying production records into dev environments and CI, and use synthetic data instead. Where an agent or an engineer does need real records, two checks apply whichever row you pick. Make sure the machines can only reach the hosts you allow, because a residency rule means little if a script or an agent can send a file anywhere. And decide who can reach the machines: putting them inside your own network means they answer only there.

The decision

Ask for residency when your contract names a place, and for sovereignty when it names a law, a government or the operator's ownership; for sovereignty, pick a European operator or run the infrastructure yourself.

For the Utrecht team, that means moving production and every machine that holds hospital data to a European operator or onto infrastructure it runs, and keeping real records off every other machine.

If running it yourself is where you land, start with the self-hosting guide: a cluster deploys in 30 to 60 minutes, and the installer is open source (Apache-2.0) at github.com/boxd-sh/self-host.

Frequently asked

What is data sovereignty?
Data sovereignty means your data is governed by the laws you have chosen to be bound by, and only parties under those laws can be compelled to give it up. It depends on who operates, owns and has admin access to the infrastructure, not only on where the servers are.
What is the difference between data sovereignty and data residency?
Data residency is where data is stored and processed. Data sovereignty is whose law governs it and who can be forced to hand it over. Data in an EU region run by a US company is resident in the EU, but US law can still reach it through that company, so it isn't sovereign.
Does GDPR require data residency in the EU?
No. GDPR regulates transfers of personal data out of the EU rather than requiring it to stay there. A transfer needs one of the GDPR's transfer mechanisms, such as an adequacy decision, Standard Contractual Clauses or Binding Corporate Rules. EU residency requirements usually come from contracts or sector laws instead.
What are the requirements for data residency?
Every copy of the data has to stay in the named place: the primary database, backups, replicas, logs, support tooling and the dev, CI and agent machines that hold copies. Check the provider's region settings, its sub-processor list and where its backups go.
What are the requirements for data sovereignty?
The infrastructure has to be operated by a company under the law you accept, with no foreign parent, subcontractor or key holder that a foreign court could compel. In practice that means a European operator under EU law, or infrastructure you run yourself on hardware or a cloud you have vetted.
Hidde KehrerHidde Kehrer
PostShare
Published
Nov 27, 2026
Reading time
13 min
Words
2,591
Topic
Guides

Read next

Field notes

Subscribe for release notes and architecture write-ups

No spam, ever. Unsubscribe anytime.

Your inbox