Skip to content

Fix backend image dependency security findings - #83

Merged
anle2024 merged 1 commit into
mainfrom
anle/backend-image-security-20261021
Oct 21, 2026
Merged

anle2024 merged 1 commit into
mainfrom
anle/backend-image-security-20261021

Conversation

@anle2024

@anle2024 anle2024 commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Replaces #79 with a branch inside NVIDIA/kumo-engine, based on current main, so CI can run with same-repository permissions. The eight-file security patch is unchanged from b5cf6f8f in #79.

Fix the reported backend-image findings with Pillow 13.0.0, aiohttp 3.14.5, and Rust ZIP 9.0.1. Also update Certifi to 2026.10.19 to remove the compromised emSign trust root found by the fresh scan.

The ZIP fix rebuilds the locked Temporal 1.33.0 SDK with the fixed native library. The build checks the source checksum, frozen Rust dependencies, runtime version, bridge import, and added license text. No application logic is added.

Change map

Maintained change map.

Testing

The new branch passes all 13 Docker tests and the offline lock check. The security files match the previously validated candidate exactly. The newer base commit only changes the GPU CI gate and its documentation.

Recorded local validation of that identical security patch:

  • ARM64 CPU and GPU images built successfully. Full Trivy 0.72.0 vulnerability and secret scans found no target findings, no fixable High/Critical findings, and no secrets. Both native Temporal bridges contain ZIP 9.0.1.
  • Runtime checks pass in both images. All 14 focused Temporal payload and compression tests pass in the CPU image.
  • Real CPU training job trainingjob-041ae6c4e89e4a02bcae8827ba7204b6 completed on the exact scanned CPU image: 10,182 source rows, one epoch, ten steps, and 320 finite holdout predictions. The saved model loaded with 94 finite floating-point tensors and 1,940,885 parameters.
  • Two independent agent reviews found no unresolved security or regression blockers in the unchanged patch.

Limits and CI

Both scans retain 14 Critical and 372 High findings against linux-libc-dev, with no listed fix. These are not zero-vulnerability images. Scans include all severities and unfixed findings, with no ignore file.

The local host has no NVIDIA GPU. Hardware-GPU execution and AMD64 image builds were not verified locally. Same-repository CI has started. AWS credential setup passed in both Databricks jobs, and the DiskGraph integration job reached its test step. Full results remain pending. The fork PR's cloud tests stopped at AWS credential setup before tests ran.

NVIDIA's own runners still require copy-pr-bot vetting. Hosted checks are running; no runner approval gate has been bypassed.

An early BigQuery ingestion job failed with IdentityValidationError: the deployment Google credential source is not an approved workload credential. CI is not fully green. Other tests are still running; this migration does not change credential policies.

No release image has been published. No merge or human review request has been made.

@copy-pr-bot

copy-pr-bot Bot commented Oct 21, 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 October 21, 2026 20:27 — with GitHub Actions Inactive
@anle2024

Copy link
Copy Markdown
Collaborator Author

Change map

The reported backend images contain Pillow 12.3.0, aiohttp 3.14.3, and Temporal 1.33.0 with Rust ZIP 8.6.0. A fresh scan also reports the compromised Certifi certificate trust root.

The smallest fix updates the three Python dependencies and rebuilds the locked Temporal SDK with ZIP 9.0.1. The SDK source checksum, Rust dependency patch, build tool version, runtime version, and added license files are checked during the build.

Focused verification covers image builds, full vulnerability and secret scans, runtime imports, HTTP and image round trips, Temporal payload tests, and a real financial-fixture training job. The stopping condition is no target findings, no fixable High/Critical findings, no secrets, readable training outputs, and no unresolved blocking review findings. Unfixed operating-system findings and untested hardware remain explicit limits. No optional refactoring is included.

File Function / scope What changed Why
.github/workflows/testing_arm_images.yml Image input detection Recognize the Temporal helper and Rust patch in the existing change matcher Run image checks when the backport changes
docker/Dockerfile.kumo_backend_cpu, docker/Dockerfile.kumo_backend_gpu Native builder and dependency installation Build and install the patched Temporal wheel, check the locked SDK version, and import its bridge Ship ZIP 9.0.1 in the compiled SDK and catch accidental SDK downgrades
docker/build_temporalio_wheel Temporary Temporal security backport Verify the 1.33.0 source, apply the fixed Rust lock, build with locked dependencies, and retain license text Upstream 1.33.0 and 1.34.0 wheels contain ZIP 8.6.0
docker/temporalio-zip.patch Generated Rust dependency lock delta Freeze ZIP 9.0.1 and nix 0.31.3, with a compatible getrandom edge Keep dependency resolution fixed across builds
pyproject.toml Dependency quarantine exceptions Admit the specified Pillow and Certifi security releases Make their fixes available before the normal seven-day delay ends
setup.py Runtime dependency requirements Set Pillow and aiohttp security floors and pin the fixed Certifi release Prevent resolution back to the reported vulnerable versions
uv.lock Generated Python dependency resolution Select Pillow 13.0.0, aiohttp 3.14.5, and Certifi 2026.10.19 Use the fixed packages in frozen CPU and CUDA exports

@coderabbitai

coderabbitai Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: NVIDIA/kumo-engine/.coderabbit.yaml
  • Review profile: QUIET
  • Plan: Enterprise
  • Run ID: e2b159d0-27fd-4ff0-91f0-047c0b203647
📥 Commits

Reviewing files that changed from the base of the PR and between bdb6294 and 584173f.

⛔ Files ignored due to path filters: 1
  • uv.lock is excluded by !**/*.lock, !**/*.lock
📒 Files selected for processing: 7
  • .github/workflows/testing_arm_images.yml
  • docker/Dockerfile.kumo_backend_cpu
  • docker/Dockerfile.kumo_backend_gpu
  • docker/build_temporalio_wheel
  • docker/temporalio-zip.patch
  • pyproject.toml
  • setup.py

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 10 remain after this review.

📝 Walkthrough

The CPU and GPU backend images now build and install a patched Temporal SDK wheel and validate its version and bridge import. The ARM image workflow also detects changes to the wheel build script and patch. Python dependency requirements and artifact cutoffs are updated for aiohttp, Pillow, and Certifi.

Priority: ➖ Normal

Merge Risk: ⚪ Minimal · up to 58417

No merge-blocking issue is established by the available evidence. The patched wheel follows the target image platform in the inspected build paths.

Pre-merge checks: Passed 2 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Change Map Design Review Inconclusive The required Change map is unavailable. Repository guidance requires one maintained PR conversation comment beginning with <!-- kumo-pr-change-map --> and says reviewers use it for rationale, observ… Provide the maintained PR conversation comment beginning with <!-- kumo-pr-change-map -->, then assess each row against the linked problem and the eight changed files.
Passed Passed checks: 2 passed
Check name Status Explanation
Pr Size Passed The pull request changes 8 files. This does not exceed the 40-file limit.
Public Resource Access Passed No changed external reference is inaccessible. The new Temporal source URL in docker/build_temporalio_wheel:17, the crates.io index in docker/temporalio-zip.patch:6, and the PyPI index returned HT…
Full details: Public Resource Access

Explanation

No changed external reference is inaccessible. The new Temporal source URL in docker/build_temporalio_wheel:17, the crates.io index in docker/temporalio-zip.patch:6, and the PyPI index returned HTTP 200 without credentials. All 229 added or modified uv.lock URLs for aiohttp, certifi, and pillow also returned successfully.

Full details: Change Map Design Review

Explanation

The required Change map is unavailable. Repository guidance requires one maintained PR conversation comment beginning with &lt;!-- kumo-pr-change-map --&gt; and says reviewers use it for rationale, observed failure or release requirement, existing behavior, smallest sufficient change, focused verification, and stopping condition. The supplied PR description instead states that the comment will be linked after creation, and repository search found only the checker, template, and guidance. The changed code alone cannot establish whether that proposed design contains the required evidence or misleading omissions.

Resolution

Provide the maintained PR conversation comment beginning with &lt;!-- kumo-pr-change-map --&gt;, then assess each row against the linked problem and the eight changed files.

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

Comment @coderabbitai help to get the list of available commands.

✨ Finishing Touches: 💡 1
🛠️ Fix failing CI checks: 💡
  • Commit to this branch
  • Create a new PR

@GraysonWu GraysonWu left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@anle2024

Copy link
Copy Markdown
Collaborator Author

/ok to test 584173f

@anle2024
anle2024 merged commit 46c9c4e into main Oct 21, 2026
124 of 127 checks passed
@anle2024
anle2024 deleted the anle/backend-image-security-20261021 branch October 21, 2026 22:46
anle2024 added a commit that referenced this pull request Nov 17, 2026
The temporalio 1.35.0 wheels on PyPI bundle the zip crate 9.1.2, which
contains the fix for CVE-2026-115905. So the images install the
upstream wheel and no longer rebuild the 1.33.0 bridge from source.

- setup.py raises the temporalio floor from 1.31 to 1.35. In uv.lock,
  only temporalio changes. nexus-rpc stays at 1.4.0.
- The CPU and GPU Dockerfiles no longer have the temporalio-builder
  stage and the wheel reinstall step.
- docker/build_temporalio_wheel and docker/temporalio-zip.patch are
  deleted. The ARM image workflow no longer lists them.

The Dockerfiles and the workflow now match their state before #83.
1.35.0 is the newest release outside the 7-day exclude-newer window.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

This branch was previously deployed

1 inactive deployment
gha-kumo-workflow-tests — 584173f5 Deployed Oct 21, 2026 by anle2024 via import #389
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.

3 participants