Regulation explainerEnterprise AI
AI data sovereignty: turning GDPR, HIPAA and SOC 2 into architecture decisions
Data sovereignty for an AI system is not only about where the database sits. Prompts, retrieved documents, outputs, logs and training examples each travel and persist differently, and GDPR, HIPAA and SOC 2 attach different obligations to them. This guide maps those obligations to the decisions architects make: where inference runs, what is logged and for how long, which sub-processors are allowed and who can reach the data.
On this page
- Five dimensions of sovereignty in an AI system
- Where data travels in a single AI request
- What GDPR, HIPAA, SOC 2 and the EU AI Act ask of an AI deployment
- Mapping obligations to architecture decisions
- Logging without creating a new sensitive data store
- Due diligence on a model provider
- Scope and limits of this mapping
- Questions and answers
- Sources
Five dimensions of sovereignty in an AI system
Contracts often say data residency when they mean only one of these. Ask about each.
- Storage location
- Where prompts, outputs, logs and indexes are written, including backups and disaster-recovery copies.
- Processing location
- Where inference computes. A provider can store data in one region and process requests in another, or overflow to other regions under load.
- Key control
- Who holds the encryption keys and whether the provider can decrypt without you. Customer-managed keys protect stored data, not data being processed.
- Operational access
- Which people, in which countries, can reach the data for support, abuse monitoring or debugging, and with what approval.
- Legal reach
- Whose laws can compel disclosure. Under the US CLOUD Act, a provider must disclose data in its possession, custody or control whether it is stored inside or outside the United States9.
Where data travels in a single AI request
- User prompt
Free text that can carry personal data or PHI even when the workflow was not designed for it.
- Retrieved context
Documents and records pulled from internal systems to ground the answer.
- Model inference
Processing by the model, in your environment or a provider's.
- Generated output
The answer, which may restate or infer sensitive facts.
- Logs and traces
Copies kept for debugging, abuse monitoring or audit.
- Evaluation and tuning sets
Examples saved to test or improve the system, often kept longest.
What GDPR, HIPAA, SOC 2 and the EU AI Act ask of an AI deployment
The provisions that most often change an AI architecture. Sector rules, such as those on health records or financial services, add to them.
GDPR (Regulation (EU) 2016/679)
EU and EEA, plus organizations elsewhere that offer goods or services to, or monitor, people in the EUApplies whenPersonal data appears in prompts, retrieved context, outputs or logs1.
- Article 28: a provider processing on your behalf needs a processor contract, and its sub-processors need your prior authorization1.
- Chapter V: transfers outside the EEA need an adequacy decision or safeguards such as standard contractual clauses, plus supplementary measures where local law undermines them2.
- Article 35: a data protection impact assessment where processing with new technologies is likely to be high risk1.
- Article 5: data minimization and storage limitation govern what prompts and logs may hold and for how long1.
- Article 32: security appropriate to the risk, including access control and encryption1.
HIPAA Privacy and Security Rules (45 CFR Part 160 and Part 164)
United States: covered entities and their business associatesApplies whenProtected health information is typed into prompts, retrieved from clinical systems or stored in logs by or for a covered entity3.
- A vendor that creates, receives, maintains or transmits PHI for a covered entity is a business associate3.
- The business associate agreement must limit use and disclosure, require reporting of improper disclosures, bind subcontractors and provide for return or destruction of PHI4.
- Security Rule technical safeguards: access control, audit controls, integrity, authentication and transmission security5.
- Minimum necessary: limit PHI to what the purpose requires, including what goes into prompts and retrieved context8.
SOC 2 (AICPA Trust Services Criteria)
AICPA attestation framework used internationally; not a lawApplies whenYou rely on an AI or hosting provider as a service organization, or your own customers rely on you6.
- The report is an auditor's examination of controls relevant to security, availability, processing integrity, confidentiality or privacy6.
- Read the scope: services included, criteria examined and sub-service organizations carved out.
- Operate the complementary user entity controls the report assigns to you, such as your own access reviews.
EU AI Act (Regulation (EU) 2024/1689)
European UnionApplies whenYou deploy an AI system in the EU, with the heaviest duties for systems classed as high-risk7.
- Deployers of high-risk systems must follow the instructions for use, assign competent human oversight and keep the logs the system generates where they control them7.
- See EU AI Act deployer obligations for the full set; this page stays on data location and handling.
Mapping obligations to architecture decisions
Read across a row to see where frameworks agree; where they differ, the strictest requirement that applies to you usually sets the design.
| Decision | What GDPR pushes you towards | What HIPAA pushes you towards | What SOC 2 evidence should show |
|---|---|---|---|
| Where inference runs | Processing in the EEA or an adequate country, or documented transfer safeguards | Any location, provided every vendor touching PHI has signed a business associate agreement | Which regions and facilities are in scope, including failover regions |
| Prompt and output logging | Only what the purpose needs; content logging justified in the impact assessment | Audit controls over system activity without copying PHI into unprotected log stores | Logging and monitoring controls examined over the report period |
| Retention | Defined periods per log type, with deletion that also reaches backups and indexes | Retention aligned with your policies, and return or destruction of PHI when a vendor relationship ends | Data disposal controls and evidence that they operated |
| Model providers and sub-processors | A processor contract, an authorized sub-processor list and notice of changes | Agreements with each vendor and subcontractor that handles PHI | Vendor management controls and the sub-service organizations carved out of scope |
| Staff and vendor access | Access limited to need, with a transfer analysis for support staff outside the EEA | Unique user identification, access control and authentication for ePHI | Logical access controls, access reviews and monitoring of privileged users |
Logging without creating a new sensitive data store
Prompts copied into a general log platform can end up with wider access and longer retention than the systems they came from.
Due diligence on a model provider
Run these for every provider that receives prompts, context or outputs, including AI features inside SaaS you already license.
Draw the data flow
Show every component that receives prompts, context, outputs or logs, including the provider's abuse monitoring and support tooling.
Collect the contract set
Data processing agreement, sub-processor list with locations, a business associate agreement where PHI is involved, and each document's change-notification terms.
Confirm retention and training terms
Get in writing how long prompts and outputs are kept, for what purposes and whether they are ever used to train or improve models.
Pin down processing regions
Ask where inference runs normally and during failover or overflow, not only where data is stored.
Read the SOC 2 Type 2 report properly
Check the period covered, services in scope, carved-out sub-service organizations, exceptions noted and the user controls assigned to you.
Complete transfer and impact assessments
Document the transfer tool and supplementary measures for data leaving the EEA, and add AI-specific risks to the impact assessment.
Set review triggers
Repeat the review when the provider changes sub-processors, regions, retention terms or the model behind your endpoint.
Scope and limits of this mapping
Questions and answers
Is a private cloud deployment enough for data sovereignty?
Not on its own. A private cloud tenancy settles storage and processing location, but sovereignty also depends on who holds the keys, which operator staff can reach the environment, which law binds the cloud operator and where logs and backups go. Treat it as one control among several and document the rest in your risk assessment.
Do we need to control the encryption keys?
Customer-managed keys reduce a provider's ability to read stored data and let you cut off access, which can strengthen a transfer assessment. They do not protect data during processing, because inference works on decrypted inputs. Where provider access during processing is unacceptable, the options are self-hosted inference or confidential computing, verified separately.
Does a SOC 2 report mean a vendor is GDPR or HIPAA compliant?
No. SOC 2 is an independent auditor's examination of controls over a defined system against the AICPA criteria. It is useful evidence for a GDPR security assessment or a HIPAA risk analysis, but it does not replace a processor contract, a business associate agreement or your own assessment of how the AI system uses personal data.
Is de-identified or pseudonymized data out of scope?
It depends on the framework. HIPAA treats health information de-identified by expert determination or by removing the listed identifiers as no longer individually identifiable8. Under GDPR, pseudonymized data remains personal data. In AI systems, free-text prompts and retrieved documents often reintroduce identifiers, so de-identification must be tested, not assumed.
Can provider support staff in another country see our prompts?
Possibly, so ask. Many providers keep limited prompt copies for abuse monitoring and let support engineers reach customer data under defined procedures. Find out where those staff sit, what approval they need and how long copies last; under GDPR, remote access from outside the EEA can be a transfer needing its own safeguard.
Sources
- Regulation (EU) 2016/679 (General Data Protection Regulation) — EUR-Lex · checked 10 October 2026
- Recommendations 01/2020 on measures that supplement transfer tools to ensure compliance with the EU level of protection of personal data — European Data Protection Board · checked 10 October 2026
- 45 CFR § 160.103 Definitions (business associate) — Legal Information Institute, Cornell Law School · checked 10 October 2026
- 45 CFR § 164.504 Uses and disclosures: organizational requirements (business associate contracts) — Legal Information Institute, Cornell Law School · checked 10 October 2026
- 45 CFR § 164.312 Technical safeguards — Legal Information Institute, Cornell Law School · checked 10 October 2026
- SOC 2: Controls at a Service Organization Relevant to Security, Availability, Processing Integrity, Confidentiality, or Privacy — AICPA & CIMA · checked 10 October 2026
- Regulation (EU) 2024/1689 (Artificial Intelligence Act) — EUR-Lex · checked 10 October 2026
- 45 CFR § 164.514 Other requirements relating to uses and disclosures of protected health information (de-identification, minimum necessary) — Legal Information Institute, Cornell Law School · checked 10 October 2026
- 18 U.S. Code § 2713 Required preservation and disclosure of communications and records — Legal Information Institute, Cornell Law School · checked 10 October 2026