Repository navigation
fix: upgrade Debian packages in the gateway image - #504
Merged
guanzhousongmicrosoft merged 1 commit intoNov 10, 2026
Conversation
guanzhousongmicrosoft
requested review from
WentingWu666666,
alaye-ms,
hossain-rayhan and
xgerman
as code owners
November 10, 2026 03:25
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the gateway image change to pick up available Debian security fixes.
No open issues 🎉
What changed in this PR
Updates the gateway image build to apply Debian package fixes that may not yet be included in the debian:trixie-slim base image.
Changes:
- Runs
apt-get upgradebefore installing gateway dependencies. - Adds a comment explaining why the package upgrade is needed.
| File | Description |
|---|---|
.github/dockerfiles/Dockerfile_gateway_public_image |
Upgrades installed Debian packages to pick up available security fixes. |
Review effort: Balanced
debian:trixie-slim still ships zlib1g with two fixable HIGH CVEs (CVE-2026-76844, CVE-2026-85091), and installing packages on top does not pull the fix. Signed-off-by: Guanzhou Song <[email protected]>
guanzhousongmicrosoft
force-pushed
the
developer/gateway-image-upgrade-packages
branch
from
November 10, 2026 14:56
3c98fd9 to
5ef197c
Compare
WentingWu666666
approved these changes
Nov 10, 2026
xgerman
approved these changes
Nov 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The published gateway image is built on
debian:trixie-slim, which still shipszlib1g 1:1.3.dfsg+really1.3.1-1+b1with two fixable HIGH CVEs (CVE-2026-76844, CVE-2026-85091). The Dockerfile only installs packages, sodocker build --pulldoesn't pick up the fix: a gateway built frommaintoday againstdocumentdb-local:pg17-1.0.0still scans with both.With
apt-get upgrade, the same build moveszlib1gfrom…-1+b1to…-1+deb13u1and trivy reports 0 fixable HIGH/CRITICAL, checked on amd64 and arm64.Plan after this merges
The engine stays at 1.0.0 (extension
1.0-0); only the images are rebuilt on patched Debian.mainwithversion=1.0.0. The extension and combined images come out clean without a change; the gateway needs this PR, which is why it has to land first.documentdb:1.0.1,gateway:1.0.1anddocumentdb-combined:18-1.0.1, withupdate_defaults=false. The1.0.0tags are not touched: the pull policy isIfNotPresent, so nodes that cached1.0.0would never fetch a new digest, and the fix needs a new tag.documentDbVersion=1.0.1. Pods roll onto the new images with no schema step.For maintainers to decide afterwards: a 1.1.2 that makes
1.0.1the default, and a patched PostgreSQL image for ImageVolume clusters, since the CNPG default18.3-system-trixiecarries the same two zlib CVEs.