Repository navigation
fix(deps): move to Go 1.27.4 and golang.org/x/crypto v0.59.0 - #191
Conversation
Address GO-2026-5932: x/crypto v0.59.0 is the first tagged release without the flagged openpgp packages. Tracked in linuxfoundation/lfx-self-serve-ops#1395. Minimum version selection also moves x/net to v0.62.0, x/sys to v0.50.0, x/text to v0.44.0, and through x/text, x/mod to v0.42.0, x/sync to v0.25.0 and x/tools to v0.52.0. The go directive stays at 1.27.3, which already includes the eMudhra CA distrust fix. Co-authored-by: Claude <noreply@anthropic.com> Signed-off-by: David Deal <ddeal@linuxfoundation.org>
Set the go directive to 1.27.4, the latest Go 1.27 patch, and update the Go version stated in AGENTS.md, DEVELOPMENT.md and the script READMEs. Release images are built with the go.mod version, and 1.27.4 carries the crypto/x509 eMudhra CA distrust that shipped in 1.27.3. Co-authored-by: Claude <noreply@anthropic.com> Signed-off-by: David Deal <ddeal@linuxfoundation.org>
Pin MegaLinter v10.2.0. Its bundled golangci-lint 2.15.0 is built with Go 1.27.0, so drop the pre-command that installed golangci-lint 2.15.0 over the v9 bundle. GOTOOLCHAIN=auto stays set so the Go linters download the go.mod toolchain. Clean up config for linters v10 removed: drop REPOSITORY_KICS_ARGUMENTS, move .gitleaks.toml to .betterleaks.toml, and remove the markdown-link-check annotations. Move the zizmor GITHUB_TOKEN allowlist into .mega-linter.yml as a list. Fix what the v10 linters report: - zizmor template-injection: pass step outputs and the ref name to the ko build and cosign steps through env variables - zizmor cache-poisoning: disable the setup-go cache in the release workflow - zizmor ref-version-mismatch: give the checkout pins their full tag - zizmor unpinned-uses and github-app: suppress inline with a reason; the SLSA generator needs a tag ref and the app token is scoped by repositories - hadolint DL3066: use the numeric nonroot UID Replace the AGENTS.md Go toolchain section with a Go version section that targets Go 1.27.x and supersedes the lfx-megalinter skill's latest-minus-one policy. Co-authored-by: Claude <noreply@anthropic.com> Signed-off-by: David Deal <ddeal@linuxfoundation.org>
- Correct the zizmor GITHUB_TOKEN comment: the token is for the online audits such as ref-version-mismatch and impostor-commit, not artipacked. - Rename .gitleaksignore to .betterleaksignore to finish the gitleaks to betterleaks migration. - Drop the stale .grype.yaml suppressions. They waited on Go 1.25, and go.mod already has the fixed otel v1.45.0, aws-sdk-go-v2/service/s3 v1.97.3 and aws/protocol/eventstream v1.7.8. Co-authored-by: Claude <noreply@anthropic.com> Signed-off-by: David Deal <ddeal@linuxfoundation.org>
|
No actionable comments were generated in the recent review. WalkthroughThe changes update the Go directive and dependencies, revise Go and linter guidance, adjust container build and signing workflow inputs, upgrade MegaLinter, and update scanner, runtime-user, and Markdown lint configuration. ChangesRepository maintenance updates
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Merge Risk:
|
|
@dealako I'm starting review 1 of this pull request now (started 2026-11-19 04:07 UTC using review agent v0.1.34). This usually takes a few minutes. I'll update this comment with the summary when I'm done. If there's no summary here after about 45 minutes, the review stopped: push a new commit, or post a comment that begins with a mention of me followed by Thanks, David, for the careful, well-documented PR. SummaryThis PR bumps Decision✅ Approved DetailsOverall impression: The dependency changes in Other reviewers and CI checks: the Rule files: read none; Questions, problems, or feedback: https://github.com/linuxfoundation/lfx-review-agent/issues |
[Medium impact] The PR appears safe to merge; no new actionable issues were found. SummaryUpdates Go and security-related dependencies, moves CI to MegaLinter v10.2.0, and adjusts OpenTelemetry setup.
No new actionable issues were found in the changes since the previous review. Reviews (2) · Last reviewed commit: "fix(deps): patch otel and klauspost/comp..." · Reviewed by Greptile |
lfx-one
left a comment
There was a problem hiding this comment.
Dependency bump, Go 1.27.4 move and MegaLinter v10.2.0 migration look correct. I found no blocking, security or minor issues, so I'm approving.
There was a problem hiding this comment.
🔵 Needs a closer look
The Go-version policy and OSV version-only scanning tradeoff need maintainer acceptance, and the full MegaLinter security-scanner CI run remains unconfirmed after local scanner timeouts.
No open issues 🎉
What changed in this PR
This PR updates the project service’s Go toolchain and dependencies to address security advisories, migrates CI to MegaLinter v10.2.0, and aligns supporting configuration and documentation.
Changes:
- Upgrade Go to 1.27.4 and
golang.org/x/cryptoto v0.59.0, with related dependency updates. - Adopt MegaLinter v10.2.0, migrate secret-scanner configuration, and remove obsolete suppressions.
- Harden release workflow shell inputs and caching, use a numeric container UID, and document the Go version policy.
| File | Description |
|---|---|
| scripts/root-project-setup/README.md | Update the Go prerequisite. |
| scripts/load_mock_data/README.md | Update Go prerequisite and remove an obsolete annotation. |
| README.md | Remove obsolete link-check annotations. |
| go.sum | Refresh checksums for updated dependencies. |
| go.mod | Upgrade Go and related golang.org/x dependencies. |
| Dockerfile | Specify the numeric nonroot UID. |
| DEVELOPMENT.md | Align the documented Go prerequisite. |
| AGENTS.md | Revise Go version policy and explain linter compatibility. |
| .mega-linter.yml | Configure zizmor token access and remove obsolete settings. |
| .grype.yaml | Remove stale vulnerability suppressions. |
| .github/workflows/mega-linter.yml | Pin MegaLinter v10.2.0 and clarify toolchain handling. |
| .github/workflows/ko-build-tag.yaml | Harden shell inputs, disable Go caching, and explain audit exceptions. |
| .github/workflows/ko-build-main.yaml | Clarify the existing checkout pin’s version comment. |
| .github/workflows/ko-build-branch.yaml | Pass image tags through quoted environment variables. |
| .betterleaksignore | Carry forward secret-scanner fixture exclusions. |
| .betterleaks.toml | Adapt secret-scanner configuration to Betterleaks. |
Review effort: Balanced
MegaLinter v10 runs osv-scanner, which the v9.1.0 Go flavor did not, and its govulncheck call analysis cannot load a Go 1.27 module, so it matches advisories by version. It reported: - GHSA-q7gw-24fr-5p69 in go.opentelemetry.io/otel sdk, sdk/log and trace 1.45.0, fixed in 1.47.0 - GO-2026-6865 in github.com/klauspost/compress 1.18.7, fixed in 1.20.2 Move the otel modules together to 1.47.0 (otlplog exporters to v0.23.0) and klauspost/compress to 1.20.2. Minimum version selection also moves otelhttp, grpc-gateway, genproto, protobuf, testify, httpsnoop and mapstructure. The go directive stays at 1.27.4. otel 1.47.0 deprecates go.opentelemetry.io/otel/log/global, so set the logger provider with otel.SetLoggerProvider. Co-authored-by: Claude <noreply@anthropic.com> Signed-off-by: David Deal <ddeal@linuxfoundation.org>
|
@dealako I'm starting review 2 of this pull request now (started 2026-11-19 04:20 UTC using review agent v0.1.34). This usually takes a few minutes. I'll update this comment with the summary when I'm done. If there's no summary here after about 45 minutes, the review stopped: push a new commit, or post a comment that begins with a mention of me followed by Thanks, David, for following up so quickly on the osv-scanner findings. SummaryThis follow-up moves the otel modules to 1.47.0 and Decision✅ Approved DetailsOverall impression: The new commit ( 👏 Nice work: You reproduced the scanner findings, bumped the affected modules together, and recorded the Go 1.26 govulncheck fallback in Prior feedback: Review 1 had no findings, so there is nothing to track. GitHub dismissed my earlier approval when the new commit was pushed. Other reviewers and CI checks: The required check Rule files: read none; skipped Questions, problems, or feedback: https://github.com/linuxfoundation/lfx-review-agent/issues |
lfx-one
left a comment
There was a problem hiding this comment.
The new commit moves the otel modules to 1.47.0 and klauspost/compress to 1.20.2, and switches pkg/utils/otel.go to otel.SetLoggerProvider. I found no blocking, security or minor issues, so I'm approving.
Summary
golang.org/x/cryptofrom v0.55.0 to v0.59.0, the first tagged release without the openpgp packages flagged by GO-2026-5932.go.modversion, and 1.27.4 carries the crypto/x509 eMudhra CA distrust that shipped in 1.27.3.Ticket
No LFXV2 ticket. Tracked in:
Changes
Dependencies (
go.mod,go.sum)golang.org/x/cryptov0.55.0 to v0.59.0.x/netv0.58.0 to v0.62.0,x/sysv0.47.0 to v0.50.0 andx/textv0.41.0 to v0.44.0. Throughx/textv0.44.0 it movesx/modv0.38.0 to v0.42.0,x/syncv0.22.0 to v0.25.0 (a direct dependency) andx/toolsv0.48.0 to v0.52.0. No other module changed.godirective 1.27.3 to 1.27.4. The Go version inDEVELOPMENT.mdand the script READMEs is updated to match.github.com/klauspost/compress1.18.7, fixed in 1.20.2). The otel modules move together to 1.47.0 (otlplog exporters to v0.23.0) and klauspost/compress to 1.20.2. Minimum version selection also moves otelhttp v0.65.0 to v0.70.0, grpc-gateway v2.29.0 to v2.30.0, genproto, protobuf v1.36.11 to v1.36.12, testify v1.11.1 to v1.12.1, httpsnoop and mapstructure. otel 1.47.0 deprecatesotel/log/global, sopkg/utils/otel.gonow callsotel.SetLoggerProvider.MegaLinter v10.2.0
oxsecurity/megalinter/flavors/go@f2fe8c1… # v10.2.0.GOTOOLCHAIN: autostays set.GO_GOLANGCI_LINT_PRE_COMMANDS, which installed golangci-lint 2.15.0 over the v9 bundle. v10.2.0 bundles that version.REPOSITORY_KICS_ARGUMENTS(KICS is gone in v10 and never ran in the v9.1.0 Go flavor), rename.gitleaks.tomland.gitleaksignoreto the betterleaks names, and remove themarkdown-link-checkannotations.GITHUB_TOKENallowlist into.mega-linter.ymlas a YAML list..grype.yamlsuppressions. They waited on Go 1.25, andgo.modalready has the fixed otel v1.45.0, aws-sdk-go-v2/service/s3 v1.97.3 and aws/protocol/eventstream v1.7.8.Fixes for v10 linter findings
template-injection: the ko build and cosign steps read step outputs and the ref name from env variables, not${{ }}inrun:.cache-poisoning:cache: falseon setup-go in the tagged release workflow.ref-version-mismatch: checkout pin comments now give the full tag (# v5.0.0).unpinned-usesandgithub-app: inline suppressions with a reason. The SLSA generator needs a tag ref, and the app token is scoped byrepositories:.Dockerfileuses the numeric nonroot UID65532.Agent guidance (
AGENTS.md)lfx-megalinterskill's latest-minus-one policy, and explains how MegaLinter handles a Go 1.27 module: golangci-lint lints it, and osv-scanner falls back to version matching. Please review this policy change on purpose.Checks run
make check(gofmt, golangci-lint 2.15.0, license headers): pass, 0 issues.make test(-race): pass.go build ./..., the Makefilebuildandbuild-clicompile lines,go vet ./...,make apigen: pass.make builditself was not used because itscleanstep runsgo clean -cache, which clashed with other builds on the same machine..mega-linter.ymlvalidates against the v10.2.0 configuration schema.scan source --lockfile go.mod) after the otel and compress bumps: no issues.git_diffcannot see a git worktree from inside the container. The CI run on this PR is the check for those.Notes
Dockerfile.clistill hasUSER nonroot. hadolint's file pattern ((.*\.)?Dockerfile) does not matchDockerfile.cli, so it was left unchanged.🤖 Generated with Claude Code