Repository navigation
[release-2.15] bump: bump Go to 1.26.10 for release-2.15.0 - #24211
Conversation
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>
There was a problem hiding this comment.
π’ 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 Reportβ
All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## release-2.15.0 #24211 +/- ##
=================================================
Coverage ? 66.53%
=================================================
Files ? 1076
Lines ? 117371
Branches ? 2962
=================================================
Hits ? 78092
Misses ? 34967
Partials ? 4312
Flags with carried forward coverage won't be shown. Click here to find out more. π New features to boost your workflow:
|
## 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>
|
@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
The fixed package is ready Photon OS It removes the I tested that removing the two roots is safe I took the bundle from If you want to track this separately from #24210, I can open a new issue. |
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 onrelease-2.14.0.Go 1.26.10 adds a
crypto/x509SPKI 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.2for fourCI.ymljobs 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.1golangci-lintv2.9.0: 0 issuesmockeryv2.53.3: no driftx509.Verifycheck againstdv-g3b-emudhra.we-have-a-problem.comanddv-g3b-aaa-noct-emudhra.we-have-a-problem.com: go1.26.7 returns<nil>, go1.26.10 returnsx509: no valid chains builtNot covered by this PR:
emSign ECC Root CA - G3andAAA Certificate Servicesroots, whichcurl,wgetandopensslin the images use.Issue being fixed
Fixes #24210 (release-2.15.0 part)
Please indicate you've done the following: