Keycloak for SOX ITGC access controls: what it covers and what it does not
A finance or IT team preparing for a SOX 404 assessment of an application that signs users in through self-hosted Keycloak needs to know exactly what the identity server contributes. Keycloak supplies identity, role, group, session and admin event data that auditors sample, but it does not approve access, perform management reviews or issue any attestation. Those decisions and sign-offs stay with the business owner, the access approver and the control owner, and the audit firm forms its own opinion. Keycloak is the system of record for much of the evidence behind those decisions, not the control itself.
Scope is the first thing to settle with the external auditor. The SEC's guidance in Release 33-8810 says the IT general control areas relevant to an ICFR evaluation vary with each company's facts and circumstances, and it does not require every area to be evaluated. Program changes, computer operations and access to programs and data are named as examples, so whether Keycloak sits inside the access to programs and data scope, and which applications it fronts, depends on which financially significant systems rely on it. Ask the auditor early which applications, user populations and privileged roles they expect to test, and whether the Keycloak realm, its admin console and the underlying database host are in that boundary.
Confirm, rather than assume, the boundaries of your own environment. Identify which Keycloak realms, clients and identity providers feed each in-scope application, who can administer the realm, and where Keycloak events and admin events are stored and how long they are kept. Each of these is a decision your team owns and should document before the assessment starts. The sections that follow cover provisioning, reviews and privileged access in detail, and this section exists so those controls are not claimed beyond what the platform actually records.
How the access control requirements map to Keycloak configuration
This table pairs each access control point that auditors test for financially significant applications with the Keycloak capability that supports it, the configuration to set, and the process that stays outside Keycloak. Read each row as a pairing: Keycloak can hold the account, role and event records, while approvals, reviews and change control remain the organization's responsibility. The main takeaway is that the platform produces evidence only when those records are configured and the surrounding processes run on schedule.
| Requirement | Keycloak capability | Configuration to set | Remains outside Keycloak |
|---|---|---|---|
| Unauthorized access to financial data (AS 2110, paragraph B4) | Realm roles, client roles and groups control which users can reach each application | Grant application access through groups mapped to client roles, not through direct user grants | Approval of each access request and the ticket trail behind it |
| Access persisting after termination (AS 2110, paragraph B4) | Users can be disabled or deleted, and active sessions can be ended | Disable the user on termination and end open sessions as part of the removal step | Timely termination notice from HR and reconciliation of Keycloak accounts to the leavers list |
| IT personnel holding privileges beyond their duties (AS 2110, paragraph B4) | Admin console roles and groups determine who can change users, roles and realm settings | Limit admin roles to named groups and separate user administration from realm configuration | Segregation of duties matrix and approval of membership in admin groups |
| Operating effectiveness evidence (AS 2201, paragraph 45) | Admin events and login events record configuration changes and sign-in activity | Enable admin event saving with details and login event saving, and set a retention period that covers the audit window | Inquiry of control owners, reviewer sign-off and archiving of exported logs outside the Keycloak database |
| Authority and competence of the person performing the control (AS 2201, paragraph 44) | Groups and roles show who holds the access review or approval role | Restrict the review role to people with documented authority over the application | Confirmation that each reviewer has the authority and competence the control requires |
| Access controls in the IT control environment (AS 2201, paragraph B33) | Session settings and admin endpoint placement affect how long access stays valid | Set session idle and maximum lifetimes, and serve the admin console on a separate hostname | Change control over realm settings so that the configuration an auditor tests stays unchanged between reviews |
| Access to programs and data (SEC Release 33-8810) | The admin console and Administration REST API expose realm, user and client changes | Restrict admin access to the separate admin hostname and keep admin events enabled for every change | Program change management, emergency access procedures and periodic review of who holds admin access |
Evidence Keycloak produces for provisioning, removal and reviews
Auditors testing access controls over financially significant applications ask for records that show who was granted access, who lost it, and who reviewed it. Keycloak produces several of these records, but the server holds them for a limited time and does not hold the approvals, so the evidence set has to be planned and exported on purpose.
User creation and change records
Admin events record create and update operations on user accounts, including the administrator who made the change and the affected realm. Enable admin event logging with the representation of changes included, then ship those events to a log store your audit team controls. Check that a sample of new accounts traces back to a request in the ticketing system, because Keycloak records the change but not the reason for it.
Keycloak docsRemoval and disable timestamps
Removal evidence is the most important artifact for terminated users, because access that persists after termination is a named IT risk. Confirm that disabling a user generates an admin event and that the event is exported on a fixed schedule. Compare the disable timestamp with the termination date in HR records and the ticket that approved the removal.
Role and group membership exports
Access reviews need a point-in-time list of who held which realm roles, client roles and group memberships. Export these from the Administration REST API or the admin console on a schedule, and keep each export with its date so reviewers compare the same snapshot they signed. Treat the export as the population for the review, and confirm that nobody can edit the file after the reviewer has signed it.
Admin console and API activity
Privileged access to Keycloak itself is a control in its own right, so auditors look for records of administrators changing realms, clients and role mappings. Admin events and any logs from the reverse proxy in front of the admin console should be retained together. Confirm that administrator accounts are separate from everyday user accounts and that each change can be attributed to one named person.
Login event logs
Login events show successful and failed sign-ins, which help auditors test whether access to financial applications was limited to authorized users. Enable login event logging and export it alongside admin events. Failed logins are persisted to the database by default in Keycloak 26.8, but confirm your retention and export process for that data rather than relying on the database alone.
Upgrade notesMetrics are not access evidence
Keycloak exposes Prometheus-format metrics at /metrics on its management interface, but only when started with --metrics-enabled=true. These metrics describe server health, request volume and cache behavior. They do not identify users or changes, so do not offer them to auditors as proof of access control. Keep them in your monitoring stack for operations.
Configuration sequence before the first SOX test period
This sequence sets up Keycloak so that every access change for a financially significant application leaves a traceable record, and so that the auditor can test the controls from a documented baseline. Each step closes with an artifact the team can hand to the auditor.
Confirm in-scope applications and auditor expectations
Finance, IT and the external auditor agree which applications and data sets fall within the ICFR assessment, and which Keycloak realms, clients and upstream identity sources feed them. The auditor confirms which access controls and evidence types they expect to test, since the aspects of IT general controls that matter vary with each company's facts and circumstances. Done means a written scope list that names each application, its realm or client, and the control owner for access to it.
Separate admin console and Administration API endpoints
The platform team exposes the admin console and Administration REST API on a different hostname or context path from public frontend URLs, following the Keycloak production guide, and places a reverse proxy with path restrictions in front of the public endpoints. TLS is enforced on all traffic. Done means a test from outside the administrative network cannot reach the admin paths, and the proxy configuration is stored under change control.
Restrict administrative roles to named groups
The security team creates a small set of administrative groups in the master realm and each business realm, assigns only the realm administration roles those groups need, and removes default administrative access from individual accounts. Each privileged account is a named person, and break-glass access is documented separately. Done means a current export of role assignments shows every administrator tied to a named group with an approver on record, which supports the test of whether privileged users hold only the access their duties require.
Enable admin and login event saving
The platform team turns on event saving for login and admin events in each realm and selects the event types the auditor will sample, such as user creation, role mapping changes, client changes and failed logins. Failed login persistence is a default in the 26.8 line, which the team should confirm in its own version. Logs are forwarded to retained storage that administrators cannot edit. Done means a test change to a user and a test login both appear in the retained log store with actor, time and target.
Define realm roles and groups for financial applications
Application owners and finance map each financial application role to a Keycloak realm role or client role, then group those roles into business groups such as accounts payable approver or general ledger reviewer. Client roles are mapped to the application, and no role grants access broader than the documented business function. Done means a role-to-function matrix signed by the application owner, plus a Keycloak export that matches it.
Document the joiner, mover and leaver workflow
HR, IT and the application owners write the procedure for granting access on hire, changing access on transfer and removing access on termination, naming the ticket or request record that authorizes each change and who performs the Keycloak action. The procedure states how a disabled or removed user is checked against the source system. Done means an approved procedure exists, and a sample of recent changes can be traced from authorizing request to Keycloak event.
Schedule the access review extract
The team builds a repeatable extract of users, groups, realm roles and client role mappings for each in-scope application, using the Administration REST API or an export from the admin console, and stores it with a date and the name of the person who ran it. The reviewing manager gets the same extract each period. Done means a test extract has been generated, checked against the admin console for a sample of users, and filed where the auditor can request it.
Walk the auditor through the evidence set
The control owners present the scope, admin role design, event configuration, role matrix, leaver procedure and review extract to the auditor, then perform one live sample of a provisioning and a removal so the auditor can observe the trail. Open questions on the auditor's expectations are recorded and resolved before the test period starts. Done means the auditor has confirmed in writing which evidence they will request and in what form.
Privileged admin access in Keycloak: options and trade-offs
In this model, a small number of people hold full administrative rights in the master realm, which controls the entire Keycloak server, including every application realm, client, identity provider and signing key. It is the simplest arrangement to build and the hardest to separate from ordinary operations. AS 2110 paragraph B4 names IT personnel holding access beyond what their duties require as a risk to internal control over financial reporting, and a master admin can change configuration that feeds financial applications while also administering the users who approve those changes.
- Segregation of duties risk: the same account can create users, assign roles, change client settings and alter authentication flows, so no single control separates requesting access from granting it.
- Evidence left: admin events in the admin event log record the actor and the change, but the log only helps if the admin account identity is unique and tied to a named person.
- Shared or generic accounts: if several people use one admin login, the events cannot show who acted, which weakens every sample an auditor takes.
- Standing access: an account that is always privileged makes it harder to show that elevated rights were granted for a need and removed afterward.
- Break-glass use: if this account is also the emergency path, its use needs a documented procedure, including how it is sealed, who may open it and how each use is reviewed.
Before relying on this model, confirm with the external auditor whether it is acceptable for the in-scope applications and what compensating review they expect over master realm changes.
Here, administration is split by realm, and administrators receive realm-level roles only in the realms they manage. The Keycloak server administration guide documents this role model, including the built-in administrative roles that can be assigned per realm. This reduces the reach of any one account, but it does not remove conflicts when the same person can both administer the realm and approve or perform business access changes for a financially significant application.
- Scoped rights: a realm administrator for one application cannot change another application's realm, which narrows the blast radius of a mistake or misuse.
- Conflicts inside a realm: an administrator who creates users, assigns roles and also owns the review of those assignments still holds incompatible duties, so the design must separate them by role or by process.
- Evidence left: admin events identify the realm and actor, and periodic role and group exports give the population an auditor can compare against approvals.
- Delegation drift: realm role assignments made for projects often outlive them, so a recurring check of who holds administrative roles per realm is needed.
- Master realm still exists: the master realm continues to hold server-level rights, so those few accounts still need the controls described in the previous option.
Confirm with the auditor which realm role assignments count as privileged for the in-scope systems and how often they expect the list to be reviewed.
This option places administrator identities in a dedicated realm that holds no business users, and that realm is used to sign in to administration of the other realms. The aim is to keep administrator accounts, their strong authentication and their approval flow apart from the workforce and customer identities they manage. It adds one more realm to design and maintain, and it needs its own owners, backup and access reviews, but it gives a clear boundary that auditors can test.
- Separated population: administrators are a distinct, small population, which makes the list of privileged accounts simple to produce and review.
- Stronger authentication: the admin realm can require multi-factor authentication for every sign-in without forcing the same policy onto all business users.
- Evidence left: sign-in events and admin events for the admin realm form a focused log set, and the realm's user list is itself a control record.
- Segregation of duties: the people who manage the admin realm can be kept separate from those who administer business realms, which is the separation AS 2110 B4 describes.
- Setup and upkeep: the boundary must be documented, and the design must prevent administrators from granting themselves rights in the admin realm.
Ask the auditor whether a separate realm satisfies their expectations for privileged access and what they will sample, such as admin realm membership changes and approvals.
Questions finance and IT teams ask about Keycloak and SOX access controls
Does Keycloak alone satisfy SOX IT general control access requirements?
No. Keycloak supplies authentication, role and group data, and event logs that can serve as evidence, but the control design belongs to the company. Management decides which applications are financially significant, who approves access, how removals are triggered, how often reviews happen and who checks the results. The SEC guidance in Release 33-8810 says the IT general controls relevant to an ICFR evaluation vary with each company's facts and circumstances, so the design has to fit your environment. Keycloak makes those controls easier to operate and to evidence, which is a different claim from meeting the requirement.
What does a SOX access control project cost, and what drives it?
DeployOpen does not publish prices, and a quote follows from a written scope. The main cost drivers are the number of financially significant applications connected to Keycloak, the number of realms and upstream identity providers, how much provisioning and removal workflow you need, how your evidence process is built, and whether your team can run the platform afterward. Ask for the quote to split one-time work (design, build, integration, evidence mapping, testing) from recurring work (upgrades, monitoring, access review support, retainers). Each line should name who is paid for what.
How long does preparing Keycloak for SOX access controls take?
The duration depends on your environment and the scope agreed in writing, including how many applications are in scope, how mature your identity sources are and how many approval paths your current process has. Ask for a timeline that lists the phases, the client dependencies and the points where your auditors or control owners must confirm design. Timelines given before a scoped review are not reliable, so treat any estimate you receive as provisional until the scope is written.
Can our internal team run Keycloak for SOX controls without a partner?
Yes, if the team has the skills for the work. Administering Keycloak requires experience with realms, clients, roles, groups and identity federation, plus the ability to configure event logging and forward those logs to a system your auditors can query. Your team also needs to own the control design, including approval workflows and access review procedures, and keep records of each review. Upgrades, backups and high availability add further operating work. A scoped review can show where your internal skills are sufficient and where outside help would reduce risk.
Does DeployOpen certify Keycloak or issue SOX audit reports?
No. DeployOpen plans, implements, hardens and documents self-hosted platforms in your infrastructure, and prepares systems, controls and evidence for compliance assessments. It does not issue audit reports, attestations or certifications. Independent auditors test controls under PCAOB AS 2201 and conclude on them, and management carries the responsibility for the ICFR assessment under Section 404. Ask your auditors early which evidence samples they expect, so the preparation work matches what they will test.
Which Keycloak version should we run for a SOX-scoped deployment?
The current Keycloak release is 26.8.1, published October 13, 2026, according to the project's release information. Choose a version your team can support and test, and check the upgrade notes for changes that affect login failure records, SMTP settings and backchannel logout validation. If you deploy with the Keycloak Operator, the project strongly recommends manual approval mode for operator updates to avoid unintended automatic upgrades. Document each version change as a controlled change, because auditors may sample change records for the platform that holds access data.
How do we start with a scoped review of Keycloak access controls?
Start by listing the financially significant applications, the identity sources that feed them and the people who approve access to each one. Then ask for a scoped review that maps your current provisioning, removal, review and privileged access processes to what Keycloak can record, and identifies gaps in event retention and role design. The output should be a written scope with deliverables, timelines and the evidence each control will produce. Share the scope with your external auditors before work starts so the agreed design matches their testing approach.
How the access evidence flows from Keycloak to the auditor
The evidence trail starts with three record types leaving Keycloak: user, role and group changes in the realm, admin events that record who changed what through the admin console or Administration REST API, and login events that record authentication activity for each application. Each stream should be exported on a schedule to a log store that the Keycloak administrators cannot edit, and the access review extract should be generated from the same realm data rather than from a screenshot or a spreadsheet typed by hand. Confirm with your Keycloak version and deployment how admin events and login events are enabled and where they are persisted, since retention depends on the database and any event listener you configure. Also decide who owns the export job and what happens when it fails.
The approval records stay outside Keycloak. The ticketing system holds the request and the manager or application owner approval, and the HR source holds the joiner, mover and leaver dates that auditors compare against the account changes. The trust boundary sits between Keycloak and the evidence store, because once events leave the identity provider, the team that administers Keycloak should not be able to alter them. Auditors will sample from both sides: they pick a change in Keycloak and ask for the matching ticket and HR date, and they pick an approval in the ticketing system and ask whether the access change actually happened in the realm. Plan a reconciliation check that runs before each sample period so mismatches are found by your team, not the auditor.
Access request, change and evidence flow for a financial application
The flow starts with a manually approved access request, usually from HR or a ticket system, and moves to a Keycloak administrator who makes the change in the realm. From there Keycloak writes admin and login events, which are exported to retained storage. Periodic role and group extracts from Keycloak feed management review, and auditors sample from both the approval records and the exported events. Check that the boundary between the manual approval and the Keycloak-generated records is clear, since auditors will test each side separately.
Manual approvals and Keycloak-generated evidence feed the audit sample.
How auditors test operating effectiveness of access controls
Auditors test whether an access control worked over the period, not only whether it is configured. Under PCAOB AS 2201, paragraph 44, the auditor determines whether a control operates as designed and whether the person performing it has the necessary authority and competence. Paragraph 45 names four methods that combine into that conclusion: inquiry of personnel, observation of operations, inspection of documentation and re-performance of the control. For a Keycloak-backed application, the access review owner, the identity administrator and the application owner are the people the auditor asks about authority and competence, so the reviewer's realm role and their documented responsibility should match. Inquiry alone proves little, so each method needs a Keycloak artifact behind it. Inspection of documentation means the signed access review, the ticket that approved each grant and the admin event that executed it. Re-performance means the auditor rebuilds the population from Keycloak data, such as a realm role or group membership export, and checks it against the approved list. Observation means watching the admin console and the admin REST API being used by named administrators, which is where restricting admin access to a separate hostname or context path, as the production guide advises, becomes visible.
Sample sizes, the population boundary and the conclusion are the auditor's decisions, and the reader should not assume a fixed number from this page. What the reader controls is whether each sampled item can be traced. Confirm with your auditor how they will define the population of users and roles in scope, whether they will accept an export generated from the Keycloak Administration REST API or a screen capture, and how they will treat events in the period that Keycloak records by default versus those you enable. Test the evidence path yourself before fieldwork: pick a leaver, trace the disable action to the admin event, and confirm the role export no longer lists them. Also check that the admin event log is retained long enough to cover the audit period and is written somewhere the administrators cannot edit. Keycloak's events and their retention depend on your configuration, so verify them in your own environment and with your audit firm rather than relying on defaults.
How DeployOpen scopes and delivers SOX access evidence on Keycloak
DeployOpen plans, builds and documents Keycloak for SOX IT general controls over access inside your own infrastructure, so the provisioning, review and privileged access records auditors sample come from systems your team controls. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
How we scope
- Agree in writing which financially significant applications, realms and clients fall inside the Keycloak ITGC boundary.
- Map each access control to the events, role and group data and admin records your auditors expect to sample.
- Confirm who owns joiner, mover and leaver approvals, review sign-off and admin change tickets before build starts.
How we build
- Configure realm, role and group structures so access reviews can be run directly from Keycloak role and group data.
- Enable admin and login event logging and confirm the events you need are retained and exportable for sampling.
- Test provisioning, removal and privileged admin paths in a non-production realm and record the results for retest.
How we hand over
- Deliver written configuration records, control descriptions and a walkthrough of each evidence source for your auditors.
- Provide runbooks for periodic access review extracts, admin account review and removal of leavers.
- Document open items, known limits and the points your independent auditor should confirm for their own testing.
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer after the initial handover.
- Review Keycloak upgrade notes against the control set before each planned upgrade so evidence stays consistent.
- Confirm with your auditor which evidence format and retention period they require for each control before final sign-off.
Sources and further reading
- Commission Guidance Regarding Management's Report on Internal Control Over Financial Reporting, Release 33-8810 ↗
- PCAOB risk assessment standards, Release 34-62919 ↗
- PCAOB Auditing Standard No. 5, Release 34-55876 ↗
- Keycloak server administration guide ↗
- Keycloak: Configuring for production ↗
- Keycloak: Gaining insights with metrics ↗

