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
Dismiss code-scanning alert 268; no file edit is needed. Alert 268 reports Trivy KSV-0014 on k8s/gpu-feature-discovery/daemonset.yaml, but the container already sets securityContext.readOnlyRootFilesystem: true. The base spec also holds the requirement The GPU feature discovery workload sets a read-only root file system. So the judging outcome of SECURITY.md is a dismissal with a reason, not a manifest fix and not a .trivyignore.yaml entry. Gate: an actor with code-scanning write access must dismiss the alert. If the next daily scan still reports KSV-0014 for the file, the judge adds a dated .trivyignore.yaml entry with its reason and expiry.
Acceptance criteria
Requirement: Alert 268 is dismissed with a reason
The project SHALL dismiss code-scanning alert 268 with a reason that names the read-only root file system of the container.
Scenario: Read back the dismissed alert
- WHEN The judge dismisses alert 268 with
gh api -X PATCH repos/dan-petty/devops-cli/code-scanning/alerts/268 -f state=dismissed -f dismissed_reason="false positive" -f dismissed_comment="The container sets securityContext.readOnlyRootFilesystem: true" - THEN
gh api repos/dan-petty/devops-cli/code-scanning/alerts/268answers"state": "dismissed"and adismissed_commentthat namesreadOnlyRootFilesystem: true.
Requirement: No open KSV-0014 alert for the manifest
The code-scanning alert list SHALL hold no open KSV-0014 alert for k8s/gpu-feature-discovery/daemonset.yaml.
Scenario: List the open alerts after the next daily scan
- WHEN A person runs
gh api 'repos/dan-petty/devops-cli/code-scanning/alerts?state=open&per_page=100'after the dismissal and the next daily Trivy-config scan - THEN No alert in the answer has rule
KSV-0014and the pathk8s/gpu-feature-discovery/daemonset.yaml.
Existing Tool Considered
No alternatives check has run. The need is one judgment of one Trivy-config alert, and the open, maintained tool Trivy covers it: Trivy reports rule KSV-0014, and the GitHub code-scanning API holds the alert state and the dismissal. The change builds no code, so the written cost is 0 tokens to build, keep and fix such code, and 0 minutes of elapsed time.
Key questions
- Does the container in k8s/gpu-feature-discovery/daemonset.yaml set a read-only root file system?: Yes. The container
securityContextsetsreadOnlyRootFilesystem: true, so Trivy KSV-0014 does not apply to the current manifest. [sources: k8s/gpu-feature-discovery/daemonset.yaml] - Does the base spec already hold the read-only root file system requirement for this workload?: Yes. The
trivy-config-alertsspec holds the requirementThe GPU feature discovery workload sets a read-only root file system. [sources: openspec/specs/trivy-config-alerts/spec.md] - Which judging outcome does SECURITY.md give for an alert that the manifest already fixes?: Dismiss alert 268 with a reason. The reason names
securityContext.readOnlyRootFilesystem: trueand the path. (best practice) [sources: SECURITY.md, k8s/gpu-feature-discovery/daemonset.yaml]- Rejected: Fix the manifest. The container already sets
readOnlyRootFilesystem: true, so there is nothing to fix. - Chosen: Dismiss the alert with a reason. The finding does not reproduce, and the policy gives a dismissal with a reason for this case.
- Rejected: Add a dated .trivyignore.yaml entry. The entry suppresses a finding that the manifest cannot produce.
- Rejected: Fix the manifest. The container already sets
- Which code-scanning dismissal reason fits a finding that a later commit fixed?:
false positive. The current manifest holds no defect, and the comment names the setting and the path. (best practice) [sources: SECURITY.md]- Chosen: false positive. The current manifest sets the value, so the alert states no defect of the current code.
- Rejected: won't fix. The project does not accept the risk; the risk is gone.
- Rejected: used in tests. The file is a workload manifest, not a test.
- Does the change add a time-limited
.trivyignore.yamlentry for KSV-0014?: No. The manifest sets the value, so the entry would hide a later regression after its expiry. (best practice) [sources: k8s/gpu-feature-discovery/daemonset.yaml, SECURITY.md]- Rejected: Add a dated entry. The rule does not fire on the current manifest, so the entry hides a later regression.
- Chosen: Add no entry. The manifest sets the value, and the dismissal closes the stale alert.
- What happens if alert 268 stays open after this issue closes?: The filer files a new issue for the KSV-0014 group, because no open issue names it. The dismissal must land before the issue closes. [sources: openspec/specs/trivy-config-alerts/spec.md]
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 14, 2026
Judge Trivy-config KSV-0014 in k8s/gpu-feature-discovery/daemonset.yaml (alert 268): fix the file, dismiss the alert, or add a time-limited entry to .trivyignore.yamlas the change that both ask for.Both items ask to judge the same rule KSV-0014 in the same file and reference the same alert 268.A person closes one of the two if that is so.[-]fix(security): judge Trivy-config KSV-0014 in k8s/gpu-feature-discovery/daemonset.yaml[/-][+]fix(security): Judge Trivy-config KSV-0014 in gpu-feature-discovery[/+]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-0014 in k8s/gpu-feature-discovery/daemonset.yamlfix(security): Judge Trivy-config KSV-0014 in gpu-feature-discoverydevops-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: code scanning shows alert 268 as fixed (2026-11-15), so no work is left.
Also, dan-petty/homelab removed the GPU feature discovery DaemonSet on 2026-11-25 (dan-petty/homelab#234). The copy in this repository deploys nothing, and step 17 (#7290) deletes it.