Repository navigation
Description
Trivy reports a misconfiguration that no issue names.
- Rule: KSV-0014
- Path: tests/fixtures/research/repo/k8s/llm/valkey.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 KSV-0014 at HIGH on the untagged example/untagged container in tests/fixtures/research/repo/k8s/llm/valkey.yaml. The fixture intentionally holds an untagged image. The alert needs a path-scoped, time-limited ignore entry. A tag edit would remove the fixture case, and a dismissal would leave no expiry.
Acceptance criteria
Requirement: Path-scoped KSV-0014 ignore entry
The repository SHALL hold a path-scoped, time-limited .trivyignore.yaml entry for KSV-0014 with a reason and an expiry date.
Scenario: The IaC scan ignores the fixture alert
- WHEN uv run devops scan iac --path tests/fixtures/research/repo/k8s/llm/valkey.yaml runs before the entry expires
- THEN the command exits 0 and reports no KSV-0014 finding for that path
Existing Tool Considered
No alternatives check has run. Trivy is the open, maintained scanner that reports KSV-0014 and reads .trivyignore.yaml. It does not decide that this test fixture must keep an untagged image. The change adds a path-scoped, time-limited ignore entry and builds no code.
Key questions
- What does KSV-0014 flag in tests/fixtures/research/repo/k8s/llm/valkey.yaml?: It flags the second container, named untagged, whose image example/untagged has no tag. The first container uses a tagged image. [sources: tests/fixtures/research/repo/k8s/llm/valkey.yaml]
- Should the fix tag the fixture image, dismiss alert 287, or add a time-limited ignore entry?: Add a path-scoped, time-limited .trivyignore.yaml entry for KSV-0014. The untagged container is an intentional test fixture for the missing-tag rule. Tagging it removes the fixture case, and a dismissal has no expiry. (best practice) [sources: tests/fixtures/research/repo/k8s/llm/valkey.yaml, SECURITY.md]
- Rejected: Tag the fixture image. It removes the intentional missing-tag fixture that the research tests use.
- Rejected: Dismiss alert 287. It leaves no repository record with an expiry.
- Chosen: Add a path-scoped, time-limited ignore entry. It keeps the fixture and records the reason and expiry in the repository.
- What scope and expiry should the ignore entry use?: Scope the entry to tests/fixtures/research/repo/k8s/llm/valkey.yaml and set an expiry no later than 90 days after the entry date. The entry names KSV-0014 and the fixture reason. (best practice) [sources: SECURITY.md]
- Chosen: Path-scoped entry with a 90-day expiry. It limits the exception to the intentional fixture and forces a review.
- Rejected: Global KSV-0014 entry with no expiry. It hides the rule everywhere and has no review date.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 20, 2026
Judge Trivy-config KSV-0014 in tests/fixtures/research/repo/k8s/llm/valkey.yaml (alert 287): fix the file, dismiss the alert, or add a time-limited entry to .trivyignore.yamlas the change that both ask for.Same rule, same file path, same alert 287, and same acceptance criteria as item 6383.A person closes one of the two if that is so.[-]fix(security): judge Trivy-config KSV-0014 in tests/fixtures/research/repo/k8s/llm/valkey.yaml[/-][+]fix(security): Judge Trivy-config KSV-0014 in valkey.yaml[/+]devops-cli-service commentedon Nov 20, 2026
The job shortened the title of this item. The summary had 79 characters, and the limit is 60. The type and the scope stay.
fix(security): judge Trivy-config KSV-0014 in tests/fixtures/research/repo/k8s/llm/valkey.yamlfix(security): Judge Trivy-config KSV-0014 in valkey.yamldevops-cli-service commentedon Nov 20, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.
dan-petty commentedon Nov 21, 2026
Same finding as #6383. dan-petty/homelab#88 rebuilds
k8s/llm/valkey.yamlon the infra Valkey base (dan-petty/infra#13) with a read-only root file system, so KSV-0014 for this file goes away.dan-petty commentedon Nov 29, 2026
Closing as not planned: #5790 closed Trivy-config alert 287 (KSV-0014 on
tests/fixtures/research/repo/k8s/llm/valkey.yaml, state: fixed) by skippingtests/fixtures.