From 236b3d32aef056819916ebef49c604a6bdab38c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ois=C3=ADn=20Kyne?= <4981644+OisinKyne@users.noreply.github.com> Date: Wed, 21 Oct 2026 15:00:51 +0100 Subject: [PATCH] *: bump Go to 1.27.3 and distrust emSign/AAA roots in the image (#4796) Go 1.27.3 includes the crypto/x509 fix for CVE-2026-111943. Set toolchain go1.27.3 and bump the builder, promrated and CodeQL images. Distrust emSign ECC Root CA - G3 and AAA Certificate Services in the runtime image's system store until Debian's ca-certificates drops them everywhere. category: bug ticket: none --- .github/workflows/codeql-analysis.yml | 2 +- Dockerfile | 7 ++++++- go.mod | 2 ++ testutil/promrated/Dockerfile | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 35f3a67f5..943ac4ebb 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -21,7 +21,7 @@ on: - cron: "18 19 * * 6" env: - GOLANG_VERSION: "1.26" + GOLANG_VERSION: "1.27.3" jobs: analyze: diff --git a/Dockerfile b/Dockerfile index c9cc3b819..b2c1a028a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Container for building Go binary. -FROM golang:1.26.6-trixie AS builder +FROM golang:1.27.3-trixie AS builder # Install dependencies RUN apt-get update && apt-get install -y --no-install-recommends build-essential git @@ -24,6 +24,11 @@ RUN echo "Built charon version=$(./charon version)" FROM debian:trixie-slim RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates fio wget \ && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* +# Distrust the emSign ECC Root CA - G3 and AAA Certificate Services roots in the +# system store (used by wget and other non-Go tools in the image) until Debian's +# ca-certificates drops them. Remove once the base image ships the update. +RUN sed -i -E 's#^(mozilla/(emSign_ECC_Root_CA_-_G3|Comodo_AAA_Services_root)\.crt)$#!\1#' /etc/ca-certificates.conf \ + && update-ca-certificates --fresh ARG GITHUB_SHA=local ENV GITHUB_SHA=${GITHUB_SHA} diff --git a/go.mod b/go.mod index c717d0f64..f9044b52c 100644 --- a/go.mod +++ b/go.mod @@ -2,6 +2,8 @@ module github.com/obolnetwork/charon go 1.26.0 +toolchain go1.27.3 + require ( github.com/OffchainLabs/go-bitfield v0.0.0-20251031151322-f427d04d8506 github.com/attestantio/go-builder-client v0.8.0 diff --git a/testutil/promrated/Dockerfile b/testutil/promrated/Dockerfile index b7029fff2..361867069 100644 --- a/testutil/promrated/Dockerfile +++ b/testutil/promrated/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.26.6-alpine AS builder +FROM golang:1.27.3-alpine AS builder # Install dependencies RUN apk add --no-cache build-base git