Repository navigation
Description
Update 2026-11-26 (infra move): do not change or judge this manifest. The cluster no longer runs gpu-feature-discovery (removed in dan-petty/homelab), and #7290 deletes k8s/gpu-feature-discovery/ here. Close this issue after that merge, when alert 218 is closed.
Trivy reports a misconfiguration that no issue names.
- Rule: KSV-0121
- 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 alert 218 reports KSV-0121 on k8s/gpu-feature-discovery/daemonset.yaml. The GPU feature discovery DaemonSet must run privileged as root to read the GPUs until #5646. The change records a time-limited .trivyignore.yaml entry with a reason and an expiry. It changes no workload code.
Acceptance criteria
Requirement: Dated KSV-0121 ignore entry
The .trivyignore.yaml file MUST hold one misconfigurations entry with id: KSV-0121, the path k8s/gpu-feature-discovery/daemonset.yaml, a statement that names #5646, and an expired_at date no later than 90 days after the merge.
Scenario: The ignore file holds a bounded entry
- WHEN
uv run devops ci --check --only k8sruns - THEN The command exits 0 and the entry shows the KSV-0121 id, the one path, a
statementwith#5646, and a futureexpired_atdate.
Requirement: The KSV-0121 alert is closed in the scan
The Trivy config scan MUST report no open KSV-0121 for k8s/gpu-feature-discovery/daemonset.yaml.
Scenario: The scan reads the new ignore entry
- WHEN
uv run devops ci --check --only k8sruns - THEN The command exits 0 and shows no open KSV-0121 for
k8s/gpu-feature-discovery/daemonset.yaml.
Existing Tool Considered
No alternatives check has run. Trivy, the open, maintained scanner already in use, covers the need: it reports KSV-0121 and reads .trivyignore.yaml. It does not change the workload. The change adds a dated ignore entry and builds no code.
Key questions
- Which action does SECURITY.md require for the KSV-0121 alert?: Add a time-limited
.trivyignore.yamlentry. The DaemonSet must run privileged as root to read the GPUs until fix(security): remove privileged mode from gpu-feature-discovery #5646. A manifest fix would break that access. (best practice) [sources: SECURITY.md, k8s/gpu-feature-discovery/daemonset.yaml, .trivyignore.yaml]- Rejected: Fix the manifest. The container needs privileged root access to read the GPUs until fix(security): remove privileged mode from gpu-feature-discovery #5646.
- Rejected: Dismiss the alert with a reason. A dismissal has no expiry in the repository, so the alert can return with no dated record.
- Chosen: Add a time-limited
.trivyignore.yamlentry. SECURITY.md names this path for an alert that the workload cannot fix, and the entry carries a reason and an expiry.
- What expiry date does the KSV-0121 ignore entry use?: Set
expired_atto 2027-02-28. This date is no more than 90 days after a late-November 2026 merge. Adjust the date to stay within 90 days of the actual merge. (best practice) [sources: SECURITY.md, k8s/gpu-feature-discovery/daemonset.yaml]- Rejected: 30 days. The fix fix(security): remove privileged mode from gpu-feature-discovery #5646 may not land in 30 days, so the alert would return too soon.
- Chosen: 90 days. The window is time-limited and gives fix(security): remove privileged mode from gpu-feature-discovery #5646 a quarter to land.
- Rejected: 1 year. A year hides the alert for too long.
- Does the GPU feature discovery DaemonSet need the privileged root context?: Yes. The manifest sets
privileged: true, reads/sys, and names fix(security): remove privileged mode from gpu-feature-discovery #5646 as the item that removes the privileged context. [sources: k8s/gpu-feature-discovery/daemonset.yaml]
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 14, 2026
Both judge a Trivy-config alert in the same daemonset.yaml file, but for different rules (KSV-0121 vs KSV-0017).[-]fix(security): judge Trivy-config KSV-0121 in k8s/gpu-feature-discovery/daemonset.yaml[/-][+]fix(security): Judge KSV-0121 in k8s/gpu-feature-discovery/daemonset.yaml[/+]devops-cli-service commentedon Nov 14, 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-0121 in k8s/gpu-feature-discovery/daemonset.yamlfix(security): Judge KSV-0121 in k8s/gpu-feature-discovery/daemonset.yamldevops-cli-service commentedon Nov 18, 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 218 as fixed on 2026-11-26.No manifest of this repository needs a change and no ignore entry is needed.