Keycloak vs Authelia for PCI DSS: which fits your cardholder environment
Choose Keycloak when the cardholder environment needs SAML, LDAP or Active Directory federation, or a full admin console across many applications. Choose Authelia when the protected applications are web apps behind a reverse proxy that can enforce HTTPS and a two_factor policy. The decision turns on four things: which protocols your applications speak, where user accounts live today, whether the identity platform itself falls inside the cardholder data environment, and whether your team can run a production database, a reverse proxy, TLS and a log pipeline. Neither vendor publishes a PCI DSS attestation, so the operator carries scope and evidence whichever platform you choose.
Keycloak's documented MFA options, brute force lockout and per-realm TLS settings can support the requirements on identifying users, authenticating access and protecting cardholder data in transit. Because the project publishes no PCI DSS attestation, you must configure and evidence each setting yourself: the MFA policy for administrators and staff with cardholder access, lockout thresholds, TLS protocol versions and certificate handling for every realm. Production also needs a supported relational database, such as PostgreSQL 14 to 18, so the database holding identity data and its backups belong in your scope review. Confirm with your assessor whether the Keycloak hosts and database are in scope, because that answer changes how much of the platform you must harden and document.
Authelia's two_factor access policy, configurable session lifetimes and inactivity timeouts, and file logging can support access control and logging requirements. It works only for sites served over HTTPS, so the reverse proxy's TLS configuration and certificates join the scope along with Authelia itself. Authelia is self-hosted with no vendor attestation either. Confirm which storage backend holds sessions and user data, set session and inactivity values to your written policy, and ship file logs to a central store with retention you can demonstrate, since logs left on the host are only as protected as that host. Map your setup against PCI DSS v4.0.1, the only active version, and ask your assessor which version they will test against.
Which PCI DSS control areas an SSO platform touches
An SSO platform sits in front of the cardholder data environment (CDE), so it touches several PCI DSS control areas at once. The five areas below are where Keycloak and Authelia differ in what they document and what the operator must configure and prove. Take requirement numbers and wording from the standard itself, not from this page.
Authentication and MFA for CDE access
Anyone who reaches the CDE through SSO must pass an identity check, and the platform decides whether a second factor is required. Confirm that MFA covers every path into the CDE, including admin consoles and any route that skips the login page. Keycloak documents its MFA options, so choose and enforce the factors your policy requires. Authelia uses its two_factor access policy to require a second factor per rule, so check that no protected domain or rule is left at a lower level. Ask both vendors to demonstrate each setting in your environment.
Failed-login lockout
Repeated failed sign-ins must be limited so that password guessing against a cardholder account stays impractical. Keycloak documents a brute force lockout feature, so enable it and record the thresholds and lockout period you chose. Authelia documents its own security measures, but you need to verify which failure counts, lockout periods and login protections apply in your deployment. Check lockout where the password is actually verified. If users come from LDAP or Active Directory, the directory's own lockout behavior matters as much as the SSO layer's. Keep a test run of repeated failures as evidence.
Session and idle timeouts
A session left open at an unattended workstation gives an attacker access without a password. Authelia supports configurable session lifetimes and inactivity timeouts, so set both to the values your policy states and keep the configuration under change control. Keycloak has session and idle settings that apply to realms and clients, and tokens can outlive the browser session, so confirm which timer governs each protected application. Test an idle session in every protected application and retain the result, because the timeout that matters is the one the application enforces in practice.
Transmission security over TLS
Passwords, one-time codes and tokens must travel only over encrypted connections, from the browser to the proxy, the identity server and any directory or database it calls. Authelia serves websites only over HTTPS because its session cookies require it, and the project declines to support plain HTTP, which narrows the browser path. Keycloak documents per-realm TLS settings, so review the settings for each realm. Verify every internal hop with your own scan, since links from the identity server to LDAP, Active Directory or the database are yours to configure and show to an assessor.
Audit logging of access
An SSO platform is often the first record of who reached the CDE, when, and from which address, so its logs must be complete and retained. Authelia documents file logging, which means you decide where the files go, how long they stay and how they reach your SIEM. Keycloak event capture depends on configuration, so confirm which login and administrative events it records and how you export them. Ask for a sample log entry for a failed login, a successful MFA sign-in and an admin change, and check each for a timestamp, user identifier and source address. Keep the retention period in written policy as well.
Authelia logging docsWhat PCI DSS v4.0.1 asks of an identity and SSO platform
PCI DSS applies to the systems that touch cardholder data, not only to the payment application. The standard is owned and maintained by the PCI Security Standards Council. It covers entities that store, process or transmit cardholder data or sensitive authentication data, and entities that could affect the security of the cardholder data environment, including merchants, processors, acquirers, issuers and service providers. An identity or SSO platform falls in scope when it sits in the authentication path to that environment. In an illustrative design, Keycloak or Authelia fronts the administrator consoles for payment systems or issues logins to staff who can reach card data. Before comparing the two, list every application that authenticates into the cardholder data environment and confirm with your assessor which identity components count as connected to it.
Only v4.0.1 is active today. The Council published v4.0.1 on 11 June 2024 as a limited revision of v4.0 with no requirements added or deleted. v4.0 retired on 31 December 2024, and v3.2.1 retired on 31 March 2024, so any SSO design, policy or control mapping that still cites either version needs updating before an assessment. Of the 64 requirements new in v4.0, 51 were future-dated and became effective on 31 March 2025. Before that date they were best practices that could be marked not applicable, so older designs may have treated them as optional. Assessors read the requirements in force, so check each identity-related requirement against the v4.0.1 text itself.
The standard sets outcomes, and the platform only supplies features toward them. The identification and authentication requirements expect multi-factor authentication, lockout and session control to work as configured and to be evidenced. Keycloak documents MFA options, brute force lockout and per-realm TLS settings that can support access control and transmission security requirements. Authelia documents a two_factor access policy, configurable session lifetimes and inactivity timeouts, and file logging that an operator can use toward access control and logging requirements. Neither project publishes a PCI DSS attestation, so the entity carries the assessment and its evidence: exported configuration, change records, access reviews and log retention. Ask your assessor which of these artifacts they will accept before you choose a platform.
How Keycloak and Authelia meet PCI DSS access control and transmission security
This table sets out what each platform documents for the access control, transmission security, logging, storage and attestation points an assessor will examine under PCI DSS. Read each cell in two parts: the documented capability, then what you still need to confirm for your version and configuration. The main takeaway is that neither project provides a PCI DSS attestation, so the controls you configure and the evidence you keep carry the compliance case.
| Requirement area | Keycloak as documented | Authelia as documented |
|---|---|---|
| MFA for access | Documented MFA options. Confirm which methods your version enables for admin and user logins. | Documented two_factor access policy in access control rules. Confirm which rules apply to each protected domain. |
| Failed-login lockout | Brute force lockout is documented. Confirm the lockout settings for your realm in the administration guide. | Confirm in the security measures documentation how failed logins are limited and what is recorded. |
| Session lifetime and idle timeout | Confirm session and idle timeout values in the server administration guide. | Session lifetimes and inactivity timeouts are configurable. Set both to values your PCI DSS policy defines. |
| Transmission security | Per-realm TLS settings are documented. Confirm the protocol versions and certificates your realm enforces. | Works only over HTTPS and declines to support plain HTTP, because its session cookies require it. |
| Audit logging | Confirm the event and admin logging options for your version before relying on them as audit evidence. | File logging is documented. Confirm where logs are written, how long they are kept and how they reach your central log store. |
| Data storage | A relational database is required in production. PostgreSQL 14 to 18 is listed, plus other engines. | Confirm the supported storage backends and whether and how it encrypts stored data in its storage documentation. |
| Vendor attestation | No PCI DSS attestation is published. The operator carries the scope and the evidence. | Self-hosted with no vendor attestation. The operator carries the scope and the evidence. |
What your team still has to do before an assessor sees the setup
Whichever platform you choose, the first task is defining the cardholder data environment and deciding where the identity platform sits relative to it. Keycloak or Authelia is in scope if it authenticates anyone who can reach cardholder data, administers the systems that hold it, or could affect the security of that environment, so document that boundary before anyone builds a realm or an access policy. Then write the authentication and access policy that the configuration must match. Name the users and roles that need two-factor authentication, whether that means Keycloak's MFA options for administrators or the two_factor rule in Authelia's access control configuration, and set the lockout, session lifetime and inactivity timeout values your policy states. Finally, schedule access reviews for administrators and for ordinary users, record who approved each change, and keep the review output for the assessor.
Second, retain and review audit logs. Confirm which events each platform records in your deployment, where the logs go, how long they are kept and who reviews them, and check that the events cover the administrative and authentication activity your access reviews depend on. Third, stay on a supported release line and record every upgrade. Keycloak plans four minor releases a year, and Authelia's current release is v4.39.28, released on September 17, 2026, so confirm which line you run, who approves each upgrade and how you test it before it reaches the cardholder data environment. Use PCI DSS v4.0.1 as the version you assess against, since it is the only active version of the standard. Finally, engage your independent assessor early. DeployOpen prepares systems, controls and evidence for the assessment, but it does not issue audit reports, attestations or certifications. The assessor makes the judgment on whether your setup meets the requirements.
How a PCI user login and its evidence flow through each platform
The flow starts with a user browser requesting a protected cardholder application. The reverse proxy asks Authelia for an access decision under its two_factor policy and forwards only allowed requests. On the Keycloak side, the browser is redirected to an OIDC or SAML client, MFA is completed, and a session token reaches the application, with user data held in Keycloak's database. Both platforms send audit logs to the central log store, which feeds the evidence folder. Check which login events each side records and where those logs are kept. The identity platform is in scope when it authenticates into the cardholder data environment.
Login paths for each platform, with logs flowing to assessor evidence.
The evidence an assessor will ask for and how each side produces it
For Keycloak, the assessor will mostly read the configuration you can export and the admin console settings that control it. Authentication behavior is set per realm, so the evidence is the realm configuration for each realm in the cardholder data environment. The project documents MFA options, brute force lockout and per-realm TLS settings that can support PCI DSS access control and transmission-security requirements, but it publishes no PCI DSS attestation, so the evidence comes from your environment.
- Realm configuration export. Keep a dated export of the authentication flows, OTP or WebAuthn policy, required actions, password policy and brute force detection settings for each realm in scope.
- Admin console settings. Show which accounts can change authentication, TLS and event settings, and keep the record of who made each change.
- Session and idle timeouts. Capture the SSO session idle and maximum lifetimes per realm and per client, since these are the values an assessor compares against your session requirement.
- TLS per realm. Document the realm-level TLS requirement and the certificate chain served at the edge, then add both to your certificate inventory.
- Log event options. The sources for this page do not cover Keycloak's event logging options, so confirm in the Keycloak Server Administration Guide which login and admin events it records, where they are sent and how long you must keep them.
Check that each exported setting matches what is running, because a configuration file that differs from the live realm weakens the evidence.
For Authelia, the evidence sits in its configuration file, its access rules and its log files. Authelia works as a companion to a reverse proxy, so each access decision follows the rules you write, and the rule set is what the assessor reviews. Authelia is self-hosted with no vendor attestation. Its documented two_factor access policy, configurable session lifetimes, inactivity timeouts and file logging can support PCI DSS access control and logging requirements when you apply them.
- Configuration file history. Keep the Authelia configuration under version control so the commit history shows who changed session, authentication and storage settings, and when.
- Access rules. Export the access control rules that require two_factor for each cardholder-facing domain or path, and map every such application to the rule that protects it.
- Session and inactivity timeouts. Record the configured session lifetime and inactivity timeout values, along with the timeouts set in the reverse proxy for the applications behind it.
- File logs. Authelia's file logging can produce authentication records for central storage. Confirm in the Authelia logging documentation which fields and events appear, then keep samples showing user, time and action.
- HTTPS at the edge. Authelia only works over HTTPS, so the TLS settings and certificate inventory at the proxy belong in the same evidence set.
Check that every cardholder-facing application is reachable only through the proxy and a rule requiring two-factor, since an application reachable around the proxy falls outside this evidence.
Some evidence is the same whichever platform you choose, and an assessor asks for it regardless. These records show where identity sits in the cardholder data environment, who can change it and how changes, upgrades and log retention are controlled. Neither vendor's documentation replaces your own records, so these items fall to your security, platform and change teams.
- CDE and data flow diagram. Show the identity platform's position: which systems send login traffic to it, which applications trust its tokens or headers, and which network zones it crosses.
- Administrator accounts and access reviews. List every administrator account with its role, and keep dated review records showing who confirmed each account is still needed.
- Log retention and central storage. Provide log samples showing user, time and action, plus the retention period and proof that logs reach central storage.
- Version and upgrade records. Record the deployed version against the release line that receives fixes. The current releases are Keycloak 26.8.1 and Authelia v4.39.28, and you should confirm each line's support window in the vendor release notes.
- Change tickets. Link each configuration change, upgrade and certificate renewal to a ticket with approval and test evidence.
Check that the diagram, the administrator list and the change tickets describe the same system, since an assessor compares them against each other.
Configuring the chosen platform for PCI DSS identity controls
These eight steps run in the same order whichever platform you choose, and each one closes with an output an assessor can inspect. The short note after each step covers where Keycloak and Authelia differ in practice. The sequence prepares evidence for the requirements; it does not replace the assessor's judgment on scope or controls.
Define the cardholder data environment first
Map every system that stores, processes or transmits cardholder data, along with any system that could affect its security, and draw the boundary on one diagram. Place the identity platform, its database or storage, the reverse proxy and the log destination inside or outside that boundary with a stated reason. For Keycloak, show the relational database as its own component and document its network path. For Authelia, show the reverse proxy and the storage and file log location on the host. Done when the scope owner signs the diagram and the scope statement.
Choose the platform and pin its release
Decide between Keycloak and Authelia against the scope from step one, then record the exact release in your change system. Keycloak 26.8.1 (October 13, 2026) and Authelia v4.39.28 (September 17, 2026) are the releases this page cites, so confirm at assessment that your pinned version is still current. For Keycloak, pin the server build and the database driver. For Authelia, pin the binary or container tag and the reverse proxy version it was tested with. Done when the baseline record lists platform, version and dependencies.
Enforce HTTPS and TLS on every path
Turn on TLS for every route into the environment: user logins, admin consoles, token and API endpoints, and the connections from the platform to its database and any directory it reads. Run a TLS scan against each endpoint, disable plain HTTP, and save the output to the evidence folder. Done when every endpoint returns only encrypted sessions and the scan matches the configuration baseline. For Keycloak, set TLS per realm and check each realm separately, since every realm carries its own setting. For Authelia, the reverse proxy carries much of the work because Authelia only serves HTTPS, so every protected site and the proxy-to-Authelia path must be checked.
Require MFA on every access path
Map each application, admin console and API to the factor it requires, and apply MFA to every access path into the environment. Keep a written exception register for any path that cannot take a second factor, with the owner, the compensating control and the review date, all approved by the risk owner. Done when the access matrix and the exception register match a sample test of live logins. For Keycloak, use its documented MFA options and confirm each client and the admin console follow the intended flow. For Authelia, apply the two_factor policy to every protected domain and list any one-factor rule as an exception.
Set and record lockout and session limits
Set account lockout after failed logins, the maximum session lifetime and the inactivity timeout, and write each value into the configuration baseline with the reason it was chosen. Test each control with a deliberate failed-login run and an expired idle session, and keep the results as evidence. Done when the baseline lists every value and the tests show lockout and both timeouts working. For Keycloak, set brute force detection and session values realm by realm, so each realm's baseline entry is separate. For Authelia, set the session lifetime and inactivity timeout for each protected domain, and confirm in the vendor documentation which failed-login control your version provides.
Restrict administrator access to named accounts
List every person and service that can change the platform's configuration, users or policies, and give each a named account with MFA. Remove shared logins and default administrator accounts, then run an access review and file the signed result. Done when the admin list matches the review and no shared login can still sign in. For Keycloak, keep administrative roles on named accounts in the master realm and limit console access to the management network. For Authelia, administration happens on the host and in its configuration files, so restrict shell access, file permissions and secret files to named operators, and confirm no separate admin interface exists.
Route audit logs to central retention
Turn on logging for logins, failed logins, MFA events, admin changes and session events, and send copies to central storage that the platform team cannot edit. Set retention with your assessor and policy owner, then retrieve a sample of each event type from the central store. Done when a test login, a failed login and an admin change all appear centrally with their timestamps, and the retrieval record is saved as evidence. For Keycloak, enable login and admin event recording and forward its log output to the central platform. For Authelia, log to file, ship those files with a log forwarder, and test rotation for dropped lines.
Rehearse restore and upgrade, then file results
Restore the database, configuration and secrets into a separate environment and confirm the platform starts and logs in, then rehearse an upgrade and a rollback. File the results with the versions tested and any fixes, then collect the evidence pack from steps one to seven. The assessor decides whether that evidence meets the requirements. Neither the platform project nor DeployOpen makes that call. For Keycloak, include the database backup in the rehearsal and check each release's opt-in breaking changes before upgrading. For Authelia, rehearse the reverse proxy upgrade alongside it, since the two must be tested as a pair.
What PCI DSS work needs from your team before you hire help
How much effort does a PCI-scoped identity rollout take and what drives it?
The effort is set mainly by scope: how many systems sit inside the cardholder data environment, how many applications rely on the identity provider, which protocols each one uses and where users come from. Evidence gaps add work because missing access reviews, unclear MFA coverage or short log retention must be fixed before an assessor can test them. The main drivers are:
- Scope size, meaning the number of systems and data flows that touch cardholder data
- Number of protected applications, each with its own login, roles and test cases
- Protocols and user sources, such as OpenID Connect, SAML, LDAP or Active Directory
- Evidence gaps, which need remediation before the assessment starts
Ask for an effort breakdown by these four drivers, and check it against your application inventory before you sign anything.
How long does a PCI DSS identity project take?
The duration follows from the written scope, which is agreed with you in writing before work starts. Most engagements are fixed-scope, so scope, deliverables and timelines are set out in one document that both sides sign off. Ask for the timeline as milestones tied to named systems, and ask which dependencies sit with your team: application owner availability, test accounts, change windows and access to logs. Ask what happens if a dependency slips, and how the change is recorded in the scope document. Any timeline offered before the scope is written should be treated as a working assumption until the scope is agreed.
What does a PCI DSS identity project need from our team?
Your team needs four named roles, and each one should be assigned before scoping starts.
- A scope owner who can decide which systems, data flows and user groups are in the PCI scope
- Platform administrators who can grant access to the identity servers, database, reverse proxy and log pipeline
- Application owners for each protected application, who confirm login flows, roles and test accounts
- An assessor contact who can agree evidence requirements early and answer questions during the assessment
A single person may hold more than one role in a small organization, but the assessor contact should be someone the assessor can reach directly.
Can our own team run a PCI DSS identity setup without outside help?
Yes, if your team already has the skills to run the stack and keep evidence of it. You need people who can operate the production database, configure TLS and the reverse proxy, run log pipelines, and keep change and access records that an assessor can sample. Keycloak requires a relational database in production, and its database guide lists PostgreSQL 14 to 18 among the supported options. Authelia only serves HTTPS, so TLS and the reverse proxy sit on your critical path either way. If those skills are thin, a fixed-scope engagement can cover the build and handover, and your team can run the platform afterward.
What costs are one-time and what costs recur for PCI DSS identity work?
Costs fall into a one-time block and a recurring block. One-time costs are the fixed-scope engagement for scoping, configuration, integration, hardening, documentation and evidence preparation, plus the assessment, which is paid separately to your assessor. Recurring costs are production infrastructure, staff time to run the platform and review access, and retainers if you buy ongoing support, upgrades or continuous testing.
- Who is paid: DeployOpen for the engagement and any retainer, your cloud or data center provider for infrastructure, your staff for internal time, and the assessor for the assessment
- What drives cost up: more applications, more user sources, more evidence gaps and a broader scope
- What to ask for in a quote: a written scope, deliverables, timelines, assumptions and which items are optional
DeployOpen does not publish a price list. A quote follows from the written scope.
Can DeployOpen certify us for PCI DSS?
No. DeployOpen prepares controls, configuration and evidence for your PCI DSS assessment, but it does not issue audit reports, attestations or certifications. The independent assessor reviews the evidence and makes the determination. Keycloak's documented MFA options, brute force lockout and per-realm TLS settings can support access control and transmission security requirements, and Authelia's two_factor access policy, session timeouts and file logging can support access control and logging requirements. Neither project publishes a PCI DSS attestation, and the operator carries the scope. Ask any vendor or partner who claims certification to show the assessor's documentation for that claim.
Which PCI DSS version should our identity controls map to?
PCI DSS v4.0.1 is the only active version, so map your identity controls to it. The PCI Security Standards Council published v4.0.1 on 11 June 2024 as a limited revision of v4.0 with no requirements added or deleted, and retired v4.0 on 31 December 2024. Version 3.2.1 was retired on 31 March 2024. Requirements introduced in v4.0 that were future-dated became effective on 31 March 2025, so check which ones now apply to your environment. Confirm with your assessor which version and reporting approach applies to your organization, because that determines which evidence the assessor expects.
How DeployOpen prepares PCI DSS identity controls and evidence
For Keycloak vs Authelia for PCI DSS, DeployOpen works from a written scope that names the identity platform, the user sources and the cardholder data environment boundary it touches. We plan, implement, integrate, harden, document and support the self-hosted platform you choose inside your own infrastructure, so your team keeps control of the systems in scope. DeployOpen prepares controls and evidence for your assessor but does not issue PCI DSS attestations.
How we scope
- The written scope names which identity platform, deployment target and user sources are in the PCI DSS assessment boundary.
- Scope also lists the MFA, session, lockout and logging settings DeployOpen will configure and test.
- Deliverables and timelines are agreed in writing before work starts, and the quote follows from that scope.
How we build
- We implement the chosen platform inside your cloud account, data center or air-gapped network.
- Login policy, MFA, lockout, session and TLS settings are set explicitly and written down for review.
- Admin access and the user store are limited to named roles, with logging set up where the platform supports it.
How we hand over
- Handover covers configuration documentation, a list of in-scope components and evidence of each control setting, as agreed in scope.
- Evidence is collected from the platform, such as configuration exports and log samples, for the assessor to review.
- DeployOpen prepares evidence but does not issue reports or attestations; your PCI assessor decides what is sufficient.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers that cover changes to the configuration and evidence over time.
- Platform upgrades are planned against the release lines and support windows of the chosen platform and tested before rollout.
- New payment flows or user sources call for a revised written scope before further work.

