Skip to content

Strip build-time Python tooling from production image - #289

Merged
nathanfranklin merged 3 commits into
mainfrom
fix/improve-packages-in-image
Jun 18, 2026
Merged

Strip build-time Python tooling from production image#289
nathanfranklin merged 3 commits into
mainfrom
fix/improve-packages-in-image

Conversation

@nathanfranklin

@nathanfranklin nathanfranklin commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

Overview:

This fixes some CVEs in image scans:

  • Poetry and its bundled pip/virtualenv live in the runtime image but aren't used at runtime, and were flagging CVEs in image scans (RT #40702). Remove $POETRY_HOME and upgrade the app venv's pip
  • Bump bundled jquery-ui to 1.13.2 in Potree viewer template](73a728e)

Added a note about the viewer to https://tacc-main.atlassian.net/browse/WG-38

Related Jira tickets:

None

Poetry and its bundled pip/virtualenv/dulwich live in the runtime image but
aren't used at runtime, and were flagging CVEs in image scans (RT #40702).
Remove $POETRY_HOME and upgrade the app venv's pip
@nathanfranklin
nathanfranklin requested a review from taoteg June 17, 2026 19:33
PotreeConverter ships jquery-ui 1.12.1 in its viewer page template, which
flags CVE-2021-41182/41183/41184 and CVE-2022-31160 (datepicker/checkboxradio/
.position() XSS) in image scans (RT #40702). Replace the bundled js/css with
1.13.2 during the worker build and bump package.json so the version matches.

@taoteg taoteg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks great! We should replicate this practice in allourimage build pipelines, but that is a discussion for another day. LGTM! (visual review only)

@nathanfranklin
nathanfranklin merged commit de65bfa into main Jun 18, 2026
3 checks passed
@nathanfranklin
nathanfranklin deleted the fix/improve-packages-in-image branch June 18, 2026 16:45
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.

2 participants