Skip to content

Fix policies additionalJvmOptions glued onto pekkoOptions, Helm chart 4.10.1 - #2672

Merged
thjaeckle merged 1 commit into
eclipse-ditto:masterfrom
beyonnex-io:bugfix/helm-chart-4.10.1
Nov 26, 2026
Merged

thjaeckle merged 1 commit into
eclipse-ditto:masterfrom
beyonnex-io:bugfix/helm-chart-4.10.1

Conversation

@thjaeckle

Copy link
Copy Markdown
Member

Helm chart 4.10.1, to be released from release-3.9 (Ditto 3.9.10 stays the appVersion).

Fix: policies additionalJvmOptions glued onto the next JVM option

policies-deployment.yaml rendered global.pekkoOptions with {{- ... }}, which trims the line break before it. A set policies.additionalJvmOptions therefore ended up glued to the first pekko option in JAVA_TOOL_OPTIONS:

-XX:+UseStringDeduplication-Dpekko.management.cluster.bootstrap.contact-point-discovery.port-name=management ...

The JVM cannot parse that option, so the policies service did not start when policies.additionalJvmOptions was set (the default is empty, so default installations are not affected). The things, gateway, connectivity and things-search deployments already used {{ ... }}; the policies one now does too. The bug exists since the option was added, also on release-3.8.

Removal of -XX:-UseBASE64Intrinsics (release-3.9 only)

Chart 4.9.0 added -XX:-UseBASE64Intrinsics to the default global.jvmOptions on release-3.9 / release-3.8 as mitigation of the JDK vulnerability CVE-2026-114938 ("Java4Shell"), because the Ditto 3.9.9 images were based on the vulnerable JDK 25.0.5+8. The Ditto 3.9.10 images are based on the fixed JDK 25.0.5.1+2, so the option, which only slows down Base64 encoding and decoding, is no longer needed.

master never had the option in its values.yaml, so this PR only records the removal in the [4.10.1] CHANGELOG section. After merging, the commit is cherry-picked to release-3.9 together with the removal of the option from its values.yaml, and chart 4.10.1 is released from there.

Installations running older Ditto images (3.9.9 or earlier) with chart 4.10.1 should keep adding the option to global.jvmOptions, as noted in the CHANGELOG.

…4.10.1

The policies deployment trimmed the whitespace before global.pekkoOptions
("{{- ... }}"), so a set policies.additionalJvmOptions was glued to the
first pekko option in JAVA_TOOL_OPTIONS (e.g.
"-XX:+UseStringDeduplication-Dpekko.management...") and the policies
service could not start. The other services already render it correctly.

Bumps the chart to 4.10.1. Its CHANGELOG also records that the
-XX:-UseBASE64Intrinsics JVM option (CVE-2026-114938 mitigation, only
added to global.jvmOptions on release-3.9) is removed again in 4.10.1,
as the Ditto 3.9.10 images are based on the fixed JDK 25.0.5.1.

Assisted-by: Anthropic Claude Opus 5.5 (claude-opus-5-5)
Signed-off-by: Thomas Jäckle <thomas.jaeckle@beyonnex.io>
@thjaeckle thjaeckle self-assigned this Nov 26, 2026
@thjaeckle thjaeckle added this to the helm-chart-4.10.1 milestone Nov 26, 2026
@thjaeckle
thjaeckle merged commit 4aed465 into eclipse-ditto:master Nov 26, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant