Keycloak vs FreeIPA for HIPAA: which side fits which estate
A covered entity or business associate choosing the identity layer for electronic protected health information should first name the estate it has to protect. Keycloak fits web and SaaS applications that need SAML or OIDC single sign-on and federation to Active Directory or LDAP, while FreeIPA fits Linux and UNIX estates that need Kerberos, host-based access control, certificates and OTP on defined account sets. This page covers only the HIPAA angle, and the general comparison sits on its own page. The official Keycloak and FreeIPA documentation does not address HIPAA or a business associate agreement (BAA) and, because self-hosted open-source software cannot sign a BAA, the organization running either platform carries the obligations under the Security Rule in 45 CFR Part 164 Subpart C.
On the Keycloak side, the technical safeguards in 45 CFR 164.312 translate into settings you must choose and evidence you must keep. The Server Administration Guide documents auditing of user events and admin events, so decide which events are stored, how long they are retained and where they are shipped. Two-factor options include passkeys, recovery codes and TOTP/HOTP, configured through WebAuthn and OTP policy settings, and brute force protection adds temporary and permanent lockout. Set the Require SSL option for each realm deliberately, choosing among the External requests, None and All requests modes, and record who approved the value. An assessor will ask for that record along with the realm export that shows the setting in force.
FreeIPA covers Linux and UNIX hosts with different controls. The FreeIPA 4.12.0 release notes say all IPA API calls are audited through the systemd journal on IPA servers, and OTP use is recorded in LDAP server logs as an MFA note. Administrators can define account sets that must use OTP tokens stored in IPA and enforce that LDAP authentication fails without an OTP token. Host-based access control then governs which accounts reach which hosts. Under 45 CFR 164.306(d), any addressable implementation specification you do not adopt needs a documented assessment and an equivalent measure, so list which ePHI systems are Linux or UNIX before you choose a side.
Which technical safeguards depend on the identity layer
The technical safeguards in 45 CFR 164.312 assume the identity platform does part of the work. The four standards below depend on it for who gets access, what gets recorded, how users prove identity and how identity traffic is protected. Each card names what the platform must enable and where your organization still carries the decision.
Access control and unique identity
Under 164.312(a)(1), the platform must give each workforce member a distinct, named account and limit what that account can reach. Keycloak handles this through realm and client roles and its fine-grained authorization services, while FreeIPA uses host-based access control (HBAC) to decide which users can log in to which hosts. Appendix A marks each implementation specification under this standard as required or addressable, so check each marking in the eCFR matrix and document where automatic logoff and emergency access are handled.
Appendix A matrixAudit controls and event records
Under 164.312(b), the platform must record activity that the organization can review later. Keycloak documents auditing of user events and admin events, so you decide where those events are sent and who reviews them. FreeIPA audits all IPA API calls through the systemd journal on IPA servers and records OTP use in LDAP server logs, so both sources need collection. This standard has no separate implementation specifications in Appendix A, so the retention and review schedule is a decision your team must document.
Keycloak admin guidePerson or entity authentication
Under 164.312(d), the platform must verify that a person or system is who it claims to be before granting access. Keycloak offers passkeys, WebAuthn, TOTP and HOTP, recovery codes and OTP policy, plus brute force protection with temporary and permanent lockout. FreeIPA stores OTP tokens in IPA and can be configured so that LDAP authentication fails without an OTP token for administrator-defined sets of accounts. Confirm which account groups must use MFA, how recovery codes are issued and reset, and that lockout thresholds match your incident procedures. This standard has no separate implementation specifications in Appendix A, so the MFA policy is the decision an assessor will test.
Transmission security of identity traffic
Under 164.312(e)(1), the platform must protect identity data in transit, including logins, token exchanges and directory queries. Keycloak sets SSL requirements per realm with External requests, None and All requests modes, so confirm that production realms use All requests. FreeIPA introduced DNS over TLS between clients and IdM DNS servers in 4.13.0, which covers a separate path from web and LDAP traffic. Check that federation connections to LDAP or Active Directory use TLS and that any reverse proxy passes the protocol through correctly. The encryption and integrity controls under this standard are addressable in Appendix A, so record how you assessed each one.
What the HIPAA Security Rule asks of an identity and SSO platform
The HIPAA Security Rule (45 CFR Part 164 Subpart C, sections 164.302 to 164.318) binds covered entities and business associates for electronic protected health information. Appendix A lists 18 standards and 36 implementation specifications, 14 required and 22 addressable, across administrative, physical and technical safeguards. An identity platform mostly touches the technical safeguards, where unique user identification is required, while automatic logoff, log-in monitoring and password management are addressable. The rule does not name products. Turning on a feature does not satisfy a specification by itself, so the useful question is which configuration, run by which people, meets each one in your environment.
An addressable specification requires you to assess whether it is reasonable and appropriate for your environment, document that assessment, and, if the measure is not reasonable, implement an equivalent alternative (45 CFR 164.306(d)). Build a table with one row per specification you rely on, naming the Keycloak or FreeIPA setting that implements it and the assessment behind it. For Keycloak, that means the per-realm Require SSL setting, brute force lockout, and user and admin event auditing as described in the Server Administration Guide. For FreeIPA, it means the audit trail of IPA API calls in the systemd journal, OTP enforcement for LDAP authentication, and host-based access control. Neither project's documentation mentions HIPAA, so the mapping and the reasoning behind it are your team's work, and each setting should be confirmed against the version you run.
Whether you need a certificate is a separate question. Read the HHS FAQ on certification and then ask your compliance lead and any assessor which evidence they will accept, such as the mapping table, configuration exports, audit log samples and the written reasonableness assessments. DeployOpen can prepare those controls and evidence for assessment, but it does not issue audit reports, attestations or certifications; independent auditors and certification bodies do. Put the evidence list, log retention and the named owner of each log into the written scope before work starts, so no one assumes another team is keeping them.
How Keycloak and FreeIPA each meet the HIPAA Security Rule as documented
This table compares what each project documents against the identity safeguards in the HIPAA Security Rule, row by row. Read each cell as a documented feature or a gap to close, because neither project documents HIPAA support or a BAA. The main takeaway: both platforms supply controls you configure and evidence you collect, and the covered entity keeps the compliance obligations.
| Control area | Keycloak as documented | FreeIPA as documented |
|---|---|---|
| BAA | No BAA documented for the upstream project. The organization running Keycloak carries the HIPAA obligations. | No BAA documented for the project. The organization running FreeIPA carries the obligations. Ask Red Hat about a BAA for RHEL IdM. |
| Vendor attestations | None documented for the upstream project. Ask Red Hat what it holds for the Red Hat build of Keycloak. | None documented for the project. Confirm with Red Hat what it provides for RHEL Identity Management before relying on it. |
| Audit logs | Configurable user event and admin event auditing. Confirm retention, storage and export to your SIEM for your own log policy. | Every IPA API call is audited in the systemd journal. OTP use is logged as an MFA note in LDAP logs. |
| MFA | Passkeys, recovery codes, TOTP/HOTP, WebAuthn and OTP policy configuration. Confirm which factors your login flows enforce. | OTP tokens stored in IPA, with admin-defined account sets required to use them. LDAP authentication can be set to fail without an OTP token. |
| Account lockout | Brute force protection with temporary and permanent lockout. Confirm thresholds and how they apply in your realms. | Not described in the documentation behind this comparison. Ask the FreeIPA project or Red Hat to confirm lockout behavior. |
| Transport encryption | Per-realm Require SSL with External requests, None or All requests modes. Set All requests for PHI paths and verify in your environment. | DNS over TLS between clients and IdM DNS servers since 4.13.0. Confirm how LDAP and Kerberos traffic is encrypted here. |
| Access control | Fine-grained authorization services and an admin console. Confirm how admin privileges are split across your staff. | Host-based access control (HBAC) limits which users reach which hosts. Confirm HBAC rules for every clinical system before go-live. |
| Data location | Stores data in the relational database you run, such as PostgreSQL. Location is set by your own infrastructure choices. | Stores directory data in 389 Directory Server on servers you operate. Confirm backup location and replica placement for PHI. |
| Patch cadence | Four minor releases a year since 26.0, with opt-in breaking changes. Current release is 26.8.1, released October 13, 2026. | FreeIPA 4.13.4, dated July 9, 2026, fixed two CVEs, including LDAP access control flaws. Confirm Red Hat's patch windows for RHEL. |
How audit trails differ, and what each one still leaves open
Keycloak's Server Administration Guide documents auditing for two kinds of event: user events, such as sign-ins, and admin events, which record changes made by administrators. An assessor will ask for both, and they answer different questions, so request them separately. FreeIPA's record sits at a different layer. Its 4.12.0 release notes say all IPA API calls are audited through the systemd journal on IPA servers, and that OTP use for authentication is recorded in LDAP server logs as an MFA note. The same notes say LDAP authentication can be enforced to fail without an OTP token, so the control and its log entry can be shown together. For Keycloak, confirm which event types your version records, where they are stored on the server and how they leave it.
Neither documented trail settles four questions an assessor will ask. The first is retention: how long user events, admin events and journal entries survive, and who sets that period. The second is tamper protection: whether a server administrator can alter or delete entries, and whether they are shipped off the host quickly enough to matter. The third is SIEM forwarding: which formats and transports each platform supports for your collector, and whether FreeIPA's journal entries and LDAP logs reach it without custom parsing. The fourth is review: who reads the logs, how often, and what they look for, such as repeated failed OTP logins or changes to host-based access control rules.
Confirm retention, tamper protection and SIEM forwarding in writing before you finalize the audit design. Ask the Keycloak vendor for upstream answers, and ask Red Hat for the same answers if you run the Red Hat build of Keycloak or Red Hat Enterprise Linux Identity Management. Record each answer in your contract or support file. Review belongs in your own policy: name the reviewing role, the frequency, the log sources covered and the evidence kept for each review. Map these controls to the technical safeguards in 45 CFR Part 164 Subpart C. If you treat any implementation specification as addressable, document why and what equivalent measure you use instead.
How identity events and evidence flow inside the trust boundary
The flow starts with clinicians and clinical apps signing in to Keycloak over SSO, and Keycloak reads users from your AD or LDAP directory. Linux hosts authenticate to FreeIPA with Kerberos, and FreeIPA issues certificates from its Dogtag CA. Keycloak's user and admin event auditing and FreeIPA's audit of IPA API calls both feed a log store you retain, which supplies the evidence pack. Red Hat support and the hosting provider sit outside the boundary. Before any PHI moves, confirm the BAA with your hosting provider and the support agreement with Red Hat, and check that log retention meets your own policy.
Keycloak and FreeIPA events land in one retained log store feeding the evidence pack.
What an assessor asks for and how each side produces it
Keycloak produces most of its evidence from its event log and realm settings. The Keycloak Server Administration Guide documents auditing of user events and admin events, two-factor options and brute force protection, so these are the settings an assessor will look for in your configuration exports. The records and the reviews built on them still sit with your organization.
- Audit event exports. Keycloak's auditing covers user events and admin events. Forward them to your central log store and set retention there, because the guide does not set retention for you.
- MFA enforcement settings. The guide lists passkeys, recovery codes, TOTP/HOTP and WebAuthn, along with OTP policy configuration. Export the realm settings and the required actions per group, then test which applications still accept password-only sign-in.
- Lockout policy. Brute force protection supports temporary and permanent lockout. Record the thresholds you chose, then confirm them with controlled failed logins in a test realm.
- TLS configuration. Each realm has a Require SSL setting with the modes External requests, None and All requests. Record the mode per realm and document TLS termination at your load balancer or ingress, which the realm setting does not cover.
- Access review records. The guide documents the events but not an access certification workflow. Produce periodic review records from group and role exports and record sign-off in your own system.
The Keycloak pages read do not mention HIPAA or a BAA, so mapping these settings to the Security Rule is your task. Confirm each setting in the release you run, because the project states that breaking changes in a minor release will be opt-in.
FreeIPA records more of its activity at the server level. The FreeIPA 4.12.0 release notes say all IPA API calls are audited through the systemd journal on IPA servers, and that OTP use is recorded in LDAP server logs as an MFA note. The platform creates these records, but collecting, retaining and reviewing them is still your responsibility.
- Audit event exports. IPA API calls are written to the systemd journal on IPA servers. Forward the journal to your central log store and confirm retention in that store, because the release notes do not state how long events are kept.
- MFA enforcement settings. OTP use is recorded as an MFA note, and LDAP authentication can be enforced to fail without an OTP token. Define the account sets that must use OTP tokens stored in IPA and export that list as enforcement evidence.
- Access review records. Host-based access control (HBAC) rules and group membership show who can reach which hosts. Export them on a schedule and record reviewer sign-off outside the directory, because the pages reviewed do not describe a review workflow.
- Patch records with version numbers. Keep the installed package version from your operating system channel. FreeIPA 4.13.4, dated July 9, 2026, fixed two CVEs, including LDAP access control flaws, so confirm your deployed version against that release.
- Lockout and TLS settings. The pages reviewed do not describe a lockout policy or TLS configuration. Confirm both in your deployed configuration and the FreeIPA documentation for your version before you cite them.
The FreeIPA pages reviewed do not mention HIPAA or a BAA, so the link between these records and the Security Rule is yours to document.
Some artifacts an assessor requests come from the organization, not from either product. The eCFR text of Subpart C of 45 CFR Part 164 applies to covered entities and business associates for electronic protected health information, and it expects documented administrative safeguards, a risk analysis and written policies. Both products supply inputs to these items, but neither produces them.
- Risk analysis and policies. The administrative safeguards in 164.308 and the documentation standards in 164.316 call for written policies and a risk analysis. Record the identity platforms, their data flows and their configuration as inputs to that analysis.
- Backup and restore test results. Keycloak in production needs an external relational database, so database backup and restore tests are your responsibility. For FreeIPA, confirm the backup and restore procedure in its documentation for your version. Record dates, scope and outcomes for each test.
- Addressable specifications. Under 45 CFR 164.306(d), an addressable specification requires an assessment of whether it is reasonable and appropriate. If it is not, document why and implement an equivalent measure where reasonable. Apply this to any MFA or session control you configure differently from the default.
- Version inventory. Keep a dated inventory of deployed versions for each platform, its database and its operating system, with the security updates applied. Keycloak's current release is 26.8.1, and the newest FreeIPA tag in its repository is release-4-13-4.
- Certification claims. Check what your organization is expected to produce using the HHS FAQ on certification. Do not present a product feature as a certification.
Ask your assessor which of these records they expect in writing and set review dates before the assessment starts.
Configuring either side for the HIPAA angle, in order
This sequence starts with deciding which systems and identity flows touch ePHI and ends with a documented patch process, so each control has an owner and evidence an assessor can review. The steps apply to Keycloak and FreeIPA alike, because the HIPAA obligations sit with the organization running either one.
Scope which systems hold ePHI
List every application, database, backup and log store that holds or processes electronic protected health information, then map each identity flow that reaches them: browser SSO, service logins, LDAP or Kerberos binds and administrator access. Name an owner for each flow and the system it authenticates against, whether that is a Keycloak realm and client or a FreeIPA host, service or group. Done when the security official and the compliance lead have signed off the list and no flow to an ePHI system is unassigned.
Secure agreements with support providers
Identify every hosting provider, managed database operator and support provider that can reach ePHI or the identity systems, including any implementation partner. Ask each one in writing whether it will sign a business associate agreement, and do not assume that any of them will. Neither the Keycloak nor the FreeIPA documentation covers HIPAA or BAAs, so you obtain these terms yourself. Done when every party with access has an agreement on file and access is limited to named people.
Deploy on production storage inside your network
For Keycloak, run the server on a relational database in production, such as PostgreSQL 14 to 18, MariaDB, MySQL, Microsoft SQL Server, Oracle Database or Amazon Aurora PostgreSQL. The default dev-file database is not suitable for production. For FreeIPA, deploy a replicated 389 Directory Server topology with its Kerberos and Dogtag components placed inside your network, and document which replica holds which role. Done when the database or replica layout is diagrammed, backups restore successfully in a test, and the diagram is filed with your security documentation.
Enforce transport encryption on both sides
For Keycloak, set Require SSL to All requests on each realm so the server refuses unencrypted requests from every source, including internal ones. The External requests and None modes leave some traffic unencrypted. For FreeIPA, confirm the transport settings for LDAP and Kerberos clients, including whether any client may connect without encryption, and check these against the release you run. Done when a plain HTTP request to Keycloak is refused, the LDAP and Kerberos settings are recorded, and the exported configuration is saved with the change record.
Require MFA and account lockout
In Keycloak, choose the second factors you allow from passkeys, WebAuthn, TOTP or HOTP, and recovery codes, then set the OTP policy. Turn on brute force protection with temporary or permanent lockout, and choose the thresholds in your own policy. In FreeIPA, store OTP tokens in IPA, define the account sets that must use OTP, and enforce that LDAP authentication fails without an OTP token. Review host-based access control rules so privileged hosts accept logins only from approved sources. Done when a test account locks after repeated failures and a test account without a second factor is refused.
Route audit logs to retained storage
In Keycloak, enable auditing for user events and admin events, and forward those events to storage you control. On FreeIPA, all IPA API calls are audited through the systemd journal on IPA servers, and OTP use is recorded in the LDAP server logs as an MFA note, so forward both the journal and the LDAP logs. Set the retention period and review cadence in your policy, then name the person who reviews the logs and what they check. Done when a test login and a test administrator change both appear in the retained store and the first review is recorded.
Set a patch process and document changes
Subscribe to release announcements for Keycloak and FreeIPA, and test each update in a non-production copy before production. Keycloak 26.8.1 and FreeIPA release-4-13-4 are the releases this page was checked against, so confirm which versions are current before you plan. Read the release notes for every update, since FreeIPA 4.13.4 fixed two CVEs, including LDAP access control flaws. Done when each change has a record with the version, the test result, the approver and the date applied, and an assessor can trace it from start to finish.
What buyers ask before hiring help on a HIPAA identity project
How much effort does a HIPAA identity project take?
Effort depends mostly on how many applications need sign-in, whether an existing Active Directory or LDAP directory must be connected, how far the MFA rollout reaches, how audit logs reach your log pipeline, and how much documentation you need. Each application adds its own client configuration, claim or attribute mapping and testing. Keeping an existing directory as the source of truth usually means less work than migrating accounts. Documentation is often the largest item, because the risk analysis, policies and procedures must reflect your environment and your policy owners must review them. Ask every provider to price these five drivers separately so you can compare quotes on the same scope.
How long does a Keycloak or FreeIPA HIPAA identity project take?
No duration is supplied for this work, so ask for a timeline in the written scope before you commit. Most DeployOpen engagements are fixed-scope, which means the scope, deliverables and timeline are agreed in writing before work starts. Ask for the timeline by phase: inventory and design, build in a test environment, integration with each application, log pipeline and MFA rollout, documentation, and cutover. Also ask which phases depend on your change windows, your directory owners and your legal review of business associate agreements. A timeline that does not name those dependencies is incomplete.
What does the client need to provide for an identity implementation engagement?
Expect to provide host and database access, named policy owners and a legal reviewer for business associate agreements. Host access covers the servers, virtual machines or Kubernetes cluster where the identity services run. Keycloak needs a relational database in production, such as PostgreSQL 14 to 18, MariaDB, MySQL, Microsoft SQL Server, Oracle Database or Amazon Aurora PostgreSQL, so confirm which one your standards allow. Policy owners decide access rules, MFA scope, session settings and retention. Your counsel reviews the agreement terms. The Keycloak and FreeIPA documentation reviewed does not mention HIPAA or a BAA, so your organization carries those obligations.
Can an internal team run a HIPAA identity project without outside help?
Yes, if the team has the skills to build and run the stack, and the risk analysis and policies remain the organization's to write. Keycloak and FreeIPA are both self-hosted, and both document MFA, auditing and access controls, so an experienced identity or Linux team can build them in-house. The skills gap usually sits in LDAP and Kerberos troubleshooting for FreeIPA, realm and client configuration and clustering for Keycloak, and in producing evidence an assessor can trace. An outside party can help with the wording and the testing, but it cannot decide your risk for you. Many teams bring in a partner for the initial build and handover, then run the platform internally.
What drives the cost of a Keycloak or FreeIPA project?
Software licensing is not the main cost. Keycloak is licensed under Apache-2.0 and FreeIPA under GPL-3.0-or-later, and neither carries a license fee. The costs are people, platforms and subscriptions. Red Hat subscriptions are separate if you choose the Red Hat build of Keycloak or Identity Management in Red Hat Enterprise Linux, and they recur. Services are usually a one-time build and handover, plus a retainer if you want ongoing upgrades, testing or support. The main drivers are application count, directory and MFA scope, database and infrastructure choice, and documentation depth. DeployOpen does not publish a price list and quotes from a written scope, so ask which items are one-time, which recur, and which infrastructure costs stay with you.
Does DeployOpen certify that Keycloak or FreeIPA is HIPAA compliant?
No. DeployOpen plans, implements and documents the platform and prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports, attestations or certifications. Independent auditors and certification bodies do that work. HIPAA compliance depends on your own risk analysis, policies and documentation, and an assessor checks the evidence against your environment. No vendor statement can replace that review. The HHS FAQ on whether organizations must certify their compliance is a useful starting read.
Which evidence will an assessor ask for from the identity platform?
Plan to show configuration, logs and records that prove how the platform works in practice. Keycloak's Server Administration Guide documents auditing of user and admin events, two-factor options including passkeys, recovery codes and TOTP/HOTP, brute force lockout, and a per-realm Require SSL setting. FreeIPA's 4.12.0 release notes say all IPA API calls are audited through the systemd journal, OTP use is recorded in LDAP server logs as an MFA note, and LDAP authentication can be enforced to fail without an OTP token. Export the configuration, retention settings, access reviews and log review records, then map each one to your risk analysis. Confirm with your assessor which records they expect.
How DeployOpen helps prepare, implement or migrate this setup
DeployOpen plans, implements, hardens and documents self-hosted open-source platforms inside your own cloud accounts, data centers or air-gapped networks. For a Keycloak vs FreeIPA decision in a HIPAA setting, that means scoping the identity design against your Security Rule obligations, building it with SSO, access control and audit logging, and handing over the evidence your compliance team needs. DeployOpen does not issue audit reports or certifications; independent auditors do.
How we scope
- The written scope names which Keycloak or FreeIPA components, hosts and integrations are in the engagement.
- Scope maps identity controls to Security Rule standards and flags what your policies must still cover.
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
How we build
- Keycloak builds, where in scope, cover MFA, brute force lockout, Require SSL and user and admin event auditing.
- FreeIPA builds cover audit sources, OTP enforcement, host-based access control and certificate issuance where scoped.
- Deployment runs in your cloud accounts, data centers or air-gapped networks, with SSO, access control and audit logging.
How we hand over
- Written documentation covers configuration, data handling settings, backup and upgrade steps for the identity platform.
- Compliance evidence is prepared for your assessor, covering the controls in scope and the tests run against them.
- DeployOpen does not issue audit reports or attestations, so your assessor judges whether the evidence is sufficient.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers for either platform.
- Keycloak plans four minor releases a year, so upgrade planning and testing need a standing cadence.
- Confirm with your distribution (Fedora, Debian, CentOS or RHEL) how FreeIPA security updates reach your servers.
Sources and further reading
- Keycloak Server Administration Guide ↗
- FreeIPA 4.12.0 release notes ↗
- 45 CFR Part 164 Subpart C, Security Standards for the Protection of Electronic Protected Health Information ↗
- Appendix A to Subpart C of Part 164, Security Standards: Matrix ↗
- HHS FAQ 2003: Are we required to certify our organization's compliance with the standards? ↗

