Repository navigation
Description
Update 2026-11-26 (infra move): gpu-feature-discovery is removed from the cluster.
dan-petty/homelab removed it because it labels nothing (dan-petty/homelab#234). k8s/gpu-feature-discovery/ in devops-cli deploys nothing, and step 17 (#7290) deletes it. Do not change the manifest. Alert 269 was still open on 2026-11-26. Close this issue when #7290 is merged and the alert shows fixed.
Trivy reports a misconfiguration that no issue names.
- Rule: KSV-0118
- 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's Kubernetes IaC scan reports KSV-0118 (HIGH) for the gpu-feature-discovery DaemonSet, and code scanning alert 269 is open. The repository already holds the judged exception: .trivyignore.yaml:12-16 names rule KSV-0118, the path k8s/gpu-feature-discovery/daemonset.yaml, the default pod security context of GFD v0.16.2 and the tracking issue #5646, with expired_at 2026-11-18. An entry applies only before its expired_at day, so that exception lapses on 2026-11-18 while the workload still has to run privileged as root with the host /sys mount until #5646 lands. The change renews that single dated entry with a fresh expiry inside the agent's 3-day limit, so the next Security Scan stops reporting the finding and alert 269 closes.
Acceptance criteria
Requirement: Renewed KSV-0118 exception for the GPU DaemonSet
The .trivyignore.yaml MUST hold one dated misconfigurations entry for rule KSV-0118 on the path k8s/gpu-feature-discovery/daemonset.yaml, with a statement that names the default pod security context of GFD v0.16.2 and the tracking issue #5646, and an expired_at no more than 3 days after the renewal day, in place of the lapsed entry.
Scenario: The IaC scan ignores the judged finding
- WHEN
uv run devops scan report --sarif .data/scan.sarif --skip bandit,trivy,kubelinterruns on the changed tree with the pinned Trivy 0.76.2 - THEN The command reports no trivy-config finding of rule KSV-0118 for k8s/gpu-feature-discovery/daemonset.yaml, so the SARIF upload closes the alert.
Requirement: Open alert 269 closes
The change MUST cause code scanning alert 269 to close on the next Security Scan of the default branch.
Scenario: The code scanning alert is resolved
- WHEN The Security Scan step of .github/workflows/ci.yml uploads its SARIF on main after the change merges, and .github/workflows/trivy-config-alerts.yml then runs
uv run devops scan alerts - THEN Code scanning shows no open Trivy-config alert of rule KSV-0118 for k8s/gpu-feature-discovery/daemonset.yaml, and the alerts run files no issue for that rule and path.
Existing Tool Considered
No alternatives check has run. Trivy (aquasecurity/trivy), pinned at 0.76.2 (.devcontainer/Dockerfile:96), is the open, maintained scanner that reports KSV-0118 and covers Kubernetes IaC misconfiguration detection, and TrivyConfigScanner hands it .trivyignore.yaml with --ignorefile (src/devops_cli/security/trivy.py:243). It lacks any way to accept a container that must run privileged as root and read the host /sys through NVML, so the check cannot pass without a path-scoped, dated ignore entry. The change uses that mechanism and builds no code.
Key questions
- Does the repository already hold a KSV-0118 ignore entry for the gpu-feature-discovery DaemonSet, and what does it say?: Yes. .trivyignore.yaml:12-16 holds a misconfigurations entry with id KSV-0118, path k8s/gpu-feature-discovery/daemonset.yaml, statement "Default pod security context of GFD v0.16.2 (fix(security): remove privileged mode from gpu-feature-discovery #5646)" and expired_at 2026-11-18. The requirement that records it is openspec/specs/trivy-config-alerts/spec.md:87. So the change renews that one entry rather than adding a second one for the same rule and path. [sources: .trivyignore.yaml:12, .trivyignore.yaml:16, openspec/specs/trivy-config-alerts/spec.md:87]
- What does KSV-0118 report, and can the DaemonSet satisfy it before fix(security): remove privileged mode from gpu-feature-discovery #5646?: KSV-0118 reports that the workload uses the default pod security context, which allows root privileges. The container must run privileged to read the GPUs through NVML and mounts the host /sys, and the manifest already records the privileged, privilege-escalation, run-as-non-root and sensitive-host-mount exceptions for kube-linter until fix(security): remove privileged mode from gpu-feature-discovery #5646, so the check cannot pass until fix(security): remove privileged mode from gpu-feature-discovery #5646 lands. [sources: k8s/gpu-feature-discovery/daemonset.yaml:75, k8s/gpu-feature-discovery/daemonset.yaml:81, k8s/gpu-feature-discovery/daemonset.yaml:17, .trivyignore.yaml:15, openspec/changes/archive/2026-11-15-5792-judge-trivy-ksv-0118/proposal.md:34]
- Which command proves that the KSV-0118 entry takes effect?: There is no trivy row in the gate: the rows of
uv run devops ci --check --onlyend with kube-linter, k8s and the other static rows and name no trivy row (src/devops_cli/commands/ci.py:130-157), so the former criterion's--only trivycannot run. The IaC scan is the Security Scan step,uv run devops scan report --sarif .data/scan.sarif --skip bandit,trivy,kubelinter(.github/workflows/ci.yml:107), and the trivy-config adapter passes .trivyignore.yaml with --ignorefile (src/devops_cli/security/trivy.py:243), so that live check is the proof. [sources: src/devops_cli/commands/ci.py:130, src/devops_cli/commands/ci.py:150, .github/workflows/ci.yml:107, src/devops_cli/security/trivy.py:243] - May the change add a test that asserts the .trivyignore.yaml entry?: No. docs/TESTING.md:61 forbids a test that asserts a value of a manifest or config file, because an update of such a value must need no test change; the schema and policy tools of CI check those files. tests/security/test_trivy_config_ignore.py holds only the scanner command tests today, so the acceptance criteria name the Trivy scan as the live check and no entry test is added. [sources: docs/TESTING.md:61, tests/security/test_trivy_config_ignore.py:15]
- How should the project judge the KSV-0118 alert for the gpu-feature-discovery DaemonSet?: Renew the single dated entry of .trivyignore.yaml for KSV-0118 at k8s/gpu-feature-discovery/daemonset.yaml, keeping the statement that names the default pod security context of GFD v0.16.2 and fix(security): remove privileged mode from gpu-feature-discovery #5646 and moving expired_at to a fresh date no more than 3 days after the renewal day. The manifest fix stays with fix(security): remove privileged mode from gpu-feature-discovery #5646, and no person dismisses the alert. (best practice) [sources: SECURITY.md:104, SECURITY.md:105, SECURITY.md:106, .trivyignore.yaml:12, k8s/gpu-feature-discovery/daemonset.yaml:75, openspec/specs/trivy-config-alerts/spec.md:87]
- Rejected: Fix the DaemonSet security context. SECURITY.md:104 makes the fix the first choice, but the container needs privileged root access to read the GPUs through NVML and the host /sys, so a stricter context breaks the workload until fix(security): remove privileged mode from gpu-feature-discovery #5646; the manifest records those exceptions for kube-linter already.
- Rejected: Dismiss alert 269 in code scanning. SECURITY.md:106 says an agent does not dismiss an alert, and a manual dismissal leaves no dated repository record for the next reviewer.
- Chosen: Renew the dated .trivyignore.yaml entry. SECURITY.md:105 names the dated entry for a fix that breaks the workload, and the repository already judged this finding that way; the renewal keeps the risk scoped to one rule and one path and lets the next scan close the alert.
- What expiry should the renewed KSV-0118 ignore entry use?: An expired_at no more than 3 days after the renewal day, which is the agent's limit under SECURITY.md:105 and the rule that openspec/specs/trivy-config-alerts/spec.md:87 records for this entry; the earlier entry followed it with 2026-11-18, three days after its 2026-11-15 commit. The entry may be renewed up to 14 days in all, and any longer date is the owner's decision and must be named in the statement. An entry applies only before its expired_at day (SECURITY.md:81), so the date must be in the future when the change merges. (best practice) [sources: SECURITY.md:105, SECURITY.md:81, openspec/specs/trivy-config-alerts/spec.md:87, .trivyignore.yaml:16]
- Chosen: 3 days after the renewal day. This is the agent's limit in SECURITY.md:105, the rule of openspec/specs/trivy-config-alerts/spec.md:87, and the interval the existing entry used (2026-11-15 to 2026-11-18).
- Rejected: 14 days. 14 days is only the ceiling of all renewals together, not one entry's date; a single entry of that length needs the owner's decision recorded in the statement.
- Rejected: 90 days. This keeps a HIGH exception open for a quarter and is a longer date than an agent may set; SECURITY.md:105 gives a longer date to the owner alone, with the decision named in the statement.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 13, 2026
Item 4409 is the umbrella that judges the 52 open Trivy-config alerts, and the candidate judges one of those alerts as a separate item.[-]fix(security): judge Trivy-config KSV-0118 in k8s/gpu-feature-discovery/daemonset.yaml[/-][+]fix(security): Judge KSV-0118 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-0118 in k8s/gpu-feature-discovery/daemonset.yamlfix(security): Judge KSV-0118 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 269 as fixed on 2026-11-26.No manifest of this repository needs a change and no ignore entry is needed.