Repository navigation
Description
Trivy reports a misconfiguration that no issue names.
- Rule: KSV-0014
- 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-0014 as a HIGH misconfiguration on k8s/gpu-feature-discovery/daemonset.yaml. The GPU feature discovery container must stay privileged to read the GPUs through NVML and /sys until #5646. The issue judges the alert and records a dated ignore entry in .trivyignore.yaml.
Acceptance criteria
Requirement: Dated ignore entry for KSV-0014
The IaC ignore file SHALL hold an entry for KSV-0014 on k8s/gpu-feature-discovery/daemonset.yaml with an expiry date and a reason that names #5646.
Scenario: The k8s CI check reads the ignore entry
- WHEN
uv run devops ci --check --only k8sruns on the change - THEN the command exits 0 and the IaC scan shows no open KSV-0014 alert for the path.
Requirement: Ignore entry has a time limit
The KSV-0014 ignore entry MUST hold an expiry date so the alert returns after that date.
Scenario: The IaC scan reads the expiry of the ignore entry
- WHEN
uv run devops ci --check --only k8sruns on the change - THEN the command exits 0 and the IaC scan accepts the entry as valid until 2026-12-31.
Requirement: GFD daemonset keeps its privileged mode
The GFD daemonset MUST keep privileged: true and the /sys hostPath mount until #5646.
Scenario: The k8s check accepts the privileged GFD daemonset
- WHEN
uv run devops ci --check --only k8sruns on the change - THEN the command exits 0 and the IaC scan accepts the GFD daemonset with the dated ignore entry.
Existing Tool Considered
No alternatives check has run. Trivy, an open and maintained tool already used by the IaC scan, covers the detection of KSV-0014. It lacks a policy decision, so the change adds a dated ignore entry to .trivyignore.yaml and builds no code.
Key questions
- Which action does SECURITY.md require for the KSV-0014 alert on the GFD daemonset?: Add a dated
.trivyignore.yamlentry for KSV-0014 on k8s/gpu-feature-discovery/daemonset.yaml. The GFD container must stay privileged to read the GPUs through NVML and /sys until fix(security): remove privileged mode from gpu-feature-discovery #5646. (best practice) [sources: SECURITY.md, k8s/gpu-feature-discovery/daemonset.yaml, .trivyignore.yaml]- Rejected: Set allowPrivilegeEscalation to false. Kubernetes makes privilege escalation always true for a privileged container, and the container needs privileged mode until fix(security): remove privileged mode from gpu-feature-discovery #5646.
- Rejected: Dismiss alert 268 in GitHub. A GitHub dismissal has no expiry and no versioned record in the repository.
- Chosen: Add a dated .trivyignore.yaml entry. SECURITY.md accepts a time-limited ignore entry, and the manifest names fix(security): remove privileged mode from gpu-feature-discovery #5646 as the removal issue.
- What expiry date should the KSV-0014 ignore entry use?: Use 2026-12-31. The entry must return the alert if fix(security): remove privileged mode from gpu-feature-discovery #5646 does not close by that date. (best practice) [sources: k8s/gpu-feature-discovery/daemonset.yaml]
- Chosen: 2026-12-31. A fixed date forces a new judgment before the next quarter and ties the entry to fix(security): remove privileged mode from gpu-feature-discovery #5646.
- Rejected: 90 days from the change. A moving date hides the removal condition and makes the expiry depend on the run date.
- Rejected: No expiry. SECURITY.md requires a time-limited entry.
- Which rule ID and path must the ignore entry name?: Name rule KSV-0014 and path k8s/gpu-feature-discovery/daemonset.yaml, as alert 268 reports. [sources: k8s/gpu-feature-discovery/daemonset.yaml]
- Does the GFD daemonset need a change to its security context?: No. The container must stay privileged to read the GPUs and /sys until fix(security): remove privileged mode from gpu-feature-discovery #5646, and the manifest already sets readOnlyRootFilesystem to true. [sources: k8s/gpu-feature-discovery/daemonset.yaml, SECURITY.md]
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 13, 2026
Both items judge Trivy-config alerts, but #4409 is the umbrella that tracks the full set and the candidate judges only KSV-0014.[-]fix(security): judge Trivy-config KSV-0014 in k8s/gpu-feature-discovery/daemonset.yaml[/-][+]fix(security): Judge KSV-0014 in GFD 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-0014 in k8s/gpu-feature-discovery/daemonset.yamlfix(security): Judge KSV-0014 in GFD 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: alert 268 is
fixed(2026-11-15).Also, dan-petty/homelab removed GPU feature discovery, and step 17 (#7290) deletes the dead copy of its manifest here.