Skip to content

[release-2.15] bump: bump Go to 1.26.10 for release-2.15.0 - #24211

Merged
stonezdj merged 1 commit into
goharbor:release-2.15.0from
Vad1mo:bump-go-1.26.10-release-2.15
Oct 26, 2026
Merged

stonezdj merged 1 commit into
goharbor:release-2.15.0from
Vad1mo:bump-go-1.26.10-release-2.15

Conversation

@Vad1mo

@Vad1mo Vad1mo commented Oct 23, 2026

Copy link
Copy Markdown
Member

Thank you for contributing to Harbor!

Comprehensive Summary of your change

Bump Go from 1.26.7 to 1.26.10 on release-2.15.0. This is the same change as #24199 on release-2.14.0.

Go 1.26.10 adds a crypto/x509 SPKI distrust list for the eight compromised eMudhra intermediate CAs (https://emudhra.we-have-a-problem.com/). v2.15.4 ships go1.26.7 binaries, which accept those chains.

Files touched: Makefile (GOBUILDIMAGE), src/go.mod, .github/workflows/{CI,build-package,conformance_test}.yml, tests/ci/distro_installer.sh, CONTRIBUTING.md.

The CI workflows on this branch still pinned go-version: 1.23.2 for four CI.yml jobs plus build-package and conformance_test. They now use 1.26.10, the same as the build image.

Verification (local, Go 1.26.10):

  • go build ./... passes, after generating swagger code with go-swagger v0.33.1
  • golangci-lint v2.9.0: 0 issues
  • mockery v2.53.3: no drift
  • A x509.Verify check against dv-g3b-emudhra.we-have-a-problem.com and dv-g3b-aaa-noct-emudhra.we-have-a-problem.com: go1.26.7 returns <nil>, go1.26.10 returns x509: no valid chains built

Not covered by this PR:

  • The Trivy binary is downloaded prebuilt. v0.75.0 is built with go1.27.1, which does not have the block. Only Trivy v0.76.1 (go1.27.3) has it.
  • The Photon base image CA bundle still contains the emSign ECC Root CA - G3 and AAA Certificate Services roots, which curl, wget and openssl in the images use.

Issue being fixed

Fixes #24210 (release-2.15.0 part)

Please indicate you've done the following:

  • Well Written Title and Summary of the PR
  • Label the PR as needed. "release-note/ignore-for-release, release-note/new-feature, release-note/update, release-note/enhancement, release-note/community, release-note/breaking-change, release-note/docs, release-note/infra, release-note/deprecation"
  • Accepted the DCO. Commits without the DCO will delay acceptance.
  • Made sure tests are passing and test coverage is added if needed.
  • Considered the docs impact and opened a new docs issue or PR with docs changes if needed in website repository.

Go 1.26.10 distrusts the eight compromised eMudhra intermediate CAs
(crypto/x509 SPKI block). Same change as goharbor#24199 on release-2.14.0.

Also aligns the CI jobs still on Go 1.23.2 with the build image.

Refs: goharbor#24210
Signed-off-by: Vad1mo <vadim@8gears.com>
Copilot AI balanced review requested due to automatic review settings October 23, 2026 14:50
@Vad1mo
Vad1mo requested a review from a team as a code owner October 23, 2026 14:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟒 Approval recommended

The scoped version updates are consistent across all seven changed files, with no blocking issues identified.

No open issues πŸŽ‰

What changed in this PR

Updates the release-2.15.0 Go toolchain to 1.26.10 to address the compromised eMudhra intermediate CA issue, matching the release-2.14.0 update.

Changes:

  • Aligns the Go module, build image, and installer builds on 1.26.10.
  • Updates CI toolchain pins and setup-step names.
  • Updates the contributor Go requirement for Harbor 2.15.
File Description
tests/​ci/​distro_installer.sh Uses Go 1.26.10 for online and offline packaging.
src/​go.mod Raises the Go requirement to 1.26.10.
Makefile Updates the default Go build image.
CONTRIBUTING.md Documents the updated Go requirement.
.github/​workflows/​conformance_test.yml Aligns conformance testing with Go 1.26.10.
.github/​workflows/​CI.yml Updates all five Go setup pins.
.github/​workflows/​build-package.yml Aligns package builds with Go 1.26.10.

Review effort: Balanced

@codecov

codecov Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Codecov Report

βœ… All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (release-2.15.0@0b66161). Learn more about missing BASE report.

Additional details and impacted files

Impacted file tree graph

@@                Coverage Diff                @@
##             release-2.15.0   #24211   +/-   ##
=================================================
  Coverage                  ?   66.53%           
=================================================
  Files                     ?     1076           
  Lines                     ?   117371           
  Branches                  ?     2962           
=================================================
  Hits                      ?    78092           
  Misses                    ?    34967           
  Partials                  ?     4312           
Flag Coverage Ξ”
unittests 66.53% <ΓΈ> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

πŸš€ New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • πŸ“¦ JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Vad1mo Vad1mo added the release-note/update Update or Fix label Oct 23, 2026
Vad1mo added a commit to container-registry/8gcr that referenced this pull request Oct 23, 2026
## Summary

Bump Go from 1.27.2 to 1.27.3 in `versions.env`, `src/go.mod` and
`.oss-scanner/Dockerfile`.

Go 1.27.3 adds a `crypto/x509` SPKI distrust list for the eight
compromised eMudhra intermediate CAs (GO-2026-6809,
https://emudhra.we-have-a-problem.com/). go1.27.2 accepts those chains.

harbor-next builds Trivy (`binary:trivy`), harbor-scanner-trivy and
distribution from source with the CI toolchain (`go-version-file:
src/go.mod`). Trivy v0.76.0 and adapter v0.42.0 require go 1.27.0 and
1.26.6, so `GOTOOLCHAIN=auto` keeps the local 1.27.3. The bump therefore
covers those binaries as well. The upstream goharbor images, by
contrast, download a prebuilt Trivy.

The CA bundle needs no change: the `alpine:3.24` certs stage ships
`ca-certificates 20261020-r0`, and neither `emSign ECC Root CA - G3` nor
`AAA Certificate Services` is in it (checked against the 118-cert
bundle).

This supersedes #1285, which branched from an older `main` (33 commits
behind) and fails Go Lint on `pkg/permission/policy` code that has since
changed on `main`.

## Related Issues

Refs goharbor/harbor#24210. Upstream counterparts: goharbor/harbor#24211
(release-2.15.0) and goharbor/harbor#24212 (release-2.13.0).

## Type of Change

- [x] Bug fix (`fix:`)
- [ ] New feature (`feat:`)
- [ ] Breaking change (`feat!:` / `fix!:`)
- [ ] Documentation (`docs:`)
- [ ] Refactoring (`refactor:`)
- [ ] CI/CD or build changes (`ci:` / `build:`)
- [ ] Upstream Harbor cherry-pick (`upstream:`)
- [x] Dependencies update (`chore:`)
- [ ] Tests (`test:`)

## Release Notes

Go toolchain updated to 1.27.3. Harbor components now reject TLS
certificates chaining to the compromised eMudhra intermediate CAs.

## Testing

- [ ] Unit tests added/updated
- [x] Manual testing performed

Local, Go 1.27.3:
- `swagger generate server` + `go build ./...`: pass
- golangci-lint v2.14.0: 0 issues
- `x509.Verify` against `dv-g3b-emudhra.we-have-a-problem.com`: go1.27.2
returns `<nil>`, go1.27.3 returns `x509: no valid chains built`
- `golang:1.27.3-bookworm` and `golang:1.27.3-alpine` exist

## Checklist

- [x] PR title follows [Conventional
Commits](https://www.conventionalcommits.org/) format
- [x] Commits are signed off (`git commit -s`)
- [x] No new warnings introduced

Signed-off-by: Vad1mo <vadim@8gears.com>

@wy65701436 wy65701436 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

@stonezdj
stonezdj merged commit 5b6c8c0 into goharbor:release-2.15.0 Oct 26, 2026
19 of 20 checks passed
@feiyunzhou

Copy link
Copy Markdown

@Vad1mo and all, thanks for working on #24211.

v2.15.5 is not released yet, so maybe we can add one more thing before you cut it. Can the Photon base images also be refreshed? This can fix both items you listed as not covered, not only one.

Why one change fixes both

Trivy is a Go binary, so it reads the OS trust store at runtime. In these images that is /etc/pki/tls/certs/ca-bundle.crt. Trivy does not have the Go distrust list, but it does not need it if the bundle has no bad roots:

  • now: the bundle has the two roots, trivy has no block, so the chain is valid
  • after refresh: the bundle has no roots, trivy still has no block, but now there is no trusted root, so the chain fails

curl, wget and openssl in the images are the same case. So we do not need a Trivy version bump, and we do not need to wait for Trivy v0.76.1. For a patch release I think this is also safer than upgrading the scanner, because a new Trivy may change the scan result.

The fixed package is ready

Photon OS ca-certificates revision 20261020 is already on the 5.0 and 4.0 branches:

vmware/photon@6ab384e

It removes the emSign Root CA - C1, C3 and G3 roots. It also distrusts AAA Certificate Services in make-ca.sh, because the compromised intermediates are cross-signed by this root, and the OpenSSL trust store has no blocklist for single intermediates. The commit message says 8 of the 16 affected certificates were accepted before the change, and 0 after.

I tested that removing the two roots is safe

I took the bundle from harbor-core:v2.15.4 and removed only those two certificates (167 -> 165). Then I tested again. All of these still work: Docker Hub (registry-1.docker.io, auth.docker.io), quay.io, ghcr.io, gcr.io, k8s.gcr.io,
registry.k8s.io and AWS S3. They use Starfield Services Root CA - G2, USERTrust RSA Certification Authority and GlobalSign Root CA.

If you want to track this separately from #24210, I can open a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-note/update Update or Fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants