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 config reports KSV-0017 at HIGH for k8s/gpu-feature-discovery/daemonset.yaml. The gpu-feature-discovery container runs with privileged: true. The GFD v0.16.2 workload needs this access for NVIDIA GPU devices and sysfs. The change adds a short-lived .trivyignore.yaml entry and files the real manifest fix as a deferred issue.
Acceptance criteria
Requirement: Ignore entry names rule and path
The .trivyignore.yaml file SHALL hold one entry with id: KSV-0017 and paths: [k8s/gpu-feature-discovery/daemonset.yaml].
Scenario: Entry matches the open alert
- WHEN A reviewer reads
.trivyignore.yamlafter the pull request. - THEN The file holds one entry with the rule
KSV-0017and the pathk8s/gpu-feature-discovery/daemonset.yaml.
Requirement: Ignore entry has a short expiry
The entry MUST set expired_at to a date no more than 3 days after the merge date.
Scenario: Entry expires within the agent limit
- WHEN A reviewer reads the
expired_atvalue. - THEN The date is no more than 3 days after the date of the entry.
Requirement: Ignore entry states the reason and tracking issue
The entry statement MUST name the privileged GPU access reason and the deferred tracking issue.
Scenario: Statement is complete
- WHEN A reviewer reads the
statementvalue. - THEN The text names the reason and the number of the deferred issue.
Requirement: Manifest stays unchanged
The pull request SHALL NOT change k8s/gpu-feature-discovery/daemonset.yaml.
Scenario: Privileged mode stays for the GPU workload
- WHEN A reviewer reads the pull request diff.
- THEN The diff holds no change to
k8s/gpu-feature-discovery/daemonset.yaml.
Requirement: Trivy scan honors the entry
The Trivy config scan SHALL report no open KSV-0017 alert for the path after the entry.
Scenario: Scan reads the ignore file
- WHEN
trivy configruns on the repository with.trivyignore.yaml. - THEN The scan reports no KSV-0017 finding for
k8s/gpu-feature-discovery/daemonset.yaml.
Existing Tool Considered
No alternatives check has run. Trivy config is the open, maintained tool in the Security Scan. It detects KSV-0017 and reads .trivyignore.yaml. It does not remove the need for the deferred manifest fix. This proposal builds no code, so the build cost is zero.
Key questions
- Should the change fix the manifest or add a time-limited ignore entry?: Add a time-limited
.trivyignore.yamlentry and defer the manifest fix. The GFD v0.16.2 workload needs privileged access to GPU devices and sysfs. A manifest fix would remove that access. (best practice) [sources: SECURITY.md, k8s/gpu-feature-discovery/daemonset.yaml]- Rejected: Fix the manifest. Removing
privileged: truewould remove GPU device access that GFD v0.16.2 needs. - Chosen: Add a time-limited ignore entry. SECURITY.md allows this when a fix breaks the workload, and the entry expires by itself.
- Rejected: Dismiss the alert. An agent does not dismiss a code-scanning alert; only a person does.
- Rejected: Fix the manifest. Removing
- What expiry does SECURITY.md require for an agent ignore entry?: 3 days, with renewals of at most 14 days in all. A longer date is the owner's decision. [sources: SECURITY.md]
- Which manifest field does the deferred fix change?: The
securityContext.privilegedfield of thegpu-feature-discoverycontainer ink8s/gpu-feature-discovery/daemonset.yaml. [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
HIGH severity security alert with a 14-day judgment deadline.Judge (fix, dismiss, or ignore) the KSV-0017 Trivy-config alert in k8s/gpu-feature-discovery/daemonset.yamlas the change that both ask for.Same rule KSV-0017, same file, same alert 217, same acceptance criteria as item 5371.A person closes one of the two if that is so.devops-cli-service commentedon Nov 14, 2026
Status set to Ready at 0410772 (see proposed design in issue body).
Moved to new items: #5646.
[-]fix(security): judge Trivy-config KSV-0017 in k8s/gpu-feature-discovery/daemonset.yaml[/-][+]fix(security): Judge KSV-0017 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-0017 in k8s/gpu-feature-discovery/daemonset.yamlfix(security): Judge KSV-0017 in k8s/gpu-feature-discovery/daemonset.yamldevops-cli-service commentedon Nov 14, 2026
Staged: branch
fix/5640-judge-ksv-0017-in-k8s-gpu, draft pull request #5654. The pull request plans the item and closes no issue.The task groups, with the tokens of the inputs of each step, for a budget of 64000 tokens:
A model review of the plan found these points. They stop no draft, and a person judges them:
contrived_testat tasks (1): The new test re-reads the entry that the same group writes and accepts any parseable date, so it passes for a wrong expiry and proves nothing about the issue's 3-day limit or the reason in the statement. Evidence: "asserts astatementthat holds#5646and anexpired_atthat parses as a date"spec_delta_wrongat spec trivy-config-alerts (The privileged GPU workload holds a dated ignore entry): Scenario 1's THEN says only "an expiry date", so no test asserts the requirement's 3-day bound, and scenario 2's second-entry case cannot be exercised by a test that reads the committed file. Evidence: "it finds one misconfiguration entry of the rule KSV-0017 and the path of the GPU feature discovery DaemonSet, and the entry holds a statement with the tracking issue fix(security): remove privileged mode from gpu-feature-discovery #5646 and an expiry date"criterion_droppedat issue (The Trivy config scan SHALL report no open KSV-0017 alert for the path after the entry.): The plan has no task that runstrivy configordevops scan report, and the only verify runs pytest, so the criterion that the scan report no KSV-0017 finding for the path is never exercised. Evidence: "The Trivy config scan SHALL report no open KSV-0017 alert for the path after the entry."false_premiseat proposal (feasibility): The feasibility says the test allowlists each other entry, but the group's implementation only finds the KSV-0017 entry and asserts it; no allowlist exists. Evidence: "the test allowlists each other entry with the reason that another judged alert owns it"The runs of the planner and the review made 72 model request(s), and used 4357551 input tokens and 104601 output tokens. The tool calls, in order:
list_files({"directory":""})search_code({"text":"trivyignore"})read_file({"path":"SECURITY.md","start_line":55,"end_line":140})read_file({"path":"tests/security/test_trivy_config_ignore.py"})search_code({"text":"Judging a Trivy-config Alert"})list_files({"directory":".github/workflows"})read_file({"path":"SECURITY.md","start_line":87,"end_line":130})read_file({"path":".github/workflows/trivy-config-alerts.yml"})read_file({"path":".github/workflows/ci.yml","start_line":600,"end_line":720})search_code({"text":"trivy config"})search_code({"text":"Security Scan"})search_code({"text":"KSV-"})read_file({"path":".github/workflows/ci.yml","start_line":60,"end_line":140})read_file({"path":"src/devops_cli/security/trivy.py"})read_file({"end_line":300,"path":"src/devops_cli/security/trivy.py","start_line":179})search_code({"text":"CONST_TRIVY_CONFIG_IGNORE_FILE"})read_file({"path":".trivyignore"})list_files({"directory":"k8s/gpu-feature-discovery"})list_files({"directory":"k8s"})search_code({"text":"privileged: true"})find_issues({"terms":"gpu-feature-discovery"})find_issues({"terms":"KSV-0017"})read_issue({"number":5646})read_issue({"number":5371})search_code({"text":"case path forces the manifest kind"})search_code({"text":"manifest"})read_spec({"capability":"roadmap-stage/task-groups","requirement":"A case path forces the manifest kind"})read_spec({"capability":"trivy-config-alerts"})search_code({"text":"case_path"})search_code({"text":"_CASE_PATH"})read_file({"path":"src/devops_cli/roadmap/stage/stage_form.py","start_line":40,"end_line":90})read_file({"path":"src/devops_cli/roadmap/stage/stage_form.py","start_line":180,"end_line":300})read_file({"path":"openspec/specs/trivy-config-alerts/spec.md"})find_issues({"terms":"trivyignore.yaml"})search_code({"text":"import yaml"})read_issue({"number":5639})read_issue({"number":5092})read_spec({"capability":"roadmap-stage/task-groups","requirement":"A task group has the kind manifest"})read_spec({"capability":"roadmap-stage/task-groups","requirement":"The manifest verify runs a case of the group"})search_code({"text":"Acceptance criteria"})read_file({"path":"SECURITY.md","start_line":75,"end_line":125})list_files({"directory":""})read_file({"path":"tests/security/test_trivy_config_ignore.py"})read_file({"path":".trivyignore"})search_code({"text":"CONST_TRIVY_CONFIG_IGNORE_FILE"})read_issue({"number":5646})search_code({"text":"privileged: true"})search_code({"text":"scan report --sarif"})file_symbols({"path":"src/devops_cli/security/trivy.py"})find_issues({"terms":"trivyignore.yaml KSV-0017"})read_issue({"number":5371})read_spec({"capability":"trivy-config-alerts","requirement":"The IaC scan reads the ignore file with an expiry"})list_files({"directory":""})read_spec({})read_spec({"capability":"trivy-config-alerts"})search_code({"text":"trivy-config-alerts"})read_spec({"capability":"trivy-config-alerts","requirement":"The IaC scan reads the ignore file with an expiry"})read_file({"path":"SECURITY.md","start_line":80,"end_line":140})read_file({"path":".github/workflows/ci.yml","start_line":80,"end_line":120})search_code({"text":"ci test"})references({"name":".trivyignore.yaml"})read_issue({"number":5646})read_file({"path":"src/devops_cli/security/alert_filer.py","start_line":55,"end_line":115})read_file({"path":"openspec/specs/trivy-config-alerts/spec.md","start_line":40,"end_line":75})read_file({"end_line":860,"path":"tests/invariants/test_agents_md.py","start_line":815})search_code({"text":"trivyignore"})read_file({"end_line":445,"path":".github/workflows/ci.yml","start_line":418})read_file({"end_line":712,"path":".github/workflows/ci.yml","start_line":690})read_file({"end_line":275,"path":"src/devops_cli/security/trivy.py","start_line":215})search_code({"text":"\"trivy-config\""})read_issue({"number":5371})read_issue({"number":5642})search_code({"text":"misconfigurations"})search_code({"text":"REPO_ROOT"})search_code({"text":"def scan_report"})search_code({"text":"skip"})read_file({"end_line":1075,"path":"src/devops_cli/commands/scan.py","start_line":986})search_code({"text":"def _resolve_selected_scanners"})read_file({"end_line":985,"path":"src/devops_cli/commands/scan.py","start_line":900})read_file({"end_line":160,"path":"src/devops_cli/security/trivy.py","start_line":100})search_code({"text":"cwd="})search_code({"text":"def scan("})read_file({"end_line":100,"path":"src/devops_cli/security/trivy.py","start_line":160})read_file({"end_line":900,"path":"src/devops_cli/security/base.py","start_line":770})read_issue({"number":5640})read_issue({"number":4409})search_code({"text":"trivyignore"})list_files({"directory":"tests/security"})list_files({"directory":"openspec/changes"})list_files({"directory":"openspec"})read_file({"path":"openspec/changes/3253-map-all-issue-requirements-to-a/proposal.md"})read_file({"path":"openspec/changes/3427-refuse-a-group-verify-that-runs/proposal.md"})search_code({"text":"criterion_problems"})search_code({"text":"class StageCriterion"})read_file({"end_line":140,"path":"src/devops_cli/roadmap/stage/stage_criteria.py","start_line":1})read_file({"end_line":260,"path":"src/devops_cli/roadmap/stage/stage_criteria.py","start_line":140})read_file({"end_line":40,"path":"tests/support/paths.py","start_line":1})search_code({"text":"test_trivy_config_ignore"})git_log({"path":".trivyignore.yaml"})git_log({"path":"tests/security/test_trivy_config_ignore.py"})read_file({"path":"openspec/changes/archive/2026-11-11-4401-52-trivy-config-alerts-stay-open/tasks.md"})read_file({"path":"openspec/changes/archive/2026-11-11-4401-52-trivy-config-alerts-stay-open/specs/trivy-config-alerts/spec.md"})search_code({"text":"def path_problems"})search_code({"text":"creates"})read_file({"end_line":760,"path":"src/devops_cli/roadmap/stage/stage_paths.py","start_line":640})search_code({"text":"def form_problems"})read_file({"end_line":340,"path":"src/devops_cli/roadmap/stage/stage_form.py","start_line":200})read_file({"end_line":200,"path":"src/devops_cli/roadmap/stage/stage_form.py","start_line":100})read_file({"end_line":100,"path":"src/devops_cli/roadmap/stage/stage_form.py","start_line":1})search_code({"text":"def build_trivy_scan_cmd"})read_file({"end_line":140,"path":"src/devops_cli/config/commands.py","start_line":74})read_spec({"capability":"openspec-check"})read_spec({"capability":"roadmap-stage/tests-gate"})search_code({"text":"import yaml"})search_code({"text":"pyyaml"})find_issues({"terms":"trivyignore.yaml KSV-0017"})read_issue({"number":5641})Tool calls: file_symbols=1 (empty=0), find_issues=5 (empty=0), git_log=2 (empty=1), list_files=9 (empty=0), read_file=40 (empty=0), read_issue=12 (empty=0), read_spec=10 (empty=0), references=1 (empty=0), search_code=37 (empty=0)
The stage job read the open pull requests and their files in 1 GraphQL request(s).
2 remaining items
devops-cli-service commentedon Nov 14, 2026
Stopped at group 1.
Failure class:
limit_reached.Action taken: none.
Action left:
raise_limit: raise the limit that the run went over.Reason:
Last message of the agent (a claim that no check verified): I'll start by reading the relevant files.
The job discarded this work. Read it before you retry:
The item is Blocked, and the job will not run it. Fix the cause. Then comment
implement: retry. The Service clears the stop on its own when a new runner image rolls out, but only if a retry can fix the class of the stop and the limits ofroadmap.implement.digest_clears_per_classandroadmap.implement.digest_clears_per_itemallow it.devops-cli-service commentedon Nov 14, 2026
The runner Job devops-cli-runner-20261114-131905-6918 ended: succeeded.
Image digest: sha256:a3e30c23480a05adffa79895dbb3f2ad177ba00690aae950b8e1ae3334561191
The last lines of its log:
devops-cli-service commentedon Nov 14, 2026
Released in v0.139.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.139.0
devops-cli-service commentedon Nov 14, 2026
Live since 2026-11-14 17:02 UTC