fix: replace removed RunContext#stateStore() with the namespace KV store - #785
Merged
Conversation
RunContext#stateStore() is deprecated in Kestra 1.3 and removed in 2.0, so the compatibility CI job fails to compile the healthlake and msk triggers. Move both triggers' dedup state to runContext.namespaceKv(), keyed by namespace, flow id and trigger id. The whole KV API used here (namespaceKv, KVMetadata, KVValueAndMetadata, getValue, put, delete) is already present in 1.3.19, so kestraVersion stays unchanged and the plugin still compiles against both 1.3.x and 2.0. Follows the implementation reviewed in #706, statestore change only.
Contributor
📦 Artifacts
🛡 TrivyVulnerability in:
|
| Vulnerability | Severity | Package | Installed Version | Fixed Version |
|---|---|---|---|---|
| CVE-2026-42583 | HIGH | io.netty:netty-codec-compression | 4.2.12.Final | 4.2.13.Final |
| CVE-2026-59901 | HIGH | io.netty:netty-codec-compression | 4.2.12.Final | 4.2.16.Final |
| CVE-2026-42584 | HIGH | io.netty:netty-codec-http | 4.2.12.Final | 4.2.13.Final, 4.1.133.Final |
| CVE-2026-42587 | HIGH | io.netty:netty-codec-http | 4.2.12.Final | 4.2.13.Final, 4.1.133.Final |
| CVE-2026-55831 | HIGH | io.netty:netty-codec-http | 4.2.12.Final | 4.2.16.Final, 4.1.136.Final |
| CVE-2026-55833 | HIGH | io.netty:netty-codec-http | 4.2.12.Final | 4.2.16.Final, 4.1.136.Final |
| CVE-2026-56745 | HIGH | io.netty:netty-codec-http | 4.2.12.Final | 4.2.16.Final, 4.1.136.Final |
| CVE-2026-41417 | MEDIUM | io.netty:netty-codec-http | 4.2.12.Final | 4.1.133.Final, 4.2.13.Final |
| CVE-2026-42580 | MEDIUM | io.netty:netty-codec-http | 4.2.12.Final | 4.2.13.Final, 4.1.133.Final |
| CVE-2026-42581 | MEDIUM | io.netty:netty-codec-http | 4.2.12.Final | 4.2.13.Final, 4.1.133.Final |
| CVE-2026-42585 | MEDIUM | io.netty:netty-codec-http | 4.2.12.Final | 4.2.13.Final, 4.1.133.Final |
| CVE-2026-50020 | MEDIUM | io.netty:netty-codec-http | 4.2.12.Final | 4.2.15.Final, 4.1.135.Final |
| CVE-2026-56746 | MEDIUM | io.netty:netty-codec-http | 4.2.12.Final | 4.2.16.Final, 4.1.136.Final |
| CVE-2026-59898 | MEDIUM | io.netty:netty-codec-http | 4.2.12.Final | 4.2.16.Final, 4.1.136.Final |
| CVE-2026-59899 | MEDIUM | io.netty:netty-codec-http | 4.2.12.Final | 4.2.16.Final, 4.1.136.Final |
| CVE-2026-59903 | MEDIUM | io.netty:netty-codec-http | 4.2.12.Final | 4.2.17.Final, 4.1.137.Final |
| CVE-2026-59921 | MEDIUM | io.netty:netty-codec-http | 4.2.12.Final | 4.2.16.Final, 4.1.136.Final |
| CVE-2026-42587 | HIGH | io.netty:netty-codec-http2 | 4.2.12.Final | 4.2.13.Final, 4.1.133.Final |
| CVE-2026-56819 | HIGH | io.netty:netty-codec-http2 | 4.2.12.Final | 4.2.16.Final, 4.1.136.Final |
| CVE-2026-47244 | MEDIUM | io.netty:netty-codec-http2 | 4.2.12.Final | 4.2.15.Final, 4.1.135.Final |
| CVE-2026-48043 | MEDIUM | io.netty:netty-codec-http2 | 4.2.12.Final | 4.1.135.Final, 4.2.15.Final |
| CVE-2026-50560 | MEDIUM | io.netty:netty-codec-http2 | 4.2.12.Final | 4.2.15.Final, 4.1.135.Final |
| CVE-2026-59900 | MEDIUM | io.netty:netty-codec-http2 | 4.2.12.Final | 4.2.16.Final, 4.1.136.Final |
| CVE-2026-44249 | HIGH | io.netty:netty-handler | 4.2.12.Final | 4.2.15.Final, 4.1.135.Final |
| CVE-2026-45416 | HIGH | io.netty:netty-handler | 4.2.12.Final | 4.2.15.Final, 4.1.135.Final |
| CVE-2026-50010 | HIGH | io.netty:netty-handler | 4.2.12.Final | 4.2.15.Final, 4.1.135.Final |
| CVE-2026-42577 | HIGH | io.netty:netty-transport-classes-epoll | 4.2.12.Final | 4.2.13.Final |
🧪 Java Unit Tests
| Tests | Passed ✅ | Skipped | Failed | Time ⏱ | |
|---|---|---|---|---|---|
| Java Tests Report | 169 ran | 167 ✅ | 2 | 0 ❌ | 4m 18s 493ms |
🔁 Unreleased Commits
8 commits since v2.8.2
| SHA | Title | Author | Date |
|---|---|---|---|
953d4ce |
Documentation review: plugin-aws (#776) | AJ Emerich | Aug 4, 26, 4:22:43 PM UTC |
ec765b2 |
chore(deps): bump com.github.ben-manes.versions from 0.54.0 to 0.56.0 | dependabot[bot] | Aug 1, 26, 1:22:39 AM UTC |
ff8dd7f |
chore(deps): bump io.floci:testcontainers-floci from 2.12.0 to 2.13.0 | dependabot[bot] | Aug 1, 26, 1:22:34 AM UTC |
0210186 |
chore(deps): update all common deps | Ludovic DEHON | Aug 8, 26, 11:04:28 PM UTC |
663a965 |
chore(deps): remove unused agent on allure | Ludovic DEHON | Aug 11, 26, 9:44:07 PM UTC |
0f94d05 |
fix(s3): render moveTo.key so dynamic destination paths resolve (#783) | Malay Dewangan | Aug 27, 26, 7:28:39 AM UTC |
9a0f6ec |
chore(deps): bump io.floci:testcontainers-floci from 2.13.0 to 2.14.0 | dependabot[bot] | Aug 22, 26, 1:22:49 AM UTC |
cdb7855 |
chore(deps): bump com.github.ben-manes.versions from 0.60.0 to 0.61.0 | dependabot[bot] | Aug 15, 26, 1:22:29 AM UTC |
Contributor
Tests report quick summary:success ✅ > tests: 169, success: 167, skipped: 2, failed: 0 unfold for details
|
fdelbrayelle
approved these changes
Aug 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
RunContext#stateStore()is removed in 2.0, breaking the compat CI compile forhealthlake/Triggerandmsk/Trigger. Both now keep dedup state inrunContext.namespaceKv(), keyed by namespace, flow id and trigger id. Follows #706, statestore change only.kestraVersionstays at 1.3.19: the KV API used here already exists there, so this compiles against both 1.3.x and 2.0.@loicmathieu on reusing existing state: there is none.
StateStorewrote to internal storage, KV writes to the KV store, no shared keys. Impact is one re-fire per trigger on the first poll after upgrade, then it self-corrects. Can add a read-old-write-new shim if you want zero re-fires.msk.TriggerTestandhealthlake.TriggerTestpass.