Skip to content

Fix backend image dependency security findings - #79

Closed
anle2024 wants to merge 1 commit into
NVIDIA:mainfrom
anle2024:anle/santander-engine-image-security-20261021
Closed

anle2024 wants to merge 1 commit into
NVIDIA:mainfrom
anle2024:anle/santander-engine-image-security-20261021

Conversation

@anle2024

@anle2024 anle2024 commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Fix the reported Pillow, aiohttp, and Rust ZIP findings in the backend images. Also update Certifi to remove the compromised emSign trust root found by the fresh scan.

Use Pillow 13.0.0, aiohttp 3.14.5, and Certifi 2026.10.19. Rebuild the locked Temporal 1.33.0 SDK with ZIP 9.0.1, frozen Rust dependencies, checked source provenance, and the added license text. Keep the existing engine image workflow and extend its input checks.

Change map

Maintained change map.

Testing

The engine branch passes all 13 Docker tests, the offline lock check, license header and Python license checks, and the third-party notice check.

Fresh ARM64 CPU and GPU images built from this engine branch. Both pass runtime checks and full Trivy 0.72.0 vulnerability and secret scans, with no target findings, no fixable High/Critical findings, and no secrets. The installed Temporal native bridge contains ZIP 9.0.1. All 14 focused Temporal payload and compression tests pass inside the CPU image.

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

A real financial-fixture training job, trainingjob-041ae6c4e89e4a02bcae8827ba7204b6, completed on the exact scanned engine CPU image. It used 10,182 source rows, one CPU epoch, and 10 steps. All ingestion stages passed without warnings or errors, both foreign-key edges matched completely, and the SDK read 320 finite holdout predictions. The saved checkpoint loaded with 94 finite floating-point tensors and 1,940,885 parameters. Both independent code reviews found no unresolved blockers or regressions.

Fifty cloud CI jobs stop before tests at AWS credential setup. The same failure appears on an earlier unrelated PR. These tests remain unverified; their failures are not evidence of a dependency regression.

This host has no NVIDIA GPU. CUDA execution and AMD64 image builds are not verified locally. GPU PyTorch and Faiss imports pass, but that is not a GPU training test. No release image has been published. This PR remains a draft for human review. 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 had a problem deploying to gha-kumo-workflow-tests October 21, 2026 19:49 — with GitHub Actions Failure
@coderabbitai

coderabbitai Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Configuration used: Repository: NVIDIA/kumo-engine/.coderabbit.yaml
  • Review profile: QUIET
  • Plan: Enterprise
  • Run ID: 79a45bc8-5e64-481d-9fd3-94b05d3ba030
📥 Commits

Reviewing files that changed from the base of the PR and between 392c25e and b5cf6f8.

⛔ 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
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@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

@anle2024
anle2024 marked this pull request as ready for review October 21, 2026 20:21
@anle2024

Copy link
Copy Markdown
Collaborator Author

Replaced by #83, which uses a branch inside NVIDIA/kumo-engine based on current main. The eight-file security patch is unchanged. Prior validation and discussion remain here for reference. No merge was performed.

@anle2024 anle2024 closed this Oct 21, 2026
anle2024 added a commit that referenced this pull request Oct 21, 2026
## 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](#83 (comment)).

## 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.

This branch had an error being deployed

1 failed deployment
gha-kumo-workflow-tests — b5cf6f8f Deployed Oct 21, 2026 by anle2024 via import #363
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.

1 participant