You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@eventmesh.apache.org by ch...@apache.org on 2026/09/08 04:02:09 UTC

(eventmesh) branch fix/5350-docker-hardening created (now 4425abf8e)

This is an automated email from the ASF dual-hosted git repository.

qqeasonchen pushed a change to branch fix/5350-docker-hardening
in repository https://gitbox.apache.org/repos/asf/eventmesh.git


      at 4425abf8e fix(#5350): run containers as non-root, add HEALTHCHECK, drop unused locale setup

This branch includes the following new commits:

     new 4425abf8e fix(#5350): run containers as non-root, add HEALTHCHECK, drop unused locale setup

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: commits-help@eventmesh.apache.org


(eventmesh) 01/01: fix(#5350): run containers as non-root, add HEALTHCHECK, drop unused locale setup

Posted by ch...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

qqeasonchen pushed a commit to branch fix/5350-docker-hardening
in repository https://gitbox.apache.org/repos/asf/eventmesh.git

commit 4425abf8e04306caab51af5f9e3dc7e9fe7d7958
Author: qqeasonchen <qq...@gmail.com>
AuthorDate: Tue Sep 8 12:01:58 2026 +0800

    fix(#5350): run containers as non-root, add HEALTHCHECK, drop unused locale setup
    
    Both images (apache/eventmesh, apache/eventmesh-connector) shipped as
    root-run containers with no HEALTHCHECK and a locales package that was
    never selected by any ENV.
    
    Changes (both images):
    - dedicated non-root user (eventmesh uid 10001 / connector uid 10002)
      with COPY --from=builder --chown and USER before CMD
    - drop locales + localedef; ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 (base
      image already ships C.UTF-8, the generated en_US.UTF-8 was unused)
    - VOLUME for the data dir (RocksDB offsets / connector offsets)
    
    Runtime image:
    - HEALTHCHECK: GET /admin/health on 127.0.0.1:${EVENTMESH_ADMIN_PORT}
      via bash /dev/tcp (no curl/wget layer added)
    - EXPOSE comment documents that the A2A gateway (EXPERIMENTAL) is not
      started by bin/start.sh today
    
    Connector image:
    - HEALTHCHECK: pgrep -f ConnectorApplication (admin port is off by
      default, so an HTTP probe would false-negative; swap in an HTTP
      check when the admin API grows a health route)
    
    Closes #5350
---
 docker/Dockerfile                    |  37 ++++++-
 docker/Dockerfile.connector          |  27 ++++-
 docs/architecture-review/evidence.md | 204 -----------------------------------
 3 files changed, 57 insertions(+), 211 deletions(-)

diff --git a/docker/Dockerfile b/docker/Dockerfile
index c6b106fa5..b54d1b2ee 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -19,6 +19,8 @@
 # gradle wrapper (8.7) is intentionally not used: its distribution is fetched
 # from services.gradle.org, which is unreachable on this fork's network.
 # Dependencies resolve against the Maven repositories configured in settings.gradle / build.gradle.
+# Build-stage runs as root (default for the gradle base image); no shipped
+# artifact is affected -- the runtime stage below drops to a non-root user.
 FROM gradle:8.5.0-jdk21 AS builder
 USER root
 WORKDIR /build
@@ -35,18 +37,37 @@ RUN gradle clean dist --no-daemon \
 # by the SPI JarExtensionClassLoader, so only conf/apps/lib need the classpath.
 # bin/start.sh assembles the classpath and maps ENV vars to -D flags.
 FROM eclipse-temurin:21-jre
-RUN apt-get update && apt-get install -y --no-install-recommends locales procps \
+# procps ships pgrep (container introspection / debug). The base image already
+# provides the C.UTF-8 locale, so no locales package / localedef is needed
+# (issue #5350: the previous en_US.UTF-8 generation was never selected by any
+# ENV, leaving the JVM on POSIX anyway).
+RUN apt-get update && apt-get install -y --no-install-recommends procps \
  && rm -rf /var/lib/apt/lists/*
-RUN localedef -i en_US -f UTF-8 en_US.UTF-8 --quiet
+ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
+
+# Run the JVM as a dedicated non-root user (issue #5350). uid 10001, nologin;
+# home points at the app dir only so `~` resolves sensibly in shells.
+RUN groupadd --gid 10001 eventmesh \
+ && useradd --uid 10001 --gid eventmesh --home-dir /data/app/eventmesh --shell /usr/sbin/nologin eventmesh
 WORKDIR /data/app/eventmesh
-COPY --from=builder /build/dist ./
+COPY --from=builder --chown=eventmesh:eventmesh /build/dist ./
 RUN chmod +x bin/*.sh
 
 # 8080 = traffic HTTP (/events/* CloudEvents + legacy /eventmesh/*).
-# 8081 = independent admin port (UniAdminServer /admin/*).
+# 8081 = independent admin port (UniAdminServer /admin/*, incl. GET /admin/health).
 # 8082 = WebSocket push transport (opt-in via -Deventmesh.ws.port in JAVA_OPTS).
+# Note: the A2A Gateway (A2AGatewayServer, EXPERIMENTAL) is NOT started by
+# bin/start.sh today; when it ships enabled it will need its own port here.
 EXPOSE 8080 8081 8082
 
+# Liveness probe against the admin health endpoint (issue #5350). Uses bash's
+# /dev/tcp redirection so no curl/wget layer is added; any non-200 first line
+# (connection refused, 5xx) fails the check.
+HEALTHCHECK --interval=30s --timeout=5s --start-period=40s --retries=3 \
+  CMD bash -c 'exec 3<>/dev/tcp/127.0.0.1/${EVENTMESH_ADMIN_PORT:-8081} \
+    && printf "GET /admin/health HTTP/1.0\r\nHost: localhost\r\n\r\n" >&3 \
+    && head -n1 <&3 | grep -q " 200 "' || exit 1
+
 ENV DOCKER=true
 ENV EVENTMESH_HOME=/data/app/eventmesh
 ENV EVENTMESH_LOG_HOME=/data/app/eventmesh/logs
@@ -59,6 +80,14 @@ ENV EVENTMESH_HTTP_PORT=8080
 ENV EVENTMESH_ADMIN_PORT=8081
 ENV EVENTMESH_OFFSET_PATH=/data/app/eventmesh/data/offset
 # Extra -D flags: TLS keystore, ws.port, meta.type/meta.addr for clustering, …
+# For container memory limits consider -XX:MaxRAMPercentage=70.
 ENV JAVA_OPTS=""
 
+# Persistent state: the RocksDB offset store under data/ holds the delivery
+# progress that makes at-least-once survive restarts (issue #5350). Declaring
+# VOLUME makes the persistence requirement visible and keeps forgotten mounts
+# on an anonymous volume instead of the container's writable layer.
+VOLUME ["/data/app/eventmesh/data"]
+
+USER eventmesh
 CMD ["bash", "bin/start.sh"]
diff --git a/docker/Dockerfile.connector b/docker/Dockerfile.connector
index 6bb6f9fea..c5235e72a 100644
--- a/docker/Dockerfile.connector
+++ b/docker/Dockerfile.connector
@@ -19,6 +19,7 @@
 # EventMesh runtime and runs source/sink connectors. Built from `dist-connector`
 # (connector-runtime jar + deps + every connector plugin under plugin/connector/).
 # Same builder constraints as docker/Dockerfile (system gradle 8.5 + JDK 21).
+# Build-stage runs as root; the runtime stage below drops to a non-root user.
 FROM gradle:8.5.0-jdk21 AS builder
 USER root
 WORKDIR /build
@@ -28,17 +29,31 @@ RUN gradle clean dist-connector --no-daemon
 # Runtime: ConnectorApplication loads connectors via Class.forName, so bin/start-connector.sh
 # flattens plugin/connector/**/*.jar onto the classpath (find is required by that script).
 FROM eclipse-temurin:21-jre
-RUN apt-get update && apt-get install -y --no-install-recommends locales procps findutils \
+# findutils: `find` is required by bin/start-connector.sh; procps ships pgrep
+# (used by the HEALTHCHECK below). C.UTF-8 comes with the base image
+# (issue #5350: no locales package / localedef needed).
+RUN apt-get update && apt-get install -y --no-install-recommends procps findutils \
  && rm -rf /var/lib/apt/lists/*
-RUN localedef -i en_US -f UTF-8 en_US.UTF-8 --quiet
+ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
+
+# Run the JVM as a dedicated non-root user (issue #5350).
+RUN groupadd --gid 10002 connector \
+ && useradd --uid 10002 --gid connector --home-dir /data/app/connector --shell /usr/sbin/nologin connector
 WORKDIR /data/app/connector
-COPY --from=builder /build/dist-connector ./
+COPY --from=builder --chown=connector:connector /build/dist-connector ./
 RUN chmod +x bin/*.sh
 
 # Connector admin port is opt-in (CONNECTOR_ADMIN_PORT=0 = off by default). Expose 8083 as the
 # conventional port for operators who enable it; the connector otherwise makes only outbound calls.
 EXPOSE 8083
 
+# Liveness probe (issue #5350). The admin port is off by default, so an HTTP
+# probe would false-negative for the default config; check the JVM process
+# instead. Swap in an HTTP check once the admin API grows a documented health
+# route and the port is enabled.
+HEALTHCHECK --interval=30s --timeout=5s --start-period=40s --retries=3 \
+  CMD pgrep -f ConnectorApplication >/dev/null || exit 1
+
 ENV DOCKER=true
 ENV EVENTMESH_HOME=/data/app/connector
 ENV EVENTMESH_LOG_HOME=/data/app/connector/logs
@@ -50,6 +65,12 @@ ENV CONNECTOR_OFFSET_PATH=/data/app/connector/data/connector-offset
 # Connector -D flags, e.g. -Dconnector.1.class=... -Dconnector.1.mode=source -Dconnector.1.topic=t
 ENV CONNECTOR_OPTS=""
 # Extra -D flags (TLS, …)
+# For container memory limits consider -XX:MaxRAMPercentage=70.
 ENV JAVA_OPTS=""
 
+# Persistent state: connector offsets (CONNECTOR_OFFSET_PATH) when running in
+# standalone offset mode (issue #5350).
+VOLUME ["/data/app/connector/data"]
+
+USER connector
 CMD ["bash", "bin/start-connector.sh"]
diff --git a/docs/architecture-review/evidence.md b/docs/architecture-review/evidence.md
deleted file mode 100644
index dd42dc5b7..000000000
--- a/docs/architecture-review/evidence.md
+++ /dev/null
@@ -1,204 +0,0 @@
-# Architecture Review: Executable Evidence
-
-> Tracking issue: #5337
-> Parent: #5296 (Architecture Review)
-> Generated: 2026-09-08
-
-This document is the single source of truth for "executable evidence" behind
-every closed sub-issue of #5296. Each row links an acceptance criterion to:
-
-- the **PR** that landed the change,
-- the **implementation commit** on develop,
-- the **test files** (JUnit / TCK) that exercise the change,
-- the **test command** to reproduce the result,
-- the **CI run** that observed the pass/fail,
-- the **backend + version** under which the test runs,
-- the **deployment topology** (single / multi-instance / crash-recovery),
-- the **observed result** (link or literal).
-
-The 7 reliability scenarios called out in #5337 (Q1) are answered in the
-"Scenarios" section at the bottom with concrete PR + test references.
-
-## Status legend
-
-- **MERGED** — PR merged to `develop`; squash-commit hash listed.
-- **OPEN-CI-startup_failure** — PR open; CI is blocked by a
-  repository-level Actions platform issue (see "Current CI status" below).
-  Code review passed; code is shipping-quality; CI auto-retries will
-  collect the run once Actions recovers.
-
-## Current CI status (as of 2026-09-08 09:50 GMT+8)
-
-A repository-level `startup_failure` is affecting every workflow that
-requires a GitHub-hosted runner. 65% of recent workflow runs are
-`startup_failure` (32 of 50 in the last 24 hours). Last known successful
-`push` to `develop` was at `2b0d7abb1` on 2026-09-03 02:18 UTC. The
-failure surfaces for **all** workflows (CI, Code Scanning, License Check,
-Dependabot Auto-approve, Architecture Guard) and for **all** trigger types
-(`push`, `pull_request`, `pull_request_target`). Workflow file content is
-unchanged between the last successful and current failing runs (verified
-for `architecture-guard.yml` by `git show 2b0d7abb1:...` == working tree).
-
-GitHub status page reports all systems operational, so this is a
-repository-level Actions registry / runner availability issue, not a
-code-introduced regression. Auto-retries will collect evidence once
-Actions recovers. No PR is blocked on code; the three open PRs (#5345,
-#5346, #5348) are awaiting runner availability.
-
-## Evidence table
-
-### #5297 + #5298 -- eventmesh-common / eventmesh-runtime sub-packages
-
-| Issue | PR | Commit | Test files | Test command | CI | Backend | Topology | Result |
-|---|---|---|---|---|---|---|---|---|
-| #5298 | #5320 | `dd7e52cbb` | `ArchitectureRulesTest`, `EventMeshThreadFactoryTest`, `ResetCountDownLatchTest`, `ThreadWrapperTest`, `HttpEventWrapperTest`, `ConfigurationWrapperTest`, `EventMeshThreadPoolFactoryTest`, `IPUtilsTest`, `JsonUtilsTest`, `ThrowableUtilTest`, `BufferUtilsTest`, `IpUtilsTest`, `PathUtilsTest`, `StringUtilsTest`, `YamlUtilsTest`, `RandomUtilsTest`, `TokenUtilsTest`, `IdUtilsTest`, `MD5UtilsTest` (19 total) | `./gradlew :eventmesh-common:test` | merged | n/a ( [...]
-| #5297 | #5321 | `58a0c09d` | (split into PR #5320 via the same commit; #5321 is the runtime side, separate squash) | `./gradlew :eventmesh-runtime:test` | merged | n/a | unit | pass on merge |
-
-### #5299 -- Single protocol path
-
-| Issue | PR | Commit | Test files | Test command | CI | Backend | Topology | Result |
-|---|---|---|---|---|---|---|---|---|
-| #5299 | #5319 | `ba267195c` | per-protocol smoke tests in `eventmesh-protocol-plugin/{http,grpc,tcp}/src/test/` | `./gradlew :eventmesh-protocol-plugin:check` | merged | n/a | unit | pass on merge |
-
-### #5301 -- Unified state control-plane (Sub-PR A/B/C/D + E2E)
-
-| Sub-issue | PR | Commit | Test files | Test command | CI | Backend | Topology | Result |
-|---|---|---|---|---|---|---|---|---|
-| #5301 Sub-PR A | #5310 | `187bb922f` | `MatchmakerTest`, `SessionRegistryAtomicityTest`, `SessionRegistryTest`, `DeadLetterStoreTest`, `SessionStoreTest`, `SubscriptionStoreTest`, `TaskStoreTest` (7) | `./gradlew :eventmesh-runtime:test --tests "org.apache.eventmesh.runtime.registry.*"` | merged | RocksDB / Nacos in-memory stub | single | pass on merge |
-| #5301 Sub-PR B | #5311 | `b99c1671c` | `DeliveryRecoveryTest`, `DeliveryStateStoreTest` | `./gradlew :eventmesh-runtime:test --tests "org.apache.eventmesh.runtime.delivery.*Recovery*Test"` | merged | RocksDB | single | pass on merge |
-| #5301 Sub-PR C | #5312 | `ef0fb1857` | `ReliableDispatcherDlqLedgerTest`, `MetaBackedDeadLetterStoreTest`, `MetaBackedTaskStoreTest` | `./gradlew :eventmesh-runtime:test --tests "*DlqLedger*" --tests "*MetaBacked*"` | merged | Nacos in-memory | single | pass on merge |
-| #5301 Sub-PR D (D1) | #5313 | `6ec99215c` | `A2AGatewayServiceTest`, `A2AGatewaySmokeTest` | `./gradlew :eventmesh-a2a:test` | merged | in-process | single | pass on merge |
-| #5301 E2E (#5314) | #5318 | `7abca88aa` | `CrossStoreFaultInjectionTest` | `./gradlew :eventmesh-runtime:test --tests "*CrossStoreFault*"` | merged | RocksDB + Nacos in-memory | crash-recovery | pass on merge |
-| #5339 (Q3) | #5345 | `04247475b` | `StateStoreDurabilityTest` (@Nested 6 scenarios) + `docs/state-store-failure-matrix.md` | `./gradlew :eventmesh-runtime:test --tests "StateStoreDurabilityTest"` | OPEN-CI-startup_failure | RocksDB / Nacos | restart / multi / crash / kill -9 | awaiting runner |
-| #5340 (Q4) D2a | #5346 | `3db5f663b` | `TaskExpirerTest`, `MetaAgentCardRegistryTest`, `A2AGatewayFailureModeTest` + `docs/a2a-readiness-decision.md` | `./gradlew :eventmesh-a2a:test --tests "*TaskExpirer*" --tests "*MetaAgentCard*" --tests "*A2AGatewayFailure*"` | OPEN-CI-startup_failure | Meta in-memory | single | awaiting runner |
-
-### #5302 -- A2A must not form a parallel Runtime
-
-Already covered by #5301 D1 above (#5313 / #5346). Follow-ups tracked at
-#5347 (D2b: Testcontainers E2E).
-
-### #5303 -- Standardize Storage SPI capability model + TCK
-
-| Issue | PR | Commit | Test files | Test command | CI | Backend | Topology | Result |
-|---|---|---|---|---|---|---|---|---|
-| #5303 | #5323 | `054127e0a` | `MeshStoragePluginTCK`, `MeshStoragePluginTCKSelfTest`, `KafkaMeshStoragePluginTCKTest`, `RocketMQRemotingStoragePluginTCKTest`, `RocketMQ5RemotingStoragePluginTCKTest` | `./gradlew :eventmesh-storage-plugin:test` | merged | Kafka / RocketMQ 4.x / RocketMQ 5.x | TCK (broker-optional) | pass on merge |
-| #5342 (Q6+Q7) | #5348 | `3cfc94868` | `ArchitectureRulesTest` (2 new `*_check` + 1 new `*_catches`); new `FakeStorageCanary`. Plus `docs/storage-spi.md` + `docs/architecture-guard.md` + `CONTRIBUTING.md` | `./gradlew :eventmesh-architecture-guard:architectureCheck` + `./gradlew :eventmesh-storage-plugin:test` | OPEN-CI-startup_failure | n/a + Kafka / RocketMQ / RocketMQ5 | unit + TCK | awaiting runner |
-
-### #5304 -- Unified multi-tenant / security / quota entrypoint
-
-| Issue | PR | Commit | Test files | Test command | CI | Backend | Topology | Result |
-|---|---|---|---|---|---|---|---|---|
-| #5304 | #5324 | `796d7400e` | `SecurityGateTest` | `./gradlew :eventmesh-security:test` | merged | n/a | unit | pass on merge |
-
-### #5305 -- Gradle build + module dependency guardrails
-
-| Issue | PR | Commit | Test files | Test command | CI | Backend | Topology | Result |
-|---|---|---|---|---|---|---|---|---|
-| #5305 (1.13 WARN mode + initial rules) | #5320 | `dd7e52cbb` | `ArchitectureRulesTest` (10 `*_warn` rules) | `./gradlew :eventmesh-architecture-guard:architectureCheck` | merged | n/a | static | pass on merge (WARN mode) |
-| #5305 (1.14 FAIL mode + CI workflow) | #5322 | `6e92e2d70` | `ArchitectureRulesTest` (10 `*_check` rules); `.github/workflows/architecture-guard.yml` | `./gradlew :eventmesh-architecture-guard:architectureCheck` + Architecture Guard workflow | merged | n/a | static | pass on merge (FAIL mode) |
-| #5342 (Q7 plugin rules) | #5348 | `3cfc94868` | `ArchitectureRulesTest.ruleStoragePluginsIsolated_check`, `ruleStoragePluginsDependOnlyOnApi_check`, `ruleStoragePluginsIsolated_catches` (with `FakeStorageCanary`); +12 rules total | `./gradlew :eventmesh-architecture-guard:architectureCheck` | OPEN-CI-startup_failure | n/a | static | awaiting runner |
-
-### #5306 -- Sync documentation narrative with implementation status
-
-| Issue | PR | Commit | Test files | Test command | CI | Backend | Topology | Result |
-|---|---|---|---|---|---|---|---|---|
-| #5306 (1.13 narrative sync) | #5326 | `33d3e3ebd` | n/a (docs only) | n/a | merged | n/a | docs | merged |
-| #5306 (Connector Runtime downgrade) | #5329 | `2b0d7abb1` | n/a (docs only) | n/a | merged | n/a | docs | merged |
-
-### #5309 -- PARTITION_OWNED_PULL delivery topology
-
-| Issue | PR | Commit | Test files | Test command | CI | Backend | Topology | Result |
-|---|---|---|---|---|---|---|---|---|
-| #5309 | #5317 | `e2792613c` | `UniRuntimeTopologyWiringTest`, `DeliveryTopologyTest` | `./gradlew :eventmesh-runtime:test --tests "*Topology*"` | merged | n/a + Meta in-memory | single + multi-instance (meta-fencing) | pass on merge |
-
-### #5295 -- RocketMQ 5 POP broker ACK barrier (Q1 reliability)
-
-| Issue | PR | Commit | Test files | Test command | CI | Backend | Topology | Result |
-|---|---|---|---|---|---|---|---|---|
-| #5295 (consolidated re-land) | #5336 | `71dd78d24` | (logic in `UniIngressService.java`; covered by `DeliveryRecoveryTest` from #5311) | `./gradlew :eventmesh-runtime:test --tests "*DeliveryRecovery*"` | merged | RocketMQ 5.3.0+ | single + multi-instance | pass on merge |
-| #5295 (related, source attribution) | #5333 / #5334 | (both reverted by #5335; content lives in #5336) | n/a | n/a | n/a | n/a | n/a | rolled into #5336 |
-
-### #5338 -- Production boot wiring of DeliveryTopology and SecurityGate
-
-| Issue | PR | Commit | Test files | Test command | CI | Backend | Topology | Result |
-|---|---|---|---|---|---|---|---|---|
-| #5338 | #5344 | `6b6f4b0c6` | (logic in `EventMeshApplication.java`; covered by `UniRuntimeTopologyWiringTest` from #5317) | `./gradlew :eventmesh-runtime:test --tests "*Topology*"` | merged | n/a | unit | pass on merge |
-
-### #5341 -- Protocol/SDK boundary separation
-
-| Issue | PR | Commit | Test files | Test command | CI | Backend | Topology | Result |
-|---|---|---|---|---|---|---|---|---|
-| #5341 | #5343 | `a7e819a67` | n/a (build.gradle dep move + docs); no test changes | `./gradlew :eventmesh-sdks:eventmesh-sdk-java:check` | merged | n/a | compile + unit | pass on merge |
-
-### #4642 -- Connector Runtime hardening + SPI split
-
-| Issue | PR | Commit | Test files | Test command | CI | Backend | Topology | Result |
-|---|---|---|---|---|---|---|---|---|
-| #4642 | #5328 | `34a97bf4e` | `ArchitectureRulesTest` (1 connector rule), `FileSinkConnectorTest`, `FileSourceConnectorTest`, `KafkaSinkConnectorTest`, `PulsarSinkConnectorTest`, `RocketmqSinkConnectorTest`, `RocketmqSourceConnectorTest` | `./gradlew :eventmesh-connector-plugin:check` | merged | file / kafka / pulsar / rocketmq | unit | pass on merge |
-
-## Scenarios (from #5337 Q1)
-
-The 7 reliability scenarios from issue #5337 map to the rows above as follows:
-
-| # | Scenario | Primary evidence | Test command |
-|---|---|---|---|
-| 1 | RocketMQ 5 POP broker ACK barrier (duplicate ACKs / out-of-order) | #5311 + #5336 | `./gradlew :eventmesh-runtime:test --tests "*DeliveryRecovery*"` |
-| 2 | RocketMQ 4 -- basic delivery ACKs (single + multi) | #5311 (single) + #5317 (multi) | `./gradlew :eventmesh-runtime:test --tests "*DeliveryRecovery*" --tests "*Topology*"` |
-| 3 | Kafka -- offset persistence (broker-ack / broker-ack-then-crash) | #5311 + #5345 (`StateStoreDurabilityTest.OffsetStoreRestart`) | `./gradlew :eventmesh-runtime:test --tests "*DeliveryRecovery*" --tests "*OffsetStore*"` |
-| 4 | Crash recovery (kill mid-delivery, no double / no lost) | #5311 (`DeliveryRecoveryTest`) + #5318 (`CrossStoreFaultInjectionTest`) | `./gradlew :eventmesh-runtime:test --tests "*Recovery*" --tests "*CrossStore*"` |
-| 5 | DLQ failure (exhaust retries -> durable DLQ) | #5312 (`ReliableDispatcherDlqLedgerTest` + `MetaBackedDeadLetterStoreTest`) | `./gradlew :eventmesh-runtime:test --tests "*DlqLedger*" --tests "*MetaBacked*"` |
-| 6 | Cursor recovery (restart, per-subscriber cursor) | #5311 (`DeliveryStateStoreTest`) + #5345 (`StateStoreDurabilityTest.OffsetStoreRestart`) | `./gradlew :eventmesh-runtime:test --tests "*DeliveryStateStore*" --tests "*OffsetStore*"` |
-| 7 | Multi-instance fencing (split-brain, stale partition owner) | #5317 (`DeliveryTopologyTest`) + #5318 (`CrossStoreFaultInjectionTest`) | `./gradlew :eventmesh-runtime:test --tests "*Topology*" --tests "*CrossStore*"` |
-
-All 7 scenarios have at least one **merged** PR with the test
-implementation. Scenarios 1, 2, 5, 6, 7 have **CI-passing** runs on
-record (the `merged` PR's CI before the platform outage). Scenarios 3
-and 4 (the "crash + offset persistence" pair) are the strongest target
-of the open PR #5345 -- the new `StateStoreDurabilityTest` class
-encompasses both, and the open CI run will provide the first
-fully-executable evidence at the `OffsetStoreRestart` and
-`SubscriptionStoreMultiInstance` levels. The corresponding
-`docs/state-store-failure-matrix.md` (also in #5345) lists the per-backend
-expected behavior for the other scenarios.
-
-## Items lacking evidence (out of scope or follow-up)
-
-- **#5340 D2b (Testcontainers E2E for A2A Gateway)** -- tracked at #5347.
-  Out of scope for this evidence document; expected to land in a follow-up
-  PR after the A2A Testcontainers harness is in place.
-- **#5342 Q6 plugin-load-time capability validation** -- explicitly
-  documented as future work in `docs/storage-spi.md` (the
-  `EventMeshSPI` loader would need to be changed to reflect over
-  `implements` clauses; current design is runtime `instanceof` + TCK).
-- **Scenario 4 (Crash recovery) on a non-Kafka backend (RocketMQ 5.x
-  POP)** -- covered by the live behaviour asserted in #5311's
-  `DeliveryRecoveryTest` but the Testcontainers-driven restart-then-replay
-  run is not yet on record. Follow-up tracking is implied by #5347
-  (Testcontainers E2E).
-
-## How to update this document
-
-1. Land the PR.
-2. Add or update the row in the relevant table.
-3. If the row fills the "Test command" and "CI" cells, link the CI run
-   (`https://github.com/apache/eventmesh/actions/runs/<id>`) and the
-   squash-commit hash.
-4. If the row cannot fill the CI cell (open PR + platform outage),
-   mark the row `OPEN-CI-startup_failure` and link the most recent
-   push-triggered run; the next Actions platform recovery will
-   auto-collect the run.
-5. If the scenario is intentionally out of scope or moved to a
-   follow-up, add an entry under "Items lacking evidence" with a link
-   to the tracking issue.
-
-## References
-
-- #5296 -- parent issue
-- #5337 -- tracking issue for this evidence document
-- #5342 -- this evidence document's "Q6 + Q7 governance" PR
-- `docs/architecture-guard.md` -- arch-guard canonical reference
-- `docs/storage-spi.md` -- storage capability matrix
-- `docs/state-store-failure-matrix.md` -- per-backend failure modes
-  (from #5345)
-- `docs/a2a-readiness-decision.md` -- A2A experimental / GA decision
-  (from #5346)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: commits-help@eventmesh.apache.org