Keycloak vs Zitadel for GDPR and EU data residency

Keycloak fits when the identity store must stay in infrastructure the organization runs in the EU. Zitadel fits when the organization also needs a vendor DPA and a chosen Cloud region. Both still leave evidence and configuration work with the organization.

On this page

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.

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.

RequirementKeycloak as documentedZitadel as documented
Controller and processor rolesThe 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 transfersData 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 mechanismNo 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 processingControls 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 supportNo 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 trailConfirm 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 rolesAdmin 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 attestationsNo 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.

Who carries each control: vendor side and organization side

Each control in this comparison sits with one of three parties: the open source project, the organization that runs Keycloak or Zitadel, or the vendor that hosts Zitadel Cloud. The cards show what each side covers, what your team still configures and evidences, and what to confirm in writing before an assessor asks.

Keycloak project terms

The Keycloak project is licensed under Apache-2.0 and runs no hosted service for your identity data, so it holds no processor role and offers no DPA or transfer mechanism. The project covers the software license and its release notes. Your team still chooses the version, records where each instance runs and keeps the release history for assessors. Confirm in writing that any commercial support contract you add states its own data handling terms, since that contract is separate from the open source license.

Keycloak repository

Keycloak operator obligations

Running Keycloak yourself means your organization is the controller, so the hosting location, production database, TLS, backups and upgrades are all yours. Keycloak needs a relational database in production, and PostgreSQL 14 to 18 is among the supported options, so pin the database version and region in your records. The project plans four minor releases a year and says breaking changes in a minor release are opt-in, so schedule each upgrade, test it and keep a dated change log. Confirm your restore procedure and key handling with your assessor before the review starts.

Keycloak release updates

Zitadel Cloud vendor terms

Zitadel offers a Data Processing Agreement under EU and UK GDPR, which is the contract that governs how Zitadel handles your data in Zitadel Cloud. Zitadel Cloud runs on Google Cloud Platform in customer-selected regions, including the EU, so the region is a decision you make before tenant data exists. Zitadel states it self-certifies under the EU-U.S. and Swiss-U.S. Data Privacy Frameworks, with JAMS as recourse mechanism. Confirm the region in writing, keep a dated copy of the compliance page and ask which DPA version applies to your account.

Zitadel compliance page

Self-hosted Zitadel operator duties

Self-hosting makes your organization the controller for an event store that records every change as an event over an unlimited period. Zitadel recommends Kubernetes with the official Helm chart for high availability, and PostgreSQL 14 to 18 is the supported database, so you own the cluster design, failover tests and backup scope. Define retention and erasure in the event store, document how an erasure request is handled in an append-only record, and confirm that approach with Zitadel for your version. Keep backup and restore test results as evidence for the assessor.

Zitadel database docs

Contract and assessor scope

Before you rely on any vendor paper, confirm three things in writing: that the DPA covers the deployment you chose, which Zitadel entity processes your data, and which transfers the Data Privacy Framework path covers. Self-certification is tied to the entities it names, so an EU region choice is a separate residency control that needs its own evidence. Ask your assessor to map each control to the document that proves it. DeployOpen prepares control evidence for compliance assessments but does not issue audit reports or attestations.

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.

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.

  1. 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.

  2. 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

  3. 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

  4. 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.

  5. 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.

  6. 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.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.