Repository navigation
Description
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
Trivy reports rule KSV-0017 at k8s/gpu-feature-discovery/daemonset.yaml with severity HIGH, and alert 217 holds it. No issue names it. SECURITY.md requires a judgment of the alert: fix the file, dismiss the alert with a reason, or add a time-limited entry to .trivyignore.yaml. An agent judges an alert that is not CRITICAL within 14 days.
Acceptance criteria
Requirement: Dated ignore entry for KSV-0017 in the GPU feature discovery manifest
The IaC scan MUST hold a dated ignore entry for rule KSV-0017 at k8s/gpu-feature-discovery/daemonset.yaml, with a reason that names the privileged NVIDIA reader (#5646) and an expiry date.
Scenario: The IaC scan reports no KSV-0017 finding for the GPU feature discovery manifest
- WHEN The check runs
uv run devops ci --check --only k8s - THEN The check passes, and its Trivy-config output holds no KSV-0017 finding for k8s/gpu-feature-discovery/daemonset.yaml.
Existing Tool Considered
No alternatives check has run. Trivy, which is open and maintained, covers the need: it reports the KSV-0017 finding, and it reads .trivyignore.yaml, whose entries name a rule, a path, a reason and an expiry date. The change builds no code. It adds one entry to that file, and the base spec trivy-config-alerts already holds the expiry behavior.
Key questions
- Which judgments does SECURITY.md allow for a HIGH Trivy-config alert?: SECURITY.md gives three judgments: fix the file, dismiss the alert with a reason, or add a time-limited entry to .trivyignore.yaml. An agent judges an alert that is not CRITICAL within 14 days. [sources: SECURITY.md]
- Which judgment applies to KSV-0017 at k8s/gpu-feature-discovery/daemonset.yaml?: Add a dated ignore entry to .trivyignore.yaml. The container runs privileged to read the GPUs and /sys until fix(security): remove privileged mode from gpu-feature-discovery #5646. The repository already judges the privileged and host-mount checks of this container with dated entries. (best practice) [sources: k8s/gpu-feature-discovery/daemonset.yaml, openspec/specs/trivy-config-alerts/spec.md, SECURITY.md]
- Chosen: Add a dated entry to .trivyignore.yaml. The container keeps privileged mode and root until fix(security): remove privileged mode from gpu-feature-discovery #5646. The expiry date makes the next review due.
- Rejected: Fix the security context in the manifest. A privileged container keeps root and all capabilities, so the settings that the rule asks for take no effect.
- Rejected: Dismiss alert 217 on GitHub with no repository change. The repository then holds no record of the judgment, and the entry has no expiry date.
- Which expiry date does the new ignore entry take?: Take the expiry date that the other dated ignore entries of this workload use, so one renewal covers them together. (best practice) [sources: .trivyignore.yaml, openspec/specs/trivy-config-alerts/spec.md]
- Chosen: The expiry date of the other dated entries of this workload. One renewal then covers each ignore entry of the workload.
- Rejected: A separate fixed date, such as 90 days from the merge. It adds a second renewal date for the same workload.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 22, 2026
Judge Trivy-config alert 217 (KSV-0017) in k8s/gpu-feature-discovery/daemonset.yaml by fixing the file, dismissing the alert, or adding a time-limited entry to .trivyignore.yamlas the change that both ask for.The candidate and #5371 both ask to judge the same alert 217 for the same rule KSV-0017 in the same file, with identical acceptance criteria.A person closes one of the two if that is so.[-]fix(security): judge Trivy-config KSV-0017 in k8s/gpu-feature-discovery/daemonset.yaml[/-][+]fix(security): Judge Trivy-config KSV-0017 in gpu-feature-discovery[/+]devops-cli-service commentedon Nov 22, 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 Trivy-config KSV-0017 in gpu-feature-discoverydevops-cli-service commentedon Nov 23, 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 #5371, which holds the same rule KSV-0017, file and code scanning alert 217.
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. #5371 stays open until the alert showsfixed.