Keycloak vs Authelia for SOC 2 and ISO 27001 audits

Keycloak fits audits that need per-user and admin event records across a wider set of applications, while Authelia fits a few web apps behind a reverse proxy if your team builds its own audit trail. Neither product carries the audit on your behalf.

On this page

Keycloak vs Authelia for SOC 2 and ISO 27001 audits: which side fits?

Keycloak fits when the audit needs user and admin event records, brute force lockout and a wider estate that includes SAML, LDAP or Active Directory federation and an admin console. Authelia fits a small set of web applications behind a reverse proxy, where deny-by-default policy matters most, provided the team builds its own audit trail and retention. An assessor testing sign-in and admin controls will ask for evidence from either choice, so the decision turns on who produces the audit events and the retention evidence. The Keycloak Server Administration Guide documents auditing of user events and admin events, which gives the team a platform-produced record to show. Authelia's logging documentation covers log levels, formats and file paths, but it does not describe audit events or retention, so those controls sit with the operator.

Neither product makes an environment SOC 2 or ISO 27001 compliant. SOC 2 reports are issued by CPA firms against the AICPA Trust Services Criteria, and ISO/IEC 27001 certification is granted by accredited certification bodies. Auditors and certification bodies decide what passes. DeployOpen prepares systems, controls and evidence for those assessments, but it does not issue audit reports, attestations or certifications. Before the audit, confirm that admin and user event auditing is enabled and exported to storage the team controls, that lockout and one-time password settings match the written access policy, and, for Authelia, that the access control default policy is set to deny. Document how the encryption key and authentication logs are retained. Then ask the assessor which evidence window they will sample.

Keycloak or Authelia for SOC 2 and ISO 27001 audits, by situation

When you run many applications against one shared user directory, Keycloak matches the scope most directly. Its documented support for SAML 2.0 and OpenID Connect lets SAML-only business applications and modern OIDC apps sign in through the same server, and it can read users from LDAP or Active Directory. The Server Administration Guide also documents auditing for user events and admin events, which are the main sources of evidence for sign-in and configuration changes.

  • Mixed protocols: SAML 2.0 and OpenID Connect run side by side, so legacy and modern applications can share one set of sign-in policies.
  • Directory federation: LDAP or Active Directory user federation lets Keycloak read users that your HR process already maintains.
  • Admin console: One console holds realms, clients and administrator actions, which gives you a single place to review configuration changes.
  • Authentication controls: Passkeys, recovery codes and TOTP/HOTP are documented, along with brute force protection that applies temporary and permanent lockout.
  • Database: Production needs a relational database, and PostgreSQL 14 to 18 is supported, so your backup and restore testing must cover it.

Before choosing, confirm that user and admin event logging is enabled in your deployment, where those events are stored, and how long your assessor's sample period requires them to be kept.

What SOC 2 and ISO 27001 ask of an identity and SSO platform

SOC 2 reports test your controls against the AICPA 2017 Trust Services Criteria, in the edition with revised points of focus published in 2022 (AICPA 2017 Trust Services Criteria with revised points of focus). The security common criteria, CC1 to CC9, apply to every SOC 2, and the 2017 set holds 61 criteria. Availability, processing integrity, confidentiality and privacy add criteria only when you put them in scope, so a sign-in service that promises uptime or handles personal data carries more. For an identity platform, most of the evidence sits in CC6 (logical access) and CC7 (system monitoring). A Type 1 report describes whether controls are suitably designed as of one date. A Type 2 report adds operating effectiveness over a period, which is why the auditor will ask for months of sign-in, administrator and configuration records. Confirm the audit period and the categories in scope with your auditor before you design the evidence plan.

ISO/IEC 27001:2022 Annex A is normative and lists 93 controls in four themes: organizational (37 controls), people (8), physical (14) and technological (34, in clause 8). Most identity and access items fall in the technological theme, including access rights, secure authentication, privileged access and logging. Map each Keycloak or Authelia setting you rely on to the specific Annex A control it supports, and keep that map current. ISO does not certify organizations. Accredited certification bodies do, working to ISO/IEC 17021-1 and ISO/IEC 27006-1. A three-year certification cycle needs at least one audit, either surveillance or recertification, in every calendar year, so the identity evidence has to be available each year, including the years between the larger audits. Ask your certification body how it plans to sample that evidence across the cycle.

The identity platform is one input, and the assessor tests the system as operated. Keycloak can record user events and admin events, and Authelia stores authentication records in its database, but neither answers who approved an account, who can change an access rule, or how long logs are kept. Those answers come from your joiner and leaver process, your change records and your log retention. Review the Authelia default_policy and access rules as a set of configured decisions, and confirm with your assessor which of these they will sample. Authelia access control documentation explains the policy options, but the Authelia logging page does not describe audit events or retention, so plan log shipping and retention outside the identity product from the start.

How each side meets identity audit requirements as documented

This table sets out what each product's documentation says about the identity controls SOC 2 and ISO 27001 assessors usually test. Read each row as the documented capability first, then the gap you still need to confirm with the vendor or in your own environment. The main takeaway is that Keycloak documents more built-in audit and account lockout features, while Authelia documents column-level encryption and a deny-by-default policy option that suit its narrower role as a companion to reverse proxies.

Requirement areaKeycloakAuthelia
Audit eventsDocuments auditing of user events and admin events, the main evidence for sign-in and configuration changes. Confirm it is enabled and exported.Logging docs cover levels and json or text output but not audit events. Plan a separate audit trail for sign-ins and config changes.
Multi-factor authenticationPasskeys, recovery codes, TOTP and HOTP, with WebAuthn and OTP policy configuration. Confirm which factors your assessor accepts.Two-factor login is its core role, with second factors enforced through access rules. Confirm which second-factor methods your version supports.
Lockout and password protectionBrute force protection with temporary and permanent account lockout. Set thresholds and test them against your password policy.Argon2id is the default password hash, and fail2ban guidance bans IPs after repeated failed logins. Confirm any per-account lockout with the project.
Access policyFine-grained authorization services sit alongside single sign-on. Map roles and policies to your access review process and test them.default_policy is recommended to be set to deny, with per-rule deny, bypass, one_factor and two_factor policies. Review rules for each protected app.
Database and secret encryptionProduction needs a relational database. Encryption of stored secrets is not covered in the admin guide, so confirm with your database and platform teams.SQLite, MySQL or PostgreSQL hold 2FA secrets and authentication logs. Column-level encryption requires an encryption_key that you must manage.
Log retentionThe admin guide does not set retention periods for events. Confirm event expiry and export settings, then set retention in your log platform.Retention is left to the operator. Choose json or text output and a file_path, then set retention in your log platform.
Data locationSelf-hosted, so user and event data stays wherever you deploy the server and database. Confirm the database location in your design.Self-hosted, with preferences, 2FA device data and logs held in the database you configure. Confirm where that database runs.
Release currencyVersion 26.8.1 released October 13, 2026. Four minor releases a year are planned, and breaking changes in minor releases are opt-in.Version 4.39.28 released September 17, 2026. Confirm your upgrade path and support window with the project before you commit.
Vendor attestationsEvidence for your deployment comes from your own configuration and logs. Ask your distributor or support provider what assurance it holds.Assessors test your deployment, not the project. Ask the project or any support provider what assurance it can give.

What the project covers and what your team still evidences

Each card sets out one area where the open-source project supplies a control and your team supplies the evidence. Neither Keycloak nor Authelia issues audit reports or attestations for your environment, so these controls count only once your configuration, logs, approvals and change records show they operate in your own infrastructure.

Sign-in and admin event records

Keycloak's Server Administration Guide documents user event and admin event auditing, the main sources of evidence for sign-in and configuration changes. You turn auditing on and export those events to storage your assessor can query, since the project does not do that for you. Authelia writes authentication logs to a file_path in json or text format, and its logging settings cover levels and format, not audit events or retention. Your team ships those files to a central store and sets the retention period, which should match the audit period you agree with your auditor.

Keycloak admin guide

Access policy and MFA

Authelia's access control documentation recommends setting default_policy to deny, then adding per-rule policies of deny, bypass, one_factor or two_factor. Keycloak's Server Administration Guide covers passkeys, recovery codes, TOTP and HOTP, WebAuthn and OTP policy settings, plus brute force protection with temporary and permanent lockout. Your team owns the rules an assessor will test: who must enrol which factor, who may bypass a rule, and who signs off each exception in writing, because neither project decides those for you.

Authelia access control

Hosting, database and keys

Keycloak needs a relational database in production, and PostgreSQL 14 to 18 is among the supported engines, so you run that database, its backups and its HTTPS endpoint. Authelia stores user preferences, 2FA device handles and secrets in SQLite, MySQL or PostgreSQL, with column-level encryption that depends on an encryption_key you must set and protect. Authelia also requires HTTPS for its session cookies. Record where each database sits, who holds the keys and where backups go, because those answers become your data location and key management evidence.

Keycloak database guide

Patching and change control

Keycloak plans four minor releases a year, and the project says breaking changes in a minor release will be opt-in, so you decide when to take each one. Authelia publishes its own releases, and each one needs the same tracking. Document your test and rollback steps before each change, and keep the record of what was tested, approved and deployed. Assessors look for that change trail, and neither open-source project keeps it for your environment.

Keycloak release updates

Where Authelia leaves audit events and log retention to your team

For an SOC 2 or ISO 27001 assessor, a sign-in only counts as evidence if your team can show who did what and keep that record. Authelia's logging documentation covers levels from trace to error, json or text output, and a file_path for log files. It does not describe audit events or log retention, so the page leaves both to the operator. Confirm this against the release you deploy (the current release is v4.39.28), and ask the vendor in writing whether a defined audit event schema exists. Until you have that answer, plan for your team to define the event set and the retention period.

Authelia's storage documentation says the database, which can be SQLite, MySQL or PostgreSQL, holds user preferences, 2FA device handles and secrets, and authentication logs. That makes the database a regulated data store in its own right, so it needs the same controls as any other: backups you have tested by restoring, a short list of administrators who can read it, and a stated retention period for authentication records. Column-level encryption depends on an encryption_key, which Authelia requires. Give that key a named owner, keep it out of ordinary database administrator access, and include it in your rotation and recovery plan. Losing it or exposing it affects the 2FA secrets directly.

Design the audit trail before an assessor asks for it. Start by defining the events you need, such as successful and failed sign-ins, second-factor enrolment and resets, access policy changes and denied requests, and confirm each one can be produced per user. Ship logs from every Authelia instance to a central log store, and set retention from your own written policy, checked against the periods your SOC 2 or ISO 27001 scope and contracts require. Protect the logs themselves: restrict who can change or delete them, record who reads them, and use integrity controls such as hashing or write-once storage. This is usually the decisive factor when an assessor asks for a per-user trail. Keycloak's Server Administration Guide documents configuring auditing for user and admin events, but with Authelia your team builds and evidences that trail itself.

Which evidence an assessor asks for from Keycloak or Authelia

Keycloak's audit evidence sits mostly in its own records. The Keycloak Server Administration Guide documents configuring event auditing for user events and admin events, which are the main sources for sign-in and configuration change traces. Brute force settings, MFA and OTP policy and the running release are readable state that an assessor can also sample, but each one must be shown as it stood across the period.

  • Event auditing output: Keep user event and admin event logging enabled, export the records to a store you control, and pull samples from several months of the period. Confirm in the documentation for your release how event storage, retention and export are configured.
  • Brute force settings: Export the realm's brute force protection configuration, which covers temporary and permanent lockout of accounts, and show whether the values changed and under which ticket.
  • MFA and OTP policy records: Capture the realm's OTP and WebAuthn policy settings, the passkey and recovery code options, and the enrollment state of sampled users.
  • Version records: Keep the running release, such as 26.8.1 (released October 13, 2026), with upgrade dates and the approval record for each move between versions.
  • Sample sign-in and admin-change traces: Pull sampled successful and failed sign-ins and admin changes, such as a client or role edit, and link each sample to its change ticket.

Before promising the assessor a complete export, confirm with the Keycloak documentation for your exact release what the event records contain and how long they persist in your database.

How a sign-in and its audit trail reach the assessor's evidence file

A user browser sends an HTTPS request to the reverse proxy, which asks Keycloak or Authelia for the access decision. Keycloak records user and admin events through its auditing settings. Authelia writes to a log file and to its database, which holds authentication logs. Both feed the organization's central log store, which applies the organization's own retention rule. The evidence pack combines retained logs with configuration exports, sample traces and change tickets, and the external auditor samples from it. The certification body issues the outcome. Check that auditing is enabled and that Authelia logs reach the store.

Sign-in decisions and audit records flow into the evidence pack the auditor samples.

Configuring Keycloak or Authelia for SOC 2 and ISO 27001 evidence

This sequence takes either Keycloak or Authelia from a written scope to a deployment whose access settings, logs and test records can be shown to an assessor. Each step names who does the work and the record that closes it. Because the platform runs in your own infrastructure, the evidence sits with your team as well as with the vendor documentation.

  1. Define in-scope systems and identity flows

    The security or IAM owner lists every application, user population, admin role and sign-in flow that the identity platform will cover, and application owners confirm their entries. Map each flow to the SOC 2 criteria or ISO 27001 Annex A controls it supports, referring to control IDs and titles only. Note which applications sit behind a reverse proxy, since Authelia decides each request that the proxy forwards, while Keycloak signs users in directly over OpenID Connect, OAuth 2.0 and SAML 2.0. The step closes when the scope register is approved and dated.

  2. Deploy over HTTPS with a production database

    The platform team deploys the chosen side in your infrastructure with TLS on every sign-in endpoint. Keycloak needs a relational database in production, and its documented options include PostgreSQL 14 to 18, MariaDB, MySQL, Microsoft SQL Server, Oracle Database and Amazon Aurora PostgreSQL, while the development file database is not suitable for production. Authelia stores its data in SQLite, MySQL or PostgreSQL, requires HTTPS because its session cookies depend on it, and needs an encryption_key set. The step closes with a recorded version, the database engine and a TLS check showing the endpoint is served only over HTTPS.

  3. Enable auditing, lockout or deny-by-default policy

    The platform administrator turns on the controls that generate sign-in and configuration evidence. On Keycloak, enable user event and admin event auditing and set brute force protection, which applies temporary and permanent lockout. On Authelia, set default_policy to deny, then add per-rule policies of deny, bypass, one_factor or two_factor for each domain, and follow its fail2ban guidance to ban IP addresses after repeated failed logins. The step closes with an exported configuration file, or console screenshots, that a second reviewer has checked against the scope register.

  4. Configure MFA methods and recovery handling

    The IAM owner selects the second factors allowed for each user group and writes the recovery procedure. Keycloak's documented options include passkeys, recovery codes, TOTP and HOTP, along with WebAuthn and OTP policy settings. Authelia's second-factor documentation lists the methods its own version supports, so confirm that list against the release you deployed. Define who may reset a second factor, how the person's identity is checked before the reset, and where the reset is recorded. The step closes when a test user has enrolled a factor, used a recovery method and produced a logged reset.

  5. Ship logs to a central store

    The operations team forwards identity platform logs to a central store that the security team can search and that platform administrators cannot quietly edit. Confirm how your Keycloak deployment exports its user and admin events, since those events are the main sign-in and configuration evidence. Authelia's logging offers levels from trace to error, json or text formats and a file_path, but its documentation does not describe audit events or retention, so the operator must define both. Set retention to the period in your organization's written policy, and ask your assessor which log types they expect. The step closes when one sign-in and one admin change appear in the central store with timestamps.

  6. Test sign-ins, denials and admin changes

    The security engineer runs scripted test cases against the deployed platform and keeps the results. Cover a successful sign-in with each MFA method, a sign-in denied by policy, a run of failed logins that triggers lockout or a fail2ban ban, and one administrative change such as a role or policy edit. Record the test date, the tester, the expected result and the matching log entry for each case. Repeat the tests after any configuration change. The step closes when every test case has a matching entry in the central store and a signed test record is filed with the scope register.

  7. Document the release and patch process

    The platform owner writes the release and patch procedure and keeps the platform on a supported release line. Keycloak plans four minor releases a year and says breaking changes in a minor release are opt-in, and its current release is 26.8.1. Authelia's current release is v4.39.28, so confirm the support window of the line you run before you commit to it. Record the version in production, the test environment used for each upgrade, the rollback steps and who approves each change. The step closes when the procedure is filed and one patch cycle has been tested and logged.

What does readiness for SOC 2 and ISO 27001 audits take from your team?

How much effort does audit readiness add for our applications and environments?

Effort rises with four counts: applications that sign in through the platform, environments, identity sources, and whether a log pipeline already exists. Each application needs its login, MFA, session and administrator paths described and evidenced. Each environment needs its own configuration baseline and change record, so a production, staging and recovery copy each add review work. Each identity source, such as LDAP, Active Directory or an external identity provider, adds joiner, mover and leaver paths to test. If logs already flow to a central store with retention set, evidence collection becomes mostly exports. If they do not, building that pipeline is usually the largest single item. Ask for these four counts in writing before discussing effort. Authelia's logging documentation does not describe audit events or retention, so the operator defines those. Keycloak documents user and admin event auditing, which gives a starting point for sign-in and configuration evidence.

What is one-time work and what recurs for SOC 2 or ISO 27001?

One-time work covers the identity design, the access control and authentication policies, the first configuration of MFA, password and lockout settings, logging setup, and an initial evidence baseline. Recurring work covers access reviews at the frequency your control design sets, log review and retention, patching and upgrades of the platform and its database, change records for configuration updates, and evidence collection for each period. A SOC 2 Type 1 report describes the design of controls as of a date, while a Type 2 report adds an opinion on operating effectiveness over a period, so recurring evidence matters most for Type 2. For ISO 27001, certification bodies work to ISO/IEC 17021-1, which sets a three-year certification cycle with at least one audit in every calendar year. Ask any quote to split one-time and recurring items into separate lines.

What do we need to provide during readiness work?

Readiness needs named people with access to the systems, so ask for these owners before work starts.

  • A named owner in security or compliance who approves control decisions and accepts evidence.
  • A named owner in IT or platform engineering who controls the hosting environment, identity configuration and backups.
  • A named owner in each application team who confirms login flows, roles and data handling for that application.
  • Read access to the hosting environment, identity platform configuration, logs and change tickets, plus a test account for each application.

Each owner needs time booked for reviews and decisions, because waiting on approvals is one of the easiest ways to slow a schedule. Agree in writing who signs off each deliverable before the work starts.

Can our own team run audit readiness without outside help?

Yes, if the team already has the skills and the time. The work needs identity architecture knowledge, control design mapped to the criteria the audit uses, logging and evidence handling, and someone who can explain configuration choices to an auditor. Teams that do it alone should still write the scope down: which applications, environments and criteria are covered, who signs off each deliverable, and what evidence each control produces. Include a retest step after fixes, so the team confirms that the changes work before the auditor samples them. An outside partner adds the most value where skills, staff time or prior audit experience are missing. In either case, the auditor decides the outcome.

What should a quote for audit readiness include?

A quote should list the application list with the login method for each, the environments in scope, the identity sources, the log platform and retention approach, and the certification or report scope. For SOC 2, that means the report type and which Trust Services Criteria categories are included. For ISO 27001, it means the scope statement and which Annex A controls are in scope. Deliverables should be named, such as design documents, policies, configuration baselines and evidence templates, along with the retest step. Also ask for roles, dependencies on your staff, and what is excluded. DeployOpen does not publish a price list. Quotes follow the written scope, so any change to the application list or scope changes the quote. Use the same scope list to compare any two quotes side by side.

Does DeployOpen issue a SOC 2 report or ISO 27001 certificate?

No. DeployOpen prepares systems, controls and evidence for your assessment, but it does not issue audit reports, attestations or certificates. For SOC 2, an independent CPA firm issues the report after testing your controls. For ISO 27001, an accredited certification body issues the certificate after its audit. Ask your auditor or certification body which evidence formats they accept and which samples they expect before the work starts, so the evidence prepared matches what they will test. For background on how SOC 2 examinations work, see the AICPA's SOC 2 guidance.

How DeployOpen prepares SOC 2 and ISO 27001 identity evidence

DeployOpen plans, implements, hardens, documents and supports self-hosted Keycloak or Authelia inside your own infrastructure, so your security and compliance teams can review the identity layer directly. DeployOpen prepares systems, controls and evidence for SOC 2 and ISO 27001 assessments, but independent auditors issue the reports and certification bodies issue the certificates.

How we scope

  • We agree scope, deliverables and timelines in writing before any work starts.
  • The written scope names which applications, sign-in paths and admin functions the identity platform covers.
  • Confirm with your auditor which SOC 2 criteria or ISO 27001 Annex A controls the identity platform must evidence.

How we build

  • For Keycloak, we configure user and admin event auditing so sign-ins and configuration changes leave a record.
  • For Authelia, we set default_policy to deny and write per-rule access controls, then test each rule.
  • On Keycloak, we configure passkeys, TOTP or recovery codes, and brute force lockout, and document each setting.

How we hand over

  • Handover includes configuration records, access control rules, and the log settings an assessor is likely to ask about.
  • For Authelia, we flag that audit events and log retention are your responsibility, since its docs do not cover them.
  • Documentation covers the system design and the evidence list, and it stays with you after handover.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, which suit the periods between audit cycles.
  • Keycloak plans four minor releases a year, so ask how upgrade testing is scoped in any retainer.
  • Before each assessment, we can prepare refreshed evidence for the controls your auditor has selected.

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.