Keycloak 26 minor upgrades to 26.8

A plan for keeping a self-hosted Keycloak 26 deployment current through quarterly minor releases up to 26.8, with the checks, backups and rollback points each step needs.

On this page

Why keep Keycloak 26 current one minor release at a time

Staying on the minor release line is the supported way to keep a Keycloak 26 deployment current, and the current release, 26.8.1, was published October 13, 2026. The 26.8 line brings changes to SMTP, logout tokens and multi-site deployments that need action before you move, so a team running Keycloak 26 in its own infrastructure should plan that upgrade as a reviewed change, not a routine restart. The question to settle first is how often your team will take those reviews.

Since Keycloak 26.0, the project has planned four minor releases a year and a major release every two to three years, and it states that breaking changes in a minor release will be opt-in. That policy changes how you work. A minor upgrade should not switch on new enforcement behavior without a deliberate configuration step, so the review is about reading each release's migration notes, listing which settings and integrations it touches, and deciding when to enable each change. Read the backwards compatibility policy to confirm the exact wording before you write it into your change process.

The cost of falling behind is that each skipped minor release adds notes to read at once and makes the eventual jump harder to test. Ask your team to confirm three things: which Keycloak 26 minor version is running now, which realms and clients depend on SMTP, backchannel logout or multi-site replication, and how long your environment needs for a staging test. Those answers decide whether a single-minor move is practical for your team or whether you need a planned window with a partner.

What changes in the 26.8 line and what each change requires

This table lists the 26.8 upgrade-note changes that can affect a running deployment, with the impact of each and the action to take before or during the upgrade. Read it as a checklist, then confirm each row against the full notes for every minor release between your current version and 26.8, because earlier releases may have changed settings you still depend on.

ChangeImpactAction needed
Enforced SMTP StartTLS without plaintext fallbackMail sent through an SMTP server that does not offer StartTLS will fail, which can break password reset, email verification and admin notifications.Confirm with your mail provider that StartTLS is offered, test a password reset in a non-production realm, and review the SMTP settings in each realm.
Mandatory signature validation of backchannel logout tokens from external providersLogout tokens from upstream identity providers that are unsigned or signed with keys Keycloak cannot resolve will be rejected, so back-channel logout may stop working for those providers.Inventory each external identity provider that sends backchannel logout, confirm its signing keys are available to Keycloak, and test logout end to end.
Login failures persisted to the database by defaultFailed login records are written to the database, which adds write load and table growth on busy deployments and may change how brute-force data is retained.Size the database for the extra writes, plan a retention approach for the login failure data, and check that the database backup covers it.
Move from the deprecated multi-site feature to the stateless featureDeployments that depend on the deprecated multi-site setup need a different architecture plan, and this is a design change rather than a simple setting change.Review your high availability design against the current Keycloak high availability documentation, plan the move in a test environment, and schedule it as a separate change.
Opt-in breaking changes in minor releasesBreaking changes introduced in a minor release stay off until you enable them, so the upgrade itself may look safe while a later enablement breaks behavior.Read each minor release note from your current version to 26.8, list every opt-in flag, and keep them off until a test realm confirms the change.

How to read per-release migration notes without missing opt-in changes

The upgrading guide is the first document to read for every minor release between your current version and 26.8, and you should read them in order rather than jumping straight to the target. Keycloak's upgrading guide is organized by release, so for each step note two groups of items: changes that take effect automatically when you start the new version, and changes that only apply when you turn on a flag or option. Record both in your upgrade ticket with the release number beside each item. Skipping an intermediate release is the most common way to miss a change that was introduced there and only became visible later.

Keycloak's backwards compatibility post explains that breaking changes in a minor release are opt-in, so a new default is not supposed to alter behavior on upgrade. Treat that as a policy you verify, not a guarantee you rely on. An opt-in flag can still change behavior the moment it is enabled, and a flag set in a shared configuration file, a Helm value or an Operator resource can be picked up by a later rollout without anyone re-reading the change. Keep a list of every flag your deployment sets, and check each one against the notes for the release that introduced it. Confirm each flag name, default and effect against the release notes for its own version, because the names and defaults are set per release and this page does not list them.

What to prepare before touching the 26.8 upgrade

Most failed minor upgrades trace back to something the team did not write down beforehand. The cards below cover the six records to assemble before a 26.8 change window, and each one answers a specific question the upgrade will ask. Work through them in order, because the backup and test environment depend on knowing the topology and integrations.

A restorable database backup

Record the database engine and version, the backup method, and the date of the last restore test. Keycloak migrates its schema automatically at startup by default, so a schema change is not reversible by restarting the old server. Confirm that the backup can be restored into a scratch database and that the Keycloak version it came from is written down. Ask whether your team will run the migration manually for a large database instead.

Database docs

An inventory of custom themes and providers

List every custom login, account and email theme, every SPI provider JAR, and any build-time customization. Record the Keycloak version each one was built against and who owns it. Themes and providers are the most common source of breakage after a minor release, and a provider that compiles today may still fail at startup on the new server. Keep this list next to the test plan so each item has a named check.

Client integrations and their token handling

Record every client, its protocol (OIDC or SAML), and whether it consumes logout tokens or relies on backchannel logout. Note which applications read token claims directly and which use an adapter or client library. The 26.8 notes make signature validation of backchannel logout tokens from external providers mandatory, so any relying party that sends or receives these tokens needs a verified path before the change.

SMTP and logout-token dependencies

Write down every SMTP relay Keycloak uses for password resets, verification and admin alerts, and confirm that each one supports StartTLS. The 26.8 notes enforce StartTLS without plaintext fallback, so a relay that accepts plaintext will stop sending mail after the upgrade. Also record which external identity providers send logout tokens, because their signing keys must validate under the stricter rule.

The deployment topology

Document whether you run a single cluster, optionally across availability zones, multi-cluster v2, or the deprecated multi-cluster v1 with a separate Infinispan cluster per site. The topology sets the upgrade sequence and whether mixed versions are allowed during the window. Multi-site users also need a plan for the recommended move from the deprecated multi-site feature to the stateless feature, which is a separate project from the minor upgrade.

HA overview

A production-like test environment

Build a non-production environment that matches production in Keycloak version, database engine and version, proxy configuration, cache settings and enabled features. Use a copy of production realm data with personal data masked. Confirm the database version is on the supported list for Keycloak 26 before you build, and run the full login, logout, SMTP and admin workflow there. A test that uses the dev-file database does not validate anything about production.

Upgrading guide

The upgrade sequence for each minor release

This sequence moves a Keycloak 26 deployment to the next minor release in a controlled order, so each change is tested on a copy, applied with a known rollback point and checked against the 26.8 rules before production sees it. The result is a documented, repeatable upgrade record for your change board and your auditors.

  1. Confirm the database version and take a backup

    The platform or database owner confirms the production database runs a version Keycloak lists as supported (PostgreSQL 14 to 18 is listed in the Keycloak database guide, along with other supported engines) and takes a full backup that has been tested by restoring it to a scratch instance. Keycloak 26 minor upgrades migrate the schema, so the backup is the rollback point for the database. Done means a restore test has succeeded and the backup identifier is written into the change record.

  2. Read the release notes for every minor version crossed

    The Keycloak engineer reads the upgrading guide and the migration notes for each minor release between your current version and the target, not only the newest one. Breaking changes in a minor release are opt-in, so each note should be checked for settings that must be enabled or changed in your configuration. Done means a written list of affected settings, custom providers and themes exists, with an owner for each item.

  3. Upgrade a non-production copy one minor at a time

    The engineer restores the production backup into a staging environment with the same realm configuration, client list and custom providers, then steps through each minor release in order rather than jumping straight to the target. Run the upgrade on the copy and record start-up logs, migration output and any warnings. Done means the staging instance starts cleanly on the target version and the logs contain no unexplained errors.

  4. Let the schema migrate automatically or apply it manually

    By default Keycloak migrates the database schema at startup. For a large database, the upgrade guide suggests applying the SQL manually so the database owner can review and time each change. The engineer confirms which path the release requires and records it in the runbook. Done means the schema version in the database matches the target release and the owner has signed off on the migration method.

  5. Verify SMTP and backchannel logout against 26.8 rules

    If the target is 26.8, the engineer checks that the SMTP relay accepts STARTTLS, since plaintext fallback is no longer allowed, and that backchannel logout tokens from external providers carry signatures the server can validate. The engineer also confirms login failure records are written to the database as expected and that monitoring or retention policies account for them. Done means a test password reset email is delivered over TLS and a test backchannel logout completes against each external provider.

  6. Plan any move from multi-site to stateless

    Where the deployment uses the deprecated multi-site feature, the 26.8 notes recommend moving to the stateless feature. The architect scopes this as a separate change with its own test cycle, because it alters how sites share state. Done means a decision record states whether the move happens in this release window or in a later one, and the database replication requirements for the chosen design are confirmed.

  7. Roll out to production with rolling restarts

    The operations team updates one node at a time behind the load balancer, waiting for each node to pass its health checks before moving on. For Kubernetes installs, the Keycloak Operator documentation strongly recommends manual approval mode for operator updates, so a platform engineer reviews the new version in a test realm and approves the update explicitly. Done means every node reports the target version and the post-upgrade login, token refresh and logout tests pass.

  8. Set a rollback point after each step

    Before each step that changes state, the team records a restorable point: a database backup, a container image tag or a Helm or Operator version, and the matching configuration export. If a check fails, the runbook says which point to return to and who approves the rollback. Done means each step's rollback point is listed in the change record and has been confirmed as restorable before the next step starts.

How the upgrade phases and decision points connect

The path starts with confirming the current 26 release and reading the migration notes for every minor release between it and the target. Those notes decide which opt-in breaking changes must be enabled before the upgrade, and the 26.8 notes add SMTP StartTLS enforcement, backchannel logout token validation and login failure persistence to that review. A tested backup and a staging rehearsal come before production, where the schema migration method is chosen. Verification after the rolling upgrade either closes the change or routes to the rollback branch, which restores the backed-up database and the previous image.

Decision path from the current 26 release through staging, rolling upgrade and rollback.

What the 26.8 SMTP, logout token and multi-site changes mean for your design

The 26.8 release changes three behaviors that can break a working deployment without any code change on your side, and each one touches a design decision you should make before the upgrade. The first is SMTP. Keycloak now enforces StartTLS without plaintext fallback, so if your mail relay or an internal SMTP gateway only works when Keycloak drops to an unencrypted connection, password reset, email verification and admin notifications will fail. Check the mail path with your messaging team first: confirm the relay offers StartTLS on the port and host name Keycloak uses, that its certificate chains to a CA Keycloak trusts, and that the sending account is allowed to authenticate. Email delivery is also a common place for silent failures, so test a password reset in a staging realm before the production upgrade.

The second change concerns backchannel logout. Keycloak now requires signature validation of backchannel logout tokens from external identity providers. If you broker logins to upstream providers that send logout tokens, confirm that each provider publishes keys Keycloak can reach and that the signing algorithm and key configuration match what the provider actually sends. A brokered provider that signs tokens inconsistently or publishes keys at an address Keycloak cannot resolve will now produce rejected logouts, which leaves sessions open at the relying applications. Ask each upstream owner which keys they publish and how they rotate them, and record the answer in your integration notes.

The third change is architectural. The 26.8 upgrade notes recommend moving from the deprecated multi-site feature to the stateless feature, which means multi-site deployments need a planned migration rather than a version bump. Keycloak documents three high availability architectures: a single cluster, optionally spread across availability zones, multi-cluster deployments (v2) without an external Infinispan cluster, and the deprecated multi-cluster v1 that used a separate Infinispan cluster per site. Both supported designs depend on a synchronously replicated database, so confirm with your database team that replication between sites is synchronous and that its failover behavior is tested. Review the Keycloak high availability overview against your current topology, then decide whether the migration belongs in the same change window as the minor upgrade or in its own.

How to roll back when a minor upgrade fails

This is the most recoverable failure. Keycloak migrates its database schema automatically at startup by default, so a node that fails partway through may leave the schema in an intermediate state. Before any upgrade, take a database backup that you have tested with a restore, and stop every Keycloak node so nothing else writes to the database while you investigate. The backup returns the database to its pre-upgrade state, which is the only reliable way back once a migration has started changing tables. Restoring the backup also discards any user activity made between the backup and the restore, so record the window of exposure before you decide.

  • Restore the whole database, not just the schema: A backup taken before the upgrade returns both schema and data to the state the old version expects.
  • Keep the old server image available: You need the prior release to start against the restored database.
  • Check for locks and partial changes: Confirm no migration process is still running before restoring.
  • Record the migration timeout and logs: The startup output shows which step failed and helps you decide whether to retry or restore.
  • Plan for large tables: Restore time grows with database size, so measure it on a copy before the change window.

Before relying on this path, confirm with the Keycloak upgrading guide which schema changes the target release makes and whether the project documents any downgrade path for them.

What makes a Keycloak minor upgrade take longer

This table lists the factors that change how long a Keycloak 26 minor upgrade to 26.8 takes and what each one adds to the work. Read each row as a question to answer about your own deployment before asking for a quote. The main takeaway is that the number of custom providers, the database size and the topology usually matter more than the version delta alone.

DriverWhy it adds effortWhat to ask for in a quote
Minor releases skippedEach skipped 26.x release carries its own migration notes, so the review and test scope grows with the number of releases crossed.A per-release review of the migration notes and a list of the opt-in changes that apply to your realms.
Custom SPI providers and themesProviders and login themes compiled against earlier 26.x APIs must be rebuilt and retested, and any override can break in a minor release.An inventory of custom providers and themes, a rebuild plan and a test plan covering login, account and email pages.
Number of realms and clientsMore realms and clients mean more flows, client settings and token behavior to verify after the upgrade.A list of realms and clients by type, with the smoke tests each one needs and who signs off on them.
Database size and migration timeSchema migration runs at startup by default, and large tables extend the window before the server is ready.Current database size, a tested backup and restore plan, and whether the schema migration runs automatically or manually.
SMTP and external logout dependenciesThe 26.8 notes enforce StartTLS without plaintext fallback and require signature validation of backchannel logout tokens from external providers, so mail relays and partner logout flows need checking.Confirmation of SMTP relay TLS support, a test of password reset and notification mail, and a test of backchannel logout with each external provider.
Multi-site or multi-cluster topologyThe 26.8 notes recommend moving from the deprecated multi-site feature to the stateless feature, which is a configuration change with its own test cycle.Current topology diagram, a decision on the stateless feature, and the sequence for rolling each site or cluster.
Operator approval workflowManual approval is strongly recommended for operator updates, so each upgrade needs a review gate, a staging run and an approval step.Confirmation of the approval process, the staging environment used for realm testing and the rollback steps for the custom resource.
Login failure persistenceLogin failures are persisted to the database by default in 26.8, which adds database load and changes how lockout and monitoring data is read.A load check on the database after the upgrade and a review of any dashboards or alerts that read login failure data.

Questions buyers ask about Keycloak 26.8 upgrades

How much does an outside partner cost for a Keycloak minor upgrade?

No fixed price applies, because the quote follows from the written scope. DeployOpen does not publish a price list, and most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. The main cost drivers are the number of Keycloak deployments and environments, how many realms, clients and identity providers the upgrade must cover, whether the database is large, how many custom themes or SPI providers need rebuilding, and how much retesting the applications behind Keycloak require. Ask for a quote that lists each environment, each test area, the handover documents and any ongoing support as a separate retainer item, so you can see which costs are one-time and which recur.

How long does a Keycloak 26 minor upgrade take?

Duration depends on the environment, not on the version number alone. The biggest factors are how many nodes and sites run Keycloak, whether the database schema migration runs automatically at startup or manually, how large the database tables are, how many custom providers and themes must be rebuilt and tested, and how many applications must be checked for token and logout behavior. Your change windows and approval steps also affect the calendar. Ask the partner for a timeline built from your environment inventory, and confirm the Keycloak release notes for the target minor version before agreeing dates, since the upgrading guide lists the steps that apply to each release.

What does our team need to provide before an upgrade starts?

Three inputs decide whether the work moves forward on schedule. First, an inventory of every Keycloak instance, its version, deployment method (container, Operator, virtual machine or other), database platform, cluster layout and hostnames. Second, test access to non-production environments that mirror production realms, clients, identity providers and user federation, plus accounts for the applications that rely on Keycloak. Third, agreed change windows and a rollback owner who can approve production steps. Also list custom themes, SPI providers, and any use of the deprecated multi-site feature, because the 26.8 upgrade notes address those areas directly.

Can our internal team run a Keycloak minor upgrade alone?

Often yes, if the team has Keycloak administration experience, access to non-production copies and a documented test plan. The upgrade work itself is a sequence: read the per-release migration notes, check opt-in breaking changes, back up the database, upgrade in a test environment, verify logins and federation, then roll the change to production. Teams usually need outside help when they run several clusters, large database tables, custom providers that must be rebuilt, or limited test capacity during change windows. Whichever path you choose, the notes for the 26.8 release (SMTP StartTLS, logout token validation, login failure persistence and the multi-site change) need a named owner.

Do Keycloak minor upgrades require downtime?

They do not have to, but the answer depends on your architecture and the release notes. Keycloak documents three high availability architectures, and both supported multi-site designs need a synchronously replicated database. In a clustered deployment, nodes can usually be restarted one at a time behind a load balancer with sticky sessions. Whether a specific minor release can be rolled node by node must be confirmed in its upgrading guide, and multi-site deployments follow their own sequence. Schema migration at startup and the Operator's update approach also affect whether an outage is needed. Confirm the rolling method in a test environment before scheduling production.

How should we handle opt-in breaking changes in a minor release?

Keycloak states that breaking changes in a minor release will be opt-in, so an upgrade should not change behavior until you enable a feature. Read the migration notes for the target version, list each opt-in change, and decide whether to enable it now, later or never. Record the decision with the reason, then test the enabled behavior against your realms, clients and identity providers. Changes that touch SMTP, logout token validation or login failure storage need the most attention, because they affect email delivery, back-channel logout and audit data. Keep the opt-in list in your change record so the next upgrade starts from a known state.

What does a retest after a Keycloak upgrade cover?

A retest checks that the upgraded Keycloak still performs the work your organization depends on. A reasonable scope includes admin console access and admin accounts, user login with each password and multi-factor method in use, user federation and identity brokering with each upstream provider, token issuance and refresh for each client, single logout and back-channel logout, email delivery through the SMTP settings, custom theme and provider behavior, and the metrics endpoint and health checks your monitoring uses. Ask the partner to name the test cases, the environments they run in, and what evidence they return. DeployOpen can prepare that evidence for compliance reviews, but it does not issue audit reports or certifications.

Where to confirm each change before you approve an upgrade

Start with the Keycloak upgrading guide, which is the document that should govern your approval. Read the section for every minor release between your current version and 26.8, not only the 26.8 notes, because a change introduced in an earlier 26.x release may still affect a realm, client or custom provider you run today. For each entry, record whether it is a default change that applies when you upgrade or an opt-in change that stays off until you enable it. The Keycloak upgrading guide is the natural first read, and the answers you write down there become the evidence your change record will need.

The release updates post on backwards compatibility explains how the project classifies changes in a minor release and why breaking changes are meant to be opt-in. Use it to confirm that the item you are reviewing is one the project has labeled as a breaking change, and to check which settings control it. Do not treat the absence of an item in the post as proof that nothing changed. Compare that post against the upgrading guide and against your own test results, because the post explains policy rather than listing every edit. Ask your partner or internal owner to name the opt-in flag or configuration key for each breaking change that touches your SMTP, logout or multi-site setup.

The GitHub releases page for the keycloak/keycloak repository holds the release notes and the exact version tags you will deploy. Confirm that the image or artifact tag you intend to pull matches the release you have tested, and that you are reading notes for 26.8.1 rather than an earlier 26.8 build. Keep the release page link in your change ticket, since release notes can be corrected after publication. Where the official notes and your environment disagree, the test realm is the tiebreaker, and the approval should wait until the gap is explained in writing.

How DeployOpen scopes and delivers a Keycloak minor upgrade

DeployOpen plans Keycloak 26 minor upgrades as fixed-scope work inside your own infrastructure, starting from your current release and the per-release migration notes. Each engagement ends with a tested runbook, documented evidence and a handover your team can repeat on the next quarterly release.

How we scope

  • Written scope names your current 26.x version, target release and every realm, client and custom provider in use
  • Scope lists the 26.8 changes that touch you: SMTP StartTLS, backchannel logout token validation and login failure storage
  • Scope states whether the multi-site to stateless feature move is in or out of the upgrade
  • Scope confirms which database engine, high availability design and deployment method (Operator, container or virtual machine) apply

How we build

  • Upgrade a staging copy built from a recent production database backup before any production change
  • Review each intervening release's migration notes and record which opt-in breaking changes you choose to enable
  • Test SMTP delivery, logout flows and login failure reporting against the target release in staging
  • Apply the schema migration automatically or manually, following the approach agreed in the written scope

How we hand over

  • Deliver a runbook with pre-checks, rolling restart order, rollback steps and post-upgrade verification
  • Document every configuration change made for 26.8, with the reason and the setting name
  • Provide a test record covering sign-in, token refresh, logout and admin console access per realm
  • Walk your platform and security teams through the runbook so the next quarterly minor upgrade can follow it

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after the initial release
  • A retainer can cover reviewing each new minor release's migration notes before your change window
  • Confirm with DeployOpen which support model, response terms and change windows apply before signing
  • Ask for the written scope to name who handles rollback decisions during the upgrade window

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.