Skip to content

Backport security fixes for Kumo Engine 1.0.1 - #190

Merged
anle2024 merged 4 commits into
releases/v1.0from
anle/security-1.0.1-20261103
Nov 4, 2026
Merged

anle2024 merged 4 commits into
releases/v1.0from
anle/security-1.0.1-20261103

Conversation

@anle2024

@anle2024 anle2024 commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Backport the dependency security fixes to releases/v1.0 and prepare Kumo Engine 1.0.1 from the released 1.0.0 base. The patch updates Lightning to 2.6.6 and carries PR172's native dependency fixes while preserving the saved-index format.

PR45 supplies the GPU status required by release-branch protection. Generated dependency records describe this release branch. The version stamp updates the shared metadata. Copied-source policy preserves upstream headers and continues checking NVIDIA additions.

Change map

Maintained file-by-file change map.

Testing Done

  • Built the Linux x86_64 1.0.1 wheel on glibc 2.34 with Rust 1.97.1. SHA-256: 0ead83aa11d84b595b5ae3da28995665ff04a7db263a5b5af436c02d34232f12.
  • All eight CUDA task checks passed on a Tesla T4 with Torch 2.12.0 and again with a fresh Python 3.12 / Torch 2.13.0 environment. Both environments used Lightning 2.6.6. Installed code matched the candidate wheel in all 379 Python/native files.
  • The short GPU check trained, saved, and reloaded a model. Loading an original Engine 1.0.0 model and reloading the new model both preserved predictions exactly in both environments.
  • The copied library passed 89 checks. The full Rust workspace suite passed with isolated tmpfs temporary storage. The inherited disk_manager::tests::test_eviction_under_real_disk_pressure fails on this machine's SSD and passes on tmpfs. All eight frozen-index checks also passed on x86_64.
  • Header-policy, Python license metadata, notice-generator, core wheel metadata, generated artifact, and version checks passed. All seven installation profiles resolve from PyPI for Python 3.11 through 3.14.
  • Trivy 0.72.0 reported zero findings in the resolved Rust dependency graph and the fresh installed Python requirements with Torch 2.13.0, pip 26.3, and setuptools 84.2.1. The earlier Torch 2.12 / old packaging-tool environment had lower-severity findings. The wheel's allowed dependency ranges remain unchanged apart from Lightning. Upgrading Engine alone does not force an existing Torch 2.12 environment to upgrade; the zero-finding Python result applies to the stated tested dependency versions.

These are small compatibility checks. Learning quality, production load, and every allowed dependency combination are not qualified. PLC review, the final release build, and publication remain separate.

Hotfix Context

Original security PRs: PR87 and PR172.

Required CI support: PR45.

Target release branch: releases/v1.0, based on 7d65608b8b697d3865dbbaacc1bc1f26b7760a2a.

aaron-kumo and others added 4 commits November 4, 2026 01:02
## Summary
pytorch-lightning 2.6.5 is affected by CVE-2026-58659
(GHSA-qqmf-gpg7-g8gw, high): a crafted checkpoint can run arbitrary code
through `load_from_checkpoint`, even with `weights_only=True`. 2.6.6
fixes it. kumo never calls `load_from_checkpoint`, but kumo-core pins
`pytorch-lightning==2.6.5` exactly, so every kumo-engine 1.0.0 install
carries a version that scanners flag and that users can't upgrade
themselves.

This PR moves every pin to `==2.6.6`, with no code changes. The only
code change between 2.6.5 and 2.6.6 is that fix, and Lightning's
dependencies are unchanged.

## Change map
[File-by-file change
map](#87 (comment)).

## Testing Done
- A model bundle trained under 2.6.5 reloads under 2.6.6 and predicts
identically.

## Checklist
- [x] Breaking changes: none.
- [x] Updated documentation: not needed.
- [x] Updated the wheel metadata test.

(cherry picked from commit 836d875)
…ty (#172)

Engine 1.0.0 dependency scans report vulnerable PyO3, Thrift, Rustls,
maligned, and optional lru versions. This change updates those
dependencies while retaining the existing saved-index format.

- Update PyO3, Arrow/Parquet, Rustls, and the optional terminal tools.
Remove Thrift and maligned.
- Backport aligned byte storage into epserde 0.8.0. Declare the
Apache-only additions in the package license and provenance.
- Reject truncated input, release loader storage on errors, and correct
ControlFlow reader tags to match the existing writer.
- Run the copied library tests explicitly in CI. Isolate
documentation-test temporary files and retain eight frozen index
fixtures.

Prior discussion:
[PR171](#171).

[Maintained file-by-file
map](#172 (comment)).

The updated library passes 89 checks, including four new regression
tests and 11 documentation tests. All eight frozen-index tests pass
through the three loaders with unchanged saved bytes. Generated artifact
and notice checks pass for 404 components. Regression tests reproduced
the enum-tag error, truncated-input panic, and acceptance of an
incomplete file before the fixes.

At `e7428e17`, the full Rust workspace run completed with 2,101 passed,
one failed, and 18 ignored. The unchanged
`disk_manager::tests::test_eviction_under_real_disk_pressure` fails with
`InsufficientSpace` on this machine. Standalone library Clippy passes
with its existing `manual_is_multiple_of` lint allowed; without that
allowance, that unchanged expression fails warnings-as-errors.

A wheel from earlier commit `0eced1c` passed the Azure T4 training,
prediction, and old/new model reload checks. That run used one
candidate, one epoch capped at two batches, and 50 predictions. The new
reader changes have not been GPU-tested.

Production manylinux builds, full training, other GPU classes, and
multiple GPUs remain unverified. The earlier Trivy dependency scan
reported zero findings; independent OSV records for 11 other unchanged
dependency versions still need exposure review. This PR does not publish
a package or change the release version.

(cherry picked from commit 502adef)
## What

- Add a final `kumo-core-gpu-ci` check that passes for exempt changes or
successful GPU tests. [Change
map](#45 (comment)).
- Handle renamed files, stale PR heads, and large diffs conservatively;
assert PyTorch CUDA availability before testing.
- Clarify the local GPU test command and prerequisites.

## Why

- GPU CI can remain untriggered while waiting for `copy-pr-bot`, with no
required GPU check blocking merging.
- Provide a check branch protection can require so relevant PRs must run
and pass GPU CI before merging.

(cherry picked from commit bdb6294)
@copy-pr-bot

copy-pr-bot Bot commented Nov 4, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@anle2024
anle2024 temporarily deployed to gha-kumo-workflow-tests November 4, 2026 01:30 — with GitHub Actions Inactive
@coderabbitai

coderabbitai Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@anle2024

anle2024 commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator Author

Change map

Released Engine 1.0.0 carries the identified dependency advisories. This backport starts at its release branch, applies PR87 and PR172, adds the required CI support from PR45, and prepares version 1.0.1. Generated records describe the release graph. The stopping point is a tested candidate for PLC review; no package publication is performed.

File What changed Why
.github/workflows/kumo-core-gpu.yml
.github/workflows/testing.yml
docs/development/testing.md
Run copied-library tests and backport PR45 required GPU status handling. Exercise the backport and emit the status required by release-branch protection.
3rdparty/notices/inventory.json
THIRD-PARTY.txt
packages/diskgraph/scripts/generate_artifact_manifest.py
packages/diskgraph/third_party/artifact-manifest.json
packages/diskgraph/third_party/source-provenance.json
Regenerate the release-specific artifact graph and notices with reviewed epserde provenance. Describe the dependencies shipped by this release rather than current main.
VERSION
common_utils/version_file.py
helm/kumo-edge/Chart.yaml
helm/kumo-helm/Chart.yaml
helm/kumo-helm/conformance/contract.yaml
helm/kumo-platform-aks/Chart.yaml
helm/kumo-platform-aro/Chart.yaml
helm/kumo-platform-eks/Chart.yaml
helm/kumo-stack/Chart.yaml
helm/kumo-stack/renderer/Chart.yaml
helm/kumo-stack/renderer/values.yaml
helm/kumo-temporal/Chart.yaml
packages/kumo-engine/kumo/engine/_version.py
packages/kumo-sdk/kumoai_studio/_version.py
Stamp the shared version fields as 1.0.1. Build a consistent Engine release candidate without publishing other products.
packages/diskgraph/Cargo.lock
packages/diskgraph/Cargo.toml
packages/diskgraph/deny.toml
packages/diskgraph/diskgraph-datagenerator/Cargo.toml
packages/diskgraph/diskgraph-engine/Cargo.toml
packages/diskgraph/diskgraph-explain/Cargo.toml
packages/diskgraph/diskgraph-gateway/Cargo.toml
packages/diskgraph/diskgraph-infer/Cargo.toml
packages/diskgraph/diskgraph-ingest/Cargo.toml
packages/diskgraph/diskgraph-pybind/Cargo.toml
packages/diskgraph/diskgraph-train-table/Cargo.toml
Backport PR172 PyO3, Arrow/Parquet, Rustls, and optional terminal dependency updates. Fix identified native advisories and remove Thrift and maligned.
packages/diskgraph/diskgraph-engine/src/bin/sampler_tui.rs
packages/diskgraph/diskgraph-ingest/src/bin/ingest_tui.rs
packages/diskgraph/diskgraph-ingest/src/lib.rs
packages/diskgraph/diskgraph-pybind/build.rs
packages/diskgraph/diskgraph-rowpack/src/tests_type_matrix.rs
Adapt existing call sites and tests to the patched dependency APIs. Compile the security updates without importing newer Engine features.
packages/diskgraph/diskgraph-index/examples/write_legacy_index_fixture.rs
packages/diskgraph/diskgraph-index/tests/common/mod.rs
packages/diskgraph/diskgraph-index/tests/epserde_compat.rs
packages/diskgraph/diskgraph-index/tests/fixtures/epserde-0.8/README.md
packages/diskgraph/diskgraph-index/tests/fixtures/epserde-0.8/gx_bytes.bin
packages/diskgraph/diskgraph-index/tests/fixtures/epserde-0.8/gx_bytes.json
packages/diskgraph/diskgraph-index/tests/fixtures/epserde-0.8/gx_fixed16.bin
packages/diskgraph/diskgraph-index/tests/fixtures/epserde-0.8/gx_fixed16.json
packages/diskgraph/diskgraph-index/tests/fixtures/epserde-0.8/gx_fixed32.bin
packages/diskgraph/diskgraph-index/tests/fixtures/epserde-0.8/gx_fixed32.json
packages/diskgraph/diskgraph-index/tests/fixtures/epserde-0.8/gx_int64.bin
packages/diskgraph/diskgraph-index/tests/fixtures/epserde-0.8/gx_int64.json
packages/diskgraph/diskgraph-index/tests/fixtures/epserde-0.8/pk_bytes.bin
packages/diskgraph/diskgraph-index/tests/fixtures/epserde-0.8/pk_bytes.json
packages/diskgraph/diskgraph-index/tests/fixtures/epserde-0.8/pk_fixed16.bin
packages/diskgraph/diskgraph-index/tests/fixtures/epserde-0.8/pk_fixed16.json
packages/diskgraph/diskgraph-index/tests/fixtures/epserde-0.8/pk_fixed32.bin
packages/diskgraph/diskgraph-index/tests/fixtures/epserde-0.8/pk_fixed32.json
packages/diskgraph/diskgraph-index/tests/fixtures/epserde-0.8/pk_int64.bin
packages/diskgraph/diskgraph-index/tests/fixtures/epserde-0.8/pk_int64.json
packages/diskgraph/diskgraph-index/tests/fixtures/epserde-0.8/provenance.json
Retain eight frozen indexes and their loader, lookup, and saved-byte comparisons. Test compatibility with released indexes.
packages/diskgraph/third_party/epserde/.cargo_vcs_info.json
packages/diskgraph/third_party/epserde/Cargo.toml
packages/diskgraph/third_party/epserde/LICENSE-Apache-2.0
packages/diskgraph/third_party/epserde/LICENSE-LGPL-2.1-or-later
packages/diskgraph/third_party/epserde/LOCAL-PATCH.md
packages/diskgraph/third_party/epserde/README.md
packages/diskgraph/third_party/epserde/build.rs
packages/diskgraph/third_party/epserde/src/deser/helpers.rs
packages/diskgraph/third_party/epserde/src/deser/mem_case.rs
packages/diskgraph/third_party/epserde/src/deser/mod.rs
packages/diskgraph/third_party/epserde/src/deser/read.rs
packages/diskgraph/third_party/epserde/src/deser/reader_with_pos.rs
packages/diskgraph/third_party/epserde/src/deser/slice_with_pos.rs
packages/diskgraph/third_party/epserde/src/impls/array.rs
packages/diskgraph/third_party/epserde/src/impls/boxed_slice.rs
packages/diskgraph/third_party/epserde/src/impls/iter.rs
packages/diskgraph/third_party/epserde/src/impls/mod.rs
packages/diskgraph/third_party/epserde/src/impls/prim.rs
packages/diskgraph/third_party/epserde/src/impls/slice.rs
packages/diskgraph/third_party/epserde/src/impls/stdlib.rs
packages/diskgraph/third_party/epserde/src/impls/string.rs
packages/diskgraph/third_party/epserde/src/impls/tuple.rs
packages/diskgraph/third_party/epserde/src/impls/vec.rs
packages/diskgraph/third_party/epserde/src/lib.rs
packages/diskgraph/third_party/epserde/src/ser/helpers.rs
packages/diskgraph/third_party/epserde/src/ser/mod.rs
packages/diskgraph/third_party/epserde/src/ser/write.rs
packages/diskgraph/third_party/epserde/src/ser/write_with_names.rs
packages/diskgraph/third_party/epserde/src/traits/copy_type.rs
packages/diskgraph/third_party/epserde/src/traits/mod.rs
packages/diskgraph/third_party/epserde/src/traits/type_info.rs
packages/diskgraph/third_party/epserde/src/utils/aligned_cursor.rs
packages/diskgraph/third_party/epserde/src/utils/alignment.rs
packages/diskgraph/third_party/epserde/src/utils/mod.rs
packages/diskgraph/third_party/epserde/tests/test_bad_deser.rs
packages/diskgraph/third_party/epserde/tests/test_bad_ser.rs
packages/diskgraph/third_party/epserde/tests/test_generics.rs
packages/diskgraph/third_party/epserde/tests/test_max_size_of.rs
packages/diskgraph/third_party/epserde/tests/test_memcase.rs
packages/diskgraph/third_party/epserde/tests/test_phantom.rs
packages/diskgraph/third_party/epserde/tests/test_prim.rs
packages/diskgraph/third_party/epserde/tests/test_review_regressions.rs
packages/diskgraph/third_party/epserde/tests/test_slice.rs
packages/diskgraph/third_party/epserde/tests/test_std.rs
packages/diskgraph/third_party/epserde/tests/test_stdlib.rs
packages/diskgraph/third_party/epserde/tests/test_tuples.rs
packages/diskgraph/third_party/epserde/tests/test_type_hash_val.rs
packages/diskgraph/third_party/epserde/tests/test_types.rs
packages/diskgraph/third_party/epserde/tests/test_zero.rs
Copy PR172 epserde 0.8.0 alignment and reader fixes, upstream licenses, and regression tests. Remove maligned while preserving the saved-index format.
packages/kumo-core/pyproject.toml
packages/kumo-core/tests/test_wheel_metadata.py
setup.py
uv.lock
Backport PR87 and require Lightning 2.6.6. Remove the vulnerable 2.6.5 pin from the 1.0.0 release.
scripts/license_header_policy.json
test/scripts/test_check_license_headers.py
Classify upstream files explicitly and test that local additions retain NVIDIA headers. Preserve upstream attribution while satisfying release CI.

@anle2024

anle2024 commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator Author

/ok to test 386c816

@anle2024
anle2024 marked this pull request as ready for review November 4, 2026 04:59
@Vedaant-J

Copy link
Copy Markdown
Contributor

Medium: 8 RustSec vulnerabilities still ship. They're in rustls-webpki, zstd/zstd-safe, quick-xml, ctutils and tokio, all published Oct 13–23, before this PR. So the body's "Trivy
reported zero findings" claim doesn't hold against the current RustSec database, and a customer scan of 1.0.1 would flag them. Most need only cargo update -p rustls-webpki -p zstd -p
ctutils -p tokio, a lockfile-only change. quick-xml needs an object_store bump, or listing it as a known issue.

should we also backport #38 and #83 ?

@anle2024
anle2024 merged commit fb31d1a into releases/v1.0 Nov 4, 2026
124 of 129 checks passed
@anle2024
anle2024 deleted the anle/security-1.0.1-20261103 branch November 4, 2026 17:35
@anle2024

anle2024 commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator Author

@Vedaant-J Following up on your comment: I discussed this with Zack. We can defer the reported medium-severity RustSec findings for this 1.0.1 patch release and keep them as follow-up work. Trivy reported zero findings for the tested candidate.

He also confirmed that this release is scoped to the kumo-engine Python wheel. #38 and #83 target backend image builds, so we will leave their backend image changes out of this release.

This branch was previously deployed

1 inactive deployment
gha-kumo-workflow-tests — 386c816c Deployed Nov 4, 2026 by anle2024 via import #1444
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants