Repository navigation
Build the agent with Go 1.26.11 to pick up a linker security fix - #5
Merged
Merged
Conversation
Go 1.25 has no release that fixes CVE-2026-97040 (GO-2026-6851), where a crafted .syso file in a dependency can inject linker flags during a build. Move the agent Docker image to golang:1.26.11-bookworm, pin the same patched toolchain in release.sh as build.sh already does, and update the agent README. Assisted-by: Replit
Akshayab
approved these changes
Nov 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
The agent's Docker image was still built with Go 1.25 (
golang:1.25-bookworm). Go published a critical security fix (CVE-2026-97040, GO-2026-6851): a dependency that ships a crafted.sysofile can slip extra flags into the linker while the agent is being built. The fix is only in Go 1.26.11 and 1.27.4, and Go 1.25 is not getting one, so this moves the agent build to Go 1.26.11.Files changed:
agent/Dockerfile: build stage now usesgolang:1.26.11-bookworminstead ofgolang:1.25-bookworm.agent/release.sh: pins the build to Go 1.26.11, the same wayagent/build.shalready does, so release binaries built on a machine with an older Go still use the patched version.agent/README.md: build instructions now ask for Go 1.26.11 or newer, matching the main README and the self-hosting guide.Already on 1.26.11, no change needed: CI (
.github/workflows/ci.yml), the release workflow (.github/workflows/release.yml) andagent/build.sh. There is no checked-ingo.mod; the builder generates it, and the generatedgoline stays below 1.26.11.How it was tested
pnpm run format:check, typechecks and unit tests pass (not applicable: no TypeScript changes)scripts/e2e.shpasses (for intake, query or storage changes) (not applicable)Verification (run locally on the PR head):
docker build -f agent/Dockerfile .succeeds ongolang:1.26.11-bookworm. Inside the build,build.shran the agent tests (ok datacat.local/agent).go versionon the binary from the image reportsgo1.26.11, and the image starts and printsDataCat Agent 0.1.0 (OpenTelemetry Collector 0.165.0).TARGETS=linux/amd64 bash agent/release.shsucceeds on a machine with Go 1.26.8 installed. Go switched itself to 1.26.11 because of the new pin, the tests passed,go vetis clean, and the release binary reportsgo1.26.11.go.modhasgo 1.26.9andtoolchain go1.26.11, so it does not ask for a newer Go than the build image provides.~ written by ⠕ Replit