Repository navigation
Description
Update 2026-11-26 (infra move): this workload is removed, so add no ignore entry and change no manifest.
- dan-petty/homelab removed GPU feature discovery (dan-petty/homelab#234), because it set no node label.
k8s/gpu-feature-discovery/here deploys nothing. Step 17 (refactor(k8s): delete the environment files from devops-cli #7290) deletes it and its.trivyignore.yamlentries.- Close this issue when step 17 is merged and code scanning shows alert 217 as fixed.
Trivy reports a misconfiguration that no issue names.
- Rule: KSV-0017
- 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
Add a dated .trivyignore.yaml entry for KSV-0017 on k8s/gpu-feature-discovery/daemonset.yaml; do not remove the privileged setting. Trivy reports the rule as HIGH. The container must stay privileged to read NVIDIA GPUs through NVML until #5646. The manifest cannot remove that privilege now. Alert 217 is the open record.
Acceptance criteria
Requirement: Dated KSV-0017 ignore entry
The repository SHALL hold a .trivyignore.yaml entry for KSV-0017 on k8s/gpu-feature-discovery/daemonset.yaml with a statement that names #5646 and a future expiry date.
Scenario: The k8s check applies the KSV-0017 ignore entry
- WHEN
uv run devops ci --check --only k8sruns - THEN the check passes and reports no KSV-0017 alert for
k8s/gpu-feature-discovery/daemonset.yaml.
Existing Tool Considered
No alternatives check has run. Trivy, already used by the repository, covers the need: .trivyignore.yaml holds a misconfiguration ID, a path, a statement and an expiry. The change builds no code. The tool lacks a manifest fix while the container stays privileged, so the ignore entry records the temporary exception.
Key questions
- How should the repository judge the HIGH KSV-0017 alert for the GPU feature discovery daemonset?: Add a time-limited
.trivyignore.yamlentry for KSV-0017 onk8s/gpu-feature-discovery/daemonset.yaml. The daemonset must stay privileged to read NVIDIA GPUs through NVML until fix(security): remove privileged mode from gpu-feature-discovery #5646. (best practice) [sources: SECURITY.md, k8s/gpu-feature-discovery/daemonset.yaml]- Chosen: Add a time-limited
.trivyignore.yamlentry. The security policy allows a dated ignore entry, and the manifest cannot remove the privilege until fix(security): remove privileged mode from gpu-feature-discovery #5646. - Rejected: Set
allowPrivilegeEscalation: false. A privileged container always has privilege escalation, so the field cannot fix KSV-0017 whileprivileged: truestays. - Rejected: Remove
privileged: true. The NVIDIA container needs privilege to read the GPUs and/sys; fix(security): remove privileged mode from gpu-feature-discovery #5646 tracks that removal. - Rejected: Dismiss the alert with no repository record. A dismissal leaves no dated entry in the repository and does not show the expiry in review.
- Chosen: Add a time-limited
- Which issue tracks the removal of the privileged GPU workload?: fix(security): remove privileged mode from gpu-feature-discovery #5646. The daemonset annotations cite fix(security): remove privileged mode from gpu-feature-discovery #5646 for the privileged, privilege-escalation, run-as-non-root and sensitive-host-mount exceptions. [sources: k8s/gpu-feature-discovery/daemonset.yaml]
- Can the daemonset set
allowPrivilegeEscalation: falseand keepprivileged: true?: No. A privileged container always hasallowPrivilegeEscalationset to true, so the field does not suppress KSV-0017 while the container stays privileged. [sources: k8s/gpu-feature-discovery/daemonset.yaml]
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 13, 2026
Both items judge the open KSV-0017 alert in the same file, but item 4409 is the umbrella that judges all 52 Trivy-config alerts and the candidate judges one alert.[-]fix(security): judge Trivy-config KSV-0017 in k8s/gpu-feature-discovery/daemonset.yaml[/-][+]fix(security): Judge KSV-0017 in gpu-feature-discovery daemonset[/+]devops-cli-service commentedon Nov 13, 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-0017 in k8s/gpu-feature-discovery/daemonset.yamlfix(security): Judge KSV-0017 in gpu-feature-discovery daemonsetdevops-cli-service commentedon Nov 17, 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: step 17 (#7317) deleted
k8s/gpu-feature-discovery/daemonset.yaml, and code scanning shows alert 217 as fixed on 2026-11-26.No manifest of this repository needs a change and no ignore entry is needed.