Strip build-time Python tooling from production image - #289
Merged
Conversation
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
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
approved these changes
Jun 18, 2026
taoteg
left a comment
Contributor
There was a problem hiding this comment.
Looks great! We should replicate this practice in allourimage build pipelines, but that is a discussion for another day. LGTM! (visual review only)
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.
Overview:
This fixes some CVEs in image scans:
Added a note about the viewer to https://tacc-main.atlassian.net/browse/WG-38
Related Jira tickets:
None