Keycloak or FreeIPA for PCI DSS: which side fits your cardholder environment
Keycloak and FreeIPA solve different authentication problems, so the PCI DSS decision starts with where logins to cardholder environment systems actually happen. Keycloak fits browser SSO and MFA for applications in or near the cardholder data environment, and FreeIPA fits Linux and Kerberos host access. Neither project makes a PCI DSS claim, so your organization carries the scope, the controls and the evidence whichever side you pick. This page covers only the PCI DSS angle, and the general Keycloak vs FreeIPA comparison sits on its own page. Assessment is against PCI DSS v4.0.1, the only active version, so map every design decision to that version from the start.
Four questions should decide the choice. First, where does authentication for cardholder environment systems happen: in web applications, on Linux servers and jump hosts, or in both places? Second, which protocols do the applications need? Keycloak supports OpenID Connect, OAuth 2.0 and SAML 2.0, but FreeIPA's documented strengths are Kerberos and LDAP, so confirm with the FreeIPA project which browser SSO path your target applications require. Third, does an Active Directory estate already hold the users? Keycloak can federate users from LDAP or Active Directory, and FreeIPA can establish a cross-forest trust with an AD domain. Fourth, which Linux skills does your team have to run a 389 Directory Server, an MIT Kerberos KDC and a Dogtag certificate authority under audit scrutiny? Write these answers down before any vendor conversation.
Neither platform removes your obligations, so map each in-scope login path to Requirement 8 (identification and authentication) and Requirement 10 (logging and monitoring) in PCI DSS v4.0.1. Keycloak's documented MFA options, brute force lockout and per-realm TLS settings can support access control and transmission security. FreeIPA's documented OTP support, host-based access control (HBAC) and API auditing can support access control and logging. Neither project publishes a PCI DSS attestation, so an assessor will ask for your configuration, MFA enforcement, log retention and review, and the scoping record for every system that authenticates into the cardholder data environment. Confirm with a Qualified Security Assessor where the boundary sits before you finalize either design, and read the standard on the PCI Security Standards Council site.
Which side fits which cardholder environment
Cardholder environments usually split into two identity jobs: signing staff into web applications that handle payments, and controlling who can log in to the Linux hosts underneath them. Each card names one job, the condition that makes that side the right fit, and the cost you carry. Several of the answers depend on your own applications and audit scope.
Payment-facing web single sign-on
Payment pages, merchant portals and back-office tools that need OIDC or SAML single sign-on with MFA are the case Keycloak covers directly. Its documented MFA options, brute force lockout and per-realm TLS settings can support access control and transmission-security requirements. The project publishes no PCI DSS attestation, so the operator carries the scope. Keycloak needs a supported production database, such as PostgreSQL 14 to 18, because the default dev-file database is not suitable for production. Before go-live, confirm which MFA methods and lockout thresholds your assessor will accept, and record each setting.
Keycloak docsExisting directory users
Many cardholder environments already keep staff accounts in Active Directory or LDAP. Keycloak can federate those users, so passwords and group membership stay in the directory while applications receive single sign-on through Keycloak. This matters when the directory is the system of record and you want one password store for staff. The cost is operational: the project plans four minor releases a year, and you run the patch cadence for Keycloak itself. Confirm that the attributes and group mappings your access rules depend on sync correctly before you go live.
Linux hosts and Kerberos sign-on
Linux servers and hosts in the cardholder environment often need Kerberos single sign-on, one-time passwords, host-based access rules and certificates from an integrated CA. FreeIPA brings 389 Directory Server, an MIT Kerberos KDC and the Dogtag certificate authority together under one GPL-3.0 project. Its documentation covers OTP, HBAC and API auditing, which you can cite as supporting controls for access control and logging. The project makes no PCI claim, so mapping those features to your requirements is your work. Check that HBAC rules and audit records reach the storage your assessor will sample.
FreeIPA About pageBrowser sign-on into applications
Cardholder staff also sign in to web applications, and that is the path to verify before you choose FreeIPA. Its strengths are Kerberos sign-on and certificates for hosts and services, so confirm the browser SSO path into each payment application against your own apps. For example (illustrative), an internal refund portal might not accept the Kerberos sign-on you plan to use. If it does not, you add a second identity component, and that component joins the scope. Record the test result for each application before the assessment.
What PCI DSS asks of an identity and SSO platform
An identity platform is in scope for PCI DSS when it could affect the security of the cardholder data environment (CDE). In practice, any Keycloak realm or FreeIPA domain that gates administrator or user access to systems that store, process or transmit cardholder data or sensitive authentication data falls inside that boundary. The PCI Security Standards Council applies the standard to merchants, processors, acquirers, issuers and service providers, and its reach extends to systems that could affect the CDE's security even when they hold no card data themselves. Treat the identity platform as in scope if it sits between any person or service and the CDE. Confirm that boundary with your assessor before you design the setup, because it determines which realms, domains, hosts and admin consoles the assessment covers.
Assessors test the same few themes whichever platform you choose. They look for unique IDs for every account and strong authentication, including multi-factor authentication, for access into the CDE. They look for lockout after repeated failed attempts, encrypted transmission of credentials and sessions, access limited to what each role needs, and logs that record access and configuration changes to the identity platform itself. Map these themes to the v4.0.1 requirement numbers yourself, using the standard's own requirement titles. Keep a table that links each theme to the realm setting, host rule or log source that evidences it, and ask your assessor which numbering they will accept.
Version dates shape the evidence you collect. PCI DSS v3.2.1 was retired on 31 March 2024 and v4.0 on 31 December 2024, so v4.0.1 is the only active version. The 51 future-dated requirements from v4.0 took effect on 31 March 2025, so assessors expect them evidenced now. For Keycloak, the documented MFA options, brute force lockout and per-realm TLS settings can support the access and transmission controls, but you must verify each value in your own realm configuration. For FreeIPA, the documented OTP, host-based access control (HBAC) and API auditing can support access and logging controls, and you must confirm the rules and log retention. Neither project makes a PCI DSS claim or publishes an attestation, so your organization carries the scope and the evidence. The PCI DSS standard page lists the current version.
How Keycloak and FreeIPA each meet PCI DSS as documented
This table sets out what each platform documents for the identity controls a PCI DSS assessment usually examines, and where your organization still does the work. Read each cell as documented capability only, because neither project issues a PCI DSS attestation and each control must be confirmed in your own environment. The main takeaway is that both platforms offer supporting controls, while scope, evidence and assessor review stay with the operator.
| Requirement theme | Keycloak as documented | FreeIPA as documented |
|---|---|---|
| MFA for access into the environment | Documents MFA options for logins. Confirm which factors your realm enforces for administrators and remote users. | Documents OTP authentication alongside Kerberos and LDAP. Confirm OTP enrollment and enforcement on every access path you use. |
| Lockout after failed logins | Documents brute force lockout per realm. Confirm thresholds and lockout duration in your realm settings. | Confirm in your FreeIPA version whether failed-login lockout is available and how it is configured, then test it. |
| Transmission security | Documents per-realm TLS settings. Confirm TLS versions and cipher configuration for every endpoint and database connection. | Documents DNS over TLS between clients and IdM DNS servers, introduced in 4.13.0. Confirm how LDAP, Kerberos and web traffic is protected. |
| Access control | Provides an admin console and fine-grained authorization services. Confirm least-privilege admin roles and authorization policies for cardholder data applications. | Provides host-based access control (HBAC) and central users, groups and policies. Confirm HBAC rules cover every system in the cardholder data environment. |
| Audit logging | Confirm login and admin event logging in the server administration guide for your version, and where those events are stored. | Documents API auditing for the IPA API. Confirm where audit records are stored and how they reach your central log platform. |
| Credential and certificate handling | Production needs a supported relational database, such as PostgreSQL 14 to 18. Confirm database encryption, backups and secret storage. | 389 Directory Server with Dogtag issues certificates, and random serial numbers are the default from 4.13.0. Confirm key storage and certificate lifecycle procedures. |
| Patch lifecycle | Plans four minor releases a year, with 26.8.1 current (released October 13, 2026). Set an upgrade cadence and confirm which release line you support. | Newest tag is release-4-13-4, and the platform is packaged in Red Hat Enterprise Linux as Identity Management. Confirm your patch source and support window. |
| Project attestation | The project publishes no PCI DSS attestation. Your organization, with its independent assessor, must establish scope and evidence for the deployment. | The project makes no PCI DSS claim. Scope, evidence and assessor review rest with your organization. |
Where the cardholder data environment boundary falls for each side
The organization draws the cardholder data environment (CDE) boundary for each identity platform, and the scope follows the systems that platform authenticates and the administrative paths that could change them. For Keycloak, a scope discussion usually covers the realms that authenticate people and applications with access to the CDE, the admin console that can change realm settings, the production database that holds realm and user data, and the TLS endpoints that users and applications reach. Each one that gates access to the environment needs a documented answer on whether it is in scope. Keycloak needs a relational database in production, so add that database to the map from the start instead of at audit time.
For FreeIPA, map the IdM servers and their replicas first, because they hold the directory, Kerberos and policy data that decide who can log in to the Linux hosts it governs. The Dogtag certificate authority belongs in the same map, since the certificates it issues underpin trust for the services that use them. Then list the Linux hosts enrolled in IdM and the host-based access control rules that apply to them, because those rules decide which hosts a person can reach. Confirm which replicas can change policy and who holds administrative rights on the servers. The PCI DSS standard page explains which entities the standard applies to, and your assessor will apply that same test to each item on the map.
The item most often missed is the trust path. FreeIPA can establish a cross-forest trust with an Active Directory domain on Windows Server 2008 R2 or later, and that trust lets AD users reach Linux resources. If your environment has one, the AD domain controllers, the groups that grant access and any AD administrative path that changes those groups may enter the scope discussion, even though the platform team may not operate them. Keycloak raises the same question when it federates users from an LDAP or Active Directory directory. Trace the actual access path from each directory to the CDE and do not assume a directory is out of scope. Whatever you decide, the organization owns that decision: write it down, record the reasoning and confirm it with your assessor before the assessment starts.
Identity evidence reaches the assessor through one folder
The diagram starts with users and administrators outside the trust boundary around the cardholder data environment. Keycloak handles OIDC and SAML applications inside the boundary, and FreeIPA handles Linux hosts and Kerberos services. You configure MFA, lockout and access rules in both platforms, and both send login and admin logs to a log store you control. Configuration exports from each platform, along with your release and patch records, access review records and scope document, form one evidence folder that you hand to the assessor. Check that the boundary matches your documented scope, that the log store keeps records long enough for assessment, and that every folder item is dated and owned by a named person.
Identity logs and configuration reach the assessor through one evidence folder.
Evidence a PCI DSS assessor asks for from Keycloak and FreeIPA
Keycloak evidence is mostly configuration exports, administrator records and event logs that your team keeps and can show. Start with the realm settings, so the assessor can see how MFA, brute force protection and TLS are configured in each realm, then show who holds administrative rights and what each role can change. Keycloak's documentation describes these settings, but the exports, retention periods and review records are yours to produce.
- Realm configuration exports: Dated exports of MFA, brute force detection and per-realm TLS settings, tied to the change ticket that approved them.
- Administrator register: The accounts with admin roles in each realm, the access each role grants and the date of the last review.
- Login and admin event logs: Samples of authentication and administrative events, plus proof they leave the server and are kept for your policy period. Confirm in the Keycloak Server Administration Guide where event logging and retention are documented for your version.
- Database and backup records: The production database engine and version, backup schedules and restore test results. Keycloak needs a relational database in production, so this record belongs in scope.
- Release history and upgrade tickets: The version running in each environment, the upgrade tickets and the test evidence behind each one. Since Keycloak 26.0, the project plans four minor releases a year, so this record grows quickly.
Compare each export with the running configuration, because assessors often check the two against each other.
FreeIPA evidence sits across the directory, the Kerberos and certificate services and the servers that run them. The assessor will expect proof that second factors are enrolled under documented rules, that host access is limited and reviewed, and that certificate issuance and replication are controlled and recorded. FreeIPA documents OTP, host-based access control and API auditing that you can cite as supporting controls, but the project makes no PCI DSS claim, so the evidence set is yours to assemble.
- OTP enrollment and policy exports: Enrollment records and the OTP policy settings for users and groups, described in the FreeIPA OTP design.
- HBAC rule exports and reviews: Host-based access control rules showing which users reach which hosts and services, with dated records that someone checked them.
- API audit logs and retention proof: Records of changes made through the IPA API, with evidence of where they are stored and how long they are kept. The FreeIPA audit design covers the API auditing work, so confirm what your installed release writes.
- Dogtag certificate issuance records: The certificate profiles used, who requested and approved each certificate, and the serial numbers issued.
- Replication topology and patch records: A diagram of the replicas and their roles, plus package and patch level records for each server from the distribution you run.
Confirm which records your installed release produces by default and which need configuration before the assessment starts.
Scope and policy evidence covers both platforms and is usually the first material an assessor reads. It defines which systems store, process or transmit cardholder data and which connected systems could affect that environment. The PCI Security Standards Council's PCI DSS page explains who the standard applies to, and identity servers can be in scope even when they hold no card numbers.
- Cardholder environment scope statement: A written statement naming every system in scope, including Keycloak realms, FreeIPA servers and the applications that trust them.
- Data flow diagram: Shows how authentication data, tokens and directory data move between users, applications, Keycloak, FreeIPA and any federated directory.
- Access review records: Dated reviews of who can reach the identity platforms and the applications they protect, with the decision recorded for each account.
- Change records: Approved changes to identity configuration, with the test results and rollback plan attached.
- Written scope for prepared evidence: If DeployOpen prepares the evidence, the written scope agreed before work starts defines what the evidence covers.
Share this list with the assessor early and confirm the format of each record before you collect it.
Configuring the chosen side for PCI DSS access control and logging
This sequence turns the platform you chose into a configuration an assessor can trace to PCI DSS access control and logging requirements. Each step names who acts and the record it leaves behind. Your team keeps the scope and identity decisions, while an outside party can carry out parts of the testing if the work is scoped in writing.
Define the cardholder environment scope
Write down which systems store, process or transmit cardholder data, and which ones could affect the security of that environment. List every application and host that authenticates through the platform, with its protocol (OpenID Connect, SAML 2.0, LDAP or Kerberos) and its owner. Your team owns this list because the scope decision drives every later step, and the platform documentation does not define your scope for you. An outside party can review the draft in writing, but the signed scope document stays yours. Done when each authenticating system has a named owner, a protocol and a sign-off date.
Assign each population to a platform
Decide which side handles each group: web and API applications on Keycloak, Linux hosts, host access rules and Kerberos logins on FreeIPA, or both, with Keycloak federating users from an LDAP directory such as FreeIPA. Record the choice for each population, the reason for it and the person who approved it. Your team makes this decision, since neither project makes a PCI DSS claim and the choice determines which evidence you must produce. Done when every system on the scope list maps to a named platform, and any exception has a documented owner and reason.
Enable and test MFA and lockout
In Keycloak, set the MFA options and brute force lockout in each realm that holds cardholder-facing or administrative accounts. On FreeIPA, enable OTP for the users and groups in scope and check that host-based access control (HBAC) rules deny the logins they should. Run failed-login and lockout tests with dedicated test accounts and record the date, account, expected result and actual result for each test. An outside tester can run these tests under written scope, but your team keeps the results. Done when every test has a recorded result and each failure has a linked retest.
Enforce and record TLS on endpoints
Turn on TLS for every endpoint that carries login traffic: the Keycloak hostname, the FreeIPA web UI and LDAP service, and each application callback URL. In Keycloak, set the TLS requirement for each realm and write down the value. Keep a table with endpoint, certificate issuer, the setting or file that enforces TLS and the date it was last checked. Your team owns the configuration, and an outside tester can check it from outside the network under written scope. Done when a scan or manual check finds no login endpoint that accepts plaintext connections, and the table matches what the scan found.
Set log collection, retention and review
Enable logging of authentication events and administrative changes on both platforms, including FreeIPA API calls, which the FreeIPA audit design describes. Forward those logs off the platform host to a store that platform administrators cannot edit, then generate a test login and confirm the event arrives there with its timestamp and user identifier. Write the retention period and the review owner into the logging standard, using the figures your assessor and policy set. Your team owns this step, since log destinations and access rights are environment decisions. Done when a test event appears in the central store, and the review owner has signed the standard.
Set a patch and upgrade cadence
Write a cadence that follows each platform's release model. Since Keycloak 26.0, the project plans four minor releases a year and says breaking changes in a minor release will be opt-in, so test each minor upgrade on a copy before production. FreeIPA receives updates through the distribution you run, such as Red Hat Enterprise Linux, Fedora, Debian or CentOS, so its cadence follows that distribution's package updates. Your team owns the schedule and the approval step. An outside party can perform upgrades under written scope or a retainer. Done when the cadence names an owner, a test environment and an approver for each platform.
Assemble the evidence folder and retest
Collect the scope list, population decisions, MFA and lockout results, the TLS table, log samples, the cadence and change records into one folder. Index each artifact to the PCI DSS requirements you rely on, with its date and owner. Schedule a retest after any change to MFA, TLS, logging or identity sources, and after each minor upgrade. Your team assembles the folder, and an outside tester can run the retests under written scope. An assessor decides whether the evidence is sufficient, and DeployOpen issues no audit reports or attestations. Done when each requirement you rely on points to a dated artifact and the retest schedule is on record.
Keycloak vs FreeIPA for PCI DSS: questions buyers ask before hiring help
How much effort does a PCI DSS Keycloak or FreeIPA project take?
Effort depends on four drivers: how many cardholder environment applications need SSO, whether Active Directory already exists, how large the Linux estate is, and how much custom evidence the assessor will ask for. A small set of web applications with an existing Active Directory is a very different project from a large Linux estate with legacy applications that bind to LDAP and bespoke evidence requests. Keycloak handles SSO for web applications, while FreeIPA handles Linux identity, Kerberos, certificates and host policy, so a design that uses both adds integration work. Build a complete application and host inventory before asking for a quote, because those two lists move effort more than any other input. Then ask the provider to show how effort changes if either count grows.
How long does a PCI DSS identity project take to finish?
Time is set by the written scope and its milestones, and no fixed duration applies to every environment. The scope names the systems in the cardholder environment, the deliverables and the dates each milestone needs, so it is the document to read first. Ask for milestones covering discovery, build, hardening, evidence collection and retest, along with the dependencies on your side, such as change windows and database team availability. Timelines also move with the number of identity sources to integrate and with the assessor's review schedule, which sits outside the engagement. Most engagements are fixed-scope, so agree the timeline in writing before work starts and treat any earlier figure as a rough planning assumption.
What does the organization need to provide for a PCI DSS identity project?
The organization has to supply people and access before the technical work can finish. Expect to name:
- an accountable owner for each in-scope system and for the identity platform itself
- administrator access for the implementation team, granted under logging and reviewed
- a change process that approves configuration changes to authentication, TLS and logging
- network and database teams for segmentation, ingress and the database behind the platform
- a liaison who manages assessor requests and routes them to the right owner
Confirm these roles early, because gaps in ownership or change approval slow evidence collection.
Can our team implement Keycloak or FreeIPA for PCI DSS without outside help?
Yes, a team with the right skills can run much of this itself, because both projects are open source and document their security-relevant controls. Keycloak documents its MFA options, brute force lockout and per-realm TLS settings, and FreeIPA documents OTP, host-based access control and API auditing. Keycloak publishes no PCI DSS attestation and FreeIPA makes no PCI claim, so the operator carries the scope either way. Your team should own:
- the scope and the inventory of in-scope applications and hosts
- the configuration baseline for MFA, lockout and TLS
- access reviews, privileged account handling and offboarding
- logging, log review and retention
- patching, upgrades and rollback planning
- the evidence pack and the relationship with the assessor
Check each setting against your own control list using the Keycloak Server Administration Guide before you start.
Does DeployOpen certify our PCI DSS compliance or issue a report?
No. DeployOpen does not certify environments or issue attestations or audit reports. It plans, implements and documents the controls, then prepares the systems and evidence that an assessor reviews, and the assessor decides whether the requirements are met. Assessor fees are paid to the assessor, separately from the DeployOpen engagement. Because neither Keycloak nor FreeIPA publishes a PCI DSS attestation, the organization carries scope for the whole design. Ask any provider to list each deliverable as a control, a configuration record or an evidence item, and to confirm which items the assessor needs to review directly. For the standard's scope and assessor rules, read the PCI Security Standards Council's PCI DSS page.
What drives the cost of hiring help for PCI DSS identity work?
The cost comes from a fixed-scope quote built on the written scope, and DeployOpen does not publish a price list. Quotes move with the number of in-scope applications, identity sources to integrate, Linux hosts to harden, depth of evidence and testing included. Retainers for upgrades and continuous testing are a separate, recurring item, scoped in writing. Both platforms are open source, Keycloak under Apache-2.0 and FreeIPA under GPL-3.0-or-later with no paid edition of its own, so most lines in the quote cover people, infrastructure and the engagement itself. Assessor fees are paid separately to the assessor. Ask for one-time and recurring costs in separate lines, the assumptions behind the scope, and how the quote changes if the application count grows.
How DeployOpen prepares PCI DSS identity controls and evidence
DeployOpen is a Chainscore Labs company that plans, implements, hardens, documents and supports self-hosted open-source platforms inside your own infrastructure. For Keycloak vs FreeIPA for PCI DSS, that means preparing the identity controls and evidence your assessor will ask for, whichever platform you choose. DeployOpen does not issue audit reports or certifications; your independent assessor does.
How we scope
- Written scope sets which Keycloak or FreeIPA services, hosts and PCI DSS requirements are in the engagement.
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
- Scope also records which cardholder data environment boundary the identity platform touches, and who owns each control.
How we build
- Configure Keycloak MFA, brute force lockout and per-realm TLS settings against the access control and transmission requirements in scope.
- For FreeIPA, configure OTP, host-based access control and API auditing as supporting controls for logging and access.
- Use a production relational database such as PostgreSQL 14 to 18, since the dev-file database is unsuitable.
How we hand over
- Evidence pack maps each in-scope requirement to the platform setting, configuration file or log that supports it.
- Runbooks cover upgrades and backups, so your team can operate the identity platform after handover.
- Ask the assessor early which evidence format they accept, since DeployOpen prepares evidence but does not issue attestations.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after the initial handover.
- Keycloak's release cadence and FreeIPA's packaged versions each need a planned upgrade and retest cycle.
- Ask for the retainer scope in writing, including who retests controls after each upgrade.

