Skip to content

Conversation

@lunika
Copy link
Member

@lunika lunika commented May 16, 2025

Purpose

Several CVE related to libxml2 have been published. To fix them, we need to user images based on alpine 3.21 and upgrade the dependencies.
We also upgrade node and python to a newer version.

Proposal

  • ⬆️(docker) upgrade node images to alpine 3.21
  • ⬆️(docker) upgrade backend image to python 3.13
@lunika lunika requested review from AntoLC and Copilot May 16, 2025 08:30
@lunika lunika self-assigned this May 16, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR upgrades docker images to address recent CVE issues by moving to Alpine 3.21 for Node-based images and updating the backend image to Python 3.13. Key changes include:

  • Switching Node base images from version 20 to 24 (using Alpine 3.21) in frontend Dockerfiles
  • Upgrading the backend Python image from 3.12.6-alpine3.20 to 3.13.3-alpine
  • Adjusting a test expectation for attachment upload to match new standards

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/frontend/servers/y-provider/Dockerfile Updated Node image base and added system package upgrades
src/frontend/Dockerfile Upgraded Node image and NGINX image; added upgrade commands with a note for future cleanup
src/backend/core/tests/documents/test_api_documents_attachment_upload.py Modified assertion for file ContentType
Dockerfile Upgraded Python image base to Python 3.13
CHANGELOG.md Documented the docker images upgrade changes
Comments suppressed due to low confidence (1)

src/backend/core/tests/documents/test_api_documents_attachment_upload.py:413

  • Please verify that the updated expected ContentType 'application/x-dosexec' aligns with the intended behavior and security requirements.
assert file_head["ContentType"] == "application/x-dosexec" 
@lunika lunika force-pushed the python3.13 branch 3 times, most recently from 5b0999d to 9651829 Compare May 16, 2025 11:47
Copy link
Collaborator

@AntoLC AntoLC left a comment

Choose a reason for hiding this comment

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

Nice thank you

lunika added 2 commits May 16, 2025 15:55
Python 3.13 is now stable, our libraries are compatible with it. We also upgrade the alpine version used in order to fix CVE related to libxml2
We need to upgrade our images to alpine 3.21 in order to fix a CVE related to libxml2. We also upgrade node to version 24
@lunika lunika merged commit 9d3dfb6 into main May 16, 2025
25 of 27 checks passed
@lunika lunika deleted the python3.13 branch May 16, 2025 14:23
@AntoLC AntoLC mentioned this pull request May 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants