mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-30 04:06:34 +09:00
chore(keycloak): bump Keycloak server to 26.8.2 (#5374)
## What this PR does
Moves Keycloak from 26.6.3 to 26.8.2, the only upstream image rebuilt on
an OpenJDK that fixes CVE-2026-114938 ("Java4Shell").
The CVE is an out-of-bounds write in the AVX-512 VBMI Base64 decoder of
OpenJDK 17.0.6 and later. Keycloak decodes Base64 on requests that
arrive before authentication, so on an x86-64 node with AVX-512 VBMI an
affected instance can be attacked without credentials. Upstream [rebuilt
26.8.2](https://www.keycloak.org/2026/11/java4shell-vulnerability-cve-2026-114938)
and left 26.6 and 26.7 as they were.
| Image | Bundled OpenJDK |
|---|---|
| `quay.io/keycloak/keycloak:26.6.3` (today) | 21.0.11, affected |
| `quay.io/keycloak/keycloak:26.8.2-3` (this PR) | 21.0.13.1, fixed |
What changes:
- `packages/system/keycloak` pins `26.8.2-3`. The suffix matters:
`26.8.2` moves when upstream rebuilds it, and `26.8.2-1` and `26.8.2-2`
still carry the affected JDK.
- `packages/system/keycloak-configure` runs `kcadm.sh` from the same
image and was still on 26.5.2; it moves along so the admin client
matches the server.
### How it was tested
Upgraded a two-replica 26.6.3 instance in place on a dev stand whose
nodes have AVX-512 VBMI, through the same values the release carries:
- The rolling update finished with the HelmRelease ready. The first new
pod ran the Liquibase update and migrated the `master` realm and the
platform realm through 26.7.0, 26.8.0 and 26.8.2.
- While it ran, the old node (Infinispan 16.0.8) and the new one
(16.0.15) shared one cluster view with no compatibility errors; the
final view has both nodes on 16.0.15.
- `java -version` in the pod reports 21.0.13.1.
- 26.8.2 enforces an audience check on the Admin REST API, which was the
main risk for the two admin clients this platform runs. Both pass: the
keycloak-operator, restarted to force a fresh login, reconciled every
resource and created a new realm group with no error and no 401 in its
log; and the `keycloak-configure` hook Job ran `kcadm.sh` from the new
image, with the same read and write calls repeated by hand afterwards.
- OIDC discovery and JWKS answer 200, and the login page of the platform
realm renders for the dashboard client. Submitting the login form was
not exercised.
`helm unittest` passes for both charts.
Notes for the reviewer:
- The database migration is one-way: after the upgrade, rolling the
image back to 26.6.3 is not supported.
- The upgrading guide says one 26.8.2 change (client registration
policies) does not support a rolling upgrade and asks to stop all nodes
first. This chart rolls the two replicas as before; the mixed phase
lasted under a minute in the test and showed no errors, but a deployment
that relies on dynamic client registration during the upgrade window may
see the difference.
- 26.8 also turns on client secret rotation and the SCIM API by default
and stops granting admin roles through identity-provider mappers unless
`allowAdminRoleMapping` is set. None of it is used by the platform's own
realm configuration.
- Custom login themes that override `social-providers.ftl` may need an
update for the redesigned identity-provider buttons.
- For the release lines, where a two-minor jump is not patch-release
material, #5370 adds the JVM flag instead.
### Screenshots
N/A — no UI changes in this repository. The Keycloak login page itself
changes with the upstream release.
### Downstream repositories
Walked the trigger map against the diff: an image tag in
`packages/system/keycloak/values.yaml` and in
`packages/system/keycloak-configure` (values and the template default).
No package added or renamed, no app `values.schema.json` or README, no
platform values key, no variant.
- [x] No downstream repository is affected by this change
- [ ] [cozystack/website](https://github.com/cozystack/website) -
follow-up:
- [ ]
[cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack)
- follow-up:
- [ ]
[cozystack/ansible-cozystack](https://github.com/cozystack/ansible-cozystack)
- follow-up:
- [ ] [cozystack/ccp](https://github.com/cozystack/ccp) - follow-up:
- [ ] [cozystack/talm](https://github.com/cozystack/talm) - follow-up:
- [ ] [cozystack/cozyhr](https://github.com/cozystack/cozyhr) -
follow-up:
- [ ] [cozystack/cozy-proxy](https://github.com/cozystack/cozy-proxy) -
follow-up:
- [ ]
[cozystack/cozystack-telemetry-server](https://github.com/cozystack/cozystack-telemetry-server)
- follow-up:
- [ ]
[cozystack/external-apps-example](https://github.com/cozystack/external-apps-example)
- follow-up:
- [ ] [cozystack/examples](https://github.com/cozystack/examples) -
follow-up:
- [ ] [cozystack/community](https://github.com/cozystack/community) -
follow-up:
### Release note
```release-note
chore(keycloak): update Keycloak to 26.8.2, whose image carries an OpenJDK with the fix for CVE-2026-114938 (Java4Shell). The upgrade migrates the Keycloak database and cannot be rolled back to 26.6. Custom login themes that override social-providers.ftl should be checked against the redesigned identity-provider buttons.
```
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->
## Summary by CodeRabbit
* **Updates**
* Updated the default Keycloak version to 26.8.2-3 across the main
service and its administrative job. The email-update configuration also
uses this version by default. Existing image overrides remain available,
so deployments that specify a custom image can continue using that
setting.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
3 files changed
+3
-3
No files matched your search
@@ -41,7 +41,7 @@ spec:
|
||||
type: RuntimeDefault
|
||||
containers:
|
||||
- name: kcadm
|
||||
image: {{ .Values.image | default "quay.io/keycloak/keycloak:26.5.2" | quote }}
|
||||
image: {{ .Values.image | default "quay.io/keycloak/keycloak:26.8.2-3" | quote }}
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
readOnlyRootFilesystem: true
|
||||
|
||||
@@ -5,7 +5,7 @@ _cluster: {}
|
||||
# Keycloak image used by the one-shot admin-API job that enables the
|
||||
# UPDATE_EMAIL required action. Only kcadm.sh is used, so it just needs
|
||||
# to track the Keycloak server major version (packages/system/keycloak).
|
||||
image: quay.io/keycloak/keycloak:26.5.2
|
||||
image: quay.io/keycloak/keycloak:26.8.2-3
|
||||
|
||||
# Enable the Keycloak Organizations feature for the platform realm.
|
||||
# Mapped to ClusterKeycloakRealm.spec.organizationsEnabled. Defaults to
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# default keeps the chart renderable on its own, outside a cluster.
|
||||
_cluster: {}
|
||||
|
||||
image: quay.io/keycloak/keycloak:26.6.3
|
||||
image: quay.io/keycloak/keycloak:26.8.2-3
|
||||
|
||||
ingress:
|
||||
# Custom hostname for the Keycloak Ingress.
|
||||
|
||||
Reference in new issue
Block a user