Repository navigation
Description
Trivy reports a misconfiguration that no issue names.
- Rule: KSV-0012
- 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-0012 on the gpu-feature-discovery DaemonSet. The container must run as root to read GPUs and /sys until #5646, so the repository needs a scoped, time-limited ignore.
Acceptance criteria
Requirement: Scoped time-limited KSV-0012 ignore
The repository SHALL add a time-limited .trivyignore.yaml entry under misconfigurations: for KSV-0012, scoped to k8s/gpu-feature-discovery/daemonset.yaml, with expired_at and a statement that names #5646.
Scenario: KSV-0012 is suppressed for the DaemonSet
- WHEN
uv run devops review path k8s/gpu-feature-discovery/daemonset.yamlruns - THEN the review reports no KSV-0012 finding for that file.
Existing Tool Considered
No alternatives check has run. Trivy is the open, maintained scanner that reports KSV-0012, and it reads .trivyignore.yaml for a scoped ignore. The change builds no code.
Key questions
- Does the gpu-feature-discovery container need to run as root?: Yes. The manifest sets
privileged: true, mounts/sys, and records that it runs as root to read the GPUs and/sysuntil fix(security): remove privileged mode from gpu-feature-discovery #5646. [sources: k8s/gpu-feature-discovery/daemonset.yaml] - How should the repository judge the MEDIUM KSV-0012 alert?: Add a time-limited
.trivyignore.yamlentry undermisconfigurations:for KSV-0012, scoped tok8s/gpu-feature-discovery/daemonset.yaml, withexpired_atand a statement that names fix(security): remove privileged mode from gpu-feature-discovery #5646. (best practice) [sources: SECURITY.md, k8s/gpu-feature-discovery/daemonset.yaml]- Rejected: Fix the DaemonSet to run as non-root. The container reads GPUs through NVML and
/sys; the manifest records that it runs as root until fix(security): remove privileged mode from gpu-feature-discovery #5646. - Rejected: Dismiss GitHub alert 271 with a reason. This leaves no repository record, no expiry and no change for a pull request.
- Chosen: Add a scoped, time-limited Trivy ignore. Trivy reads
.trivyignore.yaml; the entry names the path, expiry and tracking issue fix(security): remove privileged mode from gpu-feature-discovery #5646.
- Rejected: Fix the DaemonSet to run as non-root. The container reads GPUs through NVML and
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 25, 2026
Judge Trivy-config KSV-0012 in k8s/gpu-feature-discovery/daemonset.yaml (alert 271)as the change that both ask for.Both ask to judge the same KSV-0012 rule in the same file with the same alert 271.A person closes one of the two if that is so.[-]fix(security): judge Trivy-config KSV-0012 in k8s/gpu-feature-discovery/daemonset.yaml[/-][+]fix(security): Judge Trivy-config KSV-0012 in gpu-feature-discovery[/+]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-0012 in k8s/gpu-feature-discovery/daemonset.yamlfix(security): Judge Trivy-config KSV-0012 in gpu-feature-discoverydevops-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 #6973, which holds the same rule KSV-0012, file and code scanning alert 271.
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. #6973 stays open until the alert showsfixed.