Repository navigation
Backport security fixes for Kumo Engine 1.0.1 - #190
Conversation
## 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)
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
Change mapReleased 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.
|
|
/ok to test 386c816 |
|
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 |
|
@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. |
Summary
Backport the dependency security fixes to
releases/v1.0and 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
0ead83aa11d84b595b5ae3da28995665ff04a7db263a5b5af436c02d34232f12.disk_manager::tests::test_eviction_under_real_disk_pressurefails on this machine's SSD and passes on tmpfs. All eight frozen-index checks also passed on x86_64.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 on7d65608b8b697d3865dbbaacc1bc1f26b7760a2a.