Skip to content

fix(security): bump helm to 4.3.2 and renew the kubectl Trivy ignores - #5584

Merged
dan-petty merged 2 commits into
mainfrom
fix/5573-renew-mcp-server-trivy-ignores
Nov 14, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/5573-renew-mcp-server-trivy-ignores

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Since 2026-11-14, three entries of .trivyignore-mcp-server are past their date. Thus the scan of the MCP server image and an invariant test in Tests & Coverage fail on each pull request.

Helm 4.3.2 is built with Go 1.27.4, which holds the fix of CVE-2026-111943. The helm pin in tools.lock and in .devcontainer/Dockerfile moves to 4.3.2, and the ignore entry of that finding goes. The test of the pins now asks for helm 4.3.2 or newer, and it fails if the ignore file lists CVE-2026-111943.

No released kubectl holds the fixes of CVE-2026-56851 and CVE-2026-78669: v1.37.2 is the newest stable release. As SECURITY.md "A Finding with No Fix" lets an agent do, their entries get 3 more days, to 2026-11-17, in the limit of 14 days in all (2026-11-22). Issue #5582 tracks the kubectl bump that removes them.

Closes #5573

Change: openspec/changes/archive/2026-11-14-5573-renew-mcp-server-trivy-ignores/

Three entries of `.trivyignore-mcp-server` expired on 2026-11-14. Thus
the check `MCP Server Image` and the invariant test of the entries
failed on each pull request. The test runs in `Tests & Coverage`, which
is a required check.

- Helm 4.3.2 has Go 1.27.4, which fixes CVE-2026-111943. The pin of
  `tools.lock` and of `.devcontainer/Dockerfile` is now 4.3.2, with the
  digests of the `.sha256sum` files of get.helm.sh. The entry of
  CVE-2026-111943 is deleted.
- No kubectl release fixes CVE-2026-56851 or CVE-2026-78669: v1.37.2 is
  the newest stable release. Their entries are renewed for 3 days, to
  2026-11-17, in the limit of 14 days in all (2026-11-22). Issue #5582
  tracks the kubectl bump.
- The invariant test now asks for helm 4.3.2 or newer, and fails when
  the ignore file lists CVE-2026-111943.

Change: `openspec/changes/5573-renew-mcp-server-trivy-ignores/`
@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/security Security linters (trivy, bandit, gitleaks, kubeconform) and Vault labels Nov 14, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Proof and test results (read on 2026-11-14 UTC)

Ignores that this pull request changes (SECURITY.md "A Finding with No Fix")

Finding Package in the image Fixed in Newest release of the pin What that release holds Action Expiry Tracking
CVE-2026-111943 (HIGH) stdlib v1.27.2 in helm 4.3.1 Go 1.27.3 helm v4.3.2 (2026-11-13, not a pre-release) Go stdlib v1.27.4 (Trivy on the binary) bump to 4.3.2, entry deleted - #5573
CVE-2026-56851 (HIGH) golang.org/x/text v0.40.0 in kubectl 1.37.2 x/text 0.41.0 kubectl v1.37.2 (dl.k8s.io/release/stable.txt; v1.38.0-beta.0 is a pre-release) go.mod at tag v1.37.2 and on branch release-1.37: x/text v0.40.0 renewed for 3 days 2026-11-17 #5582
CVE-2026-78669 (HIGH) golang.org/x/net v0.57.0 in kubectl 1.37.2 x/net 0.60.0 kubectl v1.37.2 go.mod at tag v1.37.2 and on branch release-1.37: x/net v0.57.0 renewed for 3 days 2026-11-17 #5582

The kubectl entries first appeared on 2026-11-08 (#4182). The limit of 14 days in all ends on 2026-11-22. After that date, the owner decides.

Checks

  • The four get.helm.sh/helm-v4.3.2-<platform>.tar.gz.sha256sum files agree with the sha256 values in tools.lock and .devcontainer/Dockerfile.
  • trivy rootfs --scanners vuln --severity HIGH,CRITICAL --ignore-unfixed --exit-code 1 (Trivy 0.75.0) on the helm 4.3.2 and kubectl 1.37.2 linux-amd64 binaries:
    • with .trivyignore and .trivyignore-mcp-server: exit 0, no finding.
    • with no ignore file: exit 1. helm 4.3.2: no finding. kubectl 1.37.2: CVE-2026-78661, CVE-2026-78669, CVE-2026-56851.
  • Test first: tests/invariants/test_mcp_server_image.py had 2 failures on the base (the pin floor and the expiry date) and passes after the change.
  • uv run pytest tests/invariants/test_mcp_server_image.py tests/invariants/test_devcontainer_config.py tests/invariants/test_change_folders.py tests/tools_lock: 115 passed.
  • The builder also ran 15 other test files that read tools.lock: 700 passed. devops ci --check --only lint,format,domain, typecheck, docs,lockfile,uv-check: pass. devops openspec check: pass.
  • A local build of the mcp-server image was not possible (the registry refused the pull of ghcr.io/astral-sh/uv). The check MCP Server Image of this pull request is the scan of the full image.

Render diff

No path under k8s/ changes, so there is no kustomize or helm template difference. The runner, mcp-server and service images install helm 4.3.2 from tools.lock at their next build. Nothing in the cluster restarts because of this branch alone.

Note

kubectl 1.37.2 also has CVE-2026-78661 (x/net v0.57.0, fixed in 0.62.0). The entry for gh in .trivyignore (exp 2026-11-21, #3920) hides it, because the file format has no path field. See the comment on #5582.

@dan-petty

Copy link
Copy Markdown
Owner Author

Check results

Head commit: 5070e2d69255ec09b07c191bfb796496f242aae3

Check Conclusion Link
Tests & Coverage success run
devops-cli success run
zizmor success run
trivy-config success run
Service Image Tests (shard 2 of 6) success run
Service Image Tests (shard 1 of 6) success run
Service Image Tests (shard 6 of 6) success run
Service Image Tests (shard 4 of 6) success run
Service Image Tests (shard 3 of 6) success run
Service Image Tests (shard 5 of 6) success run
CodeQL success run
Plan Check skipped run
Analyze (python) success run
Analyze (actions) success run
Tests on Main skipped run
Test Job Duration skipped run
Dependency Freshness skipped run
Changed-Test Independence success run
Tests & Coverage (shard 4 of 4) success run
Tests & Coverage (shard 1 of 4) success run
Tests & Coverage (shard 3 of 4) success run
Static Analysis success run
Tests & Coverage (shard 2 of 4) success run
Service Image success run
MCP Server Image success run
Design Tokens success run
Runner Image success run
Semantic PR title success run
Fail-to-Pass Check failure run
DevContainer Image success run
Service Image Build success run

Skipped check: Plan Check
Skipped check: Tests on Main
Skipped check: Test Job Duration
Skipped check: Dependency Freshness

@dan-petty

Copy link
Copy Markdown
Owner Author

Fail-to-Pass Check: why it fails

Run: https://github.com/dan-petty/devops-cli/actions/runs/43535866392/job/132264591378

The replay of tests/invariants/test_mcp_server_image.py on the base had 2 failures and 9 passes:

  • test_the_kubectl_and_helm_pins_hold_the_go_builds_that_fix_the_stdlib_findings failed on the base (assert (4, 3, 1) >= (4, 3, 2)). This pull request changes that test, so it proves the fix.
  • test_every_mcp_server_trivyignore_entry_has_a_reason_and_an_exp_date_that_is_not_past failed on the base, because the entries of .trivyignore-mcp-server expired on 2026-11-14. That is the defect of fix(security): renew the expired MCP server Trivy ignores and bump helm #5573. This pull request changes the file that the test reads, not the test function, so the check names it "a test that the fix does not change" and exits 1.

Every other check passes, and MCP Server Image scans the built image with helm 4.3.2 and kubectl 1.37.2: 0 findings. Fail-to-Pass Check is not a required check of main (ADR 0012).

CONTRIBUTING.md says that a fix that changes only tests, manifests, documents or dependencies gets no check, but the path filter starts the check for src/devops_cli/tools_lock/tools.lock. #5585 tracks that. I did not change the test or the title to get past the check. The pull request stays a draft because one check fails. A person decides if it can go ready with this failure.

@dan-petty
dan-petty marked this pull request as ready for review November 14, 2026 01:16
@dan-petty
dan-petty merged commit 7b27444 into main Nov 14, 2026
30 of 31 checks passed
@dan-petty
dan-petty deleted the fix/5573-renew-mcp-server-trivy-ignores branch November 14, 2026 01:16
dan-petty-release Bot added a commit that referenced this pull request Nov 14, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.135.0](v0.134.1...v0.135.0)
(2026-11-14)


### Features

* **ai:** cache Claude prompts and price the cache tokens
([#5577](#5577))
([a42931c](a42931c))


### Bug Fixes

* **k8s:** the DeepSeek group keeps its structured reply flag
([#5572](#5572))
([ffce5d9](ffce5d9))
* **security:** bump helm to 4.3.2 and renew the kubectl Trivy ignores
([#5584](#5584))
([7b27444](7b27444))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/security Security linters (trivy, bandit, gitleaks, kubeconform) and Vault type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(security): renew the expired MCP server Trivy ignores and bump helm

1 participant