Repository navigation
fix(build): patch zlib and libexpat for the 1.7 GA - #1283
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: CodesWhat/drydock/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (7)
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe Dockerfile builds a patched Alpine zlib package and installs it in the runtime image using its exported signing key without network access. The package build runs upstream checks and a regression test for gzip input state after a failed write. Grype loads a VEX document that marks CVE-2026-85091 fixed for the specified package revision. The README documents the backport and the VEX statement's scope. Priority: ⬆️ High Change: Bug fix Merge Risk: ⚪ Minimal · up to The package, image, and scan configuration show no identified issue requiring a fix before merge. Architecture SummaryArchitecture risk: 🔵 Low · up to The change affects 2 systems. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@greptileai Review exact head |
|
| pkgver=1.3.2 | ||
| pkgrel=2026092401 | ||
| pkgdesc="A compression/decompression library (Drydock CVE-2026-85091 backport)" | ||
| arch="all" |
There was a problem hiding this comment.
Compiled library marked architecture-independent The APK contains a compiled
libz.so.1, but arch="all" says it can be installed on any architecture. The current build makes a separate APK for each platform, so this is not a failure in that build. It does mean APK metadata would not catch an AMD64 package accidentally reused on ARM64, or vice versa. Declare the supported architectures to retain that check.
Prompt To Fix With AI
This is a comment left during a code review.
Path: docker/zlib/APKBUILD
Line: 7
Comment:
**Compiled library marked architecture-independent** The APK contains a compiled `libz.so.1`, but `arch="all"` says it can be installed on any architecture. The current build makes a separate APK for each platform, so this is not a failure in that build. It does mean APK metadata would not catch an AMD64 package accidentally reused on ARM64, or vice versa. Declare the supported architectures to retain that check.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
There was a problem hiding this comment.
In APKBUILD, arch="all" means build on every supported architecture, not architecture-independent output. That is arch="noarch". Alpine itself uses arch="all" for zlib. Our scanned APK metadata is architecture-specific: aarch64 for ARM64 and x86_64 for AMD64. See the arch definition in https://github.com/alpinelinux/abuild/blob/master/APKBUILD.5.scd and https://github.com/alpinelinux/aports/blob/3.24-stable/main/zlib/APKBUILD.
There was a problem hiding this comment.
You're right — I conflated arch="all" with an architecture-independent (noarch) package. In Alpine APKBUILD, all means build for every supported architecture, while the resulting APK remains architecture-specific; the scanned aarch64 and x86_64 metadata confirms that here. Since this also matches Alpine's upstream zlib APKBUILD, the finding is invalid and no change is needed.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Forward-port of #1283: local zlib 1.3.2 APK with the upstream CVE-2026-85091 fix and its VEX evidence, and libexpat 2.8.5-r0 for CVE-2026-93990.
The published candidates contain vulnerable Alpine zlib and libexpat packages. This updates libexpat to 2.8.5-r0 and builds zlib 1.3.2 with upstream commit df84af25, the two-line fix the upstream maintainer confirmed resolves CVE-2026-85091. Application source and npm dependencies are unchanged.
The zlib APK keeps its upstream version and uses the unique local revision 2026092401. Source, patch and regression checksums are verified by abuild. Installation verifies the build's APK signature using a temporary read-only public-key mount, with no network access or permanent trust key. OpenVEX records the fix only for this exact APK revision and CVE; the original Alpine package remains a HIGH finding. Remove the backport and VEX when Alpine publishes the fix.
Validation: the failed-write-state regression failed against unpatched zlib, then passed with the upstream patch. Upstream static/shared/64-bit tests passed during both architecture builds. ARM64 and AMD64 application images built, passed the September 27 Grype HIGH/CRITICAL gate with the exact VEX evidence retained in ignored matches, and passed live startup, UI-serving, API, healthcheck and installed-package checks. The full normal pre-push gate passed, including configured app/UI coverage and builds.
This prepares the image security fix only. Release metadata and publication follow separately. The owner authorized immediate GA promotion after verification, using the existing recorded soak override rather than waiting another seven days.
Changelog
2026092401.--no-network.APKBUILD, upstream patch, checksums, and documentation for the temporary backport and its removal.gz_write./dev/full.2.8.5-r0. It also reports passing zlib regression checks, upstream tests, architecture builds, image checks, and the normal pre-push gate.Concerns or issues