Skip to content

fix(ci): Remove the CVE-2026-78661 ignore after tool bumps #6389

Not planned

Description

@devops-cli-service

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

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-tofu still exist?: Both scans read one file, .trivyignore.yaml, through the composite action .github/actions/image-scan, whose ignore-file input defaults to .trivyignore.yaml. .trivyignore, .trivyignore-mcp-server and .trivyignore-tofu are absent, and the ci-image-scan spec 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-78661 entries does the repository hold, and for which binary?: One entry: .trivyignore.yaml:55-61, scoped to usr/local/bin/kubectl and pkg:golang/golang.org/x/net@v0.57.0, with expired_at: 2026-12-15 and 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/net 0.62.0?: The repository pins no version of promtool or OpenTofu: both come from the devtools image, which the Dockerfile pins by digest and which names no tool version, and the path src/devops_cli/tools_lock/tools.lock of 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-scan with exit-code: "0", so a HIGH finding in a devtools binary such as promtool or OpenTofu goes to code scanning under trivy-image-runner and stops no build. Only the Service and MCP Server scans gate with exit code 1, and the ci-image-scan spec 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-78661 entry 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 the usr/local/bin/kubectl entry of .trivyignore.yaml once kubectl vendors golang.org/x/net 0.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]
  • 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-scan with --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-unfixed and the scoped YAML ignore file, and it is the scanner that the ci-image-scan spec 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.
  • What happens to the CVE-2026-78661 expiry 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 one CVE-2026-78661 entry left, the kubectl one, carries expired_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.

Dependencies

#6084

Activity

  1. added
    type/bug
    scope/ci
    source/agent
    status/new
    value/medium
    effort/low
    on Nov 19, 2026
  2. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service
    ContributorAuthor
    • Related: fix(security): bump promtool and drop the ignore #6365, which asks for a different change. 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.
  3. changed the title [-]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[/+] on Nov 19, 2026
  4. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service
    ContributorAuthor

    The job shortened the title of this item. The summary had 70 characters, and the limit is 60. The type and the scope stay.

    • Before: fix(ci): remove the CVE-2026-78661 ignore after the promtool and OpenTofu bumps
    • After: fix(ci): Remove the CVE-2026-78661 ignore after tool bumps
    • Source of the summary: the background model
  5. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service
    ContributorAuthor

    Owner question: See the first point of Open questions and Watched files in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  6. devops-cli-service commented on Nov 20, 2026

    @devops-cli-service
    ContributorAuthor

    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.

  7. devops-cli-service commented on Nov 22, 2026

    @devops-cli-service
    ContributorAuthor

    Owner question: See Suspected block in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  8. dan-petty commented on Nov 26, 2026

    @dan-petty
    Owner

    Closed: .trivyignore-tofu no longer exists.

    The entry for promtool and OpenTofu is gone, and both tools come from the devtools image. The one CVE-2026-78661 entry left in .trivyignore.yaml covers only kubectl (expiry 2026-12-15), and #6084 tracks it.

  9. removed
    status/new
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p2-mediumscope/cisource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions