Repository navigation
Description
Trivy reports a misconfiguration that no issue names.
- Rule: KSV-0001
- Path: k8s/gpu-feature-discovery/daemonset.yaml
- Severity: MEDIUM
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-0001 on the GPU feature discovery DaemonSet. The container must run privileged to read the GPUs through NVML and /sys until #5646. The issue asks for a judgment: fix the file, dismiss the alert, or add a time-limited ignore entry.
Acceptance criteria
Requirement: Time-limited Trivy ignore for KSV-0001
The repository SHALL add a time-limited .trivyignore.yaml entry for KSV-0001 on k8s/gpu-feature-discovery/daemonset.yaml that states the reason and the tracking issue.
Scenario: The review suppresses the alert
- WHEN
uv run devops review path k8s/gpu-feature-discovery/daemonset.yamlruns on the change - THEN the command reports no KSV-0001 finding for the file.
Existing Tool Considered
No alternatives check has run. Trivy (Apache-2.0, maintained by Aqua Security) covers the need: it detects KSV-0001 and reads .trivyignore.yaml with path scoping and an expiry. It lacks no feature for this change. This change adds no code; it adds one ignore entry.
Key questions
- Which action judges the KSV-0001 alert?: Add a time-limited
.trivyignore.yamlentry for KSV-0001 onk8s/gpu-feature-discovery/daemonset.yaml. (best practice) [sources: SECURITY.md, k8s/gpu-feature-discovery/daemonset.yaml]- Rejected: Fix the manifest. The container must run privileged to read the GPUs through NVML and /sys until fix(security): remove privileged mode from gpu-feature-discovery #5646. The file annotation already records this accepted risk.
- Rejected: Dismiss the alert in GitHub. A dismissal changes GitHub state only. The repository holds no record of the judgment, and the issue delivers a pull request.
- Chosen: Add a time-limited ignore entry. The entry scopes the accepted risk to the file, states the reason and expires.
- What reason should the ignore entry state?: The NVIDIA manifest runs privileged to read the GPUs through NVML and /sys, until fix(security): remove privileged mode from gpu-feature-discovery #5646. [sources: k8s/gpu-feature-discovery/daemonset.yaml]
- What expiry should the ignore entry use?: Set the expiry to the date that SECURITY.md sets for a Trivy-config ignore entry. (best practice) [sources: SECURITY.md]
- Chosen: Use the SECURITY.md expiry for a Trivy-config alert. The project policy sets the time limit for this class of alert.
- Rejected: Use the 3-day expiry of a package finding with no fix. That rule applies to a vulnerable package with no fix, not to a Trivy-config alert.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 25, 2026
Judge Trivy-config alert KSV-0001 (alert 270) in k8s/gpu-feature-discovery/daemonset.yaml by fixing the file, dismissing the alert, or adding a time-limited entry to .trivyignore.yamlas the change that both ask for.Both items ask to judge the same rule KSV-0001, same file, same alert 270, with the same acceptance criteria.A person closes one of the two if that is so.[-]fix(security): judge Trivy-config KSV-0001 in k8s/gpu-feature-discovery/daemonset.yaml[/-][+]fix(security): Judge KSV-0001 in k8s/gpu-feature-discovery/daemonset.yaml[/+]devops-cli-service commentedon Nov 25, 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-0001 in k8s/gpu-feature-discovery/daemonset.yamlfix(security): Judge KSV-0001 in k8s/gpu-feature-discovery/daemonset.yamldevops-cli-service commentedon Nov 25, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.
dan-petty commentedon Nov 26, 2026
Closed: duplicate of #6271, which holds the same rule KSV-0001, file and code scanning alert 270.
gpu-feature-discovery is removed from the cluster (dan-petty/homelab#234). The copy in
k8s/gpu-feature-discovery/deploys nothing, and step 17 (#7290) deletes it. #6271 stays open until the alert showsfixed.