Keycloak vs Zitadel vs FreeIPA

Keycloak suits SSO for your own web and API applications, Zitadel suits multi-tenant B2B products where customers manage their own users, and FreeIPA suits Linux identity, Kerberos and certificates. This page compares licensing, hosting, effort and cost so you can shortlist with evidence.

On this page

Keycloak vs Zitadel vs FreeIPA: which one fits your identity estate

Choose Keycloak when the main job is single sign-on into your own and third-party web and API applications, Zitadel when your product must let each customer organization manage its own users, and FreeIPA when the job is Linux and UNIX identity with Kerberos, host policy and an integrated certificate authority. Keycloak supports OpenID Connect, OAuth 2.0 and SAML 2.0, brokers logins to external identity providers and federates users from LDAP or Active Directory, so it suits an application estate that spans many protocols. Zitadel groups work into instances, organizations and projects, and each customer organization can bring its own identity provider, which fits B2B software. FreeIPA combines the 389 Directory Server, an MIT Kerberos KDC, a Dogtag certificate authority and SSSD on clients, so it is the natural center of a Linux estate that needs host-based policy.

The choice is often not one or the other. Keycloak can federate users from an LDAP directory such as FreeIPA's, so a common pattern is FreeIPA as the system of record for people, groups and Linux hosts, with Keycloak in front of web and API applications. Confirm this in your own environment before you commit. Check that the user and group attributes your applications need are exposed through the LDAP mapping, decide which system owns password changes, account lockout and MFA enrollment, and test how Kerberos logins and Keycloak browser logins behave for the same user. The Keycloak server administration guide covers the federation settings you will need to review.

Hosting and operating effort differ as well. Keycloak needs a relational database in production, with PostgreSQL 14 to 18 among the supported options, and its high availability designs depend on a synchronously replicated database. Self-hosted Zitadel also uses PostgreSQL 14 to 18, and since v3 its core has been licensed under AGPL-3.0-only, so have counsel review what the network copyleft terms mean if you modify it and serve customers through it. FreeIPA is GPL-3.0-or-later with no paid edition of its own, and its deployment guidance calls for at least two to three replicas in each datacenter. Its backup documentation also warns that the first server handles certificate renewal by default, so plan backups and restores around that. Ask any vendor or partner for a written scope that covers replicas, backups and upgrades before you size the team.

Which of Keycloak vs Zitadel vs FreeIPA fits your scenario?

This table matches five common scenarios to the platform that fits them best, with the condition under which each fit holds and one check to run before you decide. Read each row against your own estate: the user source, the number of Linux hosts, and whether your customers or your own staff are the people logging in. The main takeaway is that the three platforms overlap but solve different problems, so the scenario usually decides the choice before features do.

ScenarioBest fitWhen the fit holdsConfirm before deciding
Linux or UNIX estate needing Kerberos single sign-on and host-based policyFreeIPA, as an integrated Linux identity suiteMost users and servers run Linux and you want Kerberos tickets and host-based access rules managed centrally.Confirm that clients enroll with SSSD and that your DNS and replica layout follows FreeIPA's deployment recommendations.
SaaS or B2B product whose customers manage their own usersZitadel, with organizations per customer inside one instanceFit holds when each customer needs its own organization, identity provider and admin delegation within one platform.Confirm with counsel that AGPL-3.0 obligations fit how you distribute and host the platform.
Internal web and API applications needing OIDC or SAML, with brokering to external identity providersKeycloak, as a general-purpose SSO serverFit holds when you run many applications with mixed protocols and need brokered logins to external OIDC or SAML providers.Confirm your production database (PostgreSQL 14 to 18 or another supported engine) and high availability design before you commit.
Existing Active Directory or LDAP directory to keep as the user sourceKeycloak, federating users from AD or LDAP for application loginFit holds when applications are the main consumers and the directory stays the source of truth.Confirm whether changes made in the platform must write back to AD or LDAP, and how your chosen version handles it.
Team that needs a built-in record of identity changesZitadel, whose event sourcing records every changeFit holds when you need a complete change history for identity objects kept over a long retention period.Confirm with your auditor that the event store meets your evidence and retention requirements, and plan how you export it.

Where FreeIPA, Keycloak and Zitadel can sit in one estate

This diagram shows one possible pattern. It is not a required design. It starts inside the client network, where FreeIPA acts as the LDAP directory and Kerberos source for Linux hosts and users. Keycloak federates users from that directory and brokers OIDC or SAML logins to internal applications. A partner identity provider sits outside the trust boundary and reaches Keycloak through brokering. Zitadel runs as a separate multi-tenant platform for customer-facing products. Every connection depends on your network, directory layout and identity policy, so confirm each hand-off, including where Zitadel is hosted, before you adopt this shape.

One possible layout of FreeIPA, Keycloak and Zitadel with the trust boundary marked.

How Keycloak vs Zitadel vs FreeIPA differ on protocols and directories

This table compares how Keycloak, Zitadel and FreeIPA handle protocols, directory federation, provisioning, two-factor methods, databases, deployment and recovery. Read each row against your application mix: web and API single sign-on points toward Keycloak or Zitadel, while Kerberos and Linux directory needs point toward FreeIPA. Where a cell says to confirm, check the project's current documentation or ask the vendor before you commit.

CapabilityKeycloakZitadelFreeIPA
License and current releaseApache-2.0. Keycloak 26.8.1, released October 13, 2026AGPL-3.0-only since v3, with APIs and SDKs under Apache-2.0. Zitadel v4.19.5, released October 15, 2026GPL-3.0-or-later, community project with no paid edition. Newest tag is release-4-13-4
OpenID Connect, OAuth 2.0 and SAML 2.0Supported, and can broker logins to external OIDC or SAML identity providersImplemented: OpenID Connect, OAuth 2.0 and SAML 2.0Confirm with the FreeIPA project whether it serves OIDC or SAML to modern web applications. Its core protocols are Kerberos and LDAP.
LDAP or Active Directory federationFederates users from LDAP or Active DirectoryUpstream login from LDAP and OpenLDAP, with a different identity provider possible per customer organization389 Directory Server provides the LDAPv3 directory. AD users reach Linux resources through a cross-forest trust with Windows Server 2008 R2 or later
SCIM v2 provisioningConfirm SCIM v2 support and version with the Keycloak project before you rely on itStandardized SCIM v2 service provider interface for user provisioning and lifecycleConfirm with the FreeIPA project whether SCIM v2 is available
Device authorization grantConfirm with the Keycloak project before planning device sign-inProvided for devices such as smart TVsConfirm with the FreeIPA project before planning device sign-in
Kerberos single sign-onConfirm Kerberos support with the Keycloak projectNot among the documented protocols. Confirm with Zitadel if Kerberos is requiredCore feature: MIT Kerberos KDC provides single sign-on for Linux and UNIX estates
HOTP and TOTP two-factor supportConfirm supported one-time password methods with the Keycloak projectConfirm supported one-time password methods with Zitadel before rolloutHOTP (RFC 4226) and TOTP (RFC 6238), including YubiKeys. Can proxy OTP checks to an existing RADIUS server
Database and self-hostingPostgreSQL 14 to 18, MariaDB, MySQL, SQL Server, Oracle, Aurora PostgreSQL. Operator via OLM, kubectl or experimental HelmPostgreSQL 14 to 18 only. Linux or macOS binaries, Docker Compose or Kubernetes with the official Helm chartData stored in 389 Directory Server. Installed from distribution packages on Fedora, Debian, CentOS and RHEL
High availability and backupThree documented HA designs, both supported ones need a synchronously replicated database. Confirm backup tooling with KeycloakKubernetes with the official Helm chart recommended for HA. Confirm backup tooling for the PostgreSQL event storeTwo to three replicas per datacenter. ipa-backup and ipa-restore; restoring an outdated backup into active replicas can break replication

How to narrow the shortlist before a proof of concept

This sequence narrows Keycloak, Zitadel and FreeIPA to the one or two that fit your protocols, license position, data rules and staffing before any proof of concept is built. Each step ends with a written output that a named owner signs off, so the shortlist changes only on evidence. Skip a step only if its answer is already settled in writing.

  1. List protocols, directories and client types

    Write down each application that needs single sign-on, its protocol, each directory it reads from and each client type. Keycloak covers OpenID Connect, OAuth 2.0 and SAML 2.0, and federates users from LDAP or Active Directory. Zitadel covers the same web protocols, adds a device grant and SCIM v2 provisioning, and federates from LDAP or OpenLDAP. FreeIPA centers on Kerberos, LDAP and certificates for Linux hosts, so confirm in its documentation whether any web protocol you need is covered. The IAM lead and application owners sign the list once every requirement has a yes or no for each platform.

  2. Have counsel review the license terms

    Ask counsel to review the license terms against how you will host, modify and distribute each platform. Keycloak is licensed under Apache-2.0. Zitadel's core moved from Apache-2.0 to AGPL-3.0 with Zitadel v3, while its APIs, SDKs and Helm charts stay Apache 2.0, and a commercial license is offered. FreeIPA is GPL-3.0-or-later, and as a community project it has no paid edition of its own. Counsel should confirm what the AGPL obligations mean for your internal portals and whether your use needs the commercial Zitadel license. Legal and procurement sign the memo, and the step closes with one written license position per platform that the shortlist cites.

  3. Set data location and administration rules

    Decide where identity data may live and who may administer it. Keycloak needs a supported relational database in production, so the database host, its backups and DBA access fall inside your data boundary. Zitadel records every change as an event in PostgreSQL 14 to 18, which gives a built-in audit trail. FreeIPA keeps users, groups and policy in its own replicated directory and issues certificates from its integrated CA. Name an administrator for each platform, and confirm that your security and data protection owners accept the storage location. The step closes with a one-page data map and an admin roster approved by the CISO or security lead.

  4. Count the operators you can staff

    Count the people who can run each platform after go-live, including those who can install it. Keycloak in production needs a supported database, a clustered design with a synchronously replicated database for high availability, and someone to track the planned four minor releases a year. Zitadel self-hosting runs on PostgreSQL 14 to 18, and Zitadel recommends Kubernetes with the official Helm chart for high availability. FreeIPA recommends at least two to three replicas in each datacenter, no more than four replication agreements per replica, and dedicated servers. Platform engineering and the DBA lead decide whether the headcount covers on-call and upgrades. The step closes with a staffing table per platform that the platform manager approves.

  5. Test one application against one directory

    Build a proof of concept with one application and one directory that resembles production. For Keycloak or Zitadel, connect the chosen directory through federation and confirm login, group mapping and user removal. For FreeIPA, test Kerberos login from a Linux client, and if Active Directory users must reach Linux resources, test a cross-forest trust. Score each platform against the criteria from steps one to four, and include a backup and restore test plus a dry-run upgrade. The step closes with a written go or no-go decision signed by the IAM lead and the application owner.

What each license and edition means for cost and compliance review

Keycloak is licensed under Apache-2.0, so the server software carries no license fee. The project is a Cloud Native Computing Foundation incubating project, which gives reviewers a governance model to assess but does not replace a support contract. The Red Hat build of Keycloak is Red Hat's supported distribution based on the open source project, and it replaces Red Hat Single Sign-On. Its terms are not set by the open source license, so request them from Red Hat before comparing it with a self-supported deployment.

  • Free: the Apache-2.0 server software and the right to use, modify and redistribute it under that license.
  • Paid, if chosen: a Red Hat build subscription with terms set by Red Hat. Ask what the subscription covers and for how long.
  • Recurring costs either way: staff time for upgrades, monitoring, and the production database. If you choose a commercial database such as Oracle Database or Microsoft SQL Server, its license is an additional recurring cost.
  • Upgrade effort: the project plans four minor releases a year and says breaking changes in minor releases will be opt-in, so budget upgrade testing as a standing task.
  • Quote items: the subscription scope, support hours, supported versions, patch windows, upgrade assistance, and whether Operator and database support are included.

Confirm whether your compliance reviewers require a vendor-backed build or accept community support, because that decision sets the subscription line in any quote.

Where identity data lives and who can audit changes

Keycloak keeps realms, users and client configuration in a relational database, so the database is where identity data lives and where your backup and restore plan starts. A production deployment needs one. The default dev-file database is for development only and should not hold production users. Keycloak supports PostgreSQL 14 to 18, MariaDB, MySQL, Microsoft SQL Server, Oracle Database and Amazon Aurora PostgreSQL, so teams that already run one of these can reuse that platform. On Kubernetes or OpenShift, the Keycloak Operator manages the server along with the KeycloakRealmImport, KeycloakOIDCClient and KeycloakSAMLClient resources. Keycloak recommends installing the Operator through Operator Lifecycle Manager, with kubectl as the other route. Before you commit, confirm that your database team can restore that database to your recovery target, and confirm where Keycloak admin events are written and how long your configuration keeps them. Keycloak Operator installation covers both install routes.

Zitadel records change history differently. It is built on event sourcing, storing every change as an event, and its documentation describes this as a built-in audit trail of all changes over an unlimited period. The audit trail covers the change history itself, but retention and export are separate questions. Confirm with Zitadel how long events are kept in a self-hosted instance, whether any retention or pruning setting applies, and how you export the event history into your SIEM or evidence store. Self-hosted Zitadel uses PostgreSQL, with versions 14 through 18 supported, so the same database planning applies as for Keycloak. You can run it from Linux or macOS binaries, with Docker Compose, or on Kubernetes, where the official Helm chart is the route the documentation recommends for high availability. The Zitadel event store overview explains how the event history is structured.

FreeIPA keeps identity data in 389 Directory Server, a multi-master LDAPv3 directory, so changes made on one replica flow to the others through replication agreements. The deployment recommendations advise at least two to three replicas in each datacenter and no more than four replication agreements per replica. Backups use ipa-backup and ipa-restore, either as full backups or as online data-only backups. Read the backup documentation before you need it. It warns that the first server handles certificate renewal and CRL publication by default, and that restoring an outdated backup into an active replica topology can break replication. Agree in writing which server is first, who owns CA renewal and CRL duties if that server fails, and how a restore is sequenced across replicas before an incident. Also confirm where directory changes are logged for your auditors.

What drives the running cost of each platform

Each platform's running cost comes from where it keeps state, how many servers it needs for availability, what vendor support you buy and who operates it. In every card, one-time work such as installation, integration and migration is set apart from recurring work such as operations, upgrades and support.

Keycloak database and high availability

Keycloak's running cost starts with its database. Production needs a relational database such as PostgreSQL 14 to 18, and both supported high-availability designs need a synchronously replicated database. One-time work covers the cluster build, database sizing and the Operator setup. Recurring work covers backups, failover tests and upgrades, since the project plans four minor releases a year and makes breaking changes in minor releases opt-in. The quote should itemize database hosting or licensing, cluster nodes and the work for each minor upgrade.

Keycloak HA overview

Zitadel PostgreSQL and Kubernetes

Zitadel's running cost centers on PostgreSQL operations, since self-hosted Zitadel uses PostgreSQL 14 to 18 as its database. One-time work covers the cluster build, database setup and integration, and recurring work covers backups, minor upgrades and the Kubernetes upkeep that the recommended Helm-based high-availability setup brings. The core is AGPL-3.0 with a commercial license offered, so ask Zitadel and your counsel whether you need it, and have the quote itemize each line.

Zitadel database docs

FreeIPA replica planning

FreeIPA's running cost is set by replica count: plan two to three replicas in each datacenter, with no more than four replication agreements per replica. One-time work covers dedicated servers, replica deployment, DNS and PKI placement, and client setup, and recurring work covers replica patching, ipa-backup runs and restore tests, since restoring an old backup into a live topology can break replication. The quote should itemize servers per datacenter, which replicas run PKI or DNS, and the backup and restore test.

Vendor support subscriptions

Vendor support is a recurring subscription, while moving to a vendor build is a one-time migration. Red Hat supports a build of Keycloak and packages FreeIPA as Identity Management in RHEL, while FreeIPA itself has no paid edition of its own. The quote should itemize each subscription and its support window, and the vendor should confirm the renewal terms and the upstream version it tracks in writing.

Red Hat build page

Staff skills for all three

Each platform needs different core skills: relational database administration for Keycloak, PostgreSQL and Kubernetes for Zitadel, and 389 Directory Server, MIT Kerberos, Dogtag, DNS and SSSD for FreeIPA. One-time work covers training and runbooks for each platform, and recurring work covers on-call cover and keeping those skills in-house as staff change. The quote should itemize training, runbook writing and any ongoing on-call cover as separate lines, so you can see which skills your own team must keep.

What implementing Keycloak, Zitadel or FreeIPA involves

Implementing Keycloak starts with realm and client design, since realms bound users, roles and federation. Decide whether one realm serves all workforce applications or customers need their own, then define each OpenID Connect or SAML client with its redirect URIs and scopes. Map LDAP or Active Directory groups to roles in a test realm first, since mapping errors appear as access problems. Brokering to external identity providers needs its own rules for account linking and claim mapping. For high availability, pick a documented architecture and confirm your database supports synchronous replication, as both supported designs require it. Deploy the Operator through OLM, the recommended method, or with kubectl, and treat the experimental Helm chart as a risk to accept. Your team supplies the directory schema, application inventory, database and cluster. Under a written, fixed scope, DeployOpen can deliver the realm and client design, federation mappings and the Operator deployment.

For Zitadel, the design work is mapping your customers onto instances, organizations and projects. An instance is a fully isolated tenant, so use one per environment or legal boundary, and organizations inside it for each B2B customer, since each organization manages its own users. Configure per-organization federation because each customer can bring a different provider, such as Entra ID, Okta or LDAP. Plan SCIM v2 provisioning as a separate integration and test deprovisioning, where access tends to linger. Plan the event store as well: Zitadel records every change as an event, which gives an audit trail, so storage growth, retention and PostgreSQL backups (versions 14 to 18 are supported) need sizing. Your team supplies the customer tenancy model, each customer's identity provider and the database platform. Under a written, fixed scope, DeployOpen can deliver the instance and organization design, federation setup and SCIM tests.

FreeIPA planning starts with topology and the certificate authority. Place two or three replicas in each datacenter and keep the servers dedicated. If you run integrated PKI or DNS, place one such replica in each datacenter. Choose the CA model (integrated, externally signed or CA-less) before installation, since it sets issuance and renewal. List at least two DNS servers in each client's resolv.conf. If Active Directory users must reach Linux resources, plan a cross-forest trust with AD on Windows Server 2008 R2 or later. Script host enrollment with ipa-client-install and record each host. Treat ipa-backup and ipa-restore as recovery tools, since an outdated restore into an active topology can break replication. Your team supplies the datacenter map, AD forest details, PKI policy and host inventory. Under a written, fixed scope, DeployOpen can deliver the replica and CA design, DNS setup, AD trust configuration and enrollment runbook.

Questions buyers ask about Keycloak vs Zitadel vs FreeIPA cost and effort

Which costs more, the software or the people when self-hosting?

For all three, the people usually cost more than the software, because the open-source core of each can be downloaded and used under its license. Keycloak is Apache-2.0, FreeIPA is GPL-3.0-or-later with no paid edition of its own, and Zitadel is AGPL-3.0 with a commercial license offered by its vendor. Recurring costs sit in staff time, the database, servers, backups and upgrades. Those drivers rise with the number of environments, the availability design (FreeIPA's deployment recommendations advise at least two to three replicas in each datacenter) and how often you patch. Ask any vendor or partner for a quote that separates one-time build work, recurring run hours, the infrastructure you pay for, and support tiers.

What does a self-hosted rollout need from our own team?

A self-hosted rollout needs a named platform owner, people who can operate the database and the container or Kubernetes layer, and someone who owns identity decisions such as attribute mapping, MFA policy and access reviews. Keycloak needs a relational database in production, with PostgreSQL 14 to 18 and several other engines supported, and its high availability designs need a synchronously replicated database. Zitadel self-hosting also runs on PostgreSQL 14 to 18, and its documentation recommends Kubernetes with the official Helm chart for high availability. FreeIPA needs replica planning, DNS and certificate authority operations, and disciplined backups, since its documentation warns that restoring an outdated backup into an active replica topology can break replication. Confirm these skills in your team before you choose, because they shape run cost more than the initial install does.

Can our team run it alone, or should we hire an implementation partner?

A team with Linux, database and identity experience can run any of the three alone, and many do. The decision turns on how many of those skills you already have and how much of the work is one-time build effort versus routine operation. A partner is most useful for the first build, hardening, integration with your applications and directories, evidence for a compliance review, and handover, while your team keeps day-to-day operations. DeployOpen plans, implements, integrates, hardens, backs up, upgrades and documents self-hosted open-source platforms inside your own infrastructure, and most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. Ask any partner which parts they will hand over, what your staff must be able to do afterward, and who holds the runbooks.

How long does a self-hosted identity rollout take?

No general duration applies, because the timeline follows from scope: the number of applications, user sources, protocols, environments, and the availability and compliance requirements. Each platform adds different work. Keycloak brings realm, client and federation configuration plus a database and clustering design, Zitadel adds instance, organization and project modeling for multi-tenant use, and FreeIPA adds directory design, Kerberos, DNS and certificate authority decisions. If an Active Directory integration or cross-forest trust is in scope, plan for it as a separate workstream. At DeployOpen, scope, deliverables and timelines are agreed in writing before work starts, so ask any provider for a written plan that lists milestones, your dependencies, and the change windows and approval steps that could move the schedule.

Does the Zitadel AGPL-3.0 license affect how we use or modify it?

An unmodified copy carries no AGPL source-offer duty, but a modified version that users reach over a network does, because section 13 of AGPL-3.0 requires offering the corresponding source to those users. Zitadel moved its core, Console and hosted login to AGPL-3.0-only with v3, while APIs, SDKs, proto definitions, examples, documentation, Helm charts and Terraform configurations stay under Apache 2.0. That split matters if you build clients or integrations, because those pieces may carry different terms from changes you make to the server. If you patch the core or ship a product that embeds Zitadel, have counsel decide whether you must publish source or buy the commercial license. Confirm the file-level scope in the Zitadel licensing document before you fork anything.

Can Keycloak sit in front of FreeIPA or an Active Directory domain?

Yes for user federation, with conditions. Keycloak can federate users from LDAP or Active Directory, and FreeIPA is an LDAP directory built on 389 Directory Server, so Keycloak can read FreeIPA users over LDAP and Active Directory users directly. Confirm the bind account, the search base, the attribute mapping for usernames and groups, and how password validation is handled, because each affects who can log in when a directory is unavailable. Kerberos single sign-on for Windows clients and FreeIPA's own Kerberos realm are separate questions that need their own design. FreeIPA's Active Directory trust lets AD users reach Linux resources, but it does not decide how Keycloak federates identities. Test with a non-production realm and representative account types, including disabled, locked and service accounts.

How DeployOpen helps choose and implement without favoring a platform

DeployOpen plans, implements, customizes and supports self-hosted identity platforms inside your own cloud accounts, data centers or air-gapped networks, so the platform choice stays with your team. For Keycloak, Zitadel and FreeIPA, we start by agreeing which protocols, directories and tenancy model your estate needs, then build against that written scope. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.

How we scope

  • The written scope lists the protocols each application needs, such as OpenID Connect, SAML 2.0 or LDAP.
  • The scope records which Active Directory or LDAP sources to federate, or which upstream identity providers to broker.
  • Fixed-scope engagements list deliverables and timelines in writing before any build work begins.

How we build

  • Keycloak runs on a supported production database such as PostgreSQL 14 to 18, with its Operator on Kubernetes.
  • Zitadel builds use PostgreSQL 14 to 18, with the official Helm chart on Kubernetes for high availability.
  • FreeIPA builds set replica counts per datacenter and settle whether the integrated CA or an external CA issues certificates.

How we hand over

  • Handover covers documented configuration for Keycloak clients, Zitadel organizations or FreeIPA policies, so your team can review them.
  • Backup and restore runbooks cover ipa-backup and ipa-restore for FreeIPA, and database backups for Keycloak and Zitadel.
  • Compliance evidence includes configuration records and logging settings for your auditors, who issue any formal opinion.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, separate from the fixed-scope build.
  • Keycloak plans four minor releases a year, so upgrade work should be written into the retainer scope.
  • FreeIPA 4.13.4 fixed two CVEs, so agree a patch cadence and who applies it in writing.

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.