Keycloak or Zitadel for GDPR and EU data residency: which fits your setup
Keycloak fits when the identity store stays in infrastructure your organization runs inside the EU, and Zitadel fits when you also want a vendor Data Processing Agreement and a chosen Zitadel Cloud region. GDPR does not itself require EU-only storage, since Chapter V governs transfers of personal data to third countries, so residency is often an internal or sector rule that you should confirm with counsel. This page covers only the GDPR and EU data residency question. The general Keycloak vs Zitadel comparison, covering licensing, multi-tenancy and the audit trail, is on its own page. Identity data is personal data in almost every deployment, so an assessor will first ask where it sits and who processes it.
Self-hosted Keycloak keeps user and identity data wherever you run it. Its documented model has no vendor processor, DPA or transfer mechanism, so you are the controller, and the evidence file is mostly your own: where the nodes and the production database run, who has database and backup access, and how LDAP or Active Directory federation traffic is handled. If a third-party cloud or hosting provider runs the infrastructure, that provider may act as a processor, so confirm its terms. Zitadel's compliance page says it offers DPAs under EU and UK GDPR, runs Zitadel Cloud on Google Cloud Platform in customer-selected regions including the EU, and self-certifies under the EU-U.S. Data Privacy Framework. Treat these as vendor statements to verify in writing, including the region you select. Self-hosted Zitadel carries the same controller analysis as Keycloak.
Work through three decisions before you choose. First, settle controller and processor roles: if your team runs the platform, you are the controller, and if a partner or managed-service provider operates it, the contract must state who processes what and on which terms. Second, decide whether a DPA is needed: a self-hosted deployment in your own infrastructure may need none with the software vendor, while Zitadel Cloud makes the vendor DPA a central review item. Third, size the operating effort your team can carry. Keycloak needs a production database and patching you own, and the project plans four minor releases a year. Self-hosted Zitadel adds its own database and deployment choices. Ask counsel to confirm the residency rule itself, and ask your assessor which records they expect, such as data flow diagrams, a processor register and transfer assessments.
Keycloak vs Zitadel: which EU residency setup fits
Keycloak fits best when identity data must stay inside your own EU infrastructure and no vendor should sit in the data path. Keycloak is Apache-2.0 and self-hosted, so user and identity data stays where you run it, the operator is the controller, and no vendor processor, DPA or transfer mechanism is involved. The fit changes if your team cannot run a stateful identity service with its own on-call, backup and upgrade routine, or if an external identity source keeps personal data outside the EU anyway. Your platform team needs to cover:
- Kubernetes install: the Keycloak Operator is installed through the Operator Lifecycle Manager, which Keycloak recommends, or with kubectl. Your team owns the cluster, the namespaces and each Operator upgrade. Keycloak Operator installation
- Database: production needs a relational database. PostgreSQL 14 to 18 is supported, and the default dev-file database is not suitable for production.
- Upgrades: Keycloak plans four minor releases a year and says breaking changes in minor releases are opt-in. Someone must test each release in an EU staging environment before production.
- Backups and logs: you decide where backups and audit logs are stored, who can read them and how long they are kept, since those files hold identity data too.
- Federation and brokering: LDAP or Active Directory federation keeps the directory where it already lives, but a brokered external provider may send logins to its own location, so map each flow.
Before you call the setup EU-only, confirm that every connected identity source, backup target and log sink also sits in the EU.
Zitadel Cloud fits when you want a vendor to process data under a Data Processing Agreement and you can select the cloud region. Zitadel's compliance page says it offers DPAs under EU and UK GDPR and that Zitadel Cloud runs on Google Cloud Platform in customer-selected regions, including the EU. The fit changes if the region you need is not offered, if counsel requires transfer terms the DPA does not cover, or if policy forbids any third-party processor. Self-hosted Keycloak has no processor to contract with, so a managed Keycloak service is a separate contract to review on its own terms. Your team needs to cover:
- DPA terms: request the signed Data Processing Agreement and check its sub-processor list, breach notification timing and deletion terms against the processor duties in Chapter IV and the breach rules in Articles 33 and 34.
- Region: confirm the EU region in writing before go-live, and ask where backups, support access and logs are held, including the backups, support access and logs and not only the primary data.
- Transfers: the vendor says it self-certifies under the EU-U.S. and Swiss-U.S. Data Privacy Frameworks, with JAMS as recourse. Confirm the current status, because Chapter V of the GDPR governs transfers to third countries. Zitadel certifications and compliance
- Admin work: your team still configures organizations, clients, SSO and user onboarding, but day-to-day hosting moves to the vendor.
- Exit: ask how your data and configuration can be exported and what happens to them at termination, since this sets the cost of switching later.
Get the signed DPA, the region confirmation and the current transfer mechanism in writing before relying on any of them.
Self-hosted Zitadel fits when identity must stay in your own EU infrastructure and you want the event-sourced audit trail that Zitadel builds in. Zitadel stores every change as an event, which gives a built-in audit trail of all changes over an unlimited period. The fit changes if your team cannot run PostgreSQL and a highly available Kubernetes deployment, or if counsel has not reviewed the AGPL-3.0 obligations that apply once you modify the server. Your platform team needs to cover:
- Deployment model: Zitadel documents Linux and macOS binaries, Docker Compose and Kubernetes. For high availability, it recommends a Kubernetes cluster with the official Helm chart.
- Database: self-hosted Zitadel uses PostgreSQL 14 to 18. Confirm where the event store sits in your deployment, then include it in backup, restore and disaster recovery tests.
- Audit retention: the audit trail covers an unlimited period, so storage grows with use. Agree retention and any pruning position with counsel and your assessor before go-live. Zitadel audit trail
- Licensing: Zitadel's core, Console and hosted login are AGPL-3.0, while APIs, SDKs, Helm charts and Terraform configurations stay Apache-2.0. Counsel should review what changes once you modify or embed the server.
- Operations: plan upgrades, certificate rotation and monitoring for both the application and the database, and confirm the supported upgrade path for your version with Zitadel.
Ask Zitadel to confirm the high-availability design and database sizing you plan to run, and get counsel's view on AGPL-3.0 before you modify the server.
This tab applies when the residency demand is an internal policy that counsel has not yet checked against the GDPR. The policy may be stricter than the law, looser than it, or silent on processors, so the choice among the other tabs depends on what it says. Until counsel confirms the scope in writing, treat the residency question as open. The fit changes once the answer is known: a policy that requires EU-only storage points to the first or third tab, while one that allows a vendor under a DPA opens the second tab. Your team needs to cover:
- Scope: ask counsel which data counts as identity data, including logs, backups, support access, admin accounts and connected directories.
- Legal mapping: counsel should map the policy to the GDPR provisions that apply, such as security of processing under Article 32 and transfers to third countries under Chapter V.
- Data flow record: list each system that holds identity data, where it runs and who can access it. An assessor will ask for this record.
- Skills: whichever tab counsel supports, the team needs the operating skills listed in that tab, so decide early enough to staff and train for them.
- Decision record: document the residency decision, its owner, its date and the trigger that would reopen it, such as a new region or a new connected system.
Get counsel's written answer on scope before you pick a setup, and keep that answer with the data flow record.
What GDPR asks of an identity platform and what it does not
The General Data Protection Regulation, Regulation (EU) 2016/679 (EUR-Lex text), has applied since 25 May 2018 and places its duties on controllers and processors. For an identity platform, the duties that touch the software sit mainly in Chapter IV (Articles 24 to 43), including security of processing under Article 32 and breach notification under Articles 33 and 34. Those articles expect the organization to protect authentication data, detect and report incidents, and show how it chose its controls. Keycloak or Zitadel can supply the controls, such as MFA, session settings, access policies and audit logs, but neither can make the decisions for the organization. Processing records, the lawful basis for each login flow, retention periods for accounts and logs, and the handling of data subject requests all stay with the team that runs the system. Confirm early who owns each of these items, because an assessor will ask for the documented decision before the product configuration.
Residency questions usually come from Chapter V (Articles 44 to 50), which governs transfers to third countries. The GDPR does not itself require EU-only storage, so the question for an identity platform is where personal data is stored and who can reach it from outside the EU. A self-hosted Keycloak deployment keeps user and identity data in the location where the operator runs it. The operator is the controller, and there is no vendor processor, DPA or transfer mechanism to review. That shortens the transfer analysis but leaves the mapping work with you: the database you choose, backups, logs, and any remote administrator or support access must all sit inside the boundary you document. Zitadel takes a different route. It offers a Data Processing Agreement under EU and UK GDPR, and Zitadel Cloud can run in customer-selected regions including the EU, so its transfer question becomes a contract and region review. Self-hosted Zitadel still leaves the same in-house mapping work with the operator.
Article 83 sets the penalty ceiling. Infringements such as those covered by Articles 25 to 39 can reach EUR 10 million or 2% of total worldwide annual turnover, and infringements of the principles, lawful basis, data subject rights and transfer rules can reach EUR 20 million or 4%, in each case whichever is higher. National supervisory authorities enforce the regulation under Article 51, and the European Data Protection Board resolves disputes between them under Articles 65 and 70. For this comparison, a residency claim is only as strong as the records behind it. Ask each vendor for its DPA and the regions it names in writing. For a self-hosted Keycloak, the equivalent evidence comes from your own data map, retention schedule and transfer assessment, which should show where the identity store, its backups and its administrators sit.
How Keycloak vs Zitadel meet each GDPR obligation as documented
This table compares what each platform documents against the GDPR obligations that apply to an identity provider: controller and processor roles, data location, transfers, security, breach support, audit trail and admin access. Read the Keycloak column as a self-hosted model where your organization holds every control, and the Zitadel column as a vendor offer that still needs contract and configuration checks. Where a cell says to confirm, ask the vendor or check your own setup before you rely on it.
| Requirement | Keycloak as documented | Zitadel as documented |
|---|---|---|
| Controller and processor roles | The project has no vendor processor, DPA or transfer mechanism, so the operator is the controller and holds the controls. | Offers Data Processing Agreements under EU and UK GDPR. Confirm the role split for Cloud, and self-hosted runs keep you as controller. |
| Data location and transfers | Data stays where the operator runs Keycloak, so location is set by your own cloud, data center or air-gapped network. | Zitadel Cloud runs on Google Cloud Platform in customer-selected regions, including the US, EU, Switzerland and Australia. |
| Processor contract (DPA) | No vendor DPA exists for the project. Check contracts with your own hosting providers. | Data Processing Agreements are offered under EU and UK GDPR. Request the current text before signing. |
| Transfer mechanism | No vendor transfer mechanism. Assess any cross-border flow in your own design. | Self-certified under the EU-U.S. and Swiss-U.S. Data Privacy Frameworks, with JAMS as recourse. Confirm the current listing. |
| Security of processing | Controls sit with the operator. Confirm TLS, encryption at rest, backups and retention in your own environment. | Confirm encryption, backup and retention settings for your chosen region and plan with Zitadel before signing. |
| Breach notification support | No vendor notification chain. The operator runs its own Article 33 and 34 notices within its incident process. | Confirm breach notification timing and contacts in the DPA before relying on them. |
| Audit trail | Confirm which admin and login events your setup logs, where they are stored and how long they are kept. | The event-sourced store records every change, giving an audit trail of all changes over an unlimited period. |
| Access control for admin roles | Admin console access depends on your configuration. Confirm role assignment, MFA and admin event logging. | Instance and organization admin roles are set in Zitadel. Confirm delegation and MFA options for your setup. |
| Vendor attestations | No vendor attestation covers the project, so your own assessment must cover the deployment. | Certifications are listed on Zitadel's compliance page. Confirm which apply to your region and service. |
Where identity data flows and where the trust boundary sits
The diagram starts with workforce users signing in. In the first branch, a self-hosted Keycloak runs inside the organization's EU network, reads users from an LDAP or Active Directory source, and keeps its production database in the same region. Brokered logins to an external OIDC or SAML identity provider cross out of that boundary, so the transfer question must be answered for that hand-off. In the second branch, Zitadel Cloud is a vendor boundary in the region the customer selects. The DPA is the contractual layer, and the Data Privacy Framework is a transfer mechanism to confirm. The diagram shows data paths only and makes no claim that any component is compliant.
Keycloak runs inside the EU network; Zitadel Cloud sits behind a vendor boundary.
Evidence an assessor asks for and how each side produces it
Every assessor starts from the same set of records, whichever platform you choose. Each item answers a question about who is responsible for personal data, where it sits, who changed or accessed it, and how you respond when something goes wrong. Several items map to the security of processing and breach notification duties in Chapter IV of the GDPR, so the set should be agreed before collection begins.
- Roles and processor records: a record of controller and processor roles for the identity platform, naming who decides the purposes of processing and who operates the system.
- Contracts and data location: a signed DPA wherever a vendor processes data, plus the region and database location of every identity store, federation source and brokered provider.
- Transfer documentation: the transfer mechanism for any path that leaves the EU, including brokered logins to providers outside it.
- Access and activity records: admin and login records, access reviews for admin roles, patch and upgrade records, and restore tests run in region.
- Breach runbook: a runbook keyed to the notification steps in Articles 33 and 34, with named owners and the systems it covers.
The sample an assessor selects depends on the scope agreed for the review, so confirm which realms, instances, providers and date range are in scope before you pull records, because assessors sample individual records.
With Keycloak, the operator is the controller and the platform does not send identity data to a vendor, so most evidence is generated by your own team. The Keycloak Server Administration Guide describes the admin and login events you can enable, and your deployment files describe the rest. No vendor DPA or transfer mechanism is documented for Keycloak, so the records you keep become the main proof of where data lives.
- Configuration exports: realm and client settings exported on a schedule, with the date and change owner attached, so the configuration at any past point can be shown.
- Deployment manifests: Operator or server deployment files, database connection settings and hosting region, kept under version control so the running state can be compared with the approved one.
- Admin events: the admin event records the Server Administration Guide describes, retained for the period the review requires and protected from edits by the people they record.
- Login events: the login event records the same guide describes, with retention periods and access controls written down.
- Hosting provider contracts: the cloud or data center provider that runs the cluster usually counts as a processor for the hosting layer, so its DPA and region commitments belong in the file even though Keycloak adds no vendor DPA.
Check that the exports and event records cover the same realms and period as the sample the assessor selects, and that each export can be tied back to a specific approved change.
Zitadel publishes vendor-side statements that Keycloak does not have. Its compliance page says it offers Data Processing Agreements under EU and UK GDPR and that it self-certifies under the EU-U.S. and Swiss-U.S. Data Privacy Frameworks, with JAMS as recourse mechanism. Its event-sourced store also keeps a change history. For a self-hosted instance, those statements describe Zitadel's role as vendor, and your team still produces the operating records.
- DPA statement: request the signed DPA and confirm that it covers the support or licensing relationship you are buying, since it does not describe your own instance.
- Data Privacy Framework statement: verify the self-certification on the current framework list before you cite it in the review, and record the date you checked.
- Event store audit trail: every change is stored as an event, so changes can be replayed and attributed. Confirm with the audit trail documentation which events cover admin and login activity for your period.
- Self-hosted region and database records: the region choices on the compliance page apply to Zitadel Cloud. Your instance's region, PostgreSQL location and backup locations are records you produce.
- Patch, restore and access records: upgrade records, restore tests run in region, access reviews for admin roles and the breach runbook are your evidence, not Zitadel's.
Check whether the audit trail covers the admin and login actions in your sample, and whether event store backups stay in the same region as the identity data.
Configuring self-hosted Keycloak in an EU region for GDPR evidence
This sequence fixes where Keycloak, its data, its backups and its external identity paths sit, so the operator can show an assessor the location and transfer records that GDPR reviews depend on. Each step closes with a record or check that goes into the evidence file.
Fix the EU region for production and recovery
Choose the EU region where the production cluster, backups and disaster recovery copies will run, and write each location in the data map. The operator's compliance lead and platform team should agree this list before installation begins, because a self-hosted deployment has no vendor processor holding a copy. Confirm with your cloud or data center provider that snapshots, object storage and replicas stay in the chosen regions. Done when the location register names every site, including the recovery site, and each entry has a named owner.
Place a supported database beside the cluster
Select a production database from Keycloak's supported list, which includes PostgreSQL 14 to 18, MariaDB, MySQL, Microsoft SQL Server, Oracle Database and Amazon Aurora PostgreSQL. Keycloak's default dev-file database is not suitable for production, so keep it out of any environment that holds live user records. Deploy the database in the same EU region as the cluster and confirm that its replicas and automated backups also stay in the EU. Done when a connection test from the Keycloak nodes succeeds and the database location is recorded next to the cluster location. Keycloak database guide
Install Keycloak through the Operator or server
Install the Keycloak Operator through the Operator Lifecycle Manager, which Keycloak recommends, or with kubectl on Kubernetes and OpenShift. Teams running virtual machines can use the server distribution instead. Record the exact Keycloak version you deploy, starting from the current 26.8.1 release, and keep the installation manifests or configuration files in version control. Done when the admin console loads inside the EU environment and the version reported by the server matches your change record. Keycloak Operator installation guide
Map every external path and mark transfers
List each route that moves identity data outside the cluster, including LDAP or Active Directory federation and any brokered OIDC or SAML identity provider. For each path, record the directory or provider location, the attributes sent, and who controls the far end. Mark every path that sits outside the EU as a transfer to document under Chapter V of the GDPR, and have your legal or privacy team confirm the mechanism you rely on. Done when the data flow map has one line per path and each transfer has an owner and a written justification.
Configure admin roles, TLS and logging
Create named admin roles with the fewest rights each person needs, remove shared admin accounts, and require strong authentication for the admin console. Enforce TLS on every external endpoint and on database connections where the database supports it, and send logs to a store inside the EU. Read the Keycloak Server Administration Guide to confirm which admin and user events are recorded, where they are stored and how long they are kept, then set your own retention to match. Done when a test admin action appears in the log store and the event list is written into the evidence file.
Set upgrade cadence and test restores in region
Keycloak plans four minor releases a year and says breaking changes in a minor release will be opt-in, so set a written upgrade cadence that matches those releases and name an owner for each one. Restore a backup into a test environment in the same EU region before go-live, and record the result. Repeat the restore test after each upgrade. Done when the restore report shows the data came back inside the EU and the cadence sits in the change calendar. A self-hosted Zitadel path follows the same location and mapping steps, with PostgreSQL 14 to 18 and the official Helm chart for high availability.
What buyers ask before hiring help on GDPR and residency
What drives the effort of a GDPR and residency project on Keycloak or Zitadel?
Effort depends mostly on where the platform runs, how much of the identity estate is in scope, how complete the data map is, and what your team already knows about the platform. In an illustrative case, a Keycloak instance on virtual machines and a Zitadel deployment on Kubernetes are different projects, even though both keep identity data where you run them. Scope matters as much: one application or a full workforce and customer estate with federated directories changes the work more than the product choice does. A team with a complete data map of personal data flows, retention rules and processors will move faster than one that has to discover them during the project. Ask any provider to break the estimate down by deployment model, in-scope systems and each skill area it assumes, so you can see which assumption moves the total.
What does the organization need to provide before GDPR identity work starts?
The organization must supply decisions and records that only it can make: controller decisions, a data map, and named owners for the data processing agreement and the record of processing activities. When you self-host either platform, your organization is generally the controller for identity data it runs, so confirm that role with counsel, then assign purposes, lawful basis, retention periods and data subject request handling to your privacy team. The data map should list each identity attribute, where it is stored, which systems receive it and where backups and logs go. Without that map, choices such as which attributes sync, how long audit events are kept and which regions host backups cannot be settled. Assign an owner for the processing records and for any agreement with a vendor or partner. DeployOpen prepares systems, controls and evidence for these reviews, but the controller decisions stay with your organization.
Can our own team set up Keycloak or Zitadel without a partner?
Often yes, if the team already runs production Linux, Kubernetes or databases and can own upgrades, backups and monitoring after go-live. The skills depend on the route. Keycloak's Operator is installed through the Operator Lifecycle Manager, which Keycloak recommends, or with kubectl, and it assumes working knowledge of Kubernetes custom resources and of the relational database you connect, because Keycloak needs a production database. Running the server distribution on virtual machines instead assumes comfort with service configuration, clustering and load balancer setup. Zitadel documents Docker Compose, binaries and Kubernetes, and recommends the official Helm chart for high availability, so its Helm route assumes Helm values, ingress and TLS work and PostgreSQL operations. Ask your team to map each route against its current skills before choosing one, and confirm the versions and steps against the vendor's documentation for that route.
How is a fixed-scope DeployOpen engagement agreed and priced?
Most DeployOpen engagements are fixed-scope, and scope, deliverables and timelines are agreed in writing before work starts. The written scope is the basis for the quote, so the price follows from what is in scope and what is excluded. DeployOpen does not publish a price list. Ask for a quote that shows the systems and deployment model in scope, each deliverable such as configuration, runbooks, evidence packs and retest, the inputs you must supply such as the data map, and the items excluded, such as independent audit work. Ask who carries each task, DeployOpen or your team, including decisions and sign-off. Ongoing support, upgrades and continuous testing are offered as retainers, so separate one-time work from recurring work in the quote. Changes after signature should go through a written change to scope and quote.
Does DeployOpen certify Keycloak or Zitadel for GDPR compliance?
No. DeployOpen does not issue audit reports, attestations or certifications. It prepares the systems, controls and evidence that an assessor will review, such as access control settings, audit logging setup, data handling documentation and processing record templates. Independent auditors and certification bodies issue reports and decisions. The GDPR is enforced by independent national supervisory authorities (Article 51), so no product or vendor certificate makes a deployment compliant on its own. Zitadel's compliance statements describe its own service, including data processing agreements and Data Privacy Framework details for Zitadel Cloud. Read them with your counsel, because a self-hosted deployment is run by your organization.
What does switching away from Keycloak or Zitadel later involve?
Switching involves two workstreams to confirm with the vendor and your team before any decision: data export and identity migration. Data export covers users, groups, roles, clients and the audit records you must keep, and you should check each export path and format against the documentation for your exact version. Identity migration is harder. Password hashes, multi-factor enrollments and federation links may not move as plain data, so confirm whether they can be exported or whether users must re-enroll. Zitadel's event-sourced store keeps a full history of changes, which helps audit continuity, but confirm how that history can be exported. Run a test migration with a sample of users, record what was lost or changed, and agree the cutover and rollback plan in writing before you commit to a platform.
How DeployOpen helps prepare the EU identity evidence
DeployOpen plans, implements, hardens and documents self-hosted identity platforms inside the client's own infrastructure, so the data location, access controls and audit records that a GDPR or EU residency review asks about can be reviewed directly. For Keycloak vs Zitadel for GDPR and EU data residency, the work starts from where each platform's identity data would sit, which parts of that picture the organization controls, and which records the assessor will request.
How we scope
- Scope is agreed in writing before work starts, and engagements are fixed-scope.
- The written scope names the chosen platform, the hosting locations and the identity data flows to be reviewed.
- Confirm in writing whether the scope includes DPA review, or whether your legal team keeps that step.
How we build
- Deploy Keycloak or Zitadel in your cloud account, data center or air-gapped network, with the database in that boundary.
- Configure SSO, access control, audit logging and data handling controls so the compliance team can review them.
- For Zitadel, document which event-store records are retained and for how long, and who can export them.
How we hand over
- Handover items are set in the written scope and can include configuration records, a data location map and runbooks.
- Evidence prepared for the assessor: configuration exports, access reviews, log samples and security test findings.
- DeployOpen prepares this evidence, but independent auditors and certification bodies issue any audit report or certification.
How we support
- Keycloak plans four minor releases a year, so upgrade testing and records need a repeatable routine.
- Zitadel releases follow its own cadence, so confirm the upgrade process and version support before signing a retainer.
- Ongoing support, upgrades and continuous testing are available as retainers, priced from the written scope.

