Keycloak production security checklist

An item-by-item review of a running Keycloak against the threats its documentation lists, with the setting to check, how to verify it, and the evidence to keep before go-live or an internal audit.

On this page

What a Keycloak production security checklist covers

A Keycloak production security checklist is an item-by-item review of a running Keycloak against the threats its production guide describes. It is for the people who must sign off a deployment before go-live, or who must show an internal audit or a compliance assessment that the server is configured as intended: platform engineering leads, security engineers, and the compliance owner who will hold the evidence. Each item names one setting, a method to verify it, and the artifact to keep, such as an exported realm configuration, a dated screenshot of an admin console page, a proxy configuration file, or a log extract. The items are grouped by threat area, so a reviewer can follow the same structure the Keycloak production guide uses, from TLS and reverse proxy path restrictions to admin endpoint separation and metrics exposure.

Teams usually need the checklist at four points. The first is before go-live, when the configuration is still easy to change. The second is after an upgrade, because a new release can change defaults or enforce behavior that was previously optional, so a setting that was correct on the old version needs to be checked again. The third is after staff changes, when administrators or the people who hold client secrets have moved on and no one can say who can still reach the admin console. The fourth is before a compliance assessment, when the auditor will ask for evidence rather than assurances. A checklist run does not produce an audit report or certification. It produces the configuration evidence an independent auditor or certification body will want to review.

DeployOpen runs the review inside your own infrastructure, using your cloud accounts, data centers or restricted networks, so the realm exports, logs and configuration files never leave your environment. Before the work starts, confirm which Keycloak release line and database you run, who owns each threat area, and which evidence format your audit team accepts. Those answers set the scope and the size of the review, and they are the first items to agree in writing.

Checklist areas and what each one checks

This table lists the main areas of a production Keycloak review, the setting or behavior to check in each, why it matters and whether the check is a configuration review, a live test or a document review. Use it as a map: work through each row against the Keycloak version you run, and confirm exact key names in that version's documentation before you record evidence.

Review areaWhat to checkWhy it mattersCheck type
Transport and TLSTLS on all communication, including the proxy to Keycloak hop and outbound calls to identity providers and databasesKeycloak's production guidance calls for TLS everywhere, so plaintext hops expose tokens and credentialsConfiguration review
Reverse proxy and admin exposurePath restrictions at the proxy, and admin console and Administration REST API served on a different hostname or context path from public frontend URLsKeeps administrative endpoints off the public path that end users and applications useLive test
Admin accounts and MFADedicated administrator accounts, limited use of the master realm, and MFA enabled for administratorsAdministrative accounts control every realm, client and signing setting, so weak admin sign-in affects the whole deploymentConfiguration review
Token and session lifetimesAccess token, SSO session, client session and offline session lifetimes per realm and client, plus idle versus maximum timeoutsLong lifetimes extend the window in which a stolen token or session stays usableConfiguration review
Client configurationRedirect URIs, web origins, client authentication method, default scopes and audience settings for each clientOverly broad clients are a common route to open redirects and token misuseConfiguration review and live test
Signing keysActive, passive and disabled realm keys, key priority, and the rotation interval your team has setKeys that never rotate increase exposure, and applications that cache JWKS may need planning before a changeConfiguration review
Secrets storageWhere SMTP passwords, LDAP bind credentials and identity provider client secrets are stored, and whether exports contain themSecrets in the database or exports widen the blast radius of a backup or admin compromiseConfiguration review and document review
Database and clusterDatabase engine and version from the supported list, schema migration mode, and a synchronously replicated database for clustered designsThe database holds realm and credential data, and cluster designs depend on its replication behaviorDocument review
Metrics and logging exposureWhether the /metrics endpoint is enabled on the management interface and whether it is reachable from outside the management networkMetrics can reveal internal names and usage patterns if exposed beyond monitoring systemsLive test
Patching and release lineRunning version against the current release, the minor release cadence, and the upgrade path your team has documentedSecurity fixes ship in releases, and unpatched instances stay exposed to known issuesDocument review
SMTP and backchannel logout settingsSMTP StartTLS enforced without plaintext fallback, and signature validation on backchannel logout tokens from external providers, both named in the 26.8 upgrade notesConfirms the 26.8 behavior changes are in effect and that mail and logout messages are protectedConfiguration review and live test
Security testingScope and date of the last application, API and infrastructure test, and retest of earlier findingsConfiguration review does not prove an attacker cannot reach a path, so independent testing covers that gapDocument review

How to run the checklist on a live Keycloak

This sequence walks a reviewer through a running Keycloak from the exact version in use to a final test pass, producing a dated record that shows each production control was checked and what the evidence was. Run it in order, because earlier results (such as the release line and hostname split) decide what the later checks need to cover.

  1. Confirm the exact version and release line

    Record the precise Keycloak version the server reports, the distribution in use (upstream or Red Hat build of Keycloak), and the release line it belongs to. Compare it against the current release on keycloak.org and the GitHub releases page, and check the 26.8 upgrade notes for behavior changes that affect your settings. The step is done when the version, distribution and support status are written into the review record with the date you checked. Save the server startup output or the admin console about page as evidence.

  2. Export realm and client configuration

    Export the realm and client definitions from every realm in scope, using a stored export rather than screenshots alone, and keep the export in a controlled location since it can contain sensitive values. Confirm that the export shows the redirect URIs, web origins, client authentication method, token lifetimes and enabled identity providers you will check in later steps. The step is done when each realm has a dated export file and a list of the realms and clients it covers. Ask your team to confirm that the export was taken from the production environment, not a copy.

  3. Check the admin and public hostname split

    Review the reverse proxy and Keycloak hostname settings to confirm that the admin console and Administration REST API are served on a different hostname or context path from public frontend URLs, as the production guide describes. Test from outside your management network that the admin paths do not resolve through the public route and return an error or block. The step is done when you have the proxy rule set, the hostname configuration and the results of the outside-in requests saved together. Record the path restrictions as they were applied, not as they were designed.

  4. Verify TLS on every path

    Confirm that all client-facing, admin, management and inter-node traffic uses TLS, including the connection from the proxy to Keycloak and the database connection where your setup supports it. Check certificate chains, expiry dates and protocol versions with a scanner or openssl s_client output, and confirm that HTTP requests redirect or are refused. Also check the SMTP connection for StartTLS enforcement, which the 26.8 upgrade notes describe. The step is done when each path has a recorded result and any gap has an owner.

  5. Confirm metrics are not publicly reachable

    If metrics are enabled with --metrics-enabled=true, confirm that the /metrics endpoint on the management interface is reachable only from your monitoring network and not through the public proxy route. Send a request from outside the network and save the response code, then confirm the Prometheus scrape job reaches it from inside. The step is done when the outside request is refused and the internal scrape succeeds, with both outputs saved. Ask your team to confirm whether metrics are enabled at all, since the check is only needed when they are.

  6. Review administrator accounts and MFA

    List every user with admin roles in the master realm and in any other realm that holds administrative rights, and check that each account is a named, dedicated administrator account rather than a shared login. Confirm that MFA is required for these accounts through the browser flow or required actions, and review how many accounts also hold day-to-day user accounts. The step is done when the admin list, the MFA policy and any exceptions are saved with the reviewer's name and date. Treat any shared or unmonitored administrator as a finding to record.

  7. Review token lifetimes and client settings

    Compare the access token, SSO session, client session and offline session lifetimes in the export against the risk level assigned to each application, and check that confidential and public clients use the flows and settings your policy requires. Look for wildcard redirect URIs, overly broad web origins and clients with direct access grants enabled when they do not need them. The step is done when each client has a recorded lifetime, flow set and finding, and the review is signed off with a date. Use the exported configuration as the evidence rather than memory of the settings.

  8. Review secrets and signing keys

    Check where SMTP passwords, LDAP bind credentials and identity provider client secrets are stored, and confirm they are not in plain text in the realm export or database where your vault approach says they should not be. List the realm signing keys with their status and priority, and confirm the active key is the only one used for new tokens while passive keys remain for existing tokens. Record the date each secret was last rotated, using the owner's change record. The step is done when each secret has an owner and a rotation date, and the key list is saved.

  9. Test the controls and record a dated sign-off

    Run the tests that confirm the earlier findings: a request to an admin path from outside, a metrics request from outside, a login without MFA for an admin account, and an attempt to use a redirect URI that is not registered. Save each request, response and timestamp, then list any failed checks with an owner and a retest date. The step closes when the reviewer signs and dates the record, and the signed record, the exports and the test results are stored together for the audit file. Ask your team to confirm the retention period their internal audit requires.

How the production guide threats map to checklist items

Every item in a production security checklist for Keycloak should trace back to a specific threat or risk that the Keycloak production guide describes, and the trace should be written down. The guide calls for TLS on all communication, a reverse proxy with path restrictions, and a separate hostname or context path for the admin console and Administration REST API. Each of those statements becomes a row in the checklist with the threat it addresses, the setting or proxy rule that implements it, the command or console location used to verify it, and the evidence kept for the auditor. A table like this lets a reviewer ask, for any control, which threat it answers and whether the running system still matches. A checklist kept in someone's memory tends to drift after an upgrade, a proxy change or a new administrator, and nobody notices until a review finds the gap.

A traceable table also makes it obvious when a row no longer fits the release in use. The Keycloak 26.8 upgrade notes change several defaults that a checklist written against an older release may not reflect. SMTP connections are enforced to use StartTLS without plaintext fallback, signature validation of backchannel logout tokens from external providers becomes mandatory, and login failures are persisted to the database by default. Each of these changes the evidence you would collect: an SMTP test should confirm the encrypted connection, a logout flow should show rejected unsigned tokens, and the database should contain the login failure records you are expected to retain. Confirm the default for each row against the upgrade notes for the exact release you run, and record that release number next to the checklist so the next reviewer knows which baseline applies.

The threat list in the production guide is the starting point, not the whole inventory. Some rows will reference deployment choices, such as whether the cluster uses the deprecated multi-site feature that the 26.8 notes recommend moving away from, or whether metrics are exposed through the management interface at /metrics after starting with --metrics-enabled=true. Review those rows whenever the architecture changes. Assign an owner to each row, set a review trigger tied to upgrades and configuration changes, and store the checklist beside your infrastructure code so that its history matches the history of the system. Before go-live, the completed table, with dated evidence against each row, is the document you can hand to internal audit or to an external tester as the baseline.

Which checklist items fail most often in review

The items below are the weak points reviewers tend to reach first in a running Keycloak. Each one is a setting or exposure that is easy to leave at its default or to widen during setup and forget. Check each one against the live configuration, then keep the evidence with your review record.

Admin console on the public hostname

The admin console and Administration REST API should sit on a different hostname or context path from public frontend URLs, with proxy path restrictions in front of them. Check whether the admin paths answer on the same host that serves user sign-in. Verify from outside your network and from a non-administrative address. Keep the proxy configuration, the request results and the network rule that limits access.

Production guide

Metrics endpoint reachable through the proxy

Metrics are served at /metrics on the management interface when metrics are enabled, and they can reveal operational detail about your deployment. Confirm the management port is not routed by the reverse proxy and that the path returns nothing from outside the monitoring network. Keep the proxy rules and a request log showing the blocked external attempt.

Metrics guide

Master realm used for daily work

The master realm holds administrative control over every other realm, so routine application and user work there widens the blast radius of a single compromised account. Review which users hold admin roles in master and whether accounts are dedicated to administration. Keep an export of the role assignments and the list of accounts that have signed in to master in the review period.

Long-lived client secrets

Confidential clients that still use a shared secret set years ago are a common source of leaked credentials. Check the secret age for each confidential client, whether a rotation schedule exists, and whether signed JWT or mutual TLS authentication is in use for high-risk clients. Keep a client inventory with creation and last rotation dates, and the rotation record for each.

Wide redirect URIs and web origins

Wildcard redirect URIs and broad web origins let an attacker send a valid authorization response to a location they control. Compare each client's registered redirect URIs and web origins against the exact application addresses it uses. Test whether a near-miss URI completes a sign-in. Keep an export of the client settings and the test results for each client.

Realm keys and secrets in exports

Realm exports and identity provider settings can carry signing key material, SMTP passwords, LDAP bind credentials and client secrets if they are not moved into a vault. Review the export files and the database for stored secret values, and confirm where the file or keystore vault is used. Keep a dated scan of the export location and a note of which secrets now come from the vault.

What evidence to keep for internal audits and go-live

Security and audit reviewers need to see what the Keycloak configuration was on a given date, who checked it, and which deviations were accepted. Export the realm and client settings on a fixed schedule and at each go-live, and keep the export with a timestamp, the Keycloak version, and the name of the person who ran it. Reviewer sign-off should be recorded against the specific export, not against a general statement that the system was reviewed. Keep an exception register for every checklist item that is not met, with the reason, the compensating control, an owner, and a review date.

  • Dated configuration exports: Store the realm export and the admin event settings together, named by date and environment, so a reviewer can compare two points in time.
  • Reviewer sign-off: Record who reviewed each export, what they compared it against, and the date of approval.
  • Exception register: List each unmet item with its risk, the compensating control, the accountable owner, and the next review date.
  • Admin activity records: Keep the admin event log export for the review period, since it shows who changed what.
  • Change linkage: Tie each configuration change to a ticket or change record so exports can be explained.

Before relying on any export, confirm with your internal audit function which formats and retention periods they accept, since the evidence must match their testing approach.

Questions buyers ask before a Keycloak security review

How long does a Keycloak production security checklist review take?

The duration depends on how much there is to check and how much access the reviewers get. The main drivers are the number of realms, the number of clients and their flow types, the number of custom providers, themes and extensions, and the deployment model, such as a single cluster, a multi-cluster design, or a Kubernetes Operator install. Each realm and client category adds configuration to read and verify, and each custom provider adds code and dependencies to review. Ask any firm for a duration that is tied to a written list of realms, clients and deployment components, and confirm whether the quote includes live verification in your environment or only a review of exported configuration.

Can our own team run the Keycloak security checklist internally?

Yes, many teams work through the checklist themselves, provided they have the skills and access to do it properly. You need administrator access to the realms in scope, read access to the reverse proxy and network configuration, a test environment where changes can be made safely, and a named owner who signs off each item and keeps the evidence. Engineers also need to be comfortable reading token contents, client settings and the Keycloak production guidance. If any of these are missing, an outside reviewer can cover the gaps, but the internal owner should still hold the final evidence set.

What should a quote for a Keycloak security review include?

A useful quote lists the scope in writing before work starts. It should name the realms, clients, proxy and network components, custom providers and themes covered, and the checklist items each one is tested against. Ask whether the work includes live testing against the running service or only configuration review, what the deliverable looks like, and how evidence is recorded for each item. Confirm that a retest of fixed items is included or priced separately, and state who performs fixes and who approves changes. DeployOpen agrees scope, deliverables and timelines in writing before work starts, and quotes follow from that written scope.

Does a Keycloak security checklist replace penetration testing?

No. The checklist verifies that the settings the Keycloak documentation recommends are in place, such as TLS, admin endpoint separation, token lifetimes, client policies and metrics exposure. A penetration test checks whether an attacker can actually abuse the deployment, including login flows, token handling, custom extensions and proxy behavior that a settings review may not reveal. The two complement each other: the checklist gives you a repeatable baseline and evidence of configuration, and a penetration test shows how the configuration holds up against an adversary. Many teams run the checklist first, then scope a penetration test against the systems it covered.

How do Keycloak upgrades change the security checklist?

Each upgrade can change defaults, add settings or alter behavior, so the checklist should be re-run against the target version rather than assumed to still hold. The Keycloak 26.8 upgrade notes, for example, enforce SMTP StartTLS without plaintext fallback, require signature validation of backchannel logout tokens from external providers, and persist login failures to the database by default. The notes also recommend moving from the deprecated multi-site feature to the stateless feature. Review the upgrade notes for every version between your current and target release, update the checklist items that depend on changed defaults, and keep the evidence from before and after the upgrade.

Does DeployOpen issue audit reports for our Keycloak deployment?

No. DeployOpen does not issue audit reports, attestations or certifications. It prepares systems, controls and evidence for compliance assessments, and independent auditors and certification bodies perform the assessment and issue any report. The evidence from the checklist, such as configuration exports, verification steps, screenshots or command output, and dated sign-offs, can be given to your auditor as input. Confirm with your auditor which evidence format they accept and which framework controls they will test before you start the review.

Which Keycloak settings should we ask about first before a review?

Start with the items that expose the most risk and are easiest to verify. Confirm that the admin console and Administration REST API are reachable only on a separate hostname or context path, that TLS covers all communication, that the reverse proxy restricts paths, and that metrics at /metrics are not exposed publicly when started with --metrics-enabled=true. Then review token and session lifetimes, client secret handling, and client policies that enforce consistent rules across clients. Ask the reviewer to show how each item is checked in your environment, not only what the setting should be.

What to confirm in your environment before relying on the checklist

The checklist names settings and checks, but the right values depend on the Keycloak version you run, how it was deployed and how it is wired to its database and clusters. Confirm the points below against the release notes and your own environment before you mark any item as passed.

Exact setting names and defaults

Confirm each configuration key, option and default against the documentation for the exact version you run, not the latest one. Keycloak ships minor releases several times a year and says breaking changes in a minor release are opt-in, so a default can differ between lines. Check the current release notes for your version and the upgrade notes for any version between yours and the one you plan to run. Record the version and the page you verified against as evidence.

Keycloak upgrading guide

Deployment method in use

Establish whether Keycloak runs from the Operator, a container image, a Helm chart or virtual machines. The same setting may be applied as a CRD field, an environment variable or a file on disk, and some items, such as where the admin console is exposed, depend on the proxy you place in front of it. The Operator documentation recommends manual approval mode for operator updates, so check how updates are approved in your setup.

Operator installation

Database and high availability design

Identify the database engine and version, whether writes are synchronously replicated, and which high availability architecture is in use. Multi-cluster v1, which used a separate Infinispan cluster per site, is deprecated, and both supported designs need a synchronously replicated database. Items on session replication, failover and backup depend on this answer, so confirm it before testing them.

High availability overview

Custom providers and themes

List any SPI providers, custom authenticators, event listeners, themes or extensions deployed alongside Keycloak, with the Keycloak version each was built against. Custom code sits outside the vendor's release testing, so its dependencies, its admin endpoints and its handling of tokens and secrets must be reviewed separately from the standard settings. Ask the team that wrote each extension who maintains it.

Metrics and logging endpoints

Confirm whether metrics are enabled on the management interface, which network can reach that interface and whether the logs your team reviews include login failures and admin events. Check the metrics option and the scrape path in your own configuration, because a metrics endpoint reachable from the public internet is a finding in its own right.

Metrics configuration

Your own evidence and owners

Name the person who owns each setting, where its value is stored (configuration files, the Operator resources or the admin console) and how changes are recorded. Auditors and internal reviewers will ask how a value was set and who approved it, so the checklist is only as reliable as the change history behind it. Ask your team to export the current configuration before the review starts.

How the checklist review moves from scope to sign-off

The review starts by fixing the scope and confirming the exact Keycloak version and distribution in use, then exports the realm and server configuration so checks run against settings rather than memory. Live checks cover TLS, the reverse proxy, admin endpoint exposure and metrics, and each result is triaged by severity. Every fix has a named owner and is retested against the same item, and the retest output, dated sign-off and configuration snapshot are archived together as evidence.

Review phases from scoping through retest to an archived, dated sign-off.

How DeployOpen runs a Keycloak security checklist review

Every review starts with a written scope. Before any work begins, DeployOpen and the client agree in writing which Keycloak realms, clients, proxy configuration, admin paths, custom providers and themes are in scope, which checklist items apply, what evidence will be delivered and when. Most engagements are fixed-scope, so the scope document sets the deliverables and the boundaries. Ask for the scope to name the Keycloak version and release line under review, because several items (such as the 26.8 upgrade notes on SMTP StartTLS and backchannel logout token signatures) only apply to specific releases. The work itself runs inside your infrastructure: your cloud accounts, data centers or restricted networks, with access granted to the configuration, exports and logs the checklist needs, and nothing copied out to DeployOpen systems beyond what the scope allows.

The review produces a findings report organized by checklist item. Each finding records the setting or control checked, how it was verified (the configuration read, the exported realm, the proxy rule tested, the /metrics endpoint reached or not reached from the public side), the observed result, the risk, and a recommended fix. The report also includes an evidence list: the configuration snapshots, command output, screenshots and test logs that show each item was checked, so your internal auditors can trace a control to its proof. DeployOpen prepares this evidence but does not issue audit reports, attestations or certifications. Independent auditors and certification bodies make those determinations, and the evidence list should be shaped around what your auditor has asked for.

Fixes are agreed in the scope, and DeployOpen can implement them in your environment or hand them to your platform team with change instructions. After fixes land, the affected items are retested and the report is updated with the retest results. Ongoing testing after go-live is available as a retainer, which suits teams that change realms or clients frequently or upgrade on the four-minor-releases-a-year cadence the project plans. Ask any provider, including DeployOpen, to confirm in writing what is included in the fixed scope, what is excluded (such as custom provider code review or a full penetration test) and how retesting is counted.

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.