Skip to content

Commit d944b92

Browse files
authored
fix(scripts/ironbank): update base image to UBI9 and remove urllib3 (CVE-2026-44431) (#25249)
## Summary Update the IronBank Dockerfile to use UBI9 (9.6) instead of UBI8 (8.7) and explicitly remove `python3-urllib3` to address CVE-2026-44431. ### Changes - **Dockerfile**: Upgrade base image from `ubi8-minimal:8.7` to `ubi9-minimal:9.6` - **Dockerfile**: Add `microdnf remove python3-urllib3` step after package install - **build_ironbank.sh**: Update local build args to match the new UBI9 base image ### Context urllib3 1.26.5 is bundled in the UBI base image. Coder is a Go binary and does not invoke Python at runtime, so this library is unused. The removal step is a belt-and-suspenders safeguard in case UBI9 still ships the package. Fixes: ENT-52 > [!NOTE] > This PR was generated by [Coder Agents](https://coder.com/docs/agents).
1 parent 315e800 commit d944b92

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

scripts/ironbank/Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ARG BASE_REGISTRY=registry1.dso.mil
2-
ARG BASE_IMAGE=ironbank/redhat/ubi/ubi8-minimal
3-
ARG BASE_TAG=8.7
2+
ARG BASE_IMAGE=ironbank/redhat/ubi/ubi9-minimal
3+
ARG BASE_TAG=9.6
44

55
FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG}
66

@@ -16,6 +16,9 @@ RUN microdnf update --assumeyes && \
1616
shadow-utils \
1717
tar \
1818
unzip && \
19+
# Remove python3-urllib3 if present to address CVE-2026-44431.
20+
# Coder is a Go binary and does not use Python at runtime.
21+
microdnf remove --assumeyes python3-urllib3 2>/dev/null || true && \
1922
microdnf clean all
2023

2124
# Configure the cryptography policy manually. These policies likely

scripts/ironbank/build_ironbank.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ fi
9696
pushd "$tmpdir"
9797
docker build \
9898
--build-arg BASE_REGISTRY=registry.access.redhat.com \
99-
--build-arg BASE_IMAGE=ubi8/ubi-minimal \
100-
--build-arg BASE_TAG=8.7 \
99+
--build-arg BASE_IMAGE=ubi9/ubi-minimal \
100+
--build-arg BASE_TAG=9.6 \
101101
--build-arg TERRAFORM_CODER_PROVIDER_VERSION="$terraform_coder_provider_version" \
102102
-t "$image_tag" \
103103
. >&2

0 commit comments

Comments
 (0)