Skip to content

fix(console): upgrade Debian packages in the runtime image - #15491

Merged
ChiragAgg5k merged 1 commit into
mainfrom
fix-console-image-packages
Nov 11, 2026
Merged

ChiragAgg5k merged 1 commit into
mainfrom
fix-console-image-packages

Conversation

@ChiragAgg5k

@ChiragAgg5k ChiragAgg5k commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

The console runtime stage is oven/bun:1.4, which trails Debian 13 security updates. Every appwrite/new tag, including the newest 1.2.174-self-hosted, ships these HIGH findings (Trivy, --ignore-unfixed):

Package Installed Fixed CVE
zlib1g 1:1.3.dfsg+really1.3.1-1+b1 1:1.3.dfsg+really1.3.1-1+deb13u1 CVE-2026-76844, CVE-2026-85091
apt, libapt-pkg7.0 3.0.3 3.0.4 CVE-2026-109518

Running apt-get upgrade -y in the final stage pulls all three from stable-security (checked with apt list --upgradable on the current oven/bun:1.4 digest). They show up as open alerts on appwrite/helm-chart (trivy-image-console, 4 alerts).

Self-hosters get the fix after the next apps/console/<version> tag and the appwrite/new pin bump in docker-compose.yml.

Related: appwrite-labs/cloud#6671

oven/bun:1.4 trails Debian security updates, so every console image ships zlib1g and apt versions Trivy flags as HIGH (CVE-2026-76844, CVE-2026-85091, CVE-2026-109518).
@luxor-code-review

luxor-code-review Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Review complete. No blocking issues — approved ✅; 1 nitpick below.

🧹 Nitpicks (1) — 🟢 1 low
  • 🟢 Clean /var/cache/apt after apt-get upgrade (Dockerfile:56) — The PR's apt-get upgrade -y downloads many .deb archives into /var/cache/apt/archives/, but the cleanup at apps/console/Dockerfile:59 only removes /var/lib/apt/lists/*.

The change patches apps/console/Dockerfile so the build refreshes Debian packages before the Bun install, patching a base image that lags upstream. The existing apt-lists cleanup line stays in place and the surrounding build steps are untouched.

Files Change
apps/console/Dockerfile Inserts apt-get upgrade -y alongside the existing install-and-cleanup RUN chain so the final image carries OS security fixes.

Reviewed commit: 41b8e41

@appwrite

appwrite Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

New Console

Project ID: new-console

Sites (1)
Site Status Logs Preview QR
 New Console
new-console
Ready Ready View Logs Preview URL QR Code

Tip

Environment variable changes require redeployment to take effect

@appwrite

appwrite Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

🟢 Tier S · Ready to merge

The Console runtime image now upgrades the Debian packages available from its configured repositories before installing the font dependencies. This refreshes the runtime package set while retaining the existing font setup for Sharp SVG export.

Verdict New comments Fixed Still open
✅ Approved 0 0 0
📂 Walkthrough · 1
File Change
apps/console/Dockerfile Upgrade Debian packages in the final runtime stage before installing fontconfig and fonts.

Reviewed 41b8e41 · Details · Comment @appwrite review to re-run, or mention @appwrite with a question.

@appwrite appwrite Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Tier S · Looks good to merge. Summary

@ChiragAgg5k
ChiragAgg5k merged commit 4a236f6 into main Nov 11, 2026
38 checks passed
@ChiragAgg5k
ChiragAgg5k deleted the fix-console-image-packages branch November 11, 2026 14:13
@ChiragAgg5k ChiragAgg5k self-assigned this Nov 12, 2026
ChiragAgg5k added a commit that referenced this pull request Nov 12, 2026
fix(console): upgrade Debian packages in the runtime image

(cherry picked from commit 4a236f6)
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