diff --git a/scripts/ironbank/Dockerfile b/scripts/ironbank/Dockerfile index 8aa0a9eac8..97c710fc7e 100644 --- a/scripts/ironbank/Dockerfile +++ b/scripts/ironbank/Dockerfile @@ -1,6 +1,6 @@ ARG BASE_REGISTRY=registry1.dso.mil -ARG BASE_IMAGE=ironbank/redhat/ubi/ubi8-minimal -ARG BASE_TAG=8.7 +ARG BASE_IMAGE=ironbank/redhat/ubi/ubi9-minimal +ARG BASE_TAG=9.6 FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG} @@ -16,6 +16,9 @@ RUN microdnf update --assumeyes && \ shadow-utils \ tar \ unzip && \ + # Remove python3-urllib3 if present to address CVE-2026-44431. + # Coder is a Go binary and does not use Python at runtime. + microdnf remove --assumeyes python3-urllib3 2>/dev/null || true && \ microdnf clean all # Configure the cryptography policy manually. These policies likely diff --git a/scripts/ironbank/build_ironbank.sh b/scripts/ironbank/build_ironbank.sh index 8af8431d93..902c9d1dbc 100755 --- a/scripts/ironbank/build_ironbank.sh +++ b/scripts/ironbank/build_ironbank.sh @@ -96,8 +96,8 @@ fi pushd "$tmpdir" docker build \ --build-arg BASE_REGISTRY=registry.access.redhat.com \ - --build-arg BASE_IMAGE=ubi8/ubi-minimal \ - --build-arg BASE_TAG=8.7 \ + --build-arg BASE_IMAGE=ubi9/ubi-minimal \ + --build-arg BASE_TAG=9.6 \ --build-arg TERRAFORM_CODER_PROVIDER_VERSION="$terraform_coder_provider_version" \ -t "$image_tag" \ . >&2