Skip to content

fedramp(image): apt-get upgrade in Dockerfile (EOL base; rebase tracked separately) - #3

Open
geekshiv-spotdraft wants to merge 1 commit into
masterfrom
fedramp-2026
Open

fedramp(image): apt-get upgrade in Dockerfile (EOL base; rebase tracked separately)#3
geekshiv-spotdraft wants to merge 1 commit into
masterfrom
fedramp-2026

Conversation

@geekshiv-spotdraft

@geekshiv-spotdraft geekshiv-spotdraft commented Jun 8, 2026

Copy link
Copy Markdown

User description

Summary

Adds `apt-get upgrade -y` to the existing apt RUN line so any remaining Debian security backports available for the `node:12` base (Debian 9 stretch) get applied at build time.

Important caveat

`node:12` and Debian 9 stretch are both EOL upstream. `apt-get upgrade` only applies what's still mirrored on the archive / security repos. The proper fix is a base-image rebase to:

  • Node 20 (or 22 LTS)
  • Debian 12 bookworm (or Ubuntu 24.04)
  • chrome-headless variant built on the new base

That is a behaviour-changing migration tracked separately under the chrome-print rebase epic and is intentionally out of scope for this 0-breaking-risk PR.

Findings only fully cleared by the rebase

The CISA-KEV `libfreetype6` CVE and the large libwebp / imagemagick stack from the scan all require the base-image rebase. This PR is a partial hardening only.

Test plan

  • `docker build .` succeeds (existing CI).
  • chrome-print still renders test PDFs.

Made with Cursor


Generated description

Below is a concise technical summary of the changes proposed in this PR:
Apply Debian security backports during the Docker build by running apt-get update followed by apt-get upgrade before installing libnss3 and libfontconfig for the chrome-headless build. Preserve the existing Chrome dependency copy from the yukinying/chrome-headless base for the node:12 image.

Latest Contributors(2)
UserCommitDate
shivanshu@spotdraft.comfedramp(image): apt-ge...June 08, 2026
madhav89@gmail.comAdd checks for file ur...July 28, 2020
Review this PR on Baz | Customize your next review

Adds 'apt-get upgrade -y' alongside the existing apt RUN line so any
remaining Debian security backports available for the node:12 base
(Debian 9 stretch) get applied at build time.

NOTE: node:12 + Debian 9 stretch are both EOL upstream. apt-get
upgrade will only apply patches that are still mirrored on the
archive / security repos. The proper fix is a base-image rebase
(node 20 + Debian 12, plus chrome-headless on Debian 12) - that is
a major behaviour change tracked separately under the chrome-print
rebase epic and is intentionally out of scope for this PR.
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