Repository navigation
Description
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
The GFD daemonset triggers Trivy KSV-0118 and no issue names it. The daemonset needs privileged host /sys and the NFD features directory. The change judges the HIGH alert by adding a narrow, time-limited ignore entry in .trivyignore.yaml.
Acceptance criteria
Requirement: KSV-0118 ignore entry
.trivyignore.yaml SHALL hold one misconfiguration entry with id: KSV-0118 and only the GFD daemonset path.
Scenario: The ignore matches the alert
- WHEN A test parses
.trivyignore.yaml. - THEN The file has one entry for
KSV-0118whosepathslist is onlyk8s/gpu-feature-discovery/daemonset.yaml.
Requirement: Time-limited statement
The KSV-0118 entry SHALL hold a statement that names the GFD reason and issue #5792, and an expired_at date no later than 3 days after the entry date.
Scenario: The entry expires within 3 days
- WHEN A test reads the entry and the commit date of the change.
- THEN The
expired_atdate is no later than the third day after the commit date, and thestatementcontains#5792.
Requirement: GFD workload stays unchanged
The change SHALL NOT change the privileged mode or the hostPath mounts of the GFD daemonset.
Scenario: The manifest keeps its mounts
- WHEN A test reads the diff of the change.
- THEN The diff changes no line under
k8s/gpu-feature-discovery/daemonset.yaml.
Requirement: Existing KSV-0017 ignore stays
The change SHALL keep the existing KSV-0017 entry in .trivyignore.yaml.
Scenario: The existing ignore is unchanged
- WHEN A test parses
.trivyignore.yamlafter the change. - THEN The
KSV-0017entry still has its originalpaths,statementandexpired_atvalues.
Existing Tool Considered
No alternatives check has run. Trivy config, already in use, detects KSV-0118. It lacks a safe manifest fix for the GFD host mounts. The change uses its .trivyignore.yaml support and builds no code.
Key questions
- Which judgment applies to KSV-0118?: Add a time-limited
.trivyignore.yamlentry. The GFD daemonset needs privileged host/sysand the NFD features directory. Removing the hostPath mounts would break the workload. SECURITY.md names this entry as option 2. (best practice) [sources: SECURITY.md, k8s/gpu-feature-discovery/daemonset.yaml, .trivyignore.yaml]- Rejected: Fix the daemonset. Removing the hostPath mounts would stop GFD from reading GPU sysfs and writing NFD feature files.
- Rejected: Dismiss the alert. Only a person dismisses an alert, and no person decision is recorded.
- Chosen: Add a time-limited ignore. SECURITY.md allows this entry when the fix breaks the workload, and the entry expires by itself.
- What expiry date does the KSV-0118 entry get?: Set
expired_atto the entry date plus 3 days. The agent renews it at most to 14 days in all. (best practice) [sources: SECURITY.md]- Chosen: 3 days from the entry date. SECURITY.md sets the first agent entry to 3 days.
- Rejected: 14 days from the entry date. 14 days is the maximum after renewals, not the first entry.
- Rejected: A date set by the owner. No owner decision records another date.
- Which file and key hold the KSV-0118 ignore?:
.trivyignore.yamlundermisconfigurations. [sources: .trivyignore.yaml, SECURITY.md]
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 15, 2026
The alert has HIGH severity, and the policy sets a 14-day judgement limit for it.Judge Trivy-config alert 269 for rule KSV-0118 in k8s/gpu-feature-discovery/daemonset.yamlas the change that both ask for.Item 5641 names the same rule, path and alert 269, so one delivery closes both.A person closes one of the two if that is so.[-]fix(security): judge Trivy-config KSV-0118 in k8s/gpu-feature-discovery/daemonset.yaml[/-][+]fix(security): Judge KSV-0118 in the GFD daemonset file[/+]devops-cli-service commentedon Nov 15, 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 the GFD daemonset filedevops-cli-service commentedon Nov 15, 2026
Waiting for the alternatives check to run. The next refine round looks at the item again after the check records a verdict.
fix(security): Judge KSV-0118 with a dated ignore entry (#5792)
chore(main): release 0.152.1 (#5828)
devops-cli-service commentedon Nov 15, 2026
Released in v0.152.1: https://github.com/dan-petty/devops-cli/releases/tag/v0.152.1
devops-cli-service commentedon Nov 15, 2026
Live since 2026-11-15 13:10 UTC