Okta vs Keycloak for SOC 2 and ISO 27001 audits

Okta gives you a vendor SOC 2 report and hosted audit logs, with data location that depends on the cell you select. Keycloak puts the identity system inside your own audit scope, so logging, patching and evidence are yours to produce.

On this page

Okta vs Keycloak for SOC 2 and ISO 27001 audits: which side fits your evidence plan

Okta fits when the team wants to rely on a vendor's SOC 2 report and hosted logs. Keycloak fits when the identity system must sit inside your own audit boundary and your team will produce the logs, patch records and backup tests. Take an illustrative SaaS company whose SOC 2 scope includes its workforce sign-in and SSO layer. Its assessor will ask how access to the identity platform is controlled, how sign-in and configuration changes are recorded and who can change them. Under Okta, much of that evidence sits with the vendor, backed by its Trust Center listing for SOC 2 and ISO/IEC 27001:2022. Under Keycloak, the evidence sits with you, and the assessor will test your processes as well as the software. This page covers only the compliance angle. The general Okta vs Keycloak comparison is on its own page.

The choice turns on four questions. First, will your assessor accept a vendor report for the identity service? Okta's SOC 2 report with a bridge letter sits behind an access request in its Okta Security Trust Center, so request it early, check its period against your audit period and confirm the features you use are in scope. Second, where must the data be held? Okta offers cells in the US, EMEA, Japan, Australia, Canada and India, and says sub-processor processing locations can vary by service and cell, so confirm both in writing. Third, how long must logs live? Okta's System Log does not return entries older than 90 days, so you need an export pipeline for longer retention. Fourth, who runs the platform? With Keycloak, the answer is your team or your implementation partner, and it is the first thing an assessor will test.

On the Keycloak side, the evidence starts with configuration you switch on. Its Server Administration Guide documents auditing of user events and admin events, the main sources of audit evidence for sign-in and configuration changes, so enable both, send them to a log store you control and set retention to match your audit period. Also record the MFA policy (passkeys, recovery codes and TOTP/HOTP), the brute force lockout settings, and your upgrade and patch history, since Keycloak plans four minor releases a year. Database backups and restore tests need dated records too. For ISO 27001, map each item to the Annex A controls in your statement of applicability. DeployOpen prepares systems, controls and evidence for these assessments but does not issue audit reports or certifications; your independent auditor or the certification body does that.

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

SOC 2 security criteria CC1 to CC9 apply to every SOC 2 report, and the 2017 Trust Services Criteria contain 61 criteria in total. ISO/IEC 27001:2022 Annex A lists 93 controls in four themes, 34 of them technological. The four cards below cover the identity-relevant ground both frameworks share, and an assessor will ask for the same evidence under each.

Access control and authentication

SOC 2 common criteria CC6 cover logical access: who can sign in, how strongly they prove it, and who may change access. ISO 27001 technological controls ask for the same discipline through their access and authentication expectations. For Okta and Keycloak, the audit question is whether MFA, lockout and admin roles are configured and evidenced. Check which MFA methods your users need, how brute force protection is set, and who holds admin rights. An assessor samples the configured settings, so export and retain them as evidence.

Keycloak admin guide

Logging and monitoring

SOC 2 criteria in CC7 ask you to detect security events and respond to them, and ISO 27001 logging controls ask for activity records that can be reviewed later. For an identity platform, the evidence is sign-in events, failed attempts and admin changes, kept for the whole audit period. Okta's developer documentation says System Log data older than 90 days is not returned, so you need an export to storage you control. Keycloak tracks user and admin events once auditing is configured, so enable it early. Retention is a setting you own and must prove.

System Log query reference

Change management and patching

SOC 2 CC8 covers how changes are authorized and tested, and ISO 27001 technological controls cover change and vulnerability handling. For an identity platform, each realm, client, identity provider and upgrade is a change an assessor may sample. The Keycloak project plans four minor releases a year and says breaking changes in minor releases will be opt-in, which eases patching but still needs a tested upgrade path. Okta runs its own service, so ask how it notifies customers of changes. Keep your own approval and rollback records for every change you make.

Vendor and third-party risk

SOC 2 CC9 covers risk from vendors and business partners, and ISO 27001 supplier controls ask you to manage what suppliers can reach. An identity platform sits in the sign-in path for every application, so the provider's assurance reports become part of your evidence. Okta lists SOC 2 and ISO/IEC 27001 coverage on its Trust Center, but the SOC 2 report with bridge letter sits behind an access request. With self-hosted Keycloak, the vendor question moves to your support contract and image sources. Request the provider's reports before the audit window opens.

Okta Trust Center

How Okta and Keycloak meet SOC 2 and ISO 27001 identity controls as documented

This table sets what Okta and Keycloak document against the identity controls auditors usually test for SOC 2 and ISO 27001. Read each row as a question to ask: where the vendor documents a control, confirm it applies to your plan or version, and where a cell says confirm, the gap is yours to close before fieldwork. The main takeaway is that Okta supplies more third-party assurance paperwork, while Keycloak puts evidence generation in your hands.

RequirementOkta as documentedKeycloak as documented
Vendor assurance reportTrust Center lists SOC 1, SOC 2, SOC 3, ISO/IEC 27001:2022, 27017:2015 and 27018:2019No vendor assurance report is documented for upstream Keycloak; confirm what any support provider supplies
Audit trail of sign-ins and admin changesSystem Log records sign-in and admin activity; confirm the event types your assessor will sampleAuditing can track user events and admin events, which you enable and configure on the server
Log retentionSystem Log data older than 90 days is not returned, so export logs to your own store for longer periodsRetention depends on your storage and export setup; confirm event expiry for your version
Authentication controls (MFA and lockout)Confirm MFA factors and lockout settings for your plan in Okta's documentation before mapping themPasskeys, recovery codes, TOTP/HOTP and WebAuthn, plus OTP policy; brute force lockout is temporary or permanent
Data location and sub-processorsCells in the US, EMEA, Japan, Australia, Canada and India; sub-processor processing location varies by service and cellRuns wherever you deploy it, so data location is your decision; confirm database and backup locations
Protection of apps without federation supportAccess Gateway is a reverse proxy behind your firewall, listed in the Enterprise suiteSpeaks OIDC, OAuth 2.0 and SAML 2.0; apps without federation need a proxy or gateway you run and test yourself
Patching and release cadenceOkta runs the cloud service; confirm maintenance windows and change notice terms in writingFour planned minor releases a year since Keycloak 26.0, with opt-in breaking changes; current release 26.8.1
Access to evidenceSOC 2 report with bridge letter sits behind a Trust Center access request; confirm the report periodNo report to request; evidence comes from your config exports, event logs and change records

Who covers what for Okta and Keycloak in your audit scope

Audit evidence for an identity platform splits between the vendor and your own team. With Okta, the vendor's attestations cover the hosted service while you evidence tenant policy and log retention. With Keycloak, the code is open source, but the running system, from hosting to restore tests, is yours to document.

What Okta covers

Okta's Security Trust Center lists SOC 1, SOC 2 and SOC 3, plus ISO/IEC 27001:2022, 27017:2015 and 27018:2019. Hosting runs in cells across the US, EMEA, Japan, Australia, Canada and India, and where sub-processors process data can vary with the service and cell you select. The SOC 2 report with bridge letter is gated behind a Get access request, so start that request early and confirm which cell your tenant sits in.

Okta Trust Center

What you configure in Okta

Sign-on policy and MFA rules live in your tenant, so the assessor will sample exported policy settings as evidence of how access is controlled. Okta's developer docs say System Log data older than 90 days is not returned, so you need your own export if your retention period is longer. Review each sub-processor change against your records, and request the SOC 2 report and bridge letter for the exact period your audit covers.

System Log query docs

What the Keycloak project provides

Keycloak is licensed under Apache-2.0 and is a CNCF incubating project, so the license and source are public for your legal and security review. The project plans four minor releases a year, and breaking changes in a minor release are opt-in, which gives you a predictable release cadence to plan around. Built-in auditing records user and admin events, and MFA covers passkeys, recovery codes, TOTP and HOTP, WebAuthn and OTP policy, with brute force lockout for accounts.

Keycloak admin guide

What you own with Keycloak

You run hosting, TLS, backups and restore tests, and patch and change records, and the assessor will ask for proof of each. Keycloak needs a relational database in production, with PostgreSQL 14 to 18, MariaDB, MySQL, Microsoft SQL Server, Oracle Database and Amazon Aurora PostgreSQL supported, and the default dev-file database is not suitable for production. Set event retention for the user and admin events you enable, and run access reviews over admin and user accounts on a schedule you document.

Keycloak database guide

What a vendor SOC 2 report does and does not cover in your audit

A vendor SOC 2 report tells your assessor how Okta designs and operates its own controls. It does not show how your Okta tenant is configured. The two report types answer different questions. A Type 1 report covers the system description and whether controls were suitably designed as of one date. A Type 2 report adds an opinion on whether those controls operated effectively over a period, and that is the version assessors read closely for continuous controls such as sign-in and access review. Okta's Trust Center lists SOC 2 alongside SOC 1 and SOC 3, but the SOC 2 report with bridge letter sits behind an access request on the Okta Security Trust Center. Start that request early.

Your own configuration evidence covers what the vendor report cannot: sign-on and MFA policies, admin role assignments, application assignments, lockout settings and log retention in your tenant. The assessor decides whether the vendor report is accepted for the identity service, and that depends on whether the report period and scope match your audit window. Before you plan, confirm with Okta the report period, the services in scope, and whether a bridge letter covers the gap between the report's end date and your audit date. Keycloak is different. A self-hosted instance in your own infrastructure has no vendor report covering your deployment, so your organization's controls must cover hosting, patching, database, TLS, backups and admin access. Keycloak's auditing of user and admin events is the main sign-in and configuration evidence, as described in the Keycloak Server Administration Guide.

Plan for the evidence gap now. For Okta, keep the vendor report and bridge letter in your audit file and retain your own tenant configuration exports, because Okta's developer documentation says System Log data older than 90 days is not returned under its data retention policy. Export logs on a schedule to a store you control. For Keycloak, decide where admin events and user events are kept, for how long, and who can read them, then test that you can produce a record of sign-in and configuration changes for a sample date. Ask your assessor early which of these records they expect and in what form.

Evidence SOC 2 and ISO 27001 assessors ask for, from Okta and Keycloak

For Okta, the vendor supplies some evidence and you export the rest from your tenant. Okta's Security Trust Center lists SOC 2 and ISO/IEC 27001 materials, but the SOC 2 report with bridge letter sits behind an access request, so start that early. Okta's developer documentation says System Log data older than 90 days is not returned, so exports must be taken during the audit period, not after it ends.

  • Vendor report and bridge letter: Request the SOC 2 report and bridge letter through the Trust Center access process. Confirm the report period covers your audit window and that the bridge letter covers the gap up to your next report date.
  • System Log exports: Export sign-on, MFA and administrator events on a schedule that leaves no day of the period uncovered. Confirm the fields you need, such as actor, target, outcome and client context, appear in the export your tenant produces.
  • Sign-on and MFA policy settings: Export the sign-on and authenticator policy rules, their assignments and the change history for each. Confirm your Okta suite includes the MFA policy features your rules depend on.
  • Administrator list with change history: Export who holds each administrator role, along with the System Log events for role grants and removals. Confirm those events exist for every month of the period.

Before the audit, confirm each export opens in the tooling your assessor uses and that timestamps and tenant identifiers match across files.

How sign-in events become audit evidence for Okta and Keycloak

The diagram starts with a user signing in. On the Okta path, the sign-in runs in a cell hosted outside your network, and the Okta System Log export step moves those events into a log store you hold. Okta's developer docs say System Log data older than a set period is not returned, so customers export logs to keep them longer. On the Keycloak path, the Keycloak event auditing step tracks user and admin events inside your own infrastructure, and those events reach the same store without an export. A retention step keeps records for the audit period, and the assessor samples from that store. Check the retention settings, who can read and delete the store, and whether your auditor accepts the Okta export as the record.

Sign-in events from Okta or Keycloak flow into a log store the organisation holds.

Configuring Keycloak to produce identity evidence for SOC 2 and ISO 27001

This sequence shows how a self-hosted Keycloak deployment produces the identity evidence an assessor asks for under SOC 2 and ISO 27001: a defined boundary, logged sign-ins and configuration changes, enforced authentication settings, and proof that the platform can be restored and kept patched. The Okta route ends with one dependency that is easy to miss, the System Log retention window. Each step names the record that closes it.

  1. Define the identity boundary in scope

    The compliance lead and the platform owner write down which Keycloak realms, clients, user federation links (LDAP or Active Directory), identity brokers and database sit inside the assessed system, and which connected applications are out of scope. The scope document also names the hosting location, the administrators who can change realm settings, and the owner of each control. The step is done when an assessor can trace every sign-in path from a relying application back to a listed component. Confirm the boundary with your auditor before you collect evidence, because the system description in a SOC 2 report and the ISMS scope in ISO 27001 both depend on it.

  2. Enable user and admin event auditing

    The platform owner turns on user events and admin events in the realm event settings, as the Server Administration Guide describes, so that sign-ins, failed logins and configuration changes get recorded. Choose the destination now, whether that is the Keycloak event store, a log pipeline or a SIEM, and confirm how long that destination keeps records, because an assessor will sample across the whole audit period. The step is done when one test sign-in and one test realm change both appear at the destination with a timestamp, the actor and the realm name.

  3. Set MFA and OTP policy

    The identity administrator enables the second factors the organization has chosen from those the Server Administration Guide documents: passkeys, recovery codes, TOTP or HOTP, and WebAuthn. Set the OTP policy for algorithm, digit count and period, and decide which roles must use a stronger factor. Document how recovery codes are issued, stored and reset. The step is done when a test account cannot complete sign-in without its required factor, and the exported realm settings and policy screenshots are saved with the date they were taken.

  4. Configure brute force protection

    The identity administrator turns on brute force detection in the realm security defenses and sets the failure threshold, and whether lockouts are temporary or permanent. Record each value and the reason for it, because an assessor will ask how the settings were chosen as well as what they are. The step is done when a deliberate run of failed logins against a test account triggers the lockout you configured, and the failed sign-in records for that test are visible in the audit destination from the second step.

  5. Run on a supported PostgreSQL version

    The platform owner checks the production database against the Keycloak database guide, which lists PostgreSQL 14 to 18 among supported databases, and confirms the instance runs a version in that range. Keycloak needs a relational database in production, and the development file database is not suitable for production, so the evidence should name the database type, its version, its backup owner and where the data is held. Record the database version and the Keycloak release in use, currently 26.8.1, in the scope document. The step is done when an assessor can match both versions to the vendor's documentation.

  6. Set patch cadence and log upgrades

    The platform owner writes a patch cadence that follows the planned minor releases: Keycloak plans four minor releases a year, and since Keycloak 26.0 breaking changes in minor releases are opt-in. Assign who reviews each release, who tests it and when it is applied. For every upgrade, keep a change record with the source and target versions, the release notes reviewed, the test results, the approver and the rollback plan. The step is done when the change log has a dated entry for each upgrade with its approval attached, which is the trail an assessor uses to test change management.

  7. Run and record a restore test

    The operations team restores the Keycloak database and realm configuration into a separate environment, then signs in with a test account and confirms that realms, clients and MFA settings match production. Record the date, the backup used, the person who ran the test, the time the restore took and any gaps found. Open a ticket for each gap and repeat the test on the cadence set in the patch plan. The step is done when the signed restore record sits beside the change log, because only a restored copy shows that the backup works.

  8. Schedule System Log exports before 90-day window closes

    For the Okta route, the security or IT owner schedules System Log exports before the 90-day window closes. Okta's developer documentation says System Log data older than 90 days is not returned, so anything kept longer must come from your own store. Confirm the export method, destination and access rights with your Okta administrators, and record the job owner and schedule. The step is done when a sample export covering the oldest available day lands in the retention store and someone outside the export team can read it.

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

How much effort does a Keycloak audit-ready setup take?

The effort depends on five drivers: your team's existing operations skills, the database, the number of applications, the logging pipeline and the size of the audit scope. A team that already runs Kubernetes or virtual machines, a production database and a log store starts well ahead of a team learning those skills during the project. Keycloak needs a relational database in production, so the database choice and its backup and restore process shape the work from the start. Each application adds clients, sign-in flows and access rules that must be configured, tested and documented. The logging pipeline determines whether user and admin events are kept long enough for the assessor to sample. The scope, meaning which systems, people and controls the assessor examines, sets the evidence workload. Ask any provider to break its quote down by these drivers.

How long does it take to get Keycloak audit-ready for SOC 2 or ISO 27001?

There is no fixed duration, because the time depends on the audit window and on the scope agreed in writing before work starts. A SOC 2 Type 1 report covers the design of controls as of a date, while a Type 2 report tests whether controls operated over a period, so a Type 2 window sets the minimum time that evidence must exist. For ISO/IEC 27001, certification bodies run audits on a three-year certification cycle with at least one audit in each calendar year, so the schedule is set by the certification body and the calendar. Ask your assessor which report type or certification cycle applies, which systems are in scope and when they need evidence. Then build the timeline backward from those dates.

Can our own team run Keycloak for an audit without outside help?

Yes, if the team already runs the platform foundations Keycloak depends on. The usual prerequisites are Kubernetes or virtual machines, a relational database the team can back up and restore, and a log store that keeps user and admin events for the period the assessor will sample. Keycloak's Server Administration Guide documents auditing for user events and admin events, which are the main sources of sign-in and configuration evidence, so someone must own enabling, retaining and reviewing them. Teams without those skills can buy fixed-scope help for the build and the evidence pack, and ongoing support, upgrades and continuous testing are available as retainers. Put the split of tasks in the written scope so each control has a named owner.

What does Okta cost for the audit evidence we need?

Okta sells Workforce Identity suites per user per month, billed annually, with a $1,500 annual contract minimum according to the Okta pricing page. The suite you choose changes which features you have: Starter includes Single Sign-On, Multi-Factor Authentication and Universal Directory, while Essentials adds Adaptive MFA, Lifecycle Management and Access Governance. If one of your controls depends on governance features such as access reviews, confirm in writing which suite includes it. The subscription recurs every year for as long as users stay licensed, so the main cost drivers are user count, suite tier and any features you add beyond the suite. Ask Okta for a quote that lists users, suite, billing term and the features your controls depend on.

Does DeployOpen issue the SOC 2 report or certify our organization?

No. DeployOpen does not issue SOC 2 reports, audit reports, attestations or certifications. Independent auditors issue SOC 2 reports, and accredited certification bodies certify ISO/IEC 27001 management systems. DeployOpen's part is to plan, implement, document and test the identity setup, and to prepare the systems, controls and evidence that the assessor asks for. Before you hire any provider, ask it to state in writing which deliverables are evidence packs and which are attestations that only the auditor can give. Confirm early with your auditor that the evidence format they need is one your setup can produce.

Does Okta's SOC 2 report cover our own Okta configuration?

Confirm this with Okta and your assessor before you rely on it. Okta's Security Trust Center lists SOC 1, SOC 2 and SOC 3 reports along with ISO/IEC 27001 materials, but the SOC 2 report with bridge letter sits behind an access request, so start that request early. A vendor report describes the vendor's controls over the period it covers. Your tenant settings, such as sign-on policies, admin roles and application assignments, are normally controls you operate, so your assessor will decide whether they need their own evidence. Okta's developer documentation also states that System Log data older than 90 days is not returned, so export logs to your own store if your audit window is longer.

How DeployOpen prepares identity systems for SOC 2 and ISO 27001 evidence

For Okta vs Keycloak, DeployOpen scopes the identity controls and evidence an auditor will test, then builds and documents the Keycloak side inside your infrastructure. For Okta, the work covers the records and settings your team controls around the tenant, agreed in writing before work starts. Either way, the output is documented controls and evidence that independent auditors then test.

How we scope

  • The written scope names the Keycloak realms, clients and admin accounts inside the SOC 2 or ISO 27001 boundary.
  • It also states which Okta settings, log exports and admin roles are covered, and which stay with your team.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.

How we build

  • For Keycloak, we deploy on a supported relational database such as PostgreSQL 14 to 18, which production use requires.
  • We configure user and admin event auditing, brute force lockout and MFA policies per Keycloak's administration guide.
  • For Okta, we map which System Log events, sign-in policies and MFA settings your team must capture and retain.

How we hand over

  • Agreed deliverables can include configuration documentation, a control-to-evidence map and exported event records.
  • Okta's API does not return System Log data older than 90 days, so the handover includes a log export plan.
  • The handover names where each evidence record is stored and who owns it.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers for the Keycloak deployment.
  • Keycloak plans four minor releases a year, so the support plan should name who tests each one.
  • Okta's SOC 2 report with bridge letter sits behind an access request in the Okta Security Trust Center, so request early.

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.