Repository navigation
Conversation
The Debian mirror no longer serves the pinned arm64 zlib1g package, so managed image builds stop before agent startup. Fetch both architectures from the trixie release snapshot. The packages match the existing hashes; the backport and ABI checks stay unchanged. Refs #14465. Signed-off-by: Deepak Jain <deepujain@gmail.com>
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Authoring session — opening
|
Code coverage overviewLanguages: TypeScript TypeScript / code-coverage/plugin
View coverage of the 10 most impacted files.
TypeScript / code-coverage/cli
View coverage of the 10 most impacted files.
ℹ️ Calculations represent line coverage. Results may change as calculations are updated. Updated |
Use the amd64 and arm64 image digests published together for the updated zlib input. Refs #14465 Signed-off-by: Deepak Jain <deepujain@gmail.com>
Check both architecture pins. Reject a bad digest, name, or version before unpacking the original package or writing an output. Signed-off-by: Deepak Jain <deepujain@gmail.com>
|
PR Review Advisor finished for commit Request review only when Require no Advisor blockers is green. |
|
I ran the same native security build for Linux arm64 on the base revision and the PR revision, both in Docker on the same Linux VM. I checked whether it produced the patched Debian package that managed sandbox images need. Before (base of this PR): The build stopped while downloading the pinned zlib package and printed “curl: (22) The requested URL returned error: 404”. After (this PR): The build fetched the package from the Debian snapshot and printed “dpkg-deb: building package 'zlib1g'”. It completed and the resulting arm64 package reported version “1:1.3.dfsg+really1.3.1-1+b1+nemoclaw1”. |
|
Hi @prekshivyas @senthilr-nv, this PR is ready for review and every check passes on |
Outcome
The arm64 native-security builder can produce
zlib1gagain. The Debian mirror returned HTTP 404 for the pinned arm64 package, so managed image builds stopped before agent startup. The amd64 download still worked.Reason
The builder compares its patched library with Debian’s original binary to check that applications can still load it. Debian’s August 10, 2025 trixie snapshot retains the original packages for both architectures.
Related issues
Refs #14465, whose managed image builds depend on this package. Hermes backup and restore are unchanged.
Changes
Fetch the original
zlib1gpackages from the snapshot. The package version, architecture-specific checksums, write-error backport, and ABI checks stay the same. The Pi qualification receipts and their expected hashes now identify the images built with this download location.Verification
Both snapshot downloads matched the repository pins and the package indexes authenticated by Debian’s signed release. A cold
docker buildx build --no-cache --platform linux/arm64 --target native-security-builder -f Dockerfile.base .passed the write-error and ABI checks and produced the arm64 package. The managed-image build published Pi sandbox images for bothlinux/amd64andlinux/arm64. Both committed receipts match the published contracts byte for byte. The committed pair records source8f35784f7and cohortghrun-45954843884-1. The managed-image build for PR commit57bcbfb428produced separate amd64 and arm64 contracts for cohortghrun-46096864250-1.An offline test runs the builder for amd64 and arm64 and checks that it unpacks the same snapshot package it verified. On arm64, the builder stopped before unpacking or producing a package when the fixture supplied the wrong checksum, package name, or version. The amd64 stage and managed-agent startup were not run locally. The diff contains no secrets.
Review notes
An independent read-only review of
scripts/security/build-native-security-packages.shinNVIDIA/NemoClawat8f35784f795552c3f44579448f667284610e6885checked the image callers, Debian package provenance, existing hashes, and build evidence. A second independent review at2f37f66067a5b7f0dd1ce6a11e9c116f0027bdaechecked the complete diff, including the builder, both receipts and their expected hashes. Neither review found a code blocker. The builder change does not add a zlib security patch. Human security review is pending.Signed-off-by: Deepak Jain deepujain@gmail.com
Summary by CodeRabbit