Repository navigation
Description
Trivy reports a misconfiguration that no issue names.
- Rule: KSV-0118
- Path: k8s/gpu-feature-discovery/daemonset.yaml
- Severity: HIGH
Open alerts:
Judge it under "Judging a Trivy-config Alert" in SECURITY.md: fix the file, dismiss the alert with a reason, or add a time-limited entry to .trivyignore.yaml. The owner judges a CRITICAL alert within 24 hours. An agent judges any other alert within 14 days.
Proposed design
Problem statement
Trivy reports KSV-0118 at the GPU feature discovery DaemonSet. The HIGH alert needs a judgement under SECURITY.md. The NVIDIA container needs privileged host access until #5646. The proposal adds a dated ignore entry. The alert then closes or is dismissed with that reason.
Acceptance criteria
Requirement: Dated KSV-0118 ignore entry
The .trivyignore.yaml file SHALL hold a misconfigurations entry for KSV-0118 at k8s/gpu-feature-discovery/daemonset.yaml with a statement and an expiration.
Scenario: The IaC scan accepts the ignore entry
- WHEN
uv run devops ci --check --only k8sruns on the change - THEN The command reports no
KSV-0118finding fork8s/gpu-feature-discovery/daemonset.yamland no invalid or expired ignore entry.
Requirement: Alert 269 leaves the open list
The code-scanning alert 269 SHALL be dismissed with a comment that names the ignore entry, or close as fixed.
Scenario: The alert state after the scan
- WHEN
gh api repos/dan-petty/devops-cli/code-scanning/alerts/269 --jq '.state, .dismissed_comment'runs after the scan - THEN The command prints
dismissedand a comment that names the ignore entry, or printsfixed.
Existing Tool Considered
No alternatives check has run. Trivy is the open, maintained scanner that reports KSV-0118 and reads .trivyignore.yaml with an expiry. kube-linter already covers the same workload with ignore annotations. The proposal uses the Trivy ignore file and builds no new code.
Key questions
- Which judgement does SECURITY.md require for a HIGH Trivy-config alert?: An agent judges the alert within 14 days. The agent fixes the file, dismisses the alert with a reason, or adds a time-limited
.trivyignore.yamlentry. [sources: SECURITY.md] - Can the DaemonSet remove privileged host access now?: No. The NVIDIA container runs privileged to read GPUs through NVML and
/sys. The kube-linter annotations defer that change to fix(security): remove privileged mode from gpu-feature-discovery #5646. [sources: k8s/gpu-feature-discovery/daemonset.yaml] - Which judgement should the proposal take?: Add a dated
.trivyignore.yamlentry forKSV-0118at the path. State the privileged GPU access and fix(security): remove privileged mode from gpu-feature-discovery #5646 as the reason. Set an expiry date no later than 90 days after the entry date. (best practice) [sources: SECURITY.md, k8s/gpu-feature-discovery/daemonset.yaml]- Rejected: Fix the manifest. The NVIDIA container needs privileged access to read GPUs and
/sys. The kube-linter annotations defer the change to fix(security): remove privileged mode from gpu-feature-discovery #5646. - Rejected: Dismiss the alert with no ignore entry. A dismissal alone leaves the next scan to report the same finding. The project keeps a dated ignore entry.
- Chosen: Add a dated ignore entry. The entry suppresses the finding until fix(security): remove privileged mode from gpu-feature-discovery #5646. The expiry makes the project judge the finding again.
- Rejected: Add a permanent ignore entry. A permanent entry hides the finding after the workload changes. SECURITY.md asks for a time limit.
- Rejected: Fix the manifest. The NVIDIA container needs privileged access to read GPUs and
- Which existing tool covers the need?: Trivy is already the scanner and it reads
.trivyignore.yaml. kube-linter already covers the same workload. No new tool or custom code is needed. [sources: SECURITY.md, k8s/gpu-feature-discovery/daemonset.yaml]
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 14, 2026
Judge Trivy-config rule KSV-0118 in k8s/gpu-feature-discovery/daemonset.yaml (alert 269): fix the file, dismiss the alert, or add a time-limited entry to .trivyignore.yamlas the change that both ask for.Both items ask to judge the same rule KSV-0118 in the same file for the same alert 269 with identical acceptance criteria.A person closes one of the two if that is so.[-]fix(security): judge Trivy-config KSV-0118 in k8s/gpu-feature-discovery/daemonset.yaml[/-][+]fix(security): Judge KSV-0118 in k8s/gpu-feature-discovery/daemonset.yaml[/+]devops-cli-service commentedon Nov 14, 2026
The job shortened the title of this item. The summary had 71 characters, and the limit is 60. The type and the scope stay.
fix(security): judge Trivy-config KSV-0118 in k8s/gpu-feature-discovery/daemonset.yamlfix(security): Judge KSV-0118 in k8s/gpu-feature-discovery/daemonset.yamldevops-cli-service commentedon Nov 18, 2026
Waiting for the alternatives check to run. The next refine round looks at the item again after the check records a verdict.
dan-petty commentedon Nov 26, 2026
Closed: duplicate of #5372, which has the same rule, path and alert 269.
gpu-feature-discovery is removed from the cluster (dan-petty/homelab#234).
k8s/gpu-feature-discovery/daemonset.yamlin devops-cli deploys nothing, and step 17 (#7290) deletes it. The alert stays open until then, and #5372 tracks it.