Keycloak vs authentik for SOC 2 and ISO 27001 audits: which side fits your scope
Keycloak fits when its built-in user and admin event logging and Apache-2.0 license cover the evidence your scope needs, and authentik fits when enhanced audit logging and its enterprise integrations justify a paid subscription. Consider an illustrative company with an audit date next quarter and both products on its shortlist. The audit team wants to know who signed in, who changed what, and how access was protected. This page covers only that compliance question. The general comparison of architecture, protocols and operating effort is on its own page, so read it alongside this one.
The auditor tests the controls your organization operates, and the identity platform is one source of evidence for those controls. The Keycloak Server Administration Guide documents auditing of user events and admin events, which are the main sources of evidence for sign-in and configuration changes. It also covers passkeys, recovery codes, TOTP and HOTP, WebAuthn and OTP policy, and brute force protection with temporary and permanent lockout. Enhanced audit logging for compliance is listed only on authentik's Enterprise edition, so if your assessor expects it, the subscription must be in place for the whole review period. Neither product has a SOC 2 or ISO 27001 attestation documented in this comparison. authentik's pricing lists OpenID Certified for OpenID Connect as its only stated certification. Confirm with each vendor what they hold for the exact version you run.
Before the audit window, export a sample of user and admin events from Keycloak and confirm where they are stored, how long they are kept, and whether your SIEM receives them. For authentik, confirm your tier includes enhanced audit logging and how far back its events are retained. Get the subscription terms in writing. The authentik pricing page lists Enterprise at $5 per user per month billed annually plus $0.02 per external user per month, a recurring cost that scales with headcount. Keycloak's Apache-2.0 license carries no license fee, so your spend shifts to staff time, database and hosting. Finally, confirm your version line still receives security fixes. authentik lists 2026.5.x and 2026.8.x as supported, and Keycloak's current release is 26.8.1.
What SOC 2 and ISO 27001 ask of an identity platform
SOC 2 reports test the 2017 Trust Services Criteria: common criteria CC1 to CC9 appear in every report, and the other categories apply only when in scope. ISO/IEC 27001:2022 sets requirements for an information security management system, with 93 Annex A controls, 34 of them technological. The cards below map six requirement areas to both frameworks.
Access rights and least privilege
SOC 2 common criteria CC6 and Annex A controls 5.15 (access control), 5.18 (access rights) and 8.2 (privileged access rights) ask who can change the identity platform itself, as well as who can sign in. Review which accounts hold admin roles in the Keycloak admin console or in authentik, how those roles are approved and removed, and whether privileged access management is in your build. authentik lists it as an Enterprise-only feature, so it adds a subscription cost. Keep a current list of admin accounts that an assessor can compare against change records.
Authentication strength
Assessors look for multi-factor sign-in enforced at the identity layer and a documented position on weaker factors. These map to CC6.1 and to Annex A control 8.5 (secure authentication). Keycloak's server administration guide lists passkeys, recovery codes, TOTP and HOTP, WebAuthn and OTP policy settings, plus brute force protection with temporary and permanent account lockout. For authentik, mTLS client certificate authentication is an Enterprise-only feature. Test each sign-in path your applications use, including recovery and lockout, and keep the results.
Keycloak admin guideLogging and monitoring
CC4 and CC7 expect sign-ins and configuration changes to be recorded and reviewed, and Annex A controls 8.15 (logging) and 8.16 (monitoring activities) set the same expectation for ISO. Keycloak documents auditing of user events and admin events, the main sources of sign-in and configuration evidence. authentik lists enhanced audit logging for compliance as an Enterprise feature. A SOC 2 Type 1 report tests control design as of one date, while a Type 2 report tests operation over a period, so confirm that logs exist and are retained across the whole observation window.
authentik events docsChange control and patching
CC8 covers change management, and Annex A controls 8.8 (management of technical vulnerabilities) and 8.32 (change management) ask how fixes arrive and how changes are approved and tested. Keycloak's current release is 26.8.1, and the project plans four minor releases a year, with breaking changes in minor releases made opt-in. authentik's current release is 2026.8.4, and its security policy says security releases are announced at least 24 hours in advance. Record which release lines you run, who approves each upgrade, and the test evidence each change produces.
Keycloak release policyVendor and third-party evidence
CC9 covers risk from vendors and business partners, and Annex A controls 5.19 to 5.22 cover supplier relationships. ISO certificates come from an accredited certification body, so a vendor's badge tells an assessor little about your own deployment. The authentik pricing page lists OpenID Certified for OpenID Connect as its only certification and shows no SOC 2 or ISO 27001 attestation. Keycloak is a Cloud Native Computing Foundation incubating project, which is governance information rather than an assurance report. Ask each vendor or support provider for written evidence, which subprocessors touch identity data, and how their support access is granted and logged.
authentik pricingConfidentiality and availability scope
The 2017 Trust Services Criteria add confidentiality (C1) and availability (A1) criteria only when you put them in scope, and Annex A control 5.30 covers ICT readiness for business continuity. For an identity platform, the database is usually the availability dependency. Keycloak needs a relational database in production, with PostgreSQL 14 to 18 among the supported options, and authentik keeps its configuration and data in PostgreSQL. Document backup, restore and failover tests for that database, because a sign-in outage becomes an availability finding. Settle scope early, since adding categories later extends testing.
Keycloak database guideHow each side meets the identity controls, as documented
This table sets each platform's documented identity controls against the requirements an assessor will test for SOC 2 and ISO 27001. Where a cell says to confirm, the published documentation does not settle the point, so ask the vendor or check the version you plan to run. Both platforms run inside your own infrastructure, so data location follows where you deploy them, and the audit evidence stays there too.
| Requirement | Keycloak as documented | authentik as documented |
|---|---|---|
| Access rights | Admin events record configuration changes. Confirm how admin roles and console permissions are scoped in your version. | Confirm how admin roles and application access are scoped and logged in your authentik version. |
| Authentication and MFA | Passkeys, recovery codes, TOTP/HOTP, WebAuthn and OTP policy are documented in the Server Administration Guide. | Confirm the supported MFA methods and policy controls in the authentik version documentation before relying on them. |
| Brute force protection | Temporary and permanent lockout of accounts is documented. | Confirm brute force protection and lockout behavior with authentik for your deployment. |
| Audit logging | User and admin event auditing is documented as the main source of sign-in and configuration evidence. | Enhanced audit logging for compliance is listed on the Enterprise edition only. |
| Vendor attestations | Confirm with the vendor whether any SOC 2 or ISO 27001 report or encryption attestation exists. | Pricing page states OpenID Certified for OpenID Connect only, with no SOC 2 or ISO 27001 attestation stated. |
| Patch and release policy | Four minor releases a year, with breaking changes in minor releases opt-in, per the Keycloak blog of October 2024. Current release is 26.8.1. | Security fixes for the 2026.5.x and 2026.8.x lines, with security releases announced at least 24 hours ahead. |
| Paid features | Server is Apache-2.0. Confirm whether support or any paid build is needed for your audit controls. | Core is MIT. Enterprise code needs a subscription for production, and enhanced audit logging sits there. |
| Database | PostgreSQL 14 to 18 is among the supported databases. Production needs a relational database. | Stores configuration and data in PostgreSQL. |
How sign-in and admin events reach the audit evidence
The diagram starts with users and administrators signing in to either Keycloak or authentik, both running inside your infrastructure. Each platform stores its data in PostgreSQL and sends sign-in and admin events to the platform audit output, which your log store collects. Your team exports that log data into the evidence folder an assessor samples. Upgrade records and access review exports are filed into the same folder. authentik's enhanced audit logging is an Enterprise feature, so confirm whether you need that tier before you rely on it. Check that every source writes to the same store and that retention covers the audit period you are assessed on.
Sign-in and admin events move from both platforms through logs into the evidence folder.
Which evidence an assessor samples for SOC 2 and ISO 27001 audits
Keycloak generates most of its identity evidence inside the server. The Server Administration Guide documents auditing of user events and admin events, which are the main records for sign-ins and configuration changes, and it covers the MFA and brute force settings an assessor will ask to see.
- Exported user and admin events: Export both event types for the full audit period, with the realm name and date range in the file name. The identity administrator keeps the exports, and the platform team confirms that event saving was on before the period began.
- Event, OTP and WebAuthn policy exports: Capture event settings, OTP and WebAuthn policy configuration, and brute force protection (temporary and permanent lockout) as dated exports. The platform team keeps them, and each change should match an approved change ticket.
- MFA configuration: Show which factors are enabled in each realm, including passkeys, recovery codes, TOTP/HOTP and WebAuthn. The identity administrator keeps the export.
- Release and upgrade records: Keep the running version (26.8.1 was released October 13, 2026), the release notes read, and the test notes for each upgrade. Minor releases make breaking changes opt-in, so record which options you enabled. The platform team lead keeps these.
Confirm that the exports came from the production realm and that a sample of sign-in events traces to a matching user record.
authentik's audit evidence depends on the edition you license. Enhanced audit logging for compliance is listed on the Enterprise edition, and code under the enterprise directory needs a paid subscription for production use. Confirm what the open source build records and how long it keeps those records before you rely on it for the audit period.
- Enhanced audit log exports: Export the enhanced audit logs for the full audit period from the Enterprise deployment. The security team keeps them in storage separate from the server that produced them.
- Subscription records: Keep the signed subscription, the edition and the user count it covers on each date in scope. The authentik pricing page lists Enterprise at $5 per user per month for workforce accounts billed annually. Procurement keeps these with the IT lead.
- Security notice and patch records: authentik lists 2026.5.x and 2026.8.x as the lines receiving security fixes and announces security releases at least 24 hours in advance. Keep each notice with the upgrade that followed, and record which line each deployment runs. The platform team keeps these.
- Enterprise feature evidence: For controls such as password history, mTLS client certificates or privileged access management, keep the configuration export and test result from the Enterprise build. The identity administrator keeps them.
Check that every control an assessor samples is included in the edition you licensed, and that the subscription covers the production user count on each audit date.
These records exist whichever platform you choose, and neither Keycloak nor authentik produces them for you. Your ticketing system, security testing and policy library generate them, and assessors sample them alongside the platform evidence. Each one needs a named owner and a retained copy that covers the full audit period.
- Access review records: Periodic reviews of who holds realm or admin console access and application roles, with the reviewer's sign-off and any removals made. The application owner signs, and the security team keeps the file.
- Joiner and leaver tickets: Dated tickets showing when accounts were created, roles were granted and access was removed on exit. The service desk raises them, and each account change in the platform should match its ticket.
- Change tickets: Approvals for changes to authentication flows, client registrations, password and MFA policies, and identity providers. The platform team lead keeps them, linked to the configuration exports.
- Backup and restore tests: Dated results of restoring the PostgreSQL database behind each platform, with the name of the person who ran the test. The infrastructure owner keeps these.
- Vulnerability reports and written policies: Security test reports for the identity platform, plus the policy set covering access control, passwords, MFA and logging. Management approves the policies, and the security team keeps the reports.
For each record, confirm that the named owner can produce it for every date in the audit period without relying on a single person's memory.
What your organization still has to do before fieldwork
Start with the system boundary, because every later decision depends on it. Write down which Keycloak or authentik deployment, which databases, admin consoles, connected applications and identity sources sit inside it. Then choose the SOC 2 categories in scope. Security is always covered through the common criteria CC1 to CC9, while availability, processing integrity, confidentiality and privacy are added only when you include them, and identity services often bear directly on security and availability. Next, write the access, authentication, logging and change policies that govern the platform itself. Name who holds realm admin roles in Keycloak or administrator groups in authentik, and state which MFA and brute force settings you enforce. Then run access reviews of those admin accounts on a fixed schedule and keep the signed review records.
Evidence has to span the whole audit period. A SOC 2 Type 1 report describes the system and the design of controls as of one date, while a Type 2 report also tests operating effectiveness over a period. Access reviews, change tickets and log exports must therefore be kept as they happen, since they cannot be rebuilt at the end. ISO/IEC 27001 certification works differently: the cycle lasts three years with at least one audit in every calendar year, so an assessor will sample the same access and logging controls again each year. Assign an owner to each recurring record. The Keycloak Server Administration Guide documents auditing of user events and admin events, which are the main sources of sign-in and configuration evidence, so confirm your retention and export process before the first sample request. authentik lists enhanced audit logging for compliance only on its Enterprise edition, so check which tier you license.
Self-hosting makes your team the operator, so the platform controls sit with you. You own backups and restore tests for the relational database that holds Keycloak or authentik data, TLS on every endpoint, encryption of that database at rest, and the secrets used for client credentials, database access and signing keys. You also own patching of the server, containers and database. Keycloak requires a relational database in production, and authentik keeps its configuration and data in PostgreSQL, so an assessor will ask how that database is protected and restored. Confirm each control against the vendor documentation for the exact version and edition you run before you describe it to an assessor, since feature availability differs across release lines. authentik's security policy lists 2026.5.x and 2026.8.x as the lines receiving security fixes, so check your version against that list and follow its security release announcements, which arrive at least 24 hours ahead.
Configuring either side for an audit-ready sign-in trail
This sequence turns a Keycloak or authentik deployment into one an assessor can test for sign-in records, admin change records, MFA and lockout controls, and disciplined upgrades. Each step has one owner and closes with an artifact you can file as evidence. Work through the steps in order, because the scope decision determines which logs, editions and controls you need.
Fix the audit scope and platform role
Owner: the GRC or compliance lead, with the identity lead. Write down which systems, user populations and admin functions fall inside the SOC 2 or ISO 27001 scope, and where the identity platform sits in it. Record whether it is the source of sign-in events for in-scope applications, where it is hosted, and which controls it supports. Confirm the control references your assessor will use. Done when a signed scope note lists the platform, its hosting location and each control it supports.
Choose the tier for audit logging
Owner: the identity lead, with procurement. Decide which edition the evidence requires. authentik lists enhanced audit logging for compliance on its Enterprise edition, so if your assessor needs that logging, plan for an Enterprise subscription and confirm its terms with authentik. Keycloak's Server Administration Guide documents event auditing for user and admin events, so confirm with your assessor that those records meet the requirement. Done when the tier decision and the list of required events are written down and approved.
Deploy on a supported PostgreSQL version
Owner: the platform engineer. Stand up the platform and its database inside your own cloud account, data center or air-gapped network. Keycloak needs a relational database in production and supports PostgreSQL 14 to 18, while its default dev-file database is unsuitable for production. authentik stores its configuration and data in PostgreSQL, so confirm the supported PostgreSQL versions in its installation documentation. Done when the database version, location, backup approach and access controls are recorded in the configuration record.
Enable user and admin event logging
Owner: the identity lead. Turn on user event and admin event logging in Keycloak as described in its Server Administration Guide, or enable enhanced audit logging in authentik Enterprise. Set a retention period that matches your policy, and forward events to your central log platform so they survive a server rebuild. Test sign-in, failed sign-in, password reset, MFA enrollment and admin configuration changes, and confirm each produces a record. Done when an export from the log platform shows each tested event with a timestamp, the actor and the target.
Enforce MFA and lockout policies
Owner: the identity lead, with the security lead. Require multi-factor authentication for workforce accounts and all admin roles. Keycloak's Server Administration Guide lists passkeys, recovery codes, TOTP and HOTP, along with WebAuthn and OTP policy configuration, and documents brute force protection with temporary and permanent lockout. For authentik, configure MFA stages and lockout behavior in your flows, and confirm the options in its documentation. Done when a policy export shows MFA required for in-scope groups and a test account confirms lockout triggers.
Set upgrade and security-fix cadence
Owner: the platform lead. Write the patching rule into your change policy. Keycloak plans four minor releases a year and says breaking changes in a minor release will be opt-in, so plan each minor upgrade and test it in a non-production environment first. authentik's security policy lists 2026.5.x and 2026.8.x as the lines receiving security fixes, and the project announces security releases at least 24 hours in advance, so assign someone to watch the release feed. Done when the cadence, the on-call contact and the upgrade ticket template are approved and the running version is recorded.
Run a test change and access review
Owner: the compliance lead, with the control owner for access. Make a controlled test change, such as a client update, a new admin role or a flow setting, through your normal ticket process. Confirm the admin event record shows who made the change, when, and what changed, then save the ticket, the configuration diff and the event export. Next, review admin roles and in-scope users, record each removal and approval, and save the signed review. Done when the test change, its event record and the signed access review sit together in the evidence folder.
What the audit-ready setup costs and what drives it
Keycloak has no software license fee: it is licensed under Apache-2.0, so no vendor charges per user to run it. authentik's MIT-licensed core is also free, but code under authentik/enterprise needs a paid subscription for production use, so its license line depends on the tier you need. Either way, other parties are paid for the rest of the setup. Your team or an implementation partner is paid for staff time to design the Keycloak realm layout or the authentik provider and application configuration, and to set up MFA and brute force protection. Your cloud account or data center pays for the server containers and a supported database, which is PostgreSQL for authentik and one of several supported databases for Keycloak. Your CPA firm or accredited certification body is paid for the examination itself. DeployOpen is paid only for the scope you agree in writing.
authentik's pricing page lists Enterprise at $5 per user per month for workforce accounts billed annually, plus $0.02 per external user per month, and Enterprise Plus from $20k annually (December 2026). As an illustrative case, 500 workforce accounts at $5 per user per month billed annually comes to $30,000 a year before any external-user charges. That subscription recurs every year, and enhanced audit logging sits behind the Enterprise tier, so confirm which edition produces the sign-in and admin events your assessor will sample. Keycloak's event and admin auditing is configured in the server itself, so its cost is staff time rather than a subscription line. One-time work covers design, configuration and the first evidence set. Recurring work covers subscription renewals, upgrades and each evidence collection cycle.
Upgrades and evidence collection drive most of the recurring effort on both sides. The Keycloak project plans four minor releases a year, and authentik's security policy lists 2026.5.x and 2026.8.x as the lines receiving security fixes, so budget patching time against the release cadence you adopt. Evidence collection repeats every audit period: exports of Keycloak user and admin events, authentik event logs, MFA enrollment records and access reviews. Effort rises with workforce and external user counts, the number of applications behind the identity provider and the evidence window your auditor requires, which you must confirm with the auditor. When you ask for a quote, request a written scope with named deliverables, the tier and edition in writing, workforce and external user counts with expected growth, the evidence set included, and the owner of each recurring task after handover.
Questions to answer before hiring help for an audit
How much effort does an audit-ready identity setup take?
There is no single effort figure that fits every team, because the work follows scope. The drivers that move it most are the number of applications that sign in through the platform, the number of users and admin roles that manage them, whether high availability is required, and whether users already live in Active Directory or LDAP and must be federated or migrated. Each application adds client registration, claim mapping and sign-in testing. Each directory adds a federation and attribute mapping task. High availability adds a database and load balancer design that must be tested, not only built. Before requesting a quote, count these four items in your own environment, and ask any provider to break its estimate down along the same lines.
What does an audit need from our own staff?
Your own staff must own the controls the platform enforces, because an assessor will expect a named person to explain and evidence each one. Plan for four owners:
- A policy owner for password, MFA and session rules, including the lockout settings that protect sign-in.
- An access review owner who runs periodic reviews of users, groups and admin roles and keeps the exports.
- A change owner who approves and records configuration changes, realm or instance settings and client registrations.
- A database owner who can run backups, restores, patching and upgrades for the database that holds identity data.
The database item is often underestimated. Keycloak needs a relational database in production, and its database guide lists the supported engines. Confirm who on your team can operate that engine before the project starts.
Can our team run an audit-ready identity setup without outside help?
Often yes for the configuration, if the team already has the skills, but the evidence calendar is usually the harder part. Setting up OpenID Connect or SAML clients, MFA policy, brute force protection and audit event settings is documented in the vendor guides and is within reach of an experienced identity engineer. Keeping evidence running for the whole audit period is a different task. Someone has to collect admin event records, run access reviews on schedule, attach change tickets to configuration changes and show that sign-in incidents were handled. Teams that have never been through an assessment often underestimate how many of these items an auditor will sample. Ask whether anyone on your team has written control descriptions before, and whether that person has time for recurring evidence work.
What does an audit-ready identity project cost beyond the software?
The software license is only one line. Keycloak is licensed under Apache-2.0, so the server itself carries no license fee. authentik's core is MIT licensed, but enhanced audit logging sits in its Enterprise edition, which the authentik pricing page lists at $5 per user per month for workforce accounts billed annually. Beyond the license, you pay people and services: design, configuration, integration with each application, testing, evidence preparation, documentation and handover. Some of these are one-time, such as the initial build. Others recur, including upgrades, patching, database operation, access reviews and any retainer for ongoing support. DeployOpen does not publish a price list. Its quote follows from a written, fixed scope agreed before work starts. Ask for each deliverable and its acceptance test, the systems in scope, what your staff must provide and which items are optional retainers.
Does DeployOpen certify our identity platform or issue an audit report?
No. DeployOpen does not issue audit reports, attestations or certifications. It prepares the systems, controls and evidence that your assessment will examine. A SOC 2 report is issued by an independent CPA firm after its examination, and ISO/IEC 27001 certification is granted by an accredited certification body after its audit. Those parties decide whether the controls are suitable and operating as described. Before you hire anyone, ask your auditor which evidence formats they accept for identity logs, access reviews and change records, and whether they expect the system description to name the identity platform. Ask the provider to show which evidence it will prepare and which parts remain your responsibility.
How hard is it to switch identity platforms after an audit?
Switching later is harder than the software swap suggests, because the cost sits in the sign-in path and the evidence as much as in the configuration. Plan for four workstreams:
- Exporting users, groups, client settings and role assignments, and confirming whether credentials and MFA enrolments can be exported at all, since that differs by platform.
- Re-registering every application, including redirect URIs, signing keys and claim mappings.
- Re-testing sign-in, MFA enrolment and admin access for each application before users move.
- Restarting or extending the evidence period, because controls operated on the old platform need records from the new one, and an assessor may ask how the change was approved and tested.
Keep the old platform's audit records and exports as retained evidence before any cutover.
How DeployOpen prepares the identity evidence without picking a side
DeployOpen approaches Keycloak vs authentik for SOC 2 and ISO 27001 audits by scoping the identity controls each framework asks about, then building and documenting both options on the client's own infrastructure. We prepare the configuration, logging and evidence an assessor will request, and we leave the platform choice to the client's own requirements. DeployOpen does not issue audit reports or certifications; independent auditors and certification bodies do.
How we scope
- The written scope lists the SOC 2 criteria and Annex A controls that touch sign-in, MFA and admin access.
- Both platforms are assessed against the same control list, so the comparison rests on evidence and documented behavior.
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before any work starts.
How we build
- Keycloak: configure user and admin event auditing, brute force lockout, and passkey or TOTP policies.
- authentik: confirm whether enhanced audit logging is needed, since the pricing page places it in the Enterprise edition.
- Both builds run on self-hosted infrastructure, with access controls and logging configured for the client's own review.
How we hand over
- Handover includes configuration exports, change records and the evidence list an assessor will ask for, per platform.
- Documentation maps each platform setting to the control it supports, so the client's compliance team can review it.
- Where security testing is in scope, findings are delivered with suggested fixes and tracked to closure.
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 and change records are part of the evidence an assessor reviews.
- authentik announces security releases at least 24 hours ahead, so patch records should capture that window.

