Skip to content

Ruigao/security update jan 2026#151

Merged
hippogr merged 44 commits into
devfrom
ruigao/security_update_jan_2026
Mar 31, 2026
Merged

Ruigao/security update jan 2026#151
hippogr merged 44 commits into
devfrom
ruigao/security_update_jan_2026

Conversation

@hippogr
Copy link
Copy Markdown
Contributor

@hippogr hippogr commented Feb 25, 2026

Security Update for all the container images including the ubuntu update and other package update for node.js and Python

Copy link
Copy Markdown
Contributor

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 pull request implements a comprehensive security update across all container images in the repository, including Ubuntu updates, Go version updates, Node.js package updates (lodash, qs, diff), and Python package updates. The changes involve updating base images, upgrading dependencies, and adding proper image pull policies to Kubernetes deployment configurations.

Changes:

  • Updated Go versions across multiple Dockerfiles (targeting 1.24.x)
  • Updated Node.js dependencies (lodash to 4.17.23, qs to 6.14.1, diff to 8.0.3)
  • Replaced custom nginx builds with official nginx:1.29.4 base image
  • Added imagePullPolicy: Always to Kubernetes deployments
  • Replaced patch files with inline go mod edits for better maintainability
  • Updated various tools (nerdctl, docker, frp) to newer versions
  • Added proper apt cache cleanup in several Dockerfiles

Reviewed changes

Copilot reviewed 27 out of 31 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
src/webportal-dind/build/webportal-dind.common.dockerfile Added multi-stage build for runc, updated Docker version, improved cleanup
src/webportal-dind/build/install.sh Updated Docker version to 29.2.0, removed buildx/compose, improved cleanup
src/watchdog/build/watchdog.common.dockerfile Updated Go to 1.24.13-alpine3.22 and Alpine to 3.22
src/rest-server/yarn.lock, package.json Updated lodash, qs, and diff dependencies
src/pylon/build/reverseproxy.common.dockerfile Replaced binary download with building frp from source
src/pylon/build/pylon.common.dockerfile Replaced custom nginx build with official nginx:1.29.4 image
src/postgresql/build/postgresql.k8s.dockerfile Added multi-stage build for gosu binary
src/model-proxy/build/model-proxy.common.dockerfile Updated Go version to 1.25.7
src/job-exporter/build/job-exporter.common.dockerfile Updated nerdctl to 2.2.1
src/hivedscheduler/deploy/hivedscheduler.yaml.template Added imagePullPolicy: Always
src/hivedscheduler/build/kube-scheduler.k8s.dockerfile Updated kube-scheduler to v1.35.0
src/hivedscheduler/build/hivedscheduler.k8s.dockerfile Updated Go to 1.24.13-alpine3.22 and Alpine to 3.22
src/frameworkcontroller/build/frameworkcontroller.common.dockerfile Updated Go to 1.24.13-alpine3.22 and Alpine to 3.22
src/frameworkcontroller/build/frameworkbarrier.common.dockerfile Updated Go to 1.24.11-alpine3.21 (inconsistent with other files)
src/device-plugin/deploy/start.sh.template Added imagePullPolicy modifications
src/device-plugin/deploy/device-plugin.yaml.template Added imagePullPolicy: Always
src/device-plugin/build/k8s-rocm-device-plugin.k8s.dockerfile Updated Go to 1.24.12-alpine, replaced patch with inline mod edits
src/device-plugin/build/k8s-rocm-device-plugin-patches/0001-*.patch Removed patch file (replaced with inline edits)
src/device-plugin/build/k8s-rdma-shared-dev-plugin.k8s.dockerfile Updated Go to 1.24.13-alpine, added inline mod edits
src/device-plugin/build/k8s-nvidia-device-plugin.k8s.dockerfile Replaced base image with multi-stage build using golang:1.25.6
src/device-plugin/build/k8s-host-device-plugin.k8s.dockerfile Updated Go to 1.24.13, replaced patch with inline mod edits
src/device-plugin/build/k8s-host-device-plugin-patches/0001-*.patch Removed patch file (replaced with inline edits)
src/database-controller/src/yarn.lock, package.json Updated lodash and qs dependencies
src/copilot-chat/build/copilot-chat.common.dockerfile Added pip upgrade command
src/alert-manager/src/job-status-change-notification/yarn.lock, package.json Updated lodash and qs dependencies
src/alert-manager/src/alert-handler/yarn.lock, package.json Updated lodash and qs dependencies
src/alert-manager/build/redis-monitoring.common.dockerfile Added multi-stage build for gosu binary
Comments suppressed due to low confidence (1)

src/frameworkcontroller/build/frameworkbarrier.common.dockerfile:36

  • Inconsistent Alpine base image version. The builder stage uses alpine3.21 but other similar files use alpine3.22. The runtime stage (line 36) also uses alpine:3.21. Both should be updated to alpine:3.22 for consistency with the frameworkcontroller.common.dockerfile and to ensure the latest security updates.
FROM golang:1.24.11-alpine3.21 as builder

ENV GOPATH=/go
ENV PROJECT_DIR=/src
ENV INSTALL_DIR=/opt/frameworkcontroller/frameworkbarrier

RUN apk update && apk add --no-cache bash && \
  mkdir -p ${PROJECT_DIR} ${INSTALL_DIR}
COPY src ${PROJECT_DIR}
RUN ${PROJECT_DIR}/build/frameworkbarrier/go-build.sh && \
  mv ${PROJECT_DIR}/dist/frameworkbarrier/* ${INSTALL_DIR}


FROM alpine:3.21

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/webportal-dind/build/webportal-dind.common.dockerfile
Comment thread src/device-plugin/build/k8s-host-device-plugin.k8s.dockerfile Outdated
Comment thread src/pylon/build/reverseproxy.common.dockerfile
Comment thread src/device-plugin/build/k8s-rdma-shared-dev-plugin.k8s.dockerfile Outdated
Comment thread src/device-plugin/build/k8s-host-device-plugin.k8s.dockerfile Outdated
Comment thread src/frameworkcontroller/build/frameworkbarrier.common.dockerfile
Comment thread src/webportal-dind/build/webportal-dind.common.dockerfile
Comment thread src/pylon/build/reverseproxy.common.dockerfile
Rui Gao and others added 26 commits March 31, 2026 02:47
* use node slim to replace the original node image

* remove the dev depenedencies for alert-handler

* use node slim for job-status-change-notification

* use node slim for database controller

* use node slim for rest server

* update the dockefile for webportal to decrease the image size

* remove the apt update part in webportal

* fix the building errors in rest server

* fix the building errors in rest server

* remove the dev dependencies for rest server

* fix build error for job-status-change-notification

* add code to setup env for rest-server

* use node slim docker image for webportal

* remove the node_modules at /usr/local/lib

* update NPM package for rest-server

* update the package axios and minimatch for alert-handler

* update node.js package version for job-status-change-notification

* update node.js package version for rest-server

* update node.js package qs to 6.14.2 for alert-handler, job-status-notification, database-controller and rest-server

---------

Co-authored-by: Rui Gao <ruigao@microsoft.com>
@hippogr hippogr force-pushed the ruigao/security_update_jan_2026 branch from 540ab1a to 9a4f0a7 Compare March 31, 2026 03:10
@hippogr hippogr merged commit f219241 into dev Mar 31, 2026
1 of 2 checks passed
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.

3 participants