Repository navigation
Description
Split from #3920.
Problem: The CVE-2026-78661 entry remains in .trivyignore-tofu for the Runner Image and MCP server scans. Trivy finds the same CVE in promtool v3.16.0 with golang.org/x/net 0.61.0 and in OpenTofu v1.13.9 with golang.org/x/net 0.57.0. These are the newest releases. The entry keeps exp:2026-11-21./n/nWhy deferred: The removal waits on the promtool bump in #6365 and the OpenTofu bump in #5866. Those releases must hold golang.org/x/net 0.62.0 or newer before the Runner Image scan passes without the ignore. If they do not land by 2026-11-21, a person decides whether to move the expiry date./n/nAcceptance criteria:/n- .trivyignore-tofu holds no CVE-2026-78661 entry and no comment that names it./n- The Runner Image check passes on a pull request that changes no image, with the new promtool and OpenTofu pins./n- The MCP server image scan passes without the entry.
Proposed design
Problem statement
The issue asks to drop a CVE-2026-78661 suppression from .trivyignore-tofu, but that file no longer exists: change #6405 deleted .trivyignore, .trivyignore-mcp-server and .trivyignore-tofu and moved each remaining image finding into .trivyignore.yaml, scoped to one binary by paths and purls. The only CVE-2026-78661 entry left is for usr/local/bin/kubectl v1.37.2 (golang.org/x/net 0.57.0, fixed in 0.62.0), with an owner-extended expired_at of 2026-12-15 and tracking issue #6084. The Runner Image scan is report-only (exit-code: "0"), so no promtool or OpenTofu finding gates a build and their suppression is already gone. This issue now removes that last CVE-2026-78661 entry once #6084 bumps kubectl to a release that vendors x/net 0.62.0 or newer, and proves the MCP Server Image gate passes without it.
Acceptance criteria
Requirement: Remove the last CVE-2026-78661 entry
.trivyignore.yaml SHALL contain no CVE-2026-78661 entry and no statement that names it.
Scenario: The image ignore file names no CVE-2026-78661
- WHEN The pull request runs
git grep -n 'CVE-2026-78661' -- .trivyignore.yaml - THEN The command prints no line and exits 1.
Requirement: No legacy image ignore file returns
The repository SHALL hold no .trivyignore, .trivyignore-mcp-server or .trivyignore-tofu file, so the tofu suppression cannot come back.
Scenario: The legacy ignore files are absent
- WHEN The pull request runs
git ls-files .trivyignore .trivyignore-mcp-server .trivyignore-tofu - THEN The command prints no path and exits 0.
Requirement: MCP Server Image gate passes without the kubectl ignore
The MCP Server Image check MUST pass with .trivyignore.yaml holding no CVE-2026-78661 entry.
Scenario: MCP Server scan after the kubectl bump
- WHEN CI runs the
MCP Server Imagecheck on the pull request after fix(security): bump kubectl and drop the MCP server Trivy ignores #6084 merges, with.trivyignore.yamlholding noCVE-2026-78661entry - THEN The check passes and its
Scan MCP Server Image for Vulnerabilitiesstep exits 0.
Existing Tool Considered
No alternatives check has run. aquasecurity/trivy v0.76.2, pinned by tag and digest in .github/actions/image-scan/action.yml:44-63, scans each image with --scanners vuln --severity HIGH,CRITICAL --ignore-unfixed --ignorefile .trivyignore.yaml --exit-code <input> and writes SARIF that github/codeql-action/upload-sarif records (.github/actions/image-scan/action.yml:48-69). Trivy is the open, maintained scanner that covers the need and lacks no feature for this change: its YAML ignore format holds paths, purls, statement and expired_at (SECURITY.md:81), so the entry is scoped to the kubectl binary alone. The finding is a vendored Go module inside a pinned binary, so no scanner removes it; only the kubectl bump in #6084 does. No code is built, so the cost is the wait for that release.
Key questions
- Which ignore file do the Runner Image and MCP Server scans read, and does
.trivyignore-tofustill exist?: Both scans read one file,.trivyignore.yaml, through the composite action.github/actions/image-scan, whoseignore-fileinput defaults to.trivyignore.yaml..trivyignore,.trivyignore-mcp-serverand.trivyignore-tofuare absent, and theci-image-scanspec requires that the repository hold no other image ignore file. Change ci(security): scan each image with one Trivy action and SARIF #6405 deleted the three legacy files and created the scoped.trivyignore.yaml. [sources: .github/actions/image-scan/action.yml:31, .github/workflows/ci.yml:462, .github/workflows/ci.yml:566, .github/workflows/ci.yml:667, openspec/specs/ci-image-scan/spec.md:35, openspec/specs/ci-image-scan/spec.md:41, openspec/changes/archive/2026-11-20-6405-image-scan-action-sarif/proposal.md:12, openspec/changes/archive/2026-11-20-6405-image-scan-action-sarif/proposal.md:38] - Which
CVE-2026-78661entries does the repository hold, and for which binary?: One entry:.trivyignore.yaml:55-61, scoped tousr/local/bin/kubectlandpkg:golang/golang.org/x/net@v0.57.0, withexpired_at: 2026-12-15and a statement that names the owner extension and tracking issue fix(security): bump kubectl and drop the MCP server Trivy ignores #6084. No entry names promtool, OpenTofu or.trivyignore-tofu, and no comment elsewhere names the CVE. [sources: .trivyignore.yaml:55, .trivyignore.yaml:60, CHANGELOG.md:221] - Which promtool and OpenTofu versions are pinned, and do they hold
golang.org/x/net0.62.0?: The repository pins no version of promtool or OpenTofu: both come from the devtools image, which theDockerfilepins by digest and which names no tool version, and the pathsrc/devops_cli/tools_lock/tools.lockof the earlier proposal does not exist at this commit. The record of fix(security): bump the pinned gh for CVE-2026-97054 #6352 read on 2026-11-19 names promtool v3.16.0 (x/net 0.61.0) and OpenTofu v1.13.9 (x/net 0.57.0) as the newest releases, neither with 0.62.0. Their finding needs no ignore entry now because the Runner Image scan only reports. [sources: openspec/specs/mcp-server-image/spec.md:57, openspec/changes/archive/2026-11-19-6352-bump-go-tools-cve-2026-97054/proposal.md:33, .github/workflows/ci.yml:626] - Does the Runner Image scan fail on a runner-tool finding?: No. The Runner Image job calls
.github/actions/image-scanwithexit-code: "0", so a HIGH finding in a devtools binary such as promtool or OpenTofu goes to code scanning undertrivy-image-runnerand stops no build. Only the Service and MCP Server scans gate with exit code 1, and theci-image-scanspec states both rules. [sources: .github/workflows/ci.yml:626, .github/workflows/ci.yml:636, openspec/specs/ci-image-scan/spec.md:20, openspec/specs/ci-image-scan/spec.md:30] - Should this change remove the last
CVE-2026-78661entry now or after the kubectl bump in fix(security): bump kubectl and drop the MCP server Trivy ignores #6084?: Remove it after fix(security): bump kubectl and drop the MCP server Trivy ignores #6084: delete theusr/local/bin/kubectlentry of.trivyignore.yamlonce kubectl vendorsgolang.org/x/net0.62.0 or newer, and prove the MCP Server Image gate passes. Removing it now fails that gate, because kubectl v1.37.2 vendors x/net 0.57.0. (best practice) [sources: .trivyignore.yaml:60, SECURITY.md:81, openspec/changes/archive/2026-11-20-6405-image-scan-action-sarif/proposal.md:51, .github/workflows/ci.yml:724]- Chosen: Remove after fix(security): bump kubectl and drop the MCP server Trivy ignores #6084 merges. kubectl v1.37.2 still vendors x/net 0.57.0, the owner extended this entry to 2026-12-15, and SECURITY.md says to bump the pin when a release holds the fix instead of ignoring the finding.
- Rejected: Remove now. The MCP Server Image scan gates with exit code 1 and fails on the kubectl finding until a release holds x/net 0.62.0.
- Rejected: Keep the entry and renew it. SECURITY.md caps a renewal at 14 days and gives a longer date to the owner; the owner already set 2026-12-15, and fix(security): bump kubectl and drop the MCP server Trivy ignores #6084 tracks the bump that ends the need.
- Does a new scanner replace Trivy for the image scans?: No. Both image jobs run the official Trivy image v0.76.2 through
.github/actions/image-scanwith--scanners vuln --severity HIGH,CRITICAL --ignore-unfixed --ignorefile .trivyignore.yaml, and the finding is a vendored Go module in a pinned binary. Another scanner reports the same finding or misses it, and no scanner removes an upstream vendored module. (best practice) [sources: .github/actions/image-scan/action.yml:44, .github/actions/image-scan/action.yml:48, .github/workflows/ci.yml:724, SECURITY.md:81]- Chosen: Keep Trivy. It already scans each image for HIGH and CRITICAL findings with
ignore-unfixedand the scoped YAML ignore file, and it is the scanner that theci-image-scanspec requires. - Rejected: Replace Trivy with another scanner. A different scanner reports the same vendored module finding or misses it, and it cannot remove the upstream CVE.
- Rejected: Add a second scanner. It adds a scan and a second result set without changing the finding that the kubectl bump removes.
- Chosen: Keep Trivy. It already scans each image for HIGH and CRITICAL findings with
- What happens to the
CVE-2026-78661expiry if the promtool and OpenTofu releases do not hold x/net 0.62.0 by 2026-11-21?: Nothing: no promtool or OpenTofu entry remains, and the Runner Image scan only reports. The oneCVE-2026-78661entry left, the kubectl one, carriesexpired_at: 2026-12-15, which the owner extended past the 14-day limit (fix(security): extend the kubectl Trivy ignores to 2026-12-15 #6574), and fix(security): bump kubectl and drop the MCP server Trivy ignores #6084 tracks the kubectl bump. If kubectl still lacks x/net 0.62.0 on 2026-12-15, the MCP Server Image gate fails and the owner decides whether to renew; no person decision is needed now. [sources: .trivyignore.yaml:60, CHANGELOG.md:221, .github/workflows/ci.yml:724, .github/workflows/ci.yml:626]
Fit
Fits in one pull request.
Suspected block
A kubectl release that vendors golang.org/x/net 0.62.0 or newer (v1.38.0), and its arrival in the devtools image that the Dockerfile pins, before the entry's 2026-12-15 expiry.
Activity
devops-cli-service commentedon Nov 19, 2026
Both target CVE-2026-78661 in golang.org/x/net and the ignore entry, but #6365 bumps promtool while the candidate removes the ignore after both promtool and OpenTofu bumps land.[-]fix(ci): remove the CVE-2026-78661 ignore after the promtool and OpenTofu bumps[/-][+]fix(ci): Remove the CVE-2026-78661 ignore after tool bumps[/+]devops-cli-service commentedon Nov 19, 2026
The job shortened the title of this item. The summary had 70 characters, and the limit is 60. The type and the scope stay.
fix(ci): remove the CVE-2026-78661 ignore after the promtool and OpenTofu bumpsfix(ci): Remove the CVE-2026-78661 ignore after tool bumpsdevops-cli-service commentedon Nov 19, 2026
Owner question: See the first point of Open questions and Watched files 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 20, 2026
Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies and Watched files in the section Proposed design of the body.
devops-cli-service commentedon Nov 22, 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
dan-petty commentedon Nov 26, 2026
Closed:
.trivyignore-tofuno longer exists.The entry for promtool and OpenTofu is gone, and both tools come from the devtools image. The one
CVE-2026-78661entry left in.trivyignore.yamlcovers onlykubectl(expiry 2026-12-15), and #6084 tracks it.