Keycloak vs FreeIPA for SOC 2 and ISO 27001 audits

Keycloak fits web and application SSO with documented audit events and MFA controls, while FreeIPA fits Linux identity, Kerberos and host access policy. Neither product carries the audit: the organization does, and DeployOpen prepares systems and evidence without certifying them.

On this page

Keycloak vs FreeIPA for SOC 2 and ISO 27001 audits: which side fits your scope

The fit depends on where your users and applications sit and which systems your SOC 2 or ISO 27001 scope covers. If the scope is mainly web and application sign-in, the audit questions center on how each application authenticates users and how those sign-ins are logged. If the scope also includes shell access to Linux servers, the questions extend to host identity, Kerberos tickets and host-based access policy. This page covers only the compliance angle. The general Keycloak vs FreeIPA comparison has its own page and is not restated here. Neither project issues an audit report or certificate. An independent CPA firm issues a SOC 2 report, and an accredited certification body issues an ISO/IEC 27001 certificate, and both assess how your organization operates the platform.

On the Keycloak side, the evidence an assessor asks for is sign-in and configuration history. The Keycloak Server Administration Guide documents event auditing for user events and admin events, which lets you show who signed in and who changed realm settings. Brute force protection with temporary and permanent lockout, plus passkeys, recovery codes, TOTP and HOTP, WebAuthn and OTP policy settings, support the logical access and authentication criteria, such as SOC 2 CC6 and ISO/IEC 27001 Annex A control 8.5 on secure authentication. On the FreeIPA side, administrative operations can be traced with journalctl filtered on the IPA.API identifier, host-based access control is documented, and the 4.12.0 release notes say LDAP authentication can be enforced to fail without an OTP token. In both cases you still must show the configuration, how long logs are kept and who reviews them. Ask your auditor whether platform logs are accepted as primary evidence or must be exported to your monitoring system.

Decide on three drivers before choosing a side. The first is the scope boundary: list every application and server population the audit covers, and confirm where each one's identities are stored. The second is protocol. If applications speak OIDC or SAML, Keycloak covers them directly. If they need Kerberos, Linux host policy or certificates issued to hosts, FreeIPA is built for those needs. A common pattern is to federate Keycloak to FreeIPA's LDAP directory so applications use Keycloak while Linux hosts stay on FreeIPA, and you should confirm with your assessor how that split is evidenced. The third is evidence: ask which logs, access reviews and configuration exports your team can produce for each in-scope system over the audit period. If a platform cannot produce that evidence on request, it will be hard to defend in the audit, whatever its feature list.

How Keycloak and FreeIPA each meet the identity controls an assessor tests

This table sets Keycloak and FreeIPA against the identity controls a SOC 2 or ISO 27001 assessor typically samples: event records, MFA, lockout, access restrictions, admin change history, vendor assurance, encryption and release lifecycle. Where a cell names a documented feature, check it in your own build and logs before you write it into a control narrative. Where a cell says to confirm, the gap is yours or the vendor's to close before fieldwork begins.

Identity controlKeycloakFreeIPA
Sign-in and admin event recordsAuditing of user events and admin events is configurable in the Server Administration Guide. Confirm retention and export with your own log pipeline.Confirm with the project or distributor which sign-in events are logged and retained. Admin changes are in the change history row.
Multi-factor authenticationPasskeys, recovery codes, TOTP/HOTP and WebAuthn, with OTP and WebAuthn policy settings in the Server Administration Guide.TOTP fully supported, HOTP somewhat functional. Admins can require OTP for defined account sets and enforce LDAP sign-in to fail without an OTP token.
Lockout against guessingBrute force protection documents temporary and permanent lockout of accounts. Set thresholds to match your password policy.The project documentation does not describe account lockout. Confirm lockout behavior for the 389 Directory Server and Kerberos stack with the project or distributor.
Access restrictions per host or serviceFine-grained authorization services control access to protected resources. Host-level enforcement usually sits with the applications or proxies, so confirm that design.Host-based access control (HBAC) restricts which users reach which hosts and services.
Change history of admin actionsAdmin events are recorded when auditing is enabled. Confirm where events are stored and how they are exported for the assessor.IPA API commands can be read with journalctl filtered on the IPA.API identifier, giving a history of administrative operations.
Vendor attestations for the softwareKeycloak is Apache-2.0 open source. Ask the project, or whoever supports your deployment, which assurance material exists for your release.GPL-3.0-or-later with no paid edition. Packaged in Red Hat Enterprise Linux as Identity Management. Ask your distributor which assurance material covers that package.
Encryption and data locationEncryption at rest and data location depend on your database and hosting. Confirm both with your database vendor and infrastructure team.Not described in the project material. Confirm encryption at rest and data location for the directory, Kerberos keys and Dogtag database.
Patch and release lifecycleThe project plans four minor releases a year, with breaking changes in minor releases opt-in (Keycloak blog, October 2024).Packaged in Fedora, Debian, CentOS and Red Hat Enterprise Linux, so patch timing follows each distributor. Confirm the support window for your package.

What the vendor covers and what the organization still configures and evidences

Both platforms ship features an assessor can test, but the audit evidence comes from how your team configures, operates and records them. The first and third cards list what each project documents. The second and fourth cards list the settings, reviews and records you must own before an independent auditor or certification body reviews your environment. Confirm each claim in your own deployment.

What the Keycloak project provides

The Keycloak project ships its server under Apache-2.0. Its Server Administration Guide documents user event and admin event auditing, which are the main sources of sign-in and configuration evidence. Passkeys, recovery codes, TOTP/HOTP and WebAuthn, along with OTP policy settings, cover multi-factor authentication, and brute force protection offers temporary and permanent account lockout. The project plans four minor releases a year, and breaking changes in minor releases are opt-in. Confirm that each setting exists in the version you deploy.

Keycloak admin guide

What you configure in Keycloak

Auditing only produces evidence if you enable event logging, set retention and forward events to your log store, because an assessor will ask for that history over a period. Set the MFA and lockout policy in each realm you run, and document who holds the admin roles along with a recurring review of membership. Keep the production database on a supported engine such as PostgreSQL 14 to 18, with tested backups and restore records. Record every upgrade with its date, approver and rollback plan, and document where the hosting location sits for data protection reviews.

What the FreeIPA project provides

FreeIPA is GPL-3.0-or-later software from a community project with no paid edition of its own. Its IPA API command history can be read with journalctl under the IPA.API identifier, which gives a record of administrative operations. Host-based access control (HBAC) limits which accounts reach which hosts, and administrators can require OTP tokens for defined sets of accounts, with TOTP fully supported and HOTP somewhat functional. Release 4.12.0 added the option to make LDAP authentication fail without an OTP token. Packages exist for Fedora, Debian, CentOS and Red Hat Enterprise Linux as Identity Management.

IPA API audit design

What you configure in FreeIPA

The evidence sits in your configuration. Write HBAC rules that match your access model, define OTP sets for privileged groups and enroll hosts through a controlled process. Certificate issuance policy and CA key handling need named owners for the Dogtag certificate authority, and you must decide how long journal entries are kept and where they are forwarded. An Active Directory trust, if you add one, brings a second identity source into scope. Patch cadence depends on your Linux distribution, so read its support terms and record each update window.

Where the identity store sits changes which records the assessor samples

The identity store you choose decides which records an assessor pulls. Keycloak's evidence covers application access. It can federate users from LDAP or Active Directory and broker logins to external OpenID Connect or SAML providers, so its sign-in and configuration records cover the applications your staff and customers use. Confirm that user event and admin event logging is turned on in each realm before the audit window opens, since these are the sign-in and configuration records an assessor will sample. FreeIPA's evidence is about hosts. It combines a 389 Directory Server LDAP directory, an MIT Kerberos KDC and a Dogtag certificate authority, so its records cover Linux logins, host-based access control and certificates. Its administrative operations can be read with journalctl under the IPA.API identifier, which gives a change history for the audit.

If Active Directory is already in the estate, the FreeIPA question becomes a directory question. FreeIPA can establish a cross-forest trust with an Active Directory domain on Windows Server 2008 R2 or later, so AD users can reach Linux resources. Active Directory Domain Services replicates directory data to every domain controller in a domain, so a change made on one controller reaches the others. Replication keeps the copies consistent, but an assessor still asks which system owns the joiner, mover and leaver record. If the estate is Windows Server based, note that Windows Server 2025 has mainstream support ending November 14, 2029, according to the Microsoft Lifecycle page, so check the domain controller versions against the audit period.

Running both platforms means two sets of records to evidence. Keycloak's user and admin events, FreeIPA's IPA.API history and AD's directory changes each need their own retention, access review and sampling approach, and the auditor will test whether they agree with each other. Choose one system as the authoritative source for who holds an account and who has left, and have the others take that answer through federation, provisioning or trust. Make this decision before the audit window starts, because changing the source partway through the period creates a gap the assessor will ask you to explain. Confirm with your SOC 2 or ISO 27001 auditor which system they will sample and how they expect the handover between systems to be documented.

Keycloak vs FreeIPA for SOC 2 and ISO 27001 audits: evidence to prepare

Keycloak evidence comes mostly from its own event and configuration records. The Keycloak Server Administration Guide describes configuring auditing for user events, which cover sign-ins, and admin events, which cover configuration changes. Those exports, together with the policies that govern them, are usually the first items an assessor requests.

  • User and admin event exports: Export user events and admin events for the sampled period, and record where they are stored and how long your configuration keeps them before they are removed.
  • MFA and OTP policy: Keep the two-factor settings for TOTP, HOTP, WebAuthn and passkeys, the recovery code configuration, and a register of user exceptions with the approver and the end date of each exception.
  • Brute force lockout: Save the temporary and permanent lockout settings, along with the change record showing when each value was set and who approved it.
  • Realm admin membership and reviews: Export the list of realm admins and the periodic review records showing that a named owner confirmed each account still needs the role.
  • Configuration and upgrade records: Tie configuration exports to the release version in use at each point in the period, and keep the change ticket for every upgrade between releases.

Confirm with your assessor which export formats they accept, such as JSON, CSV or screenshots from the admin console, and how they choose the events they sample from the period.

How sign-in and admin records reach the assessor's evidence pack

The diagram starts with users signing in to two places: Keycloak, which records user events and admin events when auditing is configured, and FreeIPA-enrolled Linux hosts, where IPA API commands can be read from the systemd journal under the IPA.API identifier. Both record streams are forwarded into the organization's central log store, and change tickets record which administrative changes were requested and approved. The assessor receives an evidence pack assembled from that store. The boundary marks what the organization runs itself: retention periods, forwarding rules and who can open the evidence store are set by the organization's own controls, not by Keycloak or FreeIPA. Check each hand-off before the audit starts.

Sign-in and admin records flow from identity systems into the organization's own evidence store.

How to configure Keycloak or FreeIPA for the audit window

This sequence sets up the identity platform so that sign-ins, administrative changes and access decisions can be shown to an assessor for the period under review. Each step names the owner and the record that proves it is done. Work through it with your auditor's evidence list in hand, since the required evidence depends on your scope.

  1. Define in-scope systems and the system boundary

    Start by listing every system that signs users in, stores identities or changes access: Keycloak or FreeIPA, the applications behind them, the directory they read from and the admin workstations. Write these into the system description (SOC 2) or the ISMS scope document (ISO/IEC 27001), and state which trust services categories or controls each one supports. Before you start, check the current release on each project's release page and record the version you will run. Done when the scope document names each identity component, its owner and its version, and your auditor has agreed the boundary in writing.

  2. Assign an owner to each identity flow

    Map every login path and decide which platform owns it: Keycloak for OpenID Connect, OAuth 2.0 and SAML sign-in to web applications, FreeIPA for Linux host login, Kerberos single sign-on, host-based access and certificates, or Keycloak federating users from an LDAP or Active Directory directory. Each flow needs one system of record for the account and one for the sign-in decision, so an assessor can trace a user from the directory to the application. Record a named owner for each flow. Done when every application, host group and admin path appears once in that map with its owner and the audit log that covers it.

  3. Enable Keycloak event auditing and forwarding

    In each Keycloak realm, turn on user event and admin event logging in the realm settings, following the Keycloak Server Administration Guide for your release. Decide how long events are kept in the database and forward them to the log platform your security team reviews, so sign-in and configuration changes survive a database cleanup. Keep the realm configuration under change control, since an assessor will ask who could alter these settings. Done when a test sign-in and a test admin change both appear in the forwarded log with a timestamp and the acting user, and you hold a dated export of the realm configuration.

  4. Set MFA, OTP and brute force lockout policy

    Configure the authentication flow so administrators and remote users must use a second factor, then set the OTP policy to TOTP and choose WebAuthn or passkeys where your users can use them. Turn on brute force protection with temporary or permanent lockout, and set the thresholds your policy states. Name one policy owner, usually the security lead, and record the policy in the document set your auditor reviews. Done when a test account is locked after the configured failures, a second factor is prompted, and the policy document carries the owner's name, the approval date and the review date.

  5. Define HBAC rules, OTP sets and enforcement in FreeIPA

    On FreeIPA, write host-based access control rules so each host accepts only the groups that need it, and define the account sets that must use OTP tokens. Standardize on TOTP, since the OTP design treats it as fully supported and HOTP as only somewhat functional. Where policy requires a token for LDAP authentication, enable the enforcement setting described in the 4.12.0 release notes and confirm in a test that a bind without a token fails. Confirm that IPA API journal entries, filtered on the IPA.API identifier, are kept long enough for your policy and forwarded to the same store as the Keycloak events. Done when a denied login, a rule change and a failed OTP bind all appear in the forwarded logs.

  6. Name the authoritative record for each identity

    Decide which system holds the record that starts, changes and ends each person's access: the HR system, the directory, or the identity platform itself. If Keycloak federates from LDAP or Active Directory, the directory is the source for accounts, and Keycloak should pass access through from that record. Write the joiner, mover and leaver steps against that record, with the approver for each change and the removal window set by your own policy. Done when a sample leaver shows the account disabled in the authoritative record and the disablement visible in the Keycloak or FreeIPA logs.

  7. Run an access review and sample evidence export

    Review every Keycloak realm role, FreeIPA group and HBAC rule against the owners from the flow map, and record who kept, changed or removed each grant. Then export a sample of sign-in events, admin events, IPA API journal entries, policy settings and leaver tickets across the period your auditor will sample. A SOC 2 Type 2 report tests operating effectiveness over a period, so a single export from one day shows little. Done when every line on the auditor's evidence list has a matching file or ticket and the access review sign-off carries a date.

  8. Keep upgrade and patch records by version

    Keep a dated record of each Keycloak, FreeIPA and operating system update, the release version in use, the change ticket and the test result. Keycloak plans four minor releases a year and says breaking changes in a minor release are opt-in, so note which release notes you reviewed before each upgrade. For FreeIPA, record the package version on each host and check the upstream release tags before applying patches. Done when the register lists every identity component's current version, its last patch date and a rollback step, and matches the versions in the system description from the first step.

Keycloak vs FreeIPA for SOC 2 and ISO 27001 audits: questions before hiring help

How much effort does audit evidence take for Keycloak or FreeIPA?

Effort follows scope and log maturity more than any single setting. Scope size is the first driver: every Keycloak realm, every enrolled FreeIPA host and every application that trusts either one adds configuration an assessor may sample and test. Existing log tooling is the second. Keycloak's user event and admin event auditing, and the IPA.API journal entries that record FreeIPA administrative commands, only become usable evidence once they are shipped to storage with retention and search. If you already run a log pipeline with retention, most of the work is mapping controls to settings. If you do not, building that pipeline becomes part of the project. Ask any provider to price the in-scope systems, the log sources and the evidence period separately.

How long does an identity audit preparation take against our audit dates?

Timing comes from your audit window and change calendar. The platform itself sets no fixed duration. A SOC 2 Type 2 report covers an operating period, so identity controls must run and leave records for the whole window an auditor samples. A Type 1 report looks at control design as of one date. ISO/IEC 27001 certification runs on a three-year cycle with an audit in every calendar year, so your first certification audit is planned against your own calendar. Keycloak plans four minor releases a year and says breaking changes in a minor release will be opt-in (Keycloak's release update policy), so each upgrade is a change an auditor may ask about. Build the plan backward from your audit dates and change freeze windows, then ask any provider for a schedule written against them.

What does our team need to provide before an identity audit starts?

The organization must name control owners, grant admin access, make policy decisions and set aside review time. These cannot be handed to an outside team. Expect to provide:

  • Named control owners for access reviews, logging, backup and change approval, each with a named backup.
  • Administrative access to the Keycloak realms or the FreeIPA domain, plus read access to the logs and the systems that store them.
  • Policy decisions on password and OTP rules, brute force lockout thresholds, session lengths and who may approve administrator changes.
  • Review time from someone who signs off on access reviews, answers assessor questions and approves remediation before the audit window closes.

Agree these owners in writing before work starts, because an engagement stalls when a control owner has not been named.

Can our own team handle SOC 2 or ISO 27001 identity work in-house?

Yes, if your team already operates identity infrastructure and can explain its controls to an assessor. The hard skills differ by platform. For FreeIPA, they are Kerberos ticketing, the Dogtag certificate authority, LDAP replication in 389 Directory Server and SSSD on client hosts. For Keycloak, they are OIDC and SAML client setup, production database operations, upgrades and clustering for high availability. Both platforms need log pipeline skills, because audit evidence is only useful when it is retained and searchable. Most in-house gaps sit in the other platform's territory: Kerberos specialists rarely own OIDC clients, and application teams rarely own KDC health. Assess these skills by name, then decide which gaps to close internally and which to buy.

Does DeployOpen certify our systems or issue a SOC 2 report?

No. DeployOpen does not certify systems, issue audit reports or issue attestations, and it does not issue ISO certificates. Independent auditors and certification bodies perform those assessments. DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside your own infrastructure, and it prepares systems, controls and evidence for compliance assessments. For identity work, that can include integrating SSO, tightening access control and audit logging configuration in your environment, and documenting the procedures your control owners run. Scope, deliverables and timelines are agreed in writing before work starts, and a quote follows from that scope. Your auditor decides whether the evidence is sufficient.

Do Keycloak or FreeIPA come with a SOC 2 report or ISO certificate?

Do not assume either project comes with one. Neither project is a certified service, and a SOC 2 report or ISO certificate covers an organization's own controls and operations, including the deployment you run. Your assessor will examine your configuration and your operating records. Ask the Keycloak or FreeIPA project, your distributor if you use one, and your assessor which documentation exists about the software, such as design notes and security documentation, and which parts of the evidence you still have to produce yourself. Get those answers in writing before you scope any engagement.

What do the Keycloak and FreeIPA licenses cost to run?

Neither license charges a fee for the software. Keycloak is Apache-2.0, and FreeIPA is GPL-3.0-or-later with no paid edition of its own. The cost is labor, hosting and any support subscription. Labor is largely one-time for the build and recurring for upgrades, access reviews and evidence collection. Hosting recurs. Support is optional. If you run FreeIPA on Red Hat Enterprise Linux, where it is packaged as Identity Management, confirm with the distributor what any subscription covers. Costs rise with the number of environments, the number of in-scope systems and how much evidence is collected by hand. Ask every quote to separate build, run and support costs, name the roles and hours, and state what each recurring item includes.

Which logs and settings will an assessor ask to see for Keycloak or FreeIPA?

Expect assessors to ask for sign-in and change records first, then to test whether authentication settings are enforced. For Keycloak, expect requests for user event and admin event auditing, brute force lockout settings, and the passkey, recovery code, WebAuthn and OTP policy configuration. For FreeIPA, expect the journal entries for IPA API commands, host-based access control rules, and the sets of accounts that must use OTP tokens. The FreeIPA 4.12.0 release notes describe enforcing LDAP authentication so it fails without an OTP token, which is a setting you should be able to demonstrate working. Keep dated exports of these settings and show who changed them. Confirm with your assessor which samples and periods they will test.

How DeployOpen prepares identity systems and evidence for these audits

DeployOpen plans, implements, hardens, documents and supports self-hosted identity platforms inside your own infrastructure, so the controls an assessor samples can be shown working. For Keycloak vs FreeIPA, we scope which sign-in and administrative paths fall inside the audit boundary, configure the controls each platform documents, and package the logs and settings that show them in use. DeployOpen prepares systems and evidence for a SOC 2 or ISO 27001 assessment, but independent auditors issue the report or certification.

How we scope

  • The written scope names the directories, applications and admin accounts inside the SOC 2 or ISO 27001 boundary.
  • Fixed-scope engagements agree deliverables and timelines in writing before work starts, so the evidence list is known upfront.
  • Confirm with your auditor which criteria or Annex A controls the identity platform must evidence.

How we build

  • Turn on user event and admin event auditing in Keycloak so sign-in and configuration changes leave a record.
  • Configure the MFA, brute force lockout and OTP settings each platform documents, then test them.
  • For FreeIPA, require OTP for the account sets your policy names, then confirm LDAP sign-in fails without a token.

How we hand over

  • Deliver configuration baselines, the audit log settings and a runbook that names the reviewer for each log source.
  • Package sample evidence, such as admin event exports and FreeIPA IPA API journal entries, for the assessor's sampling.
  • Document what DeployOpen configured and what your team still owns, including account reviews and access approvals.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, scoped in writing.
  • Keycloak plans four minor releases a year, so upgrade testing and evidence refresh need a standing schedule.
  • Confirm with your auditor how the evidence we prepared fits the next assessment period.

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.