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, a privileged container, for the GPU feature discovery DaemonSet. The container needs the privileged setting to read the GPUs through NVML and /sys until #5646. The change adds a dated ignore entry to .trivyignore.yaml so the scan passes and the alert closes.
Acceptance criteria
Requirement: Dated KSV-0001 ignore entry
The .trivyignore.yaml file SHALL hold a dated entry for KSV-0001 on k8s/gpu-feature-discovery/daemonset.yaml with the reason that the container runs privileged until #5646.
Scenario: The Trivy config scan ignores the privileged container.
- WHEN
uv run devops ci --check --only trivyruns. - THEN The command passes and reports no KSV-0001 finding for
k8s/gpu-feature-discovery/daemonset.yaml.
Existing Tool Considered
No alternatives check has run. Trivy is the open, maintained scanner that reports the alert. It covers the config scan and the .trivyignore.yaml ignore file with an expiry. It lacks a way to keep the privileged container and pass KSV-0001 without an ignore entry. The change adds a dated ignore entry, so the scan passes until #5646.
Key questions
- Does the GPU feature discovery container need the privileged setting?: Yes. The container reads the GPUs through NVML and the host
/sys. The annotations defer the removal to fix(security): remove privileged mode from gpu-feature-discovery #5646. [sources: k8s/gpu-feature-discovery/daemonset.yaml] - How should the KSV-0001 alert be judged?: Add a dated ignore entry to
.trivyignore.yamlfor KSV-0001 onk8s/gpu-feature-discovery/daemonset.yaml. The entry names the reason that the container runs privileged until fix(security): remove privileged mode from gpu-feature-discovery #5646. (best practice) [sources: SECURITY.md, openspec/specs/trivy-config-alerts/spec.md, k8s/gpu-feature-discovery/daemonset.yaml]- Rejected: Fix the manifest. The container needs
privileged: trueto read the GPUs through NVML and/sysuntil fix(security): remove privileged mode from gpu-feature-discovery #5646. - Rejected: Dismiss the alert in GitHub. The next scan reopens the alert because the finding stays in the file.
- Chosen: Add a dated ignore entry. The project already uses dated ignore entries for the privileged GPU workload, and the entry closes the alert until fix(security): remove privileged mode from gpu-feature-discovery #5646.
- Rejected: Fix the manifest. The container needs
- What expiry date should the ignore entry use?: Set
expired_atto a date within 90 days of the merge, and no later than the closure of fix(security): remove privileged mode from gpu-feature-discovery #5646. The entry expires then, and the scan reports the finding again. (best practice) [sources: SECURITY.md, openspec/specs/trivy-config-alerts/spec.md, k8s/gpu-feature-discovery/daemonset.yaml]- Rejected: 30 days. The GPU workload needs the privileged setting for longer than 30 days.
- Chosen: 90 days. It bounds the exception to one quarter and matches the time limit of the policy.
- Rejected: 180 days. It keeps the exception for two quarters and delays the review.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 19, 2026
Judge the KSV-0001 misconfiguration in k8s/gpu-feature-discovery/daemonset.yaml (alert 270): fix the file, dismiss the alert, or add a time-limited entry to .trivyignore.yamlas the change that both ask for.Same rule KSV-0001, same file, same alert 270, and identical acceptance criteria as item 6271.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 19, 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 19, 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.