26.5.0
Highlights
This release features new capabilities for users and administrators of Keycloak. The highlights of this release are:
-
Workflows to automate administrative tasks and process within a realm.
-
JWT Authorization Grants, our recommended alternative to external to internal token exchange.
-
Guide for using Keycloak as an authorization server for Model Context Protocol (MCP) servers.
-
Authenticating clients with Kubernetes service account tokens to avoid static client secrets.
-
OpenTelemetry support for metrics and logging, combining all observability information in this popular standard.
Read on to learn more about each new feature. If you are upgrading from a previous release, review also the changes listed in the upgrading guide.
Security and Standards
JWT Authorization Grant (preview)
Keycloak 26.5 introduces a new feature called JWT Authorization Grant, which adds support for RFC 7523 to use external signed JWT assertions to request OAuth 2.0 access tokens.
To accept signed JWT assertions, a trust relationship must be established between the external provider and Keycloak. This trust relationship can be configured through an identity provider in a dedicated section of the OpenID Connect v1.0 identity provider, or through the new JWT Authorization Grant identity provider.
JWT Authorization Grant is recommended as an alternative to External to internal token exchange V1. This feature is in preview, and additional details are available in the dedicated documentation.
Using Keycloak as an authorization server for Model Context Protocol (MCP) servers
Using Keycloak as an authorization server for Model Context Protocol (MCP) servers is becoming popular, so this release ships additional documentation on how to do this.
See Integrating with Model Context Protocol (MCP) for the new guide.
Many thanks to Takashi Norimatsu for the contribution.
Administration
Workflows (preview)
Keycloak introduces a new preview feature called Workflows, which allows administrators to automate administrative tasks and process within a realm, introducing a key capability for Identity Governance and Administration (IGA).
For more details, see the Server Administration Guide.
Federated client authentication (preview)
Federated client authentication remains preview due to receiving a number of enhancements and fixes.
There is now preview support to use Kubernetes service accounts tokens as credentials for clients, which avoids static secrets for OpenID Connect clients.
See Kubernetes identity providers in the Server Administration Guide for details.
Organization invitation management
Organization administrators can now manage organization invitations through both the Admin Console and REST API:
-
View all sent invitations with their current status (Pending, Expired)
-
Resend pending invitations to recipients
-
Delete invitation records from the system
-
Filter invitations by status for easier management
All invitations are now persistently stored in the database, providing better tracking and management capabilities.
The invitation management features are available in the Invitations tab when managing an organization in the Admin Console, and through the Organizations REST API endpoints under /admin/realms/{realm}/orgs/{orgId}/invitations.
New event
Configuring and Running
Containers for PowerPC 64-bit Little Endian architecture
The containers for both the Keycloak and its operator are not available as well for the PowerPC 64-bit Little Endian (ppc64le) architecture. This is in addition to the existing amd64 and arm64.
We expect this to allow users to optimize their usage of open hardware and power consumption.
Improved server response times
Authentication, user, and client sessions are now created on the respective Keycloak node and avoid extra remote calls to neighbors when reading or writing them to the embedded caches. When you have sticky sessions enabled in your loadbalancer, you will benefit from this feature automatically, and you should see reduced response times when authenticating users.
Expired user sessions are now deleted from the database in small batches, instead of issuing a delete statements that affects the whole table. This should allow for better response times when there are a lot of sessions in the table.
Enhanced HTTP performance (preview)
You can now enable a more efficient way to handle JSON data in the HTTP layer. This change increases throughput by ~5%, stabilizes response times, and reduces system resource usage.
In order to apply it, you need to explicitly enable the feature http-optimized-serializers.
|
Note
| This feature is preview. We gather more feedback about potential issues in this discussion. We appreciate any feedback. |
For more details, see the Configuring Keycloak for production guide.
Configure retry behavior for outgoing HTTP requests
Observability
OpenTelemetry enhancements
OpenTelemetry Logs (preview)
Keycloak now supports exporting logs to OpenTelemetry collectors, enabling centralized log management. This preview feature allows you to export Keycloak logs to any OpenTelemetry-compatible backend and use the same OpenTelemetry collector for logs, metrics and traces.
For more details, see the Centralize your observability stack with OpenTelemetry guide.
OpenTelemetry Metrics (experimental)
Keycloak now provides the experimental support for exporting metrics to OpenTelemetry collectors by using the Micrometer-to-OpenTelemetry bridge. This experimental feature allows you to export Keycloak metrics to any OpenTelemetry-compatible backend and use the same OpenTelemetry collector for logs, metrics and traces.
For more details, see the Centralize your observability stack with OpenTelemetry guide.
Export traces with custom request headers
It is now possible to set request headers for exporting traces via OpenTelemetry Protocol (OTLP). It is mainly useful for providing tokens in the request.
You can specify these headers via the tracing-header-<header> wildcard option, accepting any custom header name.
For more details, see the Root cause analysis with tracing guide.
Upgrading
Before upgrading refer to the migration guide for a complete list of changes.
All resolved issues
Deprecated features
- #44121 Deprecate Fine-Grained Admin Permissions v1
admin/fine-grained-permissions
Removed features
- #42905 Remove PostgreSQL 13.x support
New features
- #20761 Support Caddy as a Reverse Proxy Provider for Client Certificate Authentication
core - #37704 Support for running Keycloak as a Windows Service
- #38809 Feature Request: Track Pending Organization Invitations in Keycloak Admin Console
- #39221 Admin API v2: Blueprint
- #41261 OpenTelemetry Support
observability - #42482 Possibility to backchannel logout the clients belonging to a specific user session
- #42912 Containers for ppc64le
- #43020 Secure Client-Initiated Renegotiation - disable by default
Enhancements
- #8863 Add CORS support to OIDC dynamic client registration endpoints
- #10388 Allow to hide client scopes from scopes_supported in discovery endpoint
- #12682 Allow CORS Access-Control-Allow-Headers customization
core - #14509 Allow configuration for SMTP timeouts via configuration
- #15502 Ability to remove offline_access tokens from the Account Management client and/or Admin interface
core - #17268 [KC 20+] Obsolete/wrong documentation about service accounts?
- #22938 Fine-grained admin permission client manage does not work for an Authorization enabled client
admin/fine-grained-permissions - #33009 Delete Client and role's admin event doesn't have representation while other delete entities have the representation
Bugs
- #26374 Workflow failure: Quarkus IT - FipsDistTest#testUnsupportedHttpsPkcs12KeyStoreInStrictMode
ci - #30939 Vulnerability in brute force detection settings
authentication - #31401 Kcadm.sh: (Better) Error messages on 302 redirect responses
- #34868 [Jenkins Operator CI] - Test remote - ClusteringTest on OpenShift
ci - #38438 Avoid 'duplicated mappers' Quarkus message for kc.dir
dist/quarkus - #38506 keycloak-test-framework-bom manages more dependencies than intended
test-framework - #38991 [Test framework] Embedded server -> dependency download error when no version is specified
test-framework - #39660 Failed shouldPreventPathFileSeparatorInVaultSecretId test on Windows