Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 29 additions & 23 deletions .github/workflows/security-release-gate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
test -z "$(git status --porcelain)"
if [[ -n "$RELEASE_REF" ]]; then
test "$GITHUB_EVENT_NAME" = workflow_dispatch
[[ "$RELEASE_REF" =~ ^v5\.7\.6$ ]]
[[ "$RELEASE_REF" =~ ^v5\.7\.7$ ]]
test "$(git cat-file -t "$RELEASE_REF")" = tag
test "$(git rev-parse HEAD)" = "$(git rev-parse "${RELEASE_REF}^{commit}")"
fi
Expand All @@ -104,7 +104,7 @@ jobs:
set -euo pipefail
scripts/pasturestack-build-runtime preflight
python scripts/test-pasturestack-jackson-release.py -v
core_tests='com.hazelcast.aws.AwsMetadataApiTest,com.hazelcast.azure.TagTest,com.hazelcast.config.XmlSchemaSourceSecurityTest,com.hazelcast.console.ConsoleAppTest,com.hazelcast.core.server.HazelcastMemberStarterTest,com.hazelcast.dataconnection.impl.JdbcDataConnectionTest,com.hazelcast.dataconnection.impl.JdbcUrlPolicyTest,com.hazelcast.dataconnection.impl.hazelcastdataconnection.HazelcastDataConnectionConfigLoaderTest,com.hazelcast.dataconnection.impl.jdbcproperties.HikariTranslatorTest,com.hazelcast.flakeidgen.impl.FlakeIdGeneratorProxyTest,com.hazelcast.gcp.LabelTest,com.hazelcast.gcp.UtilsTest,com.hazelcast.internal.config.ConfigLoaderSecurityTest,com.hazelcast.internal.diagnostics.DiagnosticsLogFileTest,com.hazelcast.internal.serialization.impl.ByteArrayObjectDataIntegrationTest,com.hazelcast.internal.serialization.impl.ObjectDataInputStreamIntegrationTest,com.hazelcast.internal.serialization.impl.UnsafeObjectDataInputIntegrationTest,com.hazelcast.internal.util.ClockTest,com.hazelcast.internal.util.HashUtilTest,com.hazelcast.internal.util.SecureFileAccessTest,com.hazelcast.internal.util.collection.LongHashSetTest,com.hazelcast.internal.util.concurrent.BackoffIdleStrategyTest,com.hazelcast.internal.util.phonehome.PhoneHomeDifferentConfigTest,com.hazelcast.internal.util.phonehome.PhoneHomeIntegrationTest,com.hazelcast.internal.util.XmlUtilTest,com.hazelcast.jet.impl.submitjob.memberside.JobUploadStatusTest,com.hazelcast.jet.impl.submitjob.memberside.validator.JarOnClientValidatorTest,com.hazelcast.jet.impl.util.JsonUtilTest,com.hazelcast.jet.json.impl.JsonUtilImplTest,com.hazelcast.jet.retry.impl.IntervalFunctionTest,com.hazelcast.kubernetes.KubernetesApiOriginPolicyTest,com.hazelcast.kubernetes.KubernetesConfigTest,com.hazelcast.spi.discovery.multicast.MulticastDiscoveryStrategyTest,com.hazelcast.spi.utils.RestClientTest,com.hazelcast.spi.utils.RetryUtilsTest'
core_tests='com.hazelcast.aws.AwsMetadataApiTest,com.hazelcast.azure.TagTest,com.hazelcast.config.XmlSchemaSourceSecurityTest,com.hazelcast.console.ConsoleAppTest,com.hazelcast.core.server.HazelcastMemberStarterTest,com.hazelcast.dataconnection.impl.JdbcDataConnectionTest,com.hazelcast.dataconnection.impl.JdbcUrlPolicyTest,com.hazelcast.dataconnection.impl.hazelcastdataconnection.HazelcastDataConnectionConfigLoaderTest,com.hazelcast.dataconnection.impl.jdbcproperties.HikariTranslatorTest,com.hazelcast.flakeidgen.impl.FlakeIdGeneratorProxyTest,com.hazelcast.gcp.LabelTest,com.hazelcast.gcp.UtilsTest,com.hazelcast.internal.config.ConfigLoaderSecurityTest,com.hazelcast.internal.yaml.YamlToJsonConverterTest,com.hazelcast.config.ClientYamlSchemaTest,com.hazelcast.config.MemberYamlSchemaTest,com.hazelcast.config.YamlConfigSchemaValidatorTest,com.hazelcast.internal.yaml.JsonNumberSecurityTest,com.hazelcast.internal.diagnostics.DiagnosticsLogFileTest,com.hazelcast.internal.serialization.impl.ByteArrayObjectDataIntegrationTest,com.hazelcast.internal.serialization.impl.ObjectDataInputStreamIntegrationTest,com.hazelcast.internal.serialization.impl.UnsafeObjectDataInputIntegrationTest,com.hazelcast.internal.util.ClockTest,com.hazelcast.internal.util.HashUtilTest,com.hazelcast.internal.util.SecureFileAccessTest,com.hazelcast.internal.util.collection.LongHashSetTest,com.hazelcast.internal.util.concurrent.BackoffIdleStrategyTest,com.hazelcast.internal.util.phonehome.PhoneHomeDifferentConfigTest,com.hazelcast.internal.util.phonehome.PhoneHomeIntegrationTest,com.hazelcast.internal.util.XmlUtilTest,com.hazelcast.jet.impl.submitjob.memberside.JobUploadStatusTest,com.hazelcast.jet.impl.submitjob.memberside.validator.JarOnClientValidatorTest,com.hazelcast.jet.impl.util.JsonUtilTest,com.hazelcast.jet.json.impl.JsonUtilImplTest,com.hazelcast.jet.retry.impl.IntervalFunctionTest,com.hazelcast.kubernetes.KubernetesApiOriginPolicyTest,com.hazelcast.kubernetes.KubernetesConfigTest,com.hazelcast.spi.discovery.multicast.MulticastDiscoveryStrategyTest,com.hazelcast.spi.utils.RestClientTest,com.hazelcast.spi.utils.RetryUtilsTest'
all_tests="$core_tests,com.hazelcast.jet.sql.impl.parse.QueryParserTest,com.hazelcast.buildutils.ExportPackageViewerTest,com.hazelcast.jet.cdc.OperationTest"
timeout --signal=TERM --kill-after=30s 30m ./mvnw -B \
-pl hazelcast,hazelcast-sql,hazelcast-build-utils,extensions/cdc-debezium,extensions/mongodb \
Expand Down Expand Up @@ -150,6 +150,11 @@ jobs:
com.hazelcast.gcp.LabelTest
com.hazelcast.gcp.UtilsTest
com.hazelcast.internal.config.ConfigLoaderSecurityTest
com.hazelcast.internal.yaml.YamlToJsonConverterTest
com.hazelcast.config.ClientYamlSchemaTest
com.hazelcast.config.MemberYamlSchemaTest
com.hazelcast.config.YamlConfigSchemaValidatorTest
com.hazelcast.internal.yaml.JsonNumberSecurityTest
com.hazelcast.internal.diagnostics.DiagnosticsLogFileTest
com.hazelcast.internal.serialization.impl.ByteArrayObjectDataIntegrationTest
com.hazelcast.internal.serialization.impl.ObjectDataInputStreamIntegrationTest
Expand Down Expand Up @@ -216,10 +221,11 @@ jobs:
run: |
set -euo pipefail
PASTURESTACK_OUTPUT_DIR=dist scripts/pasturestack-build-runtime
test -s dist/hazelcast-5.7.6.jar
sha256sum dist/hazelcast-5.7.6.jar | tee evidence/hazelcast-5.7.6.jar.sha256
jar tf dist/hazelcast-5.7.6.jar | grep -Fxq META-INF/LICENSE
jar tf dist/hazelcast-5.7.6.jar | grep -Fxq META-INF/NOTICE
test -s dist/hazelcast-5.7.7.jar
scripts/check-json-number-hardening dist/hazelcast-5.7.7.jar
sha256sum dist/hazelcast-5.7.7.jar | tee evidence/hazelcast-5.7.7.jar.sha256
jar tf dist/hazelcast-5.7.7.jar | grep -Fxq META-INF/LICENSE
jar tf dist/hazelcast-5.7.7.jar | grep -Fxq META-INF/NOTICE
native_resources=(
hazelcast/src/main/resources/affinity_helper.c
hazelcast/src/main/resources/affinity_helper.h
Expand All @@ -234,7 +240,7 @@ jobs:
trap 'rm -rf "$extracted_native"' EXIT
(
cd "$extracted_native"
jar xf "$GITHUB_WORKSPACE/dist/hazelcast-5.7.6.jar" \
jar xf "$GITHUB_WORKSPACE/dist/hazelcast-5.7.7.jar" \
lib/linux-x86/libicmp_helper.so \
lib/linux-x86_64/libaffinity_helper.so \
lib/linux-x86_64/libicmp_helper.so
Expand All @@ -245,7 +251,7 @@ jobs:
"$extracted_native/lib/linux-x86_64/libaffinity_helper.so"
cmp hazelcast-tpc-engine/src/main/resources/lib/linux-x86_64/libicmp_helper.so \
"$extracted_native/lib/linux-x86_64/libicmp_helper.so"
if jar tf dist/hazelcast-5.7.6.jar | grep -Eq '(^|/)(jet_to_python[^/]*|[^/]+\.py)$'; then
if jar tf dist/hazelcast-5.7.7.jar | grep -Eq '(^|/)(jet_to_python[^/]*|[^/]+\.py)$'; then
echo 'The core runtime artifact unexpectedly contains Python extension resources.' >&2
exit 1
fi
Expand Down Expand Up @@ -323,9 +329,9 @@ jobs:
-Dfile=pom.xml -DpomFile=pom.xml
./mvnw -B org.apache.maven.plugins:maven-install-plugin:3.1.4:install-file \
-Dfile=hazelcast-parent/pom.xml -DpomFile=hazelcast-parent/pom.xml
test -s hazelcast-tpc-engine/target/hazelcast-tpc-engine-5.7.6.jar
test -s hazelcast-tpc-engine/target/hazelcast-tpc-engine-5.7.7.jar
./mvnw -B org.apache.maven.plugins:maven-install-plugin:3.1.4:install-file \
-Dfile=hazelcast-tpc-engine/target/hazelcast-tpc-engine-5.7.6.jar \
-Dfile=hazelcast-tpc-engine/target/hazelcast-tpc-engine-5.7.7.jar \
-DpomFile=hazelcast-tpc-engine/pom.xml
timeout --signal=TERM --kill-after=30s 15m ./mvnw -B \
org.apache.maven.plugins:maven-help-plugin:3.5.2:effective-pom \
Expand All @@ -344,7 +350,7 @@ jobs:
-DoutputFormat=json \
-DoutputReactorProjects=false \
-DoutputDirectory="$PWD/evidence" \
-DoutputName=hazelcast-5.7.6.cdx \
-DoutputName=hazelcast-5.7.7.cdx \
-DschemaVersion=1.6 \
org.cyclonedx:cyclonedx-maven-plugin:2.9.3:makeBom
printf '%s %s\n%s %s\n' \
Expand Down Expand Up @@ -394,18 +400,18 @@ jobs:
"$TRIVY_IMAGE" rootfs --pkg-types library \
--cache-dir /root/.cache/trivy --skip-db-update --offline-scan \
--scanners vuln --list-all-pkgs --format json \
--output /evidence/hazelcast-5.7.6.trivy.json /artifact/hazelcast-5.7.6.jar
--output /evidence/hazelcast-5.7.7.trivy.json /artifact/hazelcast-5.7.7.jar
docker run --rm --network none \
-v "$PWD/evidence:/evidence" \
-v "$trivy_cache:/root/.cache/trivy" \
"$TRIVY_IMAGE" sbom \
--cache-dir /root/.cache/trivy --skip-db-update --skip-java-db-update --offline-scan \
--scanners vuln --list-all-pkgs --format json \
--output /evidence/hazelcast-5.7.6.sbom.trivy.json \
/evidence/hazelcast-5.7.6.cdx.json
--output /evidence/hazelcast-5.7.7.sbom.trivy.json \
/evidence/hazelcast-5.7.7.cdx.json
sha256sum evidence/maven-effective-pom.xml \
evidence/maven-runtime-dependency-tree.json evidence/hazelcast-5.7.6.cdx.json \
evidence/hazelcast-5.7.6.sbom.trivy.json evidence/hazelcast-5.7.6.trivy.json \
evidence/maven-runtime-dependency-tree.json evidence/hazelcast-5.7.7.cdx.json \
evidence/hazelcast-5.7.7.sbom.trivy.json evidence/hazelcast-5.7.7.trivy.json \
evidence/evidence-tools.sha256 \
evidence/native-resources.sha256 evidence/runtime-toolchain-boundary.txt \
> evidence/security-evidence.sha256
Expand All @@ -419,7 +425,7 @@ jobs:
done
python scripts/pasturestack-verify-maven-evidence.py \
--effective-pom evidence/maven-effective-pom.xml \
--sbom evidence/hazelcast-5.7.6.cdx.json \
--sbom evidence/hazelcast-5.7.7.cdx.json \
--dependency-tree evidence/maven-runtime-dependency-tree.json \
--summary evidence/maven-evidence-summary.txt
sha256sum evidence/maven-evidence-summary.txt >> evidence/security-evidence.sha256
Expand All @@ -432,9 +438,9 @@ jobs:
return json.load(stream)

source = load('evidence/source-security.json')
artifact = load('evidence/hazelcast-5.7.6.trivy.json')
dependency_scan = load('evidence/hazelcast-5.7.6.sbom.trivy.json')
sbom = load('evidence/hazelcast-5.7.6.cdx.json')
artifact = load('evidence/hazelcast-5.7.7.trivy.json')
dependency_scan = load('evidence/hazelcast-5.7.7.sbom.trivy.json')
sbom = load('evidence/hazelcast-5.7.7.cdx.json')
maven_tree = load('evidence/maven-runtime-dependency-tree.json')
source_vulnerabilities = [
item
Expand Down Expand Up @@ -514,7 +520,7 @@ jobs:
or None in component_purls
or len(component_refs) != len(set(component_refs))
or len(component_purls) != len(set(component_purls))
or maven_root != ('com.hazelcast', 'hazelcast', '5.7.6')
or maven_root != ('com.hazelcast', 'hazelcast', '5.7.7')
or sbom_root != maven_root
or root_ref not in dependency_refs
or dependency_refs != allowed_refs
Expand All @@ -532,7 +538,7 @@ jobs:
docker run --rm --network none \
-v "$PWD/evidence:/evidence:ro" \
cyclonedx/cyclonedx-cli:0.33.1@sha256:252c2e26f468c25fea1e63ecde1bc3198ad6e9dbb57f5ed3236bddcb2281b3a7 \
validate --input-file /evidence/hazelcast-5.7.6.cdx.json \
validate --input-file /evidence/hazelcast-5.7.7.cdx.json \
--input-format json --input-version v1_6 --fail-on-errors

- name: Upload review evidence
Expand All @@ -552,7 +558,7 @@ jobs:
with:
name: distributed-cache-release-${{ steps.candidate.outputs.source_sha }}
path: |
dist/hazelcast-5.7.6.jar
dist/hazelcast-5.7.7.jar
evidence/
if-no-files-found: error
retention-days: 30
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile.pasturestack
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ FROM scratch

ARG VCS_REF
LABEL org.opencontainers.image.title="PastureStack Distributed Cache Runtime" \
org.opencontainers.image.description="PastureStack artifact 5.7.6 with Hazelcast cluster runtime 5.7.3 and reviewed security updates" \
org.opencontainers.image.description="PastureStack artifact 5.7.7 with Hazelcast cluster runtime 5.7.3 and reviewed security updates" \
org.opencontainers.image.source="https://github.com/PastureStack/distributed-cache-runtime" \
org.opencontainers.image.revision="$VCS_REF" \
org.opencontainers.image.licenses="Apache-2.0 OR LicenseRef-Hazelcast-Community" \
org.opencontainers.image.vendor="PastureStack"

COPY --from=build /src/dist/hazelcast-5.7.6.jar /opt/pasturestack/vendor/hazelcast-5.7.6.jar
COPY --from=build /src/dist/hazelcast-5.7.6.jar.sha256 /opt/pasturestack/vendor/hazelcast-5.7.6.jar.sha256
COPY LICENSE NOTICE ORIGIN.md SECURITY-MAINTENANCE.md RELEASE-NOTES-5.7.6.md /opt/pasturestack/licenses/
COPY --from=build /src/dist/hazelcast-5.7.7.jar /opt/pasturestack/vendor/hazelcast-5.7.7.jar
COPY --from=build /src/dist/hazelcast-5.7.7.jar.sha256 /opt/pasturestack/vendor/hazelcast-5.7.7.jar.sha256
COPY LICENSE NOTICE ORIGIN.md SECURITY-MAINTENANCE.md RELEASE-NOTES-5.7.7.md /opt/pasturestack/licenses/
27 changes: 12 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,18 @@
> [!IMPORTANT]
> This repository is a narrowly scoped PastureStack fork of Hazelcast 5.7.0. It preserves the upstream Git history, copyright notices, license files, and authorship. PastureStack does not claim ownership of upstream work and is not affiliated with or endorsed by Hazelcast, Inc.

Release `5.7.6` uses the official Temurin `25.0.5+8`
security update. CI uses Python `3.14.9`, the internal pip
`26.2.2+pasturestack.1` rebuild with patched urllib3 `2.8.0`, and certifi
`2026.10.19`. A frozen upstream-vendoring helper verifies input/wheel hashes
and streaming/TLS behavior in an isolated CI environment. This CI-only update
does not replace the existing release artifact. These are verification tools; the delivered JAR does
not contain a JRE or Python runtime. The optional OCI build retains Ubuntu
24.04 and installs its matching CA security update before the verified JDK.
The generated Hazelcast cluster version remains `5.7.3`.

The source, released JAR and resolved-runtime SBOM scans retain every severity.
Any available fix, Critical/High/Unknown finding or secret blocks publication;
only exact reviewed Low/Medium findings with official no-fix evidence can pass.
The committed no-fix ledger is currently empty. This CI policy update does not
change or republish the existing `5.7.6` JAR.
The development candidate is `5.7.7`, which updates the relocated org.json
library to official `20260719` for CVE-2026-59171 and managed Guava to
`33.7.2-jre` for CVE-2026-102554. It preserves Hazelcast cluster
version `5.7.3` and the existing Jackson versions. See the
[5.7.7 candidate notes](RELEASE-NOTES-5.7.7.md) for the patch and focused checks.

Builds use verified Temurin `25.0.5+8`, Python `3.14.9`, the reviewed internal
pip rebuild and pinned CA certificates. These tools are not included in the
core JAR. Source, actual artifact and resolved-runtime SBOM scans retain all
severities: any available fix, Critical/High/Unknown finding or secret blocks
publication. Only exact reviewed Low/Medium findings with official no-fix
evidence may pass; the committed no-fix ledger is currently empty.

Earlier public Maven artifacts remain immutable historical evidence. The
current public GitHub Release is
Expand Down
26 changes: 26 additions & 0 deletions RELEASE-NOTES-5.7.7.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Distributed Cache Runtime 5.7.7

This candidate updates the relocated `org.json:json` dependency from
`20250107` to the official `20260719` release for
[CVE-2026-59171](https://github.com/stleary/JSON-java/security/advisories/GHSA-ghc9-756g-vrcv).
Dependency management applies the same version to tests, schema validation,
the resolved runtime SBOM and the shaded core JAR. The artifact version is
`5.7.7`; cluster protocol metadata remains `5.7.3`. Existing Jackson pins,
serialization APIs and security checks are retained.

Focused checks cover oversized integer, negative and decimal tokens through
JSONObject, JSONArray and XML, bounded exponent conversion, ordinary numeric
configuration, YAML conversion and member/client schema validation. The same
numeric checks also run against the relocated classes in the delivered JAR.
The build rejects missing, duplicate or old embedded org.json version metadata.
Publication still requires the existing source, artifact, dependency and
CodeQL gates. Previous tags and artifacts remain immutable. This candidate
does not claim downstream Engine or Server deployment acceptance.

The current source scan also identified CVE-2026-102554 in managed Guava
33.7.1-jre. Its official 33.7.2-jre patch is applied to all inherited consumers,
including SQL/connectors and test dependencies. The core runtime's actual
resolved dependency tree and shaded artifact determine whether Guava is
packaged; a source floor is not reported as a core runtime vulnerability.
The existing SQL/parser and connector compile/test gates remain required.
Official advisory: https://github.com/google/guava/security/advisories/GHSA-xxph-c9ww-hj94 .
8 changes: 8 additions & 0 deletions SECURITY-MAINTENANCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@

The PastureStack maintenance delta intentionally preserves the Hazelcast 5.7.0 API while updating reviewed runtime and build-time dependencies with published security fixes:

The `5.7.7` development candidate pins the transitive and relocated org.json
library to official `20260719` for CVE-2026-59171. Its source and delivered-JAR
checks cover long integer/decimal tokens, exponent conversion and ordinary
configuration. Client/member YAML schema tests preserve the existing config
contracts. The managed Guava floor also advances to official 33.7.2-jre for
CVE-2026-102554; actual packaging is checked independently from source presence.
This candidate is not yet a published or deployed artifact.

The current published Maven artifact is `5.7.6`, from signed tag `v5.7.6` and source `bd071c12bc11808a5f91e8b5d0308decd79e5af9`; it is based on upstream `5.7.0`, not an upstream Hazelcast release. Public `v5.7.4` and `v5.7.5` remain immutable historical evidence. Hazelcast's cluster protocol parser accepts numeric product versions only, so generated runtime metadata deliberately reports `5.7.3`. The artifact version must be used by Maven coordinates, filenames, any artifact carrier, SBOM, and release evidence; the numeric runtime version must be used by cluster/member compatibility code. See [5.7.6 release notes](RELEASE-NOTES-5.7.6.md) for the patched build toolchains, exact artifact and validation boundaries.

| Component | Upstream 5.7.0 | PastureStack maintained version | Scope |
Expand Down
2 changes: 1 addition & 1 deletion distribution/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>com.hazelcast</groupId>
<artifactId>hazelcast-root</artifactId>
<version>5.7.6</version>
<version>5.7.7</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion extensions/avro/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<parent>
<groupId>com.hazelcast.jet</groupId>
<artifactId>hazelcast-jet-extensions</artifactId>
<version>5.7.6</version>
<version>5.7.7</version>
</parent>

<properties>
Expand Down
Loading
Loading