Skip to content

fix(security): judge the 8 open Trivy-config alerts - #7876

Merged
dan-petty merged 2 commits into
mainfrom
fix/4409-trivy-config-alerts
Nov 30, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/4409-trivy-config-alerts

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

On 2026-11-30, 8 Trivy-config code scanning alerts are open on main: KSV-01010, KSV-0013, KSV-0020, KSV-0021, KSV-0036, KSV-0048, KSV-0125 and DS-0026, all MEDIUM or LOW. The SARIF of devops scan report keeps one result for each rule (#7875), so trivy config finds 46 results in 14 files.

This change adds HEALTHCHECK NONE to the 4 Dockerfiles of DS-0026. It adds dated .trivyignore.yaml entries, which expire on 2026-12-03, for the other rules. Alerts 240, 263, 264 and 265 are older than 14 days, so the owner confirms their entries.

Closes #4409

Change: openspec/changes/archive/2026-11-30-4409-trivy-config-alerts/

@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 30, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Pull request #7876 closes each open Trivy-config alert of 2026-11-30 as follows. The scan of main after the merge closes the alerts.

Alert Rule Severity Path of the alert Action
240 DS-0026 LOW .devcontainer/Dockerfile Fix: HEALTHCHECK NONE in .devcontainer/Dockerfile, Dockerfile, smoke.Dockerfile and the harbor task Dockerfile
263 KSV-0013 MEDIUM k8s/devops/cronjob-runner.yaml Ignore entry for 6 workloads, expires 2026-12-03
264 KSV-0036 MEDIUM k8s/devops/roadmap-service/deployment.yaml Ignore entry, expires 2026-12-03
265 KSV-0048 MEDIUM k8s/devops/roadmap-service/role.yaml Ignore entry, expires 2026-12-03
1384 KSV-0125 MEDIUM k8s/devops/cronjob-openrouter-reconcile.yaml Ignore entry for 8 workloads, expires 2026-12-03
1385 KSV-0020 LOW k8s/devops/cronjob-openrouter-reconcile.yaml Ignore entry for 8 workloads, expires 2026-12-03
1386 KSV-0021 LOW k8s/devops/cronjob-openrouter-reconcile.yaml Ignore entry for 8 workloads, expires 2026-12-03
1387 KSV-01010 MEDIUM k8s/devops/configmap-sandbox.yaml Ignore entry for 2 ConfigMaps, expires 2026-12-03

Each alert stands for all the files that hold its rule, because the scan keeps one result for each rule (#7875). So each entry names every path that trivy config reports for the rule: 46 results in 14 files before the change, 0 after it. The tracking issue of each entry is #4409. Alerts 240, 263, 264 and 265 are older than 14 days, so the owner confirms their entries (SECURITY.md, "Judging a Trivy-config Alert").

Add HEALTHCHECK NONE to the 4 Dockerfiles that DS-0026 names. Add dated
.trivyignore.yaml entries, which expire on 2026-12-03, for KSV-0013,
KSV-0020, KSV-0021 and KSV-0125 in the 8 project workloads, KSV-01010 in
the 2 ConfigMaps, and KSV-0036 and KSV-0048 of the roadmap Service.

Refs #4409
@dan-petty
dan-petty force-pushed the fix/4409-trivy-config-alerts branch from 68c2a6c to cb77735 Compare November 30, 2026 14:24
@dan-petty
dan-petty marked this pull request as ready for review November 30, 2026 14:37
@dan-petty
dan-petty merged commit 2ecc410 into main Nov 30, 2026
39 checks passed
@dan-petty
dan-petty deleted the fix/4409-trivy-config-alerts branch November 30, 2026 14:37
dan-petty-release Bot added a commit that referenced this pull request Nov 30, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.261.0](v0.260.0...v0.261.0)
(2026-11-30)


### Features

* **k8s:** replace Popeye with Polaris in the cluster audit
([#7880](#7880))
([5db9381](5db9381)),
closes [#7872](#7872)


### Bug Fixes

* **deps:** update dan-petty/devtools Docker tag to v1.5.4
([#7878](#7878))
([ef6607a](ef6607a))
* **security:** judge the 8 open Trivy-config alerts
([#7876](#7876))
([2ecc410](2ecc410)),
closes [#4409](#4409)

---
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): judge the 52 open Trivy-config alerts

1 participant