fix(frontend): upgrade base image to ubi9 to resolve python vulnerability#5380
Open
xnaveenx wants to merge 3 commits intolitmuschaos:masterfrom
Open
fix(frontend): upgrade base image to ubi9 to resolve python vulnerability#5380xnaveenx wants to merge 3 commits intolitmuschaos:masterfrom
xnaveenx wants to merge 3 commits intolitmuschaos:masterfrom
Conversation
ecd4000 to
80ee7ee
Compare
c33d8c9 to
e97b61b
Compare
Signed-off-by: xnaveen <naveen010210@gmail.com>
e97b61b to
b3287af
Compare
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.
Proposed changes
Fixes #5379
Fixes #5314
This PR upgrades the ChaosCenter frontend base image from UBI 8 (ubi-minimal:8.5) to UBI 9 (ubi-minimal:9.7).
Reason for change: The previous UBI 8 base image relied on Python 3.6, which has reached end-of-life and contains known security vulnerabilities. UBI 9 ships with Python 3.9, resolving these issues.
This PR also includes the necessary configuration adjustments (package installation and file permissions) to ensure Nginx runs correctly in the stricter UBI 9 environment.
Types of changes
What types of changes does your code introduce to Litmus? Put an
xin the boxes that applyChecklist
Put an
xin the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.Dependency
Special notes for your reviewer:
Detailed Changes & Rationales:
Base Image Upgrade:
FROM registry.access.redhat.com/ubi9/ubi-minimal:9.7Package Installation:
python3-pipto the install command.pipwas bundled withpython3. In UBI 9, they are separate packages. Without this,pip3 install pyyamlfails.Permission Fixes (Nginx Crash Resolution):
touch /run/nginx.pidchown/chmodfor/var/lib/nginxand/run/nginx.pid65534. Without explicitly granting ownership of the Nginx temp directories (/var/lib/nginx) and the PID file location, Nginx crashes immediately with "Permission Denied" errors.Verification Steps Performed:
Running (1/1)state.python3 --versionreturnsPython 3.9.x.8185and successfully loaded the Litmus Dashboard, confirming Nginx is serving static assets correctly.