Repository navigation
Description
Update 2026-11-26 (infra move): the promtool pin is in dan-petty/devtools, and .trivyignore-tofu is gone. The CVEs are not fixed: promtool 3.16.0 of the devtools image is still built with Go 1.27.3 and x/net 0.61.0. These scans report to code scanning and stop no build (SECURITY.md exception, to 2026-12-20). The fix comes with a new devtools image. The pin steps below no longer apply here.
Problem or Motivation
The runner and MCP server images hold the pinned promtool v3.16.0 (opt/devops-tools/tools/promtool/3.16.0/promtool). The Trivy scan of both images names two HIGH findings in it:
| CVE | Module | v3.16.0 | Fixed |
|---|---|---|---|
| CVE-2026-97054 | Go stdlib |
v1.27.3 | 1.26.11, 1.27.4 |
| CVE-2026-78661 | golang.org/x/net | v0.61.0 | 0.62.0 |
Read on 2026-11-19: v3.16.0 (published 2026-11-05) is the newest Prometheus release, and no newer tag exists. Trivy v0.76.2 (trivy rootfs) on the promtool binary of the linux-amd64 archive, whose SHA-256 agrees with tools.lock, reads Go 1.27.3 and x/net v0.61.0. Go 1.27.4 and 1.26.11 are from 2026-11-10, after this release. So .trivyignore-tofu holds temporary entries for the two IDs (SECURITY.md, "A Finding with No Fix"). Each entry matches the ID in every binary of the image, because the plain ignore format has no path field.
Proposed Solution & Architectural Design
When a Prometheus release holds Go 1.26.11 or 1.27.4 or later and x/net 0.62.0 or later, dan-petty/devtools takes it, and a new image digest brings it here.
Acceptance Criteria
- The Trivy scan of the runner and MCP server images names no finding in promtool.
- No ignore file holds an entry that only promtool needed.
Dependencies
Blocked on a Prometheus release that holds the fixes.
Source: #6352
Alternatives check of 2026-11-19: in-use.
The repository already uses this tool.
Tool: prometheus/prometheus (https://github.com/prometheus/prometheus), Apache-2.0, last activity 2026-11-19, maintained.
Reason: The searches and the repository facts confirm that promtool, shipped in prometheus/prometheus releases, is the exact tool the issue pins and asks to bump; it covers the need, which waits only on a release with the fixed Go and x/net builds.
Covers:
- Promtool binary from the Prometheus release archives
- Checks config and rule files in the runner and MCP images
- Apache-2.0 release artefacts that the tools lock pins by checksum
Lacks:
- v3.16.0 binary holds Go 1.27.3 and x/net v0.61.0
- No release yet with Go 1.26.11/1.27.4 and x/net 0.62.0
- Bump waits on an upstream Prometheus release
Proposed design
Problem statement
The runner image and the devcontainer take promtool from the dan-petty/devtools image. The current promtool 3.16.0 holds two HIGH findings: Go 1.27.3 and golang.org/x/net v0.61.0. A Prometheus release with Go 1.26.11 or 1.27.4 or later and golang.org/x/net v0.62.0 or later is necessary. A new devtools image on that release brings the fix here. The change moves the devtools digest and proves that the image scans name no promtool finding.
Acceptance criteria
Requirement: Devtools image carries the fixed promtool
The devtools image that Dockerfile and .devcontainer/Dockerfile name SHALL hold a promtool with Go 1.26.11 or 1.27.4 or later and golang.org/x/net v0.62.0 or later.
Scenario: Scan the promtool of the named devtools image
- WHEN The pull request runs
trivy rootfs --scanners vuln --severity HIGH,CRITICAL --ignore-unfixedon the promtool binary of the devtools image thatDockerfileand.devcontainer/Dockerfilename. - THEN Trivy reports Go 1.26.11 or 1.27.4 or later and golang.org/x/net v0.62.0 or later, and names no HIGH or CRITICAL finding.
Requirement: Image scans name no promtool finding
The image scans of the runner and MCP server SHALL report no HIGH or CRITICAL promtool finding without a promtool ignore entry.
Scenario: Scan the rebuilt runner and MCP server images
- WHEN The pull request rebuilds the
runnerandmcp-servertargets, and each image job runs.github/actions/image-scanwith.trivyignore.yaml. - THEN The printed findings and the SARIF of each job hold no finding whose target names promtool.
Requirement: kubectl entries stay scoped
.trivyignore.yaml MUST keep the CVE-2026-97054 and CVE-2026-78661 entries scoped to usr/local/bin/kubectl until a kubectl release holds both fixes.
Scenario: Scan the rebuilt MCP server image
- WHEN The pull request rebuilds the
mcp-servertarget, and the MCP Server Image job runs.github/actions/image-scanwithexit-code: 1. - THEN The scan exits 0 and names neither CVE in
usr/local/bin/kubectl, because both entries still apply there.
Existing Tool Considered
prometheus/prometheus (https://github.com/prometheus/prometheus), verdict in-use. The alternatives check in the issue body gives what the tool covers and lacks. The change moves the devtools image digest to the next image and proves the scan result. It adds no second tool and no code, so it has no build cost.
Key questions
- Where do the runner image and the devcontainer get promtool, and does the MCP server image hold it?: The runner image and the devcontainer get promtool from
ghcr.io/dan-petty/devtools, named by tag and digest inDockerfileand.devcontainer/Dockerfile. The MCP server stage copies only kubectl and helm from that image, so it holds no promtool. [sources: .github/renovate.json] - Which ignore entries hid the promtool findings, and what happens to them?: None remain.
.trivyignore-tofuis gone..trivyignore.yamlscopes CVE-2026-97054 and CVE-2026-78661 tousr/local/bin/kubectl, where kubectl still needs both. Those entries stay. [sources: .trivyignore.yaml, SECURITY.md, CHANGELOG.md] - Which promtool build does the change take, and where does its pin live?: Take the next devtools image whose promtool reports Go 1.26.11 or 1.27.4 or later and golang.org/x/net v0.62.0 or later. This repository sets no Prometheus version. One devtools digest bump moves promtool in the runner image and the devcontainer. (best practice) [sources: CHANGELOG.md, SECURITY.md, .github/renovate.json]
- Chosen: Take the next devtools image with the fixed promtool. The repository deleted its own tool pin (refactor(deps): delete install-tools and the tools lock #6555). The runner and the devcontainer use the devtools image, so one digest bump moves promtool in both and adds no code.
- Rejected: Restore
tools.lockand pin promtool in this repository. refactor(deps): delete install-tools and the tools lock #6555 deleteddevops install-toolsand the tools lock. The images no longer read a lock of this repository, so a restored lock would pin a binary that nothing installs. - Rejected: Build promtool from source in this repository. It adds a Go build and a version to keep and fix. The devtools image already builds the tool from the Prometheus releases.
- How does the change prove that the promtool findings are gone?: Use two live checks. The first runs
trivy rootfson the promtool binary of the named devtools image. The second runs the image scan of the rebuilt runner and MCP server images. The change adds no test that reads.trivyignore.yaml. (best practice) [sources: SECURITY.md]- Chosen: Live scans of the devtools promtool and the rebuilt images. The finding is in the built binary. The image scan is the gate that reports it.
- Rejected: A test that reads
.trivyignore.yaml. The owner rule forbids a test that only checks a value of a config file. A test cannot assert a Trivy result. - Rejected: Read the Prometheus release notes only. A release note names a Go version, not the Trivy result of the binary that the image holds.
Fit
Fits in one pull request.
Suspected block
A Prometheus release with Go 1.26.11 or 1.27.4 or later and golang.org/x/net v0.62.0 or later, and a dan-petty/devtools image rebuilt on it.
Dependencies
None.
Activity
dan-petty commentedon Nov 19, 2026
Two HIGH CVEs are live in production images, mitigated only by temporary ignore entries.Both target the same runner and MCP server images and the same .trivyignore-tofu file, but 5866 bumps OpenTofu while this bumps promtool.devops-cli-service commentedon Nov 19, 2026
Owner question: Prometheus v3.16.0 is the newest release on 2026-11-19 and holds Go 1.27.3 and x/net v0.61.0; the bump waits for a Prometheus release that holds Go 1.26.11 or 1.27.4 or later and x/net v0.62.0 or later.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
fix(security): bump gh and ignore CVE-2026-97054 in unfixed tools (#6370
devops-cli-service commentedon Nov 19, 2026
The result in the alternatives block of the issue body changed. Before this check: no check. A person decides what the new result means for the item.
Searches (5)
Tools considered:
Searches run:
Sources:
devops-cli-service commentedon Nov 20, 2026
Owner question: See Suspected block in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
devops-cli-service commentedon Nov 21, 2026
Owner question: See Suspected block in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
devops-cli-service commentedon Nov 25, 2026
Owner question: See Suspected block in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
devops-cli-service commentedon Nov 26, 2026
Owner question: See Suspected block in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence