Keycloak or OpenLDAP for GDPR and EU data residency: which fits your setup
Keycloak and OpenLDAP are both self-hosted, so neither sends identity data to a vendor processor, and GDPR residency depends on where you run each component, who operates it, and what you can show an assessor. The choice between them turns on one question: do your applications need single sign-on through SAML or OIDC, or do they only need an LDAP directory to bind against? This page covers the GDPR and EU data residency question only. The general Keycloak vs OpenLDAP comparison, including architecture and feature depth, sits on its own page. Four conditions decide the outcome: which applications need SAML or OIDC, which need LDAP, where the database and backups sit, and who operates the stack.
Keycloak is a full identity server. It handles OpenID Connect, OAuth 2.0 and SAML 2.0 logins and can federate users from LDAP or Active Directory, so it can sit in front of an existing directory. In production it needs a relational database, with support for PostgreSQL 14 to 18, MariaDB, MySQL, Microsoft SQL Server, Oracle Database and Amazon Aurora PostgreSQL. OpenLDAP is an LDAPv3 directory server built around slapd, and it suits applications that speak LDAP. For residency, the database and its backups hold the same personal data as the identity layer, so both belong inside the EU boundary you define. Ask your database and backup operators where replicas, snapshots and disaster recovery copies are physically stored, including any copies taken by a cloud provider's managed service.
Work through the setup in this order. First, list every application and mark whether it needs SAML, OIDC or LDAP. A SAML or OIDC application points you to Keycloak, while an LDAP-only application may be served by OpenLDAP directly. Second, record where the database, backups and administrator accounts sit, and whether your staff or a partner operates the stack. As the controller, you carry the security of processing duties in Article 32, and if any support or hosting access takes data to a third country, the transfer rules in Chapter V apply. Third, choose an OpenLDAP line your patch process can keep current: 2.7.1 is the feature release and 2.6.15 is the long term support release. Then ask your assessor which evidence they expect, such as configuration exports, access reviews, backup location records and upgrade history.
What GDPR asks of an identity and SSO platform
The regulation has applied since 25 May 2018 under Article 99 and names no product, so each card below is a provision your organization must map to its own controls for Keycloak, OpenLDAP or any other identity platform. The five provisions connect because a self-hosted identity service makes you the controller for every login, directory record and log it holds.
Controller role for self-hosted software
Chapter IV (Articles 24 to 43) sets the duties of controllers and processors. Keycloak and OpenLDAP are both self-hosted, so the operator is the controller for every user record, credential and log, and no vendor processor or data processing agreement sits in the chain. Check where each deployment runs, who holds administrative access, and whether any managed hosting or support partner would act as a processor. Record those roles in your processing records before go-live.
Security of processing
Article 32 requires security measures suited to the risk, and the identity store is a likely high-value target. For Keycloak, production needs a supported relational database such as PostgreSQL 14 to 18, since the default dev-file database is not suitable for production. For OpenLDAP, the main levers are access control lists, bind accounts and transport encryption, so confirm each against the OpenLDAP documentation for your release. Test that encryption covers database connections, LDAP traffic and backups, and that administrative changes are logged.
OpenLDAP security guideBreach notification duties
Article 33 requires notifying the supervisory authority of a personal data breach, and Article 34 covers informing affected people when the risk is high. For an identity platform, a breach can mean exposed credential stores, leaked sessions or a misused LDAP bind account, so detection rests on your own logs. With no vendor in the chain, nobody outside your organization will alert you, so confirm which authentication and admin events you retain, who triages them, and how your team meets the deadline Article 33 sets.
Transfers to third countries
Chapter V (Articles 44 to 50) governs transfers of personal data to third countries and the safeguards that must accompany them. Self-hosting removes the vendor transfer mechanism, but copies still move. Check backups replicated to another region, remote administration from outside the EEA, log shipping to a SIEM hosted elsewhere, and any directory replica in a cloud account in another country. Document the location of each copy that carries identity data, and have counsel confirm the transfer basis for any copy that leaves the EEA.
Supervision and fines
Article 51 places enforcement with independent national supervisory authorities. The European Data Protection Board, established by Article 68, issues guidelines and resolves disputes between authorities through binding decisions under Articles 65 and 70. Article 83 sets two fine tiers: EUR 10 million or 2% of total worldwide annual turnover for infringements such as those in Articles 25 to 39, and EUR 20 million or 4% for infringements of principles, lawful basis, data subject rights and transfer rules, whichever is higher in each case. Ask counsel which tier your identity controls could fall under.
GDPR text on EUR-LexHow Keycloak and OpenLDAP meet GDPR and EU residency controls as documented
This table sets the GDPR and EU residency controls an assessor will ask about beside what Keycloak and OpenLDAP document for each. Read each row as a list of items to confirm in your own environment, since both platforms run entirely in infrastructure you control. The main takeaway: neither platform adds a vendor to the GDPR chain, so the evidence depends on your hosting, configuration and logs.
| Requirement | Keycloak as documented | OpenLDAP as documented |
|---|---|---|
| Controller and processor role | Self-hosted. You are the controller, and no vendor acts as processor or signs a DPA. | Self-hosted. No vendor DPA exists, so confirm your controller role and any hosting provider's processor terms. |
| Data stores to locate | Relational database (PostgreSQL 14 to 18, MariaDB, MySQL, Microsoft SQL Server, Oracle Database, Amazon Aurora PostgreSQL). Dev-file database is unsuitable. | slapd directory data, plus any replicas and backends you configure. Confirm where each copy is stored. |
| Transfers under Chapter V | No vendor transfer mechanism. Confirm the location of hosting, backups and any remote support access. | No vendor transfer mechanism. Confirm the location of hosting, backups, replicas and any remote support access. |
| Security of processing (Article 32) | Protocol support for OIDC, OAuth 2.0 and SAML 2.0, plus an admin console. Confirm each security setting you rely on in your own configuration. | Security and Overlays chapters of the 2.6 Administrator's Guide. Confirm TLS, access controls and logging in your build. |
| Software currency | Current release 26.8.1 (October 13, 2026). Four planned minor releases a year, with breaking changes in minor releases opt-in. | Feature release 2.7.1 and long term support release 2.6.15. Confirm the support window for each line before you choose one. |
| Breach notification (Articles 33 and 34) | No vendor in the chain, so your own detection starts the clock. Confirm your alerting covers identity logins and admin changes. | No vendor in the chain, so your own detection starts the clock. Confirm your logging captures directory bind and change events. |
| Licensing | Apache-2.0. Confirm your obligations with counsel if you modify or redistribute the server. | OpenLDAP Public License, which the project describes as non-restrictive and open source. Confirm terms with counsel if you redistribute modified builds. |
Where identity data sits and who is the controller for each side
Both sides keep personal data wherever the operator runs them, so the operator is the controller in both cases. For Keycloak, the main store is the production relational database, which holds user records, credential data and client configuration. Keycloak needs a relational database in production and supports PostgreSQL 14 to 18, MariaDB, MySQL, Microsoft SQL Server, Oracle Database and Amazon Aurora PostgreSQL, so the engine and the place it runs are the first location decision. For OpenLDAP, personal data sits in the entries that slapd serves, and the database backend files on that host hold them. Neither product sends this data to a vendor, so no vendor DPA or transfer mechanism applies to the core store.
The EU boundary has to include every copy and every restore. For each side, list the copies: database replicas, backups and snapshots, log and audit pipelines, LDIF exports, directory replicas, and the admin tools or workstations that display records. An OpenLDAP replica is a copy, and so is any log line that carries a username if your logging configuration writes one. A backup taken in an EU region and restored into a site outside it moves the data just as a live replica would. If you federate users from LDAP or Active Directory into Keycloak, confirm whether imported user attributes are stored in the Keycloak database, how long they are kept, and which region that database occupies.
Two design choices create a transfer question to settle before go-live. Brokering logins to an external OIDC or SAML provider means that provider receives the login and returns identity attributes, so its hosting location and any onward transfers belong in your records of processing. Hosting the database with a cloud provider places the data in that provider's accounts and regions, so pin the region, confirm where backups and snapshots land, and get the provider's data location terms in writing. The development-file database is not suitable for production, so the production database location is the one an assessor will ask about first. Write down the region, replicas, backup targets and restore sites before the first user signs in.
Where Keycloak, its database and OpenLDAP sit inside the EU boundary
The diagram starts with users and applications signing in to Keycloak inside the EU boundary. Keycloak reads user records from OpenLDAP through LDAP user federation, keeps its state in the production database, and writes backups and logs inside the same boundary. The operator, shown on the left, is the controller that runs this stack. The external OIDC or SAML identity provider is optional and sits outside the boundary, so brokering logins there is a transfer decision to assess under Chapter V of the GDPR. Confirm that backup locations, log destinations and any database replicas stay in the EU.
EU boundary holding Keycloak, its database, OpenLDAP, backups and logs.
Which GDPR evidence an assessor asks for from Keycloak and OpenLDAP
An assessor will ask where identity data is stored, which copies exist (replicas, backups, logs, exports), and whether the processing is written down. Both platforms are self-hosted, so the answer comes from your own infrastructure map rather than a vendor data location statement. Neither side supplies the records of processing activities, so that record is yours to write and keep current.
- Keycloak data stores: Keycloak keeps users, realms and related data in the relational database you configure. PostgreSQL 14 to 18 is among the supported options in the Keycloak database guide. Document the host, region and backup target for that database.
- OpenLDAP data stores: slapd keeps directory entries in the backend you configure on the host where you run it. Document the backend, the hosts and the replicas that hold entries.
- Vendor position: Keycloak has no vendor processor, DPA or transfer mechanism, so the operator is the controller. For OpenLDAP there is no vendor DPA, so the same conclusion applies.
- Your records: The processing record, data inventory and retention rules are yours for either platform. Have your data protection officer review them against the controller obligations in Chapter IV of the GDPR.
Confirm every copy of identity data, including off-site backups, before the assessor's first visit.
Assessors ask who changed identity data or privileges, when the change happened, and whether the logs are protected and reviewed. Keycloak records activity through its event model and admin console, and slapd writes its own logs and can be extended through overlays. The exact options depend on your version and configuration, so confirm each one against the vendor documentation before you list it as evidence.
- Keycloak events: The Keycloak Server Administration Guide describes user events and admin events. Confirm which ones you enable, where they are stored and how long they are kept.
- Keycloak admin roles: Changes are made through the admin console or the admin REST API. Limit realm administrator roles and keep a current list of who holds them.
- OpenLDAP logging: slapd logging is set in the server configuration. Confirm the log levels, destinations and formats in the 2.6 Administrator's Guide for your build.
- OpenLDAP overlays: The overlays chapter lists the options that extend directory behavior, including auditing-related overlays. Confirm which overlays your packaged build includes before you cite one.
- Your monitoring: Central log forwarding, retention periods, access controls on the log store and periodic review are yours to design and show.
Ask for a sample export of admin and directory change records for a recent period and check that each entry names the actor, the object changed and the time.
Chapter V of the GDPR governs transfers of personal data to third countries. Self-hosting removes vendor transfers, but it does not remove remote administration, support sessions, off-region backups or identity flows to external providers. An assessor will ask which of these paths carry personal data outside the EU and what legal basis or safeguard covers each one.
- Brokered logins: Keycloak can broker logins to external OpenID Connect or SAML identity providers, which sends user attributes to that provider. Record the location of each brokered provider and the transfer basis for it.
- Directory reads: Keycloak can federate users from LDAP or Active Directory. Where the directory and Keycloak sit in different regions, the connection is a transfer path and belongs in your data flow map.
- Remote administration: Vendor or partner access to Keycloak or slapd hosts is an access control question. Record session logging, multi-factor authentication on the jump hosts and the countries from which administrators connect.
- Backups and replicas: Off-region backup targets and replicas carry personal data. Name each region in the data flow map.
- Your transfer assessment: Any transfer to a third country, including support access, is your assessment to document under Chapter V.
Map every identity attribute flow that leaves the EU, including brokered providers, backups and support access, and confirm that each one has a documented basis under the GDPR text on EUR-Lex.
Under Article 32, security of processing, an assessor expects evidence that the identity software is maintained and patched on a schedule you can explain. Both products publish release lines, but the patch record for your environment is one you create. Keeping dated records of what you ran, when you upgraded and what you tested is the evidence that answers the question.
- Keycloak release cadence: Since Keycloak 26.0 the project plans four minor releases a year and says breaking changes in a minor release are opt-in. The current release is 26.8.1, published October 13, 2026. Read the backwards compatibility notes before you plan each upgrade.
- OpenLDAP release lines: The current releases are 2.7.1 (feature release) and 2.6.15 (long term support release). Record which line you run and confirm its support window with the OpenLDAP Project.
- Your change records: Dated records showing when each upgrade was tested, approved and applied are yours. Neither vendor issues them for your environment.
- Packaging source: If you install from a distribution package, the distribution's update history may be the record an assessor asks for. Confirm which source applies to your estate.
Keep the release notes, the test result and the change approval for each upgrade you have made in the last review period, and confirm the support window for each product line you run.
Articles 33 and 34 of the GDPR set the duties to notify the supervisory authority and, in defined cases, the affected individuals. When you run both platforms yourself, no vendor processor sits in the chain to tell you about an incident, so detection, containment and the notification clock all start in your environment. An assessor will ask for the written process, the people named in it and evidence that it works.
- Detection inputs: Keycloak event and admin logs and slapd logs are the inputs your monitoring needs. Confirm what each one records before you write detection rules against it.
- Keycloak containment: Revoking sessions and disabling a compromised client are operator actions. Document the runbook and test it on a non-production copy.
- OpenLDAP containment: Disabling bind credentials, tightening access controls and restoring entries from backup are operator actions. Confirm the procedure against the version you run.
- Notification process: Your incident process needs named owners, the Article 33 and 34 decision points and the route to the competent national supervisory authority under Article 51.
- Tested restore: A restore of the Keycloak database and the directory data from backup, run on your own infrastructure, is evidence an assessor will ask for. Neither product performs that test for you.
Run a tabletop exercise and a restore test against a copy of your Keycloak database and directory data, and keep the written incident process with the test record.
Setting up Keycloak with OpenLDAP for EU residency, step by step
This sequence moves an organization from a data inventory to a tested restore, and each step leaves a record that an internal reviewer or external assessor can check. Both platforms run inside the operator's own infrastructure, so the organization configures and evidences every control itself.
Confirm the controller role and data in scope
The privacy lead and the platform owner agree who decides the purposes and means of processing identity data, then list what the directory and SSO logs hold: names, email addresses, usernames, group memberships, login times, administrator actions and any client addresses that appear in logs. Because Keycloak and OpenLDAP are self-hosted, the organization is the controller and there is no vendor processor or DPA for these components, although any cloud or data center provider beneath them may be a processor. The step is done when a signed data inventory names each attribute, its purpose and the systems that hold it.
Record EU hosting for every component
Name the location of each system that holds or copies identity data: the Keycloak servers, the database, the OpenLDAP servers, backups and log stores. For each, record the country or region, the provider account, the operator and the data center or availability zone. Where a public cloud provider runs any of these, confirm in the contract that data stays in the EU region you chose, and check whether that provider acts as a processor for your records. The step is done when a location register covers the backup copies and the log archive, which are easy to overlook, and an assessor can read it without follow-up questions.
Deploy OpenLDAP and verify TLS and authentication
The directory administrator installs slapd from the release line the organization chooses: OpenLDAP 2.7.1 is the current feature release and 2.6.15 is the long term support release. Configure TLS for client connections, either LDAPS or StartTLS, and set access controls that define who may bind and who may read password attributes, following the OpenLDAP 2.6 Administrator's Guide: Security. The step is done when a test client connects over TLS, a bind with a valid account succeeds, an unauthenticated read of user entries is refused, and the output is saved to the evidence folder.
Deploy Keycloak on a supported production database
The platform team installs Keycloak 26.8.1, the current release, either from the server distribution or with the Keycloak Operator if the target is Kubernetes or OpenShift. Connect Keycloak to an external relational database from the supported list, which includes PostgreSQL 14 to 18, and confirm that the default development file database is removed from the configuration. Place the database in the EU boundary recorded in step two, enable TLS to it, and confirm health checks respond. The step is done when an admin console login works and the realm data is stored in the external database, as Keycloak: Configuring the database describes.
Connect Keycloak to OpenLDAP through federation
Create an LDAP user federation provider in the target realm that points to the OpenLDAP servers using the TLS settings from step three, with a bind account that holds only the rights needed to read the users and groups in the inventory. Keycloak federates users from LDAP, so the directory remains the source of identity for those accounts. Write down where each password is checked: whether each login is verified by a bind to OpenLDAP or whether Keycloak keeps a copy of credentials in its own database, which depends on the edit and sync settings you choose and must be confirmed in the Keycloak Server Administration Guide. The step is done when a test user signs in to a test application and the decision record names the component that verified the password.
Enable admin and login event records
Turn on admin events and login events in the realm settings, and configure the event listener so both streams leave Keycloak for a log store the organization operates inside the EU boundary. Set the retention period on that store to a value your policy and legal basis support, and document who can read and export the records. Assessors commonly ask for administrator change records when they review access control, so keep a sample of each in the evidence folder. The step is done when a test sign-in and a test admin change both appear in the store with the expected fields, and the retention rule is written down and applied.
Set an upgrade plan against the release cadence
Since Keycloak 26.0, the project plans four minor releases a year and a major release every two to three years, and says breaking changes in minor releases are opt-in, as its backwards compatibility notes explain. The plan should state which release line you run, who reviews each release note, and where upgrades are tested first. Cover Keycloak, its database, OpenLDAP and the operating system, and name an owner for each. Confirm the OpenLDAP release cadence on the project's site, since it may differ. The step is done when the plan is approved, a staging environment inside the EU boundary mirrors production, and the first test upgrade has a recorded owner and date.
Assemble the evidence pack and test a restore
Gather the outputs from steps one to seven into one evidence pack: the data inventory, location register, TLS and access settings, database configuration, federation decision record, event retention rule and upgrade plan. Then restore the Keycloak database and the OpenLDAP data from backup into an environment inside the EU boundary, confirm that a test user can sign in, and check that restored data matches the source for sampled accounts. Record the restore steps, the operator and the results. This pack relates to the security of processing duties in GDPR Article 32, but independent auditors and supervisory authorities decide whether it is sufficient.
What buyers ask before hiring help with GDPR identity work
How much effort does a GDPR identity project take and what drives it?
Effort depends mainly on the size of the identity estate and how much evidence the work has to produce. The drivers are:
- the number of applications that sign in through Keycloak or read users from a directory
- whether an OpenLDAP directory already exists, and how many clients and services depend on it
- whether the database behind Keycloak needs high availability, which adds replication and failover design
- the evidence scope, meaning which configuration records, audit logs and retention settings an assessor will ask to see
- how much legal review of processing records and transfer terms is needed from the client's counsel
- the number of EU hosting providers in the data path, since each one is another location to document
Each driver can be sized in a written scope, so ask for the effort split by item in any quote.
How long does a GDPR identity project take with Keycloak or OpenLDAP?
The timeline follows the written scope, and the dates are agreed in writing before work starts, so ask for a schedule tied to each deliverable. Several inputs that move dates sit on the client side:
- the number of applications and whether each one needs its own SSO or federation configuration
- the change and test windows the client can offer, since cutover depends on them
- how quickly named owners in IT, data protection, legal and application teams can review and approve
- whether the database high availability design is new work or already in place
Ask the vendor how delays caused by the client are recorded in the written scope and what happens to the dates when they occur.
What do we need to provide for a GDPR identity engagement?
The client supplies named people and access, and the work depends on both being available on a set schedule. Name one owner from each group below, with decision rights, before the scope is signed:
- IT, who owns the Keycloak or OpenLDAP hosts, the database and the change process
- data protection, who owns the processing records and transfer decisions
- legal, who reviews the processing terms and any hosting contracts
- application teams, who confirm how each app signs in and what it reads from the directory
The client also gives access to the database and directory for analysis and testing, and a test window in which changes can be tried and rolled back.
Can our own team handle Keycloak and OpenLDAP GDPR work without a partner?
Yes, if the team already has LDAP, Keycloak, database and compliance skills, it can do this work alone. The skills to check for are:
- LDAP schema, bind, ACL and replication work for OpenLDAP, if a directory is in scope
- Keycloak administration, including realms, clients, user federation, SAML and OIDC configuration and upgrades
- relational database administration, backup, restore and high availability for the database Keycloak uses
- identity and access control design, covering roles, MFA and audit logging
- privacy compliance skills to map processing, retention and transfers into records an assessor can review
If one or more of these is missing, a partner can cover that part in the written scope while your team keeps ownership of the platform.
Does DeployOpen make our Keycloak or OpenLDAP setup GDPR compliant?
No. DeployOpen does not make a Keycloak or OpenLDAP setup GDPR compliant and does not issue audit reports, attestations or certificates. It prepares the systems, controls and evidence that an assessor or supervisory authority will review, and those bodies decide what is compliant. Under the GDPR, the organization is the controller for identity data it runs itself, so the obligations sit with the client, and both platforms are self-hosted with no vendor processor or DPA to sign. Confirm with the client's data protection team which records, transfer assessments and retention rules apply to its setup, and confirm with an independent auditor or the relevant supervisory authority what they will accept as evidence.
What does a DeployOpen quote for GDPR identity work include?
A quote follows from the written scope. DeployOpen does not publish a price list, so the quote is built from the scope, deliverables and timelines agreed in writing before work starts. Ask that the quote list:
- the scope, with the applications, directories, database and EU hosting locations covered and those left out
- the deliverables, such as configuration, documentation, evidence pack and handover items, with each one named
- the timeline, with dates tied to each deliverable and the client inputs each one depends on
- the one-time work, such as design, migration and testing, and the recurring items, such as support, upgrades or continuous testing under a retainer
- the assumptions and client responsibilities, so that scope changes are priced against them
Those five items let you compare two quotes on the same basis.
How DeployOpen helps prepare Keycloak and OpenLDAP for an EU residency review
DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside the client's own infrastructure, so identity data stays where the organization runs it. For an EU residency review, the work centers on showing where Keycloak or OpenLDAP stores and processes that data, who operates it, and how access and transfers are controlled. The four steps below cover how that work is scoped, built, handed over and supported.
How we scope
- Scope and deliverables are agreed in writing before any work starts, and most engagements are fixed-scope.
- The written scope names which identity flows, user stores and admin paths in Keycloak or OpenLDAP fall under review.
- We map where each directory, database, log and backup sits against the GDPR transfer rules in Chapter V.
How we build
- Keycloak runs on a production relational database such as PostgreSQL 14 to 18, placed inside your own network.
- Access control, TLS and audit logging for slapd and Keycloak's LDAP federation link follow the agreed scope.
- The scope records the exact Keycloak and OpenLDAP versions, for example Keycloak 26.8.1 or OpenLDAP 2.6.15, before build starts.
How we hand over
- Handover can include architecture and data-flow diagrams, configuration records and the evidence list agreed in the written scope.
- Test results from security testing of the setup are delivered with fixes and a retest where the scope includes them.
- Written operating notes cover backup, restore, upgrade and access review steps the client's team runs after handover.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, and a quote follows from the written scope.
- Upgrade planning should track Keycloak's minor release cadence, where breaking changes are opt-in.
- Confirm with your assessor which evidence they expect, such as data location records and access logs, before the review begins.

