Keycloak vs Authelia for GDPR and EU data residency

Both platforms are self-hosted, so identity data stays wherever you run them, but the controller duties and the evidence an assessor asks for are yours. This page covers the GDPR and EU data residency angle only.

On this page

Keycloak or Authelia for GDPR and EU data residency: which fits your setup?

Both Keycloak and Authelia are self-hosted, so residency is settled by where your organisation runs them, and the choice turns on scope. An EU organisation that must show GDPR controls and keep identity data in region is usually deciding between a full identity provider and a lighter authenticator in front of web applications. Keycloak is the first: it supports OpenID Connect, OAuth 2.0 and SAML 2.0, brokers logins to external identity providers, federates users from LDAP or Active Directory, and includes an admin console. Authelia is the second: a two-factor and single sign-on companion that a reverse proxy consults before it lets each request through. In both cases the operator is the controller, so the residency evidence you build covers your own hosting, databases and access paths. This section covers the compliance angle only. The general Keycloak vs Authelia comparison has its own page.

Start with protocols and user store, because they decide which product can serve your applications. Keycloak covers SAML service providers, external brokering and directory federation in one server. Authelia is built around forward authentication for web apps behind a reverse proxy, and it only works over HTTPS, so your TLS termination and certificate handling become part of the residency file. For each application, confirm its protocol need against the product documentation before you commit. Then map where identity data sits. Keycloak needs a relational database in production, and PostgreSQL 14 to 18, MariaDB, MySQL, Microsoft SQL Server, Oracle Database and Amazon Aurora PostgreSQL are supported, so that database's region, backups and replicas are part of the design. Check the Authelia storage documentation for the backends available to you, and confirm them against your retention policy. Finally, decide who operates the stack. Patching, backups and access review fall under the security of processing duties in Article 32, so an in-house team needs the database and platform skills for them. A team without that capacity should weigh it before choosing Keycloak.

Before you shortlist either product, write down every place identity data is stored, replicated, cached or logged, and confirm each location sits in your chosen region. For Keycloak that includes the production database, and for Authelia it includes wherever its storage and logs are written. Ask your data protection officer or counsel to confirm the controller and processor roles for the deployment, and whether any support or consulting party will touch the data, since that party needs its own contractual terms. Then test the controls you will claim: admin access, audit logging, backup restores and the breach notification path described in Articles 33 and 34 of the GDPR text on EUR-Lex. Confirm each control against the release you will deploy. The current releases are Keycloak 26.8.1, released October 13, 2026, and Authelia v4.39.28, released September 17, 2026, and Keycloak plans four minor releases a year, so set a patch routine before the assessor asks for one.

How Keycloak and Authelia meet GDPR and EU data residency, as documented

This table sets out how Keycloak and Authelia are documented against the GDPR duties that fall on a self-hosting operator. Read each cell as the vendor's documented position, then the confirm line as the work you still own: controller duties, Article 32 hardening, breach handling and encryption at rest. The main takeaway is that both platforms keep data wherever the operator runs them, so residency is decided by your hosting, backup and database choices.

RequirementKeycloak as documentedAuthelia as documented
Data locationStays where the operator runs it. Databases include PostgreSQL 14 to 18 and Amazon Aurora PostgreSQL, so confirm the region of any cloud database.Stays wherever the operator runs it. Confirm where storage, backups and any log shipping sit in your environment.
Controller, processor and DPA termsOperator is the controller. No vendor processor or DPA is involved in the self-hosted model, so confirm any third party you engage to run it.Operator is the data controller responsible for GDPR obligations. Confirm with the Authelia project whether any commercial service or support engagement would add a processor.
Security of processing (Article 32)Project plans four minor releases a year since 26.0, so plan for regular patching. Confirm hardening and admin access evidence for your deployment.Current release v4.39.28 (September 17, 2026). Confirm your patch process and hardening evidence, since Article 32 is assessed on your deployment.
Breach notification (Articles 33 and 34)No vendor notification role documented, so your incident process must cover Keycloak logs and the database. Confirm how you detect and report an identity compromise.No vendor notification role documented. Your incident process must cover Authelia logs and session data. Confirm detection and reporting steps.
Transfers (Chapter V)No vendor transfer mechanism documented. Transfers can still arise from your own hosting, backups or support choices, so map them before go-live.Data stays where the operator runs it. Transfers can still arise from your own hosting, backups or support choices, so map them.
Access controlAdmin console, realms and fine-grained authorization services. Confirm who holds realm admin rights and how admin access is reviewed.Access control rules decide which users reach which protected sites, with two-factor authentication. Confirm rule scope, user backend and who edits the rules.
Audit loggingSelf-hosted, so you decide where logs go. Confirm which admin and login events you enable and how long your SIEM keeps them.Authelia documents logging settings. Confirm log level, destination, retention and whether authentication events reach your SIEM.
Encryption in transitConfirm TLS on the Keycloak endpoint and on every database connection in your environment, with certificates you manage.HTTPS only, because session cookies require it and the project declines plain HTTP. Confirm TLS certificates and the protocol to any storage backend.
Encryption at restDepends on your database and storage layer. Confirm encryption at rest for PostgreSQL 14 to 18 or your chosen database with its vendor.Depends on the storage backend you configure. Confirm encryption at rest for that backend, plus log and backup stores.

What the vendor covers and what the organization still configures

Self-hosting moves identity data processing into your own infrastructure, so GDPR questions shift from vendor paperwork to your configuration. Each project supplies software and license terms, while your team chooses the region, database, access paths and logs that an assessor will examine. The cards separate what each project provides from what your organization must configure and evidence.

Keycloak: what the project provides

The Keycloak project publishes its server under Apache-2.0, so the license terms are fixed in a file you can place in your records. Its release model matters for residency work: the project plans four minor releases a year, and since Keycloak 26.0 breaking changes in a minor release are opt-in. That lets you schedule a change window and test a new minor release in a non-production copy before the data-bearing environment moves. Confirm the support window for the line you run before you commit.

Compatibility policy

Keycloak: what you configure and evidence

Keycloak needs a relational database in production, and your team picks where it runs. PostgreSQL 14 to 18, MariaDB, MySQL, Microsoft SQL Server, Oracle Database and Amazon Aurora PostgreSQL are supported, and the default dev-file database is not suitable for production. Record the region of the server and database, the TLS termination and certificates, who holds admin console access, where logs are sent, and how patches and upgrades are applied. An assessor will ask for each of these as dated, documented evidence.

Database guide

Authelia: what the project provides

Authelia is licensed under Apache-2.0, and the project publishes a security measures overview that you can file with your assessment evidence. Its design only serves websites over HTTPS, since its session cookies require it, and the project declines to support plain HTTP. That removes one setting from your list, but it does not replace your own certificate issuance, renewal and monitoring. Check the published measures against your own threat model and record the version you reviewed.

Security measures

Authelia: what you configure and evidence

Authelia sits behind your reverse proxy, which asks it whether to allow each request, so the proxy routing decides what reaches it. Your access control rules decide which users reach which domains and paths, so keep them in version control and dated for review. Choose the storage and user backend deliberately, because that is where authentication data physically resides for residency purposes. Send logs to a destination you control and retain the logging settings as evidence.

Access control docs

Controller role stays with you

For both platforms, the operator that runs the software is the data controller and carries the GDPR obligations, because neither platform involves a vendor processor for your identity data. That places the security of processing under Article 32, breach notification under Articles 33 and 34 and the transfer rules in Chapter V on your deployment. Fines under Article 83 attach to your organization. Name the controller and the owner of each control in your records before the assessment starts.

GDPR on EUR-Lex

Where identity data sits in each stack and what residency means for it

Residency is a property of the deployment, and the license does not decide it. Keycloak and Authelia are both self-hosted, so identity and authentication data stays wherever the operator runs it, and the operator is the controller responsible for GDPR obligations. The operator chooses the region of the server, the database and the backups, and each is a separate decision. For Keycloak, the relational database holds the identity data and must run in production on PostgreSQL 14 to 18, MariaDB, MySQL, Microsoft SQL Server, Oracle Database or Amazon Aurora PostgreSQL. That makes the database location a residency decision in its own right. Ask who hosts the database, where its replicas and snapshots sit, and whether the backup target is in the same region as the primary.

Authelia needs the same treatment, but its components differ. Its storage and user backend are configured by the operator, so the assessor's first question is where each one lands. Use the Authelia storage documentation to confirm which backend your configuration uses, then check whether it sits on the same host, in the same region and under the same backup routine as the rest of the stack. Next, check the access control documentation for which rules and session data are persisted. Record the answer for each component, including user credentials if they come from a file or LDAP backend. Authentication logs also count as personal data, so confirm where the logs are shipped and how long they are kept before you make any residency statement.

Brokering logins to an external identity provider is the part of the flow an assessor will press on hardest. Keycloak can broker logins to external OpenID Connect or SAML identity providers, and the authentication step then happens outside the organisation's control. The upstream provider's location, its retention of login data, and the attributes it sends back to Keycloak all become part of the residency record. Confirm the upstream options available in Authelia's documentation before making any claim about them. Before go-live, list every upstream provider, record the region where it authenticates users, and confirm which attributes it returns. Ask each provider for its data processing terms, because every upstream provider becomes part of your residency record.

Both login paths stay in the operator's region unless brokering leaves it

The diagram starts at the user browser, which reaches protected applications over HTTPS. In the Authelia path, the reverse proxy asks Authelia whether to allow each request, and unauthenticated users are sent to the Authelia login portal. In the Keycloak path, applications redirect the browser to Keycloak over OpenID Connect or SAML, and Keycloak keeps its state in a relational database. The external identity provider sits outside the operator's region because brokered logins leave the boundary. Check where that provider is hosted, which data it receives at each login, and confirm whether the database connection uses TLS, since the diagram labels it only as a connection.

Login paths inside the operator's EU region, with the external identity provider outside.

The evidence an assessor asks for and how each side produces it

Keycloak's evidence comes mostly from the deployment you build around the server. The product documentation explains the settings, but an assessor will want exports and records from your own instance: where it runs, how the database is set up, and who can change it. Tie every export to the version you run, since the project plans four minor releases a year.

  • Data location map: A dated diagram of the hosts, regions, backup targets and any log destinations used by the Keycloak nodes, drawn from your deployment because the server does not choose where identity data is stored.
  • Database configuration: Exported settings for the production database, which Keycloak requires to be a relational database such as PostgreSQL 14 to 18, with its region, encryption settings and access list. See the Keycloak database guide for the supported options.
  • Admin access records: The realm administrator accounts and role assignments exported at a point in time, plus access logs for the admin console and the hosts that run Keycloak.
  • Logs and events settings: Config exports for event logging from the Keycloak server administration guide, showing whether user events and admin events are stored, where, and for how long. Confirm with the vendor which events each version records, because event coverage can change between releases.

Check that each export matches the running instance rather than a template, and that the events you show the assessor are the ones your version actually writes.

Logging and breach evidence: what you must add yourself

Both platforms can write logs, but writing logs is not the evidence an assessor looks for. Under the GDPR, the question is whether your organisation can meet the notification duties in Articles 33 and 34 after an incident involving identity data, and whether you can show that security of processing under Article 32 holds over time. Authelia documents its output in its logging configuration reference, which tells you what your team can capture and forward. Treat that output as an input to your breach process, and keep the two documents separate. Confirm the log fields and levels against the Authelia version you deploy, because the format becomes part of what you document for review.

Keycloak's server administration guide covers event logging and admin event logging, which is where login events, failed authentications and admin console changes come from. Check that guide against the Keycloak release you run, since the current upstream release is 26.8.1 and the guide labelled latest may describe a different line. The work that falls to you starts here. Ship logs from both platforms to a store located in the same EU region as the identity data, so logs containing personal data do not leave the region by default. Set retention in your own policy, sized through legal and security review rather than left at tool defaults. Restrict who can read and delete these logs, and record that access.

The runbook is the part an assessor will test. Write a procedure that names who decides whether an event is a personal data breach, how the team uses the logs to establish which accounts and systems were affected, and who prepares the notice to the supervisory authority under Article 33 and any message to individuals under Article 34. Confirm the notification deadline with your data protection officer or counsel before you rely on any figure. Then run the procedure once against logs from your own environment and keep the exercise record. The fine bands in Article 83 of the GDPR reach EUR 10 million or 2% of worldwide annual turnover for infringements such as Articles 25 to 39, and EUR 20 million or 4% for the higher tier, with the higher amount applying in each case. That exposure is why the records you can produce after an incident matter.

Setting up Keycloak or Authelia for GDPR and EU data residency

This sequence takes a self-hosted identity platform from inventory to a set of evidence an assessor can review under the GDPR. Each step ends with a check or artifact you can file. Steps 2, 3, 4 and 6 depend on the side you choose, while steps 1, 5 and 7 apply to either product.

  1. Map every component and its region

    Start with a written inventory of the identity path: the platform, its database or storage, the proxies or applications that depend on it, the user directory, backups and the logging pipeline. Record the region where each one runs and who operates it. Both products run in your infrastructure, so you are the controller for the data they hold, but any hosted email, SMS or push service you connect adds a processor you must document. The output is a data-flow diagram and inventory table that your data protection owner signs off.

  2. Place database, storage and backups in region

    This step depends on the side you choose. Keycloak needs a relational database in production, and supported options include PostgreSQL 14 to 18, MariaDB, MySQL, Microsoft SQL Server, Oracle Database and Amazon Aurora PostgreSQL. Its default file database is documented as unsuitable for production. For Authelia, confirm which storage backend your version supports in the storage documentation and where it runs. Put the primary database, any replicas and backups in the same region, and record the encryption and location of each copy. The check is a restore test that completes with the data staying in region.

  3. Enforce HTTPS on every endpoint

    Authelia only works for websites served over HTTPS, because its session cookies require it, and the project declines to support plain HTTP. Enforcement is therefore built in on that side, and you should still verify it. For Keycloak, you configure TLS yourself on every endpoint, including the admin console, login pages and token endpoints, and you confirm the settings for your release in the server administration guide. Scan each public hostname and confirm that plain HTTP requests are refused or redirected. The output is a scan report and a list of TLS settings per endpoint.

  4. Lock admin access and confirm second factors

    Admin access is where the two sides differ most, so review each one separately. For Keycloak, list who holds realm admin rights, remove shared accounts, and confirm the second-factor methods your release supports for administrators in the server administration guide. For Authelia, review the access control rules and confirm each second-factor option against its second-factor documentation. Record whether any administrator connects from outside the EU, and take counsel's view on the transfer rules in Chapter V (Articles 44 to 50). The output is a dated admin list with second factors, reviewed by someone outside the platform team.

  5. Route logs to in-region storage with retention

    Both products write logs that can contain usernames, client identifiers and IP addresses, so treat them as personal data. Route them to storage in the same region as the identity platform. Check the Authelia logging documentation and the Keycloak logging settings for your release to confirm which destinations each side supports. Set a written retention period that matches your policy, then configure the log store to enforce it. The check is a test event that arrives in the in-region store and a tested deletion job for expired entries.

  6. Set a patch process matching release cadence

    Cadence differs between the two sides, so write one process for each. Keycloak 26.8.1, released October 13, 2026, is the current release, and since Keycloak 26.0 the project plans four minor releases a year and a major release every two to three years, with breaking changes in minor releases opt-in. Authelia v4.39.28, released September 17, 2026, is its current release, so check the Authelia releases page for its patch history before you commit to a schedule. Record the owner, a test environment, the approval step and the rollback path for each. The output is a runbook per side that someone has run once on a copy of production.

  7. Assemble evidence pack and test breach runbook

    Collect what an assessor will ask for: the data-flow inventory, region records for the database and backups, TLS scan results, the admin list with second factors, and log retention settings. Article 32 covers security of processing, and Articles 33 and 34 cover breach notification to the supervisory authority and to affected individuals, so the runbook should name who decides and who notifies. Run a tabletop exercise on an illustrative incident and record every gap it exposes. The output is an evidence index that maps each item to its step, plus a dated exercise record. DeployOpen prepares this evidence, and an independent assessor reviews it.

Keycloak vs Authelia for GDPR: questions buyers ask before hiring help

How much effort does a Keycloak or Authelia GDPR project take?

Effort depends mostly on how much the platform has to cover, so count the applications, protocols and data stores before comparing quotes. For Keycloak, the main drivers are the number of applications and client configurations, the protocols in use (OpenID Connect, OAuth 2.0 and SAML 2.0), user federation from LDAP or Active Directory, the production database and any high availability design, and how much evidence the assessor expects. Authelia sits in front of reverse-proxied websites, so its work centers on proxy integration, access rules and its user backend, which is usually a smaller set of decisions. Evidence volume matters for both platforms: logging, log retention, access reviews and records of processing take time whatever you choose. Ask any implementation partner to break the effort into these components in the written scope.

How long does a GDPR identity project take with DeployOpen?

Timing is set in the written scope, which is agreed before work starts. No general duration applies to every Keycloak or Authelia engagement, because the schedule follows the same drivers as effort: the number of applications to onboard, whether the database and high availability design already exist, how many environments need work, and how quickly your owners can review and approve decisions. Your own calendar matters too, since privacy and security sign-off often moves on a different schedule than engineering. Ask for the milestones, the dependencies on your side, the review points and what happens if an owner is unavailable. Most engagements are fixed-scope, so the timeline and deliverables should appear together in the document you sign, with a clear end point for handover.

What does our team need to provide for a GDPR identity project?

You need named owners and access to the hosting accounts before work starts. Name one person for each area: privacy (records of processing, data subject requests, retention rules), security (control design, access reviews, incident response), infrastructure (cloud accounts, data centers or air-gapped networks, backups, network paths) and the application teams that own each system the platform will sign users into. Each owner should be able to approve decisions in their area, because open questions about where user data is stored or how long logs are kept will stall the build. The team also needs access to the hosting accounts where the platform runs, with enough rights to create compute, database and storage resources and to read the logs. Agree the handover owner in writing, so the people who receive the platform know who maintains it after the engagement closes.

Can our own team run a Keycloak or Authelia GDPR setup alone?

Yes, a capable team can run either platform alone, because both are open source under Apache-2.0 and the software carries no license fee. The gaps usually sit in two places: documentation for the decisions your organization has to make, and testing that shows the setup works the way an assessor expects. Keycloak needs a production relational database, clustering choices and an upgrade routine that keeps pace with its regular minor releases, so plan those operating skills before the first deployment. Authelia has a smaller footprint, but its session cookies require HTTPS, and its access rules must be tested against each protected site. Ask whether your team can write the configuration baseline, run restore tests, perform security testing and keep the evidence current. If one of these is thin, you can buy that piece separately, so the decision can be split task by task.

Does self-hosting Keycloak or Authelia remove our GDPR duties?

No. Self-hosting keeps user and authentication data where you run it, which helps with data location, but the operator is the controller for both platforms and carries the GDPR obligations. There is no vendor processor and no data processing agreement with either open-source project, so duties you would normally share with a SaaS provider stay with you. These include the lawful basis for processing, transparency to users, responding to data subject requests, security of processing under Article 32, and breach notification under Articles 33 and 34. Your records of processing, retention periods for login and audit logs, and transfer assessments for any third party in the chain, such as a hosting or support provider, still need a named owner. Read the regulation on EUR-Lex and have your data protection officer confirm how each duty applies to your setup.

How is a quote built for a Keycloak or Authelia engagement?

A quote follows from the written scope, because DeployOpen does not publish a price list. Before pricing, the scope document lists the applications, protocols, database and high availability design, environments, testing, evidence deliverables, handover and the support period you want. The cost has several parts: planning and design, implementation and integration, hardening, testing and retest, documentation and handover, and any ongoing retainer for upgrades and continuous testing. The software carries no license fee under Apache-2.0, so the costs come from the infrastructure you pay your cloud or data center provider for, staff time on your side, and external services. Some costs are one-time, such as the initial build, while others recur, such as hosting, patching and support. Ask for each line item separately, with assumptions, exclusions and a change process for scope additions, so you can compare quotes on the same basis.

How DeployOpen prepares Keycloak or Authelia for GDPR review

DeployOpen plans, implements and documents Keycloak or Authelia inside your own infrastructure, so the data location, access controls and evidence stay under your team's control. Both are self-hosted here, which makes your organization the data controller under GDPR and the party that must show how identity data is handled. DeployOpen prepares the systems, controls and evidence for your review; it does not issue audit reports or certifications.

How we scope

  • The written scope names the platform, the systems it must protect and the user sources it reads from.
  • Data flows are mapped for the chosen platform, including where identity and authentication records are stored and logged.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before any work starts.

How we build

  • Keycloak or Authelia is deployed in your cloud account, data center or air-gapped network, in the location you select.
  • Authentication, SSO, user sources and admin access are configured and hardened, including session cookie and HTTPS settings for Authelia.
  • Logging, audit trails and access controls are set up so your team can review who changed identity settings and when.

How we hand over

  • A written record of data locations, data flows, retention settings and the operator roles that control each system.
  • Configuration files, runbooks and an upgrade plan that matches the release line you run.
  • An evidence pack organized by control area, so your independent auditor can test what the systems actually do.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer after handover.
  • Upgrade planning for Keycloak accounts for its planned four minor releases a year and opt-in breaking changes.
  • Questions from your assessor are answered from the evidence on file, with gaps flagged for your team to close.

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.