Skip to content

[backport v1.7] feat: adding dokcerfile templates for ACN images that are missing it and bumping Go version to 1.24.13#4341

Open
behzad-mir wants to merge 1 commit intorelease/v1.7from
backport/go-cve-fix-to-release-v1.7
Open

[backport v1.7] feat: adding dokcerfile templates for ACN images that are missing it and bumping Go version to 1.24.13#4341
behzad-mir wants to merge 1 commit intorelease/v1.7from
backport/go-cve-fix-to-release-v1.7

Conversation

@behzad-mir
Copy link
Copy Markdown
Contributor

@behzad-mir behzad-mir commented Apr 9, 2026

Cherry-pick of #4289 to release/v1.7

Original PR: #4289

Summary

This backports the Go version bump and Dockerfile template changes to fix critical CVEs in the Go stdlib.

Changes

  • Added Dockerfile templates for azure-ipam, azure-ip-masq-merger, azure-iptables-monitor, and cilium-log-collector
  • Added corresponding pipeline Dockerfile templates
  • Updated build/images.mk with render-simple and render-pipe targets
  • Bumped Go version to 1.24.13 (via rolling tag 1.24-azurelinux3.0)
  • Bumped ipv6-hp-bpf Go version to 1.24.13 (Debian bookworm image)
  • Updated signed pipeline to extract Go from msft-go container image

CVE Impact

Verification

# Verify Dockerfile Go versions updated
grep -r "golang@sha256:bc7423b52b62e8f0281b5f7f564eb1862dc315bc57e1373c6a81e87ef3ac39ab" */Dockerfile

@behzad-mir behzad-mir changed the title feat: adding dokcerfile templates for ACN images that are missing it… [backport v1.7] feat: adding dokcerfile templates for ACN images that are missing it and bumping Go version to 1.24.13 Apr 9, 2026
@behzad-mir behzad-mir marked this pull request as ready for review April 9, 2026 23:36
Copilot AI review requested due to automatic review settings April 9, 2026 23:36
@behzad-mir behzad-mir requested a review from a team as a code owner April 9, 2026 23:36
@behzad-mir behzad-mir requested a review from jpayne3506 April 9, 2026 23:37
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

Backport to release/v1.7 that extends the Dockerfile templating/rendering system to additional Go-based ACN images and updates pinned base image digests to pick up the Go 1.24.13 toolchain for CVE remediation, along with CI pipeline updates to source Go from the msft-go container image.

Changes:

  • Add Dockerfile templates (and rendered Dockerfiles) for azure-ipam, azure-ip-masq-merger, azure-iptables-monitor, and cilium-log-collector; refresh pinned base image digests (including ipv6-hp-bpf).
  • Extend Dockerfile rendering support in build/images.mk and wire new images into make dockerfiles.
  • Update OneBranch pipeline jobs to install Go via crane-based extraction from the pinned msft-go image, plus add new pipeline Dockerfile templates for the added images.

Reviewed changes

Copilot reviewed 23 out of 23 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
Makefile Adds new image paths to make dockerfiles rendering.
build/images.mk Adds render-simple / render-pipe targets for selective template rendering.
cilium-log-collector/Dockerfile.tmpl New source-build Dockerfile template for cilium-log-collector.
cilium-log-collector/Dockerfile Rendered Dockerfile updated to new pinned golang digest and autogen header.
azure-ipam/Dockerfile.tmpl New source-build Dockerfile template for azure-ipam (linux + windows targets).
azure-ipam/Dockerfile Rendered Dockerfile updated to new pinned golang/base image digests and autogen header.
azure-ip-masq-merger/Dockerfile.tmpl New source-build Dockerfile template for azure-ip-masq-merger.
azure-ip-masq-merger/Dockerfile Rendered Dockerfile updated to new pinned golang digest and autogen header.
azure-iptables-monitor/Dockerfile.tmpl New source-build Dockerfile template for azure-iptables-monitor (includes azure-block-iptables build stage).
azure-iptables-monitor/Dockerfile Rendered Dockerfile updated to new pinned golang/base image digests and autogen header.
bpf-prog/ipv6-hp-bpf/linux.Dockerfile Updates pinned golang digest used to build ipv6-hp-bpf artifacts.
.pipelines/build/scripts/install-crane.sh New helper to install crane for daemonless image extraction.
.pipelines/build/scripts/install-go.sh New helper to install Go by extracting /usr/local/go from the msft-go container image.
.pipelines/build/images.jobs.yaml Replaces GoTool with crane + msft-go installation steps for image packaging jobs.
.pipelines/build/binary.steps.yaml Replaces GoTool with msft-go installation for binary build jobs.
.pipelines/build/dockerfiles/azure-ipam.Dockerfile.tmpl New pipeline Dockerfile template for azure-ipam.
.pipelines/build/dockerfiles/azure-ipam.Dockerfile Rendered pipeline Dockerfile for azure-ipam with autogen header.
.pipelines/build/dockerfiles/azure-ip-masq-merger.Dockerfile.tmpl New pipeline Dockerfile template for azure-ip-masq-merger.
.pipelines/build/dockerfiles/azure-ip-masq-merger.Dockerfile Rendered pipeline Dockerfile for azure-ip-masq-merger with autogen header.
.pipelines/build/dockerfiles/azure-iptables-monitor.Dockerfile.tmpl New pipeline Dockerfile template for azure-iptables-monitor.
.pipelines/build/dockerfiles/azure-iptables-monitor.Dockerfile Rendered pipeline Dockerfile for azure-iptables-monitor with autogen header and updated base image digests.
.pipelines/build/dockerfiles/cilium-log-collector.Dockerfile.tmpl New pipeline Dockerfile template for cilium-log-collector.
.pipelines/build/dockerfiles/cilium-log-collector.Dockerfile Rendered pipeline Dockerfile for cilium-log-collector with autogen header.

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

Comment thread .pipelines/build/scripts/install-go.sh
Comment thread .pipelines/build/binary.steps.yaml
Comment on lines +1 to +2
# !! AUTOGENERATED - DO NOT EDIT !!
# SOURCE: .pipelines/build/dockerfiles/azure-iptables-monitor.Dockerfile.tmpl
Copy link

Copilot AI Apr 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is marked as autogenerated from .pipelines/build/dockerfiles/azure-iptables-monitor.Dockerfile.tmpl, but its contents don’t match the template (e.g., template stage name/installed packages and copied files differ). Please re-render this Dockerfile from the template (or update the template/header) so the rendered output and declared source stay consistent.

Suggested change
# !! AUTOGENERATED - DO NOT EDIT !!
# SOURCE: .pipelines/build/dockerfiles/azure-iptables-monitor.Dockerfile.tmpl
# Maintained in-place. This file is not declared as autogenerated from a template.

Copilot uses AI. Check for mistakes.
@jpayne3506
Copy link
Copy Markdown
Contributor

/azp run Azure Container Networking PR

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@jpayne3506
Copy link
Copy Markdown
Contributor

Rebase against release train to take in merge queue check

…an dbumping Go version to 1.24.13 (#4289)

* feat: add Dockerfile templates for ACN images and bump Go to 1.24.13

This PR extends the Dockerfile template system (used by CNI/CNS) to all
remaining Go-based images for consistent base image version management.

Changes:
- Added Dockerfile templates for azure-ipam, azure-ip-masq-merger,
  azure-iptables-monitor, and cilium-log-collector
- Added corresponding pipeline Dockerfile templates
- Updated build/images.mk with render-simple and render-pipe targets
- Bumped Go version to 1.24.13 (via rolling tag 1.24-azurelinux3.0)
- Bumped ipv6-hp-bpf Go version to 1.24.13 (Debian bookworm image)

CVE Impact:
- Fixes 5 stdlib CVEs including CRITICAL CVE-2025-68121 (crypto/tls)
- Remaining: CVE-2026-25679 (requires Go 1.25.8+)

* fix: use msft-go in signed pipeline

Cherry-picked from jpayne3506/msft-goSigned (0ffec35)

This removes the dependency on the ADO GOVERSION variable and instead
extracts Go directly from the msft-go container image referenced in
each project's Dockerfile, keeping the signed pipeline in sync with
the Dockerfile-based build.
@behzad-mir behzad-mir force-pushed the backport/go-cve-fix-to-release-v1.7 branch from 1efb094 to 1a82dca Compare April 15, 2026 21:56
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