Skip to content

Commit 53ec62e

Browse files
behzad-mirCopilot
andcommitted
fix: bump Go version to 1.26
Upgrade Go toolchain from 1.24 to 1.26 across all build configurations. Go 1.26 enforces FIPS-compliant system crypto for Microsoft compliance. Changes: - build/images.mk: GO_IMG 1.24 → 1.26-azurelinux3.0 - go.mod: go 1.24.1 → go 1.26 - install-go.sh: DEFAULT_IMAGE updated to Go 1.26 azurelinux3.0 SHA - bpf-prog/ipv6-hp-bpf/linux.Dockerfile: updated to Go 1.26 MCR SHA - npm/linux.Dockerfile, npm/windows.Dockerfile: 1.25.5 → 1.26 - .devcontainer/Dockerfile: VARIANT 1.24 → 1.26 - Regenerated all template Dockerfiles via make dockerfiles SHAs: - azurelinux3.0: sha256:eb3ce814e96f3319f1b5985021021682b47975f6decfe00eaac84abff0ae25c9 - MCR golang:1.26: sha256:6c27ae470941ef215b3eea86fcd6632a7ab975f391e5a75f546d3a76fd686705 Resolves #4365 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent d5e33a7 commit 53ec62e

28 files changed

Lines changed: 46 additions & 22 deletions

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG VARIANT="1.24"
1+
ARG VARIANT="1.26"
22
FROM mcr.microsoft.com/vscode/devcontainers/go:${VARIANT}
33
RUN apt-get update && \
44
export DEBIAN_FRONTEND=noninteractive && \

.pipelines/build/scripts/azure-ip-masq-merger.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ set -eux
55
FILE_EXT=''
66

77
export CGO_ENABLED=0
8+
export GOEXPERIMENT=systemcrypto
89

910
mkdir -p "$OUT_DIR"/bin
1011
mkdir -p "$OUT_DIR"/files

.pipelines/build/scripts/azure-ipam.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ set -eux
44
[[ $OS =~ windows ]] && FILE_EXT='.exe' || FILE_EXT=''
55

66
export CGO_ENABLED=0
7+
export GOEXPERIMENT=systemcrypto
78

89
mkdir -p "$OUT_DIR"/bin
910
mkdir -p "$OUT_DIR"/files

.pipelines/build/scripts/azure-iptables-monitor.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ set -eux
55
FILE_EXT=''
66

77
export CGO_ENABLED=0
8+
export GOEXPERIMENT=systemcrypto
89
export C_INCLUDE_PATH=/usr/include/bpf
910

1011
mkdir -p "$OUT_DIR"/bin

.pipelines/build/scripts/cilium-log-collector.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ set -eux
44
[[ $OS =~ windows ]] && { echo "cilium-log-collector is not supported on Windows"; exit 1; }
55
# enable cgo for -buildmode=c-shared
66
export CGO_ENABLED=1
7+
export GOEXPERIMENT=systemcrypto
78

89
mkdir -p "$OUT_DIR"/bin
910
mkdir -p "$OUT_DIR"/files

.pipelines/build/scripts/cni.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ mkdir -p "$OUT_DIR"/files
77
mkdir -p "$OUT_DIR"/bin
88

99
export CGO_ENABLED=0
10+
export GOEXPERIMENT=systemcrypto
1011

1112

1213
CNI_NET_DIR="$REPO_ROOT"/cni/network/plugin

.pipelines/build/scripts/cns.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ set -eux
44
[[ $OS =~ windows ]] && FILE_EXT='.exe' || FILE_EXT=''
55

66
export CGO_ENABLED=0
7+
export GOEXPERIMENT=systemcrypto
78

89
mkdir -p "$OUT_DIR"/files
910
mkdir -p "$OUT_DIR"/bin

.pipelines/build/scripts/dropgz.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ function files::remove_exe_extensions() {
2121
[[ $OS =~ windows ]] && FILE_EXT='.exe' || FILE_EXT=''
2222

2323
export CGO_ENABLED=0
24+
export GOEXPERIMENT=systemcrypto
2425

2526
mkdir -p "$GEN_DIR"
2627
mkdir -p "$OUT_DIR"/bin

.pipelines/build/scripts/install-go.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ set -eux
1212
#
1313
# To update the fallback, run:
1414
# skopeo inspect docker://mcr.microsoft.com/oss/go/microsoft/golang:1.24-azurelinux3.0 --format "{{.Name}}@{{.Digest}}"
15-
DEFAULT_IMAGE="mcr.microsoft.com/oss/go/microsoft/golang@sha256:3999f970bb52b7413ef9be2803173d4fd7f1f3c59362a98a0c78d155e3a0e59f"
15+
DEFAULT_IMAGE="mcr.microsoft.com/oss/go/microsoft/golang@sha256:eb3ce814e96f3319f1b5985021021682b47975f6decfe00eaac84abff0ae25c9"
1616

1717
# Resolves the golang image from the source Dockerfile for the given $name.
1818
# Echoes the image reference, or empty string if it cannot be determined.

.pipelines/build/scripts/ipv6-hp-bpf.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ function findcp::shared_library() {
3838
[[ $OS =~ windows ]] && FILE_EXT='.exe' || FILE_EXT=''
3939

4040
export CGO_ENABLED=0
41+
export GOEXPERIMENT=systemcrypto
4142
export C_INCLUDE_PATH=/usr/include/bpf
4243

4344
mkdir -p "$OUT_DIR"/bin

0 commit comments

Comments
 (0)