Keycloak vs Zitadel for HIPAA: which fits which setup
A covered entity or business associate choosing a self-hosted identity platform for systems that touch PHI needs to decide which setup it can document. This page covers only the HIPAA angle, and the general Keycloak vs Zitadel comparison sits on its own page. Choose Keycloak when your organization will run the server itself, needs SAML 2.0 for applications and LDAP or Active Directory federation for a workforce directory it already has, and will own audit and MFA configuration. Keycloak is Apache-2.0 licensed, and its Server Administration Guide documents auditing of user events and admin events, two-factor options including passkeys, recovery codes and TOTP/HOTP, brute force protection with temporary and permanent lockout, and a per-realm Require SSL setting. The guide does not mention HIPAA or a BAA, so every one of these settings becomes evidence your team must configure, keep and show an assessor. Confirm that event retention, log export and admin change tracking meet your own policy, because the guide describes what is available and says nothing about how long your deployment keeps records.
Choose Zitadel when an event-sourced audit trail is the control you most need to prove. Zitadel stores every change as an event in an append-only eventstore kept for an unlimited period, viewable in the Console Event Viewer, queryable through the Event API and streamable to SIEM tools. The deployment route decides who signs what. Zitadel's compliance help page says it is committed to executing Business Associate Agreements for enterprise customers who need to process PHI within Zitadel Cloud, which puts a BAA in place with the vendor for that route, so confirm the current terms in writing before you rely on it. Self-hosting keeps the data in your environment on PostgreSQL 14 to 18, but the HIPAA obligations for the deployment stay with your organization.
No platform makes a deployment HIPAA compliant on its own. The Security Rule in 45 CFR Part 164 Subpart C applies to covered entities and business associates for electronic PHI, and it asks for administrative, physical and technical safeguards, many of them addressable, so the organization must assess each one, document its decision and implement an equivalent measure where needed. Self-hosted open-source software cannot sign a BAA, so with Keycloak or a self-hosted Zitadel the BAA question moves to the cloud provider, data center or managed host that runs the server and its database, and to any SIEM or log store that receives identity events. Before you choose, ask each of those parties for its own BAA terms, and check whether audit logs and error messages carry PHI identifiers, since those copies are in scope too.
What the HIPAA Security Rule asks of an identity platform
The HIPAA Security Rule applies to covered entities and business associates handling electronic protected health information under 45 CFR 164.302. It sets 18 standards and 36 implementation specifications (14 required, 22 addressable) across administrative, physical and technical safeguards, plus organizational and documentation standards. The rule names no product, so an identity platform supplies controls that your organization must configure, document and prove.
Access control and unique identification
Section 164.312(a) requires access control for systems holding ePHI, and unique user identification is one of its implementation specifications. In Keycloak, that means each person and each service integration gets its own account in a realm, with roles and groups limiting access to what each user needs. Zitadel separates users by organization within one instance, which helps when customers administer their own users. Check for shared administrator or service accounts, define the emergency access procedure, and decide whether automatic logoff is set in the platform or in each application.
Keycloak admin guidePerson or entity authentication
Section 164.312(d) requires procedures that verify a person or entity seeking access is who they claim to be. Keycloak documents passkeys, WebAuthn, TOTP and HOTP, recovery codes, OTP policy settings and brute force protection with temporary and permanent lockout. These controls only protect what they cover, so ask your assessor how you will show that every user group, including administrators and service integrations, is enforced. Confirm Zitadel's multi-factor and lockout options against its current documentation before you rely on them in your risk analysis.
Audit controls and event history
Section 164.312(b) requires mechanisms that record and examine activity in systems holding ePHI. Keycloak can track user events and admin events, but you must set retention, export and review procedures yourself. Zitadel stores every change in an append-only eventstore kept for an unlimited period, viewable in its Console Event Viewer and through the Event API, with streaming to SIEM tools. In a self-hosted Zitadel, your team still owns backup, retention and access to that store, so test whether you can trace an administrator change from the event record during a walkthrough.
Zitadel audit trailTransmission security for login traffic
Section 164.312(e) requires protection against unauthorized access to ePHI sent over networks, with integrity controls and encryption as addressable specifications. Logins, tokens and directory queries all cross networks, so each hop needs an explicit decision. Keycloak has a per-realm Require SSL setting with the modes External requests, None and All requests, which should be matched to your ingress and internal paths. Also verify TLS on LDAP or Active Directory federation links, database connections and every Zitadel endpoint you expose, and record where certificates are issued and renewed.
Risk analysis, policies and BAAs
Sections 164.308, 164.314 and 164.316 require a risk analysis, documented policies, business associate contracts where they apply, and retained documentation. For each addressable specification, you must assess whether it is reasonable and appropriate, document a decision if it is not, and adopt an equivalent alternative where that is reasonable under 164.306(d). Zitadel commits to executing Business Associate Agreements for enterprise customers who process PHI in Zitadel Cloud. Keycloak's public documentation does not address HIPAA or BAAs, and for a self-hosted Zitadel the organization running the platform carries those obligations.
Appendix A matrixKeycloak vs Zitadel for HIPAA: how each side meets it as documented
This table compares how Keycloak and Zitadel document the HIPAA areas that touch identity: business associate agreements, audit logs, login protection, encryption in transit, data location, federation and who carries the obligations. Read each row as a question to confirm, because a documented feature still needs configuring and evidence in your own environment. The main takeaway: Zitadel documents a BAA commitment for enterprise PHI in its cloud and an unlimited audit trail, while Keycloak documents its controls but no BAA, and both leave HIPAA obligations with a self-hosting organization.
| Requirement area | Keycloak as documented | Zitadel as documented |
|---|---|---|
| Business associate agreement | No BAA documented. Upstream Keycloak is open-source software and cannot sign one. Ask any distributor or host in writing. | Committed to executing BAAs for enterprise customers processing PHI in Zitadel Cloud. Confirm self-hosted terms with the vendor. |
| Audit logging | Configure auditing for user and admin events. Confirm retention and SIEM export in your deployment. | Append-only event store kept for an unlimited period. Viewable in Console Event Viewer and Event API, with SIEM streaming. |
| MFA and login protection | Passkeys, recovery codes, TOTP/HOTP and WebAuthn, with OTP policy settings. Temporary and permanent brute force lockout. | Confirm MFA methods and lockout behavior in Zitadel's documentation or with the vendor. |
| Transmission encryption | Per-realm Require SSL setting with External requests, None or All requests. | Confirm TLS settings for Zitadel Cloud and self-hosted installs in its documentation or with the vendor. |
| Database and data location | Production databases include PostgreSQL 14 to 18. You choose and operate where the database runs. | Self-hosted PostgreSQL 14 to 18. Confirm data location for Zitadel Cloud with the vendor. |
| Access and federation protocols | OpenID Connect, OAuth 2.0 and SAML 2.0, with LDAP or Active Directory federation. | Implements OpenID Connect, OAuth 2.0 and SAML 2.0. Confirm directory federation options with the vendor. |
| Who carries the obligations | The organization running Keycloak carries HIPAA obligations. No BAA is documented. | A self-hosting organization carries HIPAA obligations. Cloud PHI processing for enterprise customers falls under the BAA commitment. |
How identity events and evidence flow across your boundary
Start with users and applications on the left, whose logins reach the identity platform inside your own environment. If you run Keycloak, it can read users from LDAP or Active Directory through user federation, and it keeps its state in a relational database you operate. Audit events from user and admin activity flow to your SIEM or log store, which is where the dated evidence set for the assessor comes from. The Zitadel Cloud node appears only on the cloud path. The BAA is the contract that covers it, so confirm its scope for PHI before routing logins there. Each node shows its owner to match the shared-responsibility cards.
Trust boundary, data flows and owners for self-hosted and Cloud paths.
What an assessor asks for and how each side produces it
Keycloak is self-hosted, so most of the evidence an assessor requests comes from your own systems. The Keycloak Server Administration Guide documents the auditing, MFA, lockout and Require SSL settings you will export, but it does not mention HIPAA or a BAA. Your organization carries the obligations for the platform and its database.
- Risk analysis, policies and BAA inventory: the risk analysis should name Keycloak as the identity platform, and the BAA inventory should list each host, database and SIEM vendor that handles ePHI. You write and keep these documents.
- Audit samples and access reviews: export user event and admin event records from the auditing settings, keep dated samples showing an administrator changing a realm or client, and use the same records as input to periodic access reviews.
- MFA, lockout and TLS configuration: export the OTP and WebAuthn policy, the enabled second factors (passkeys, recovery codes, TOTP or HOTP), the brute force settings for temporary and permanent lockout, and each realm's Require SSL value (External requests, None or All requests).
- Backup and restore records: Keycloak needs a relational database in production, so these records come from your database platform, including dated restore tests for PostgreSQL 14 to 18 or the engine you chose.
- Upgrade change records: the project plans four minor releases a year and says breaking changes in a minor release are opt-in, so keep a change record for each upgrade with the version, the release notes you reviewed and the test result.
Ask counsel how long these records must be kept, and check 45 CFR 164.316 for the documentation standard before you set retention in your log pipeline.
Self-hosted Zitadel keeps its audit trail in an append-only event store kept for an unlimited period, so most audit samples come from the instance you run. Your organization operates the instance and carries the HIPAA obligations, which means the BAA inventory lists your own hosts and vendors. The Zitadel audit trail documentation describes the event store and the export paths.
- Risk analysis, policies and BAA inventory: the risk analysis should name self-hosted Zitadel, and the BAA inventory should cover your Kubernetes or Docker host, your PostgreSQL 14 to 18 database host and any SIEM vendor that receives audit events.
- Audit samples and access reviews: pull user and admin activity from the Console Event Viewer or the Event API, save dated exports, and use them as the input to periodic access reviews.
- SIEM stream configuration: export the stream configuration that sends audit events to your SIEM, and keep proof that events arrive, since this copy sits outside the instance.
- MFA, lockout and TLS configuration: export the login, MFA and lockout settings from the instance, and record the TLS configuration of the ingress or load balancer you place in front of it, since your team sets that layer.
- Backup, restore and upgrade records: take PostgreSQL backups with dated restore tests, and keep a change record for each move to a Zitadel release, such as the v4.19.5 release published October 15, 2026, noting the deployment method you used.
Confirm with Zitadel which configuration exports its console supports for your version, and ask counsel how long the event records and SIEM copies must be kept under 45 CFR 164.316.
With Zitadel Cloud, the first document to obtain is the BAA. Zitadel's certifications and compliance page, shown as of June 18, 2026, says Zitadel is committed to executing Business Associate Agreements for enterprise customers who need to process PHI within Zitadel Cloud. Your organization still writes the risk analysis and policies, and it must confirm which hosted records Zitadel will provide.
- Risk analysis and policies: these stay with your organization even on Cloud. The risk analysis should name Zitadel Cloud as the identity platform and describe how the hosted service is used.
- Signed BAA copy and vendor inventory: request a signed BAA for the Cloud service, confirm your account qualifies as an enterprise customer, and file the copy in your BAA inventory with the hosting and subprocessor details Zitadel supplies in writing.
- Audit samples and access reviews: the audit trail is an append-only event store viewable in the Console Event Viewer and through the Event API, with streaming to SIEM tools. Confirm whether your plan lets you export and stream from the hosted instance, and how far back exports reach.
- MFA, lockout and TLS configuration: export these settings from the Console where the product allows it, and ask Zitadel in writing which TLS details it can document for the hosted endpoints.
- Backup, restore and upgrade records: ask what backup and restore testing Zitadel performs and whether it shares those records. Confirm who applies platform upgrades and what notice you receive, and keep your own change records for upgrades that touch your configuration.
Ask counsel how long the BAA, audit exports and vendor records must be kept, and point them to the documentation standard in 45 CFR 164.316 before the assessment begins.
Does the Zitadel BAA change the answer if you self-host
A self-hosted Zitadel deployment carries no vendor BAA in this comparison. Zitadel's BAA covers protected health information processed within Zitadel Cloud, and its compliance page says Zitadel is committed to executing Business Associate Agreements for enterprise customers who need to process PHI there. When you run Zitadel yourself, the organization running it carries the HIPAA obligations directly. Keycloak follows the same pattern in every deployment: the parts of its Server Administration Guide read for this comparison do not mention HIPAA or a BAA, so the organization running Keycloak carries those obligations too. Confirm the current BAA terms on the Zitadel BAA page before procurement, because the signed contract is the document that governs them.
Whether identity records and audit events count as ePHI depends on what the platform sees and stores in your environment. The privacy officer and counsel make that determination, and the answer can differ between Zitadel and Keycloak because each records different events and keeps them under different configurations. Start with an inventory: usernames, email addresses, group memberships, login and failure timestamps, client IP addresses, and any health-related attributes placed in user profiles or token claims. Zitadel's eventstore is append-only and kept for an unlimited period, and it can be streamed to a SIEM, so its contents need the same review as the database. Keycloak's auditing records user events and admin events, and retention and export depend on how your team configures and ships them. Map each data element to a purpose, then record the conclusion so an assessor can follow it.
The choice between Zitadel Cloud and self-hosting is a trade between who operates the platform and where the identity data sits. Zitadel Cloud moves day-to-day operation to a vendor under contract, and the BAA is what brings PHI handling in that service under HIPAA terms. Self-hosting keeps identity data in your own infrastructure, but your team then owns patching, backups, encryption settings, access reviews, log retention and incident response for the identity layer, and an assessor will expect evidence for each one. Self-hosting suits organizations whose security team can operate those controls to the standard the Security Rule sets in 45 CFR 164.312. Before deciding, ask your security team to list the controls it would own under each option, estimate the staff time for each, and compare that list against the technical safeguards in that section.
Configuring the chosen identity platform for PHI-scoped access
This sequence takes an identity platform from a signed scope to a documented, tested configuration that limits access to systems holding electronic protected health information. Each step names who does the work, whether the organization, the vendor or both, and the evidence that closes it. The order is the same for Keycloak and Zitadel, with platform-specific settings noted where they differ.
Confirm scope and BAA position in writing
The organization and the platform owner agree in writing which applications, user groups and data flows fall under PHI-scoped access. Zitadel's help pages say that for enterprise customers who need to process PHI within Zitadel Cloud, Zitadel is committed to executing Business Associate Agreements. For self-hosted Keycloak or Zitadel, the organization running the platform carries the HIPAA obligations. The upstream Keycloak documentation does not address HIPAA or a BAA, so confirm with your distribution provider whether any agreement applies. Done when the signed scope document names the in-scope systems, the hosting location and the BAA position for each party.
Choose the deployment route and production database
The organization and the implementation team decide where the platform runs and which database holds its state. Keycloak needs a relational database in production. Its documented options are PostgreSQL 14 to 18, MariaDB, MySQL, Microsoft SQL Server, Oracle Database and Amazon Aurora PostgreSQL, and the built-in dev-file database is not suitable for production. Keycloak on Kubernetes or OpenShift can be installed through the Operator Lifecycle Manager, which Keycloak recommends, or with kubectl. Zitadel's self-hosted database is PostgreSQL 14 to 18. Done when the database version, hosting account and deployment method are recorded in the architecture document and the database is provisioned in the client's own environment.
Enforce TLS on every identity path
The platform owner sets transport encryption on login, token and admin endpoints. In Keycloak, the per-realm Require SSL setting has three modes: External requests, None and All requests. Set All requests on each realm so that all traffic must be encrypted. Confirm the Zitadel equivalent for your version in its self-hosting configuration. Check the reverse proxy or load balancer in front of either platform as well, because where TLS terminates determines which hops are encrypted. Done when a test of each hostname shows that plain HTTP is refused on login, token and admin paths, and the setting is captured in the configuration baseline.
Configure MFA and lockout policies
The organization sets the authentication standard, and the platform owner applies it. In Keycloak, configure two-factor authentication with passkeys, WebAuthn, OTP policy and recovery codes alongside TOTP or HOTP, then set brute force protection, which offers temporary and permanent lockout. For Zitadel, confirm the equivalent second-factor and lockout settings for the version in use before writing the policy. Define who must enroll, which factors are allowed for PHI-scoped applications and how a locked account is released. Done when a test account is locked after the configured failures, a second factor is required at sign-in and the security owner has signed off on the policy.
Enable audit events and stream them to SIEM
The platform owner turns on recording of user events and admin events in Keycloak, which its Server Administration Guide documents as auditing. Zitadel keeps an append-only event store for an unlimited period, viewable in the Console Event Viewer and through the Event API, and it can stream to SIEM tools. The security team confirms which sign-in, failed sign-in and admin actions each platform records in the version in use, and routes those events with the server, reverse proxy and database logs to the monitoring platform. Done when a test sign-in, a failed sign-in and an admin change each appear in the audit view and in the SIEM, and an alert on repeated failures fires in a test.
Set backup and restore for the state database
The organization owns the backup schedule and retention, and the implementation team designs and tests the restore. The database holds Keycloak's state or the Zitadel event store, so it is the record a restore must rebuild. Use a backup method that your database engine documents for consistent copies, and keep the encryption keys and realm or instance configuration with the backup set. Done when a restore has been run into a separate environment, the platform starts against it, a test user can sign in and the audit history is present.
Document policies and the risk analysis
The organization writes the access policies, the role and group model, the MFA and lockout standards, and the risk analysis that covers the identity platform. The Security Rule's administrative safeguards include a risk analysis and documentation requirements, so assign an owner to review and update the documents. For each addressable implementation specification, record whether it is reasonable and appropriate, and if it is not, document the reason and the equivalent measure you chose. Done when the risk analysis names the identity platform, each addressable decision has a written rationale and the policy owner has approved the set.
Retest the access paths
The implementation team or an independent tester retests each access path after configuration and after every later change. Paths include the login page, token endpoints, the admin console, the admin API, self-service account pages and the SSO connection to each PHI-scoped application. DeployOpen runs security testing of applications, APIs and infrastructure, and it can retest the fixes. Independent auditors and certification bodies decide compliance, so the report is evidence for them rather than a certificate. Done when the retest report covers every path, each finding is either fixed or accepted in writing by its owner, and the report is filed with the policy set.
What drives effort in a Keycloak vs Zitadel for HIPAA rollout
What drives the effort of a HIPAA identity rollout on Keycloak or Zitadel?
The main drivers are the number of applications, the directories you must read from, the database and high availability design, where the platform runs, and how much evidence the assessor expects. Each application that signs in over OpenID Connect, OAuth 2.0 or SAML needs its own client setup, claim mapping and test, so many applications take far more work than a few. Keycloak can federate users from LDAP or Active Directory, and each directory adds attribute mapping, a read-only service account and a decision about which system owns passwords. Keycloak needs a relational database in production, and the database choice sets how backups, failover and upgrades are tested. Self-hosted Zitadel uses PostgreSQL 14 to 18. In your own cloud account or data center, HIPAA obligations stay with your organization. Evidence volume multiplies all of this, because every safeguard needs a written procedure and a record that it operates.
How long does a Keycloak or Zitadel HIPAA rollout take?
No duration is given here because the length depends on the written scope, and no single number applies across different applications, directories and environments. The drivers are the same as the effort drivers: how many applications need client setup, how many directories need federation, how the database and high availability are built, and how many environments such as test and production must be validated. Change windows add elapsed time because cutover of a production sign-in path usually needs a planned slot and a rollback plan. Upgrades add recurring time. Keycloak's release update says the project plans four minor releases a year and makes breaking changes in a minor release opt-in, so each upgrade still needs regression testing against your applications. Ask for a timeline tied to milestones in the scope document, with each dependency on your team marked as a condition. A timeline without named dependencies is a guess.
What does the buyer need to provide before an identity rollout starts?
Before work starts, you need named owners, directory access, change windows and a settled position on the Business Associate Agreement. Name one owner for the platform, one for each directory, one for each application that will sign in, and one privacy or security owner who approves decisions. Directory access means a read-only service account and network paths from the platform to LDAP or Active Directory. Book change windows for the cutover of each sign-in path and for any rollback. For Zitadel Cloud, enterprise customers who need to process PHI can ask for a BAA, and Zitadel says it is committed to executing one. For a self-hosted build, confirm which suppliers will touch systems holding PHI, including DeployOpen, and whether any of them needs a BAA. The Keycloak server guide does not mention HIPAA or a BAA, so the organization running it carries those obligations.
Can a small identity team run a HIPAA rollout without outside help?
Often yes for the platform work, if the team already runs directories, OIDC and SAML clients and a production database. Keycloak and Zitadel both need someone who can operate the database, the directory connection and the high availability design, and who can debug a failed token exchange in production. The parts that need privacy and security owners are the risk analysis and policy evidence. The Security Rule groups its safeguards into administrative, physical and technical standards, with 36 implementation specifications, 14 required and 22 addressable. For an addressable specification, the organization must assess whether it is reasonable and appropriate, document why if it is not, and adopt an equivalent measure where reasonable. Those decisions belong to your privacy and security owners, and engineers should prepare the evidence for them. A small team can build and document the technical controls, but the risk analysis still needs an owner who signs it.
What does DeployOpen do and not do for HIPAA identity work?
DeployOpen plans, implements, customizes, integrates, hardens, backs up, upgrades, documents and supports self-hosted open-source platforms inside your own infrastructure. For a HIPAA rollout, that means preparing the systems, controls and evidence that your compliance and security teams will review. It also runs security testing of applications, APIs, cloud and infrastructure. It does not issue audit reports, attestations or certifications. Independent auditors and certification bodies issue those, and your assessor reaches its own conclusions. The boundary is the same whichever product you choose. Ask DeployOpen to list in the written scope which evidence it prepares and which records you must keep and produce yourself.
What should a quote for a HIPAA identity rollout include?
A quote should follow from a written scope, and the scope should list the applications, directories, database and high availability design, environments, deliverables and timelines agreed before work starts. DeployOpen does not publish a price list, so the quote is built from that document. Ask for the deliverables in plain terms: the configuration documentation, the evidence pack, the test results, the handover and the retest, if security testing is in scope. Separate what is one-time from what recurs. One-time work covers design, implementation, integration, hardening and evidence preparation. Recurring costs include upgrades, support and continuous testing, which DeployOpen offers as retainers. Each cost driver should be visible: more applications, more directories, a more complex database design and more evidence each change the scope. Also ask which assumptions the quote makes about your team's availability, change windows and access, because those decide whether the timeline holds.
How DeployOpen helps prepare, implement or migrate a HIPAA-scoped identity platform
DeployOpen plans, implements, customizes, integrates, hardens, backs up, upgrades, documents and supports self-hosted open-source identity platforms inside your own cloud accounts, data centers or air-gapped networks. For a HIPAA-scoped Keycloak or Zitadel deployment, the work prepares systems, controls and evidence for your compliance assessment, but DeployOpen does not issue audit reports, attestations or certifications.
How we scope
- Written scope lists which applications, user groups and identity flows the Keycloak or Zitadel platform covers.
- We map where protected health information could reach login, federation, session and admin paths.
- Scoping identifies which fixed-scope deliverables, and which ongoing retainer, your team needs after go-live.
How we build
- Deployment in your own cloud, data center or air-gapped network, with the database, TLS and network paths you choose.
- For Keycloak or Zitadel, configure SSO, federation, MFA, audit logging and lockout settings to your written policy.
- Test the build, including TLS enforcement and admin access paths, and document results before cutover.
How we hand over
- Documentation covers configuration, the shared-responsibility split and the evidence each control produces, so your team can review it.
- A written list of the HIPAA obligations your organization keeps when it runs either platform itself.
- Admin and operator runbooks for upgrades, backups and restores, which you own after handover.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, scoped in writing.
- Retainers can cover upgrade planning as Keycloak and Zitadel release new versions, checked against your written scope.
- Evidence requests from your assessor are supported, while independent auditors and certification bodies issue any attestation.
Sources and further reading
- Keycloak Server Administration Guide ↗
- Zitadel: certifications and compliance ↗
- Zitadel: Do you sign a HIPAA BAA? ↗
- Zitadel docs: Audit trail ↗
- 45 CFR Part 164 Subpart C, Security Standards for the Protection of Electronic Protected Health Information, eCFR ↗
- HHS FAQ 2003: Are we required to certify our organization's compliance with the standards? ↗

