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 for the untagged image in a research test fixture. The fixture is deliberate. The change records a path-scoped, time-limited Trivy ignore entry and keeps the fixture.
Acceptance criteria
Requirement: KSV-0014 is ignored for the intentional fixture
The repository SHALL hold a path-scoped, time-limited .trivyignore.yaml entry for KSV-0014 at tests/fixtures/research/repo/k8s/llm/valkey.yaml.
Scenario: The IaC scan skips the fixture
- WHEN A person runs
trivy config --exit-code 1 --severity HIGH --ignorefile .trivyignore.yaml tests/fixtures/research/repo/k8s/llm/valkey.yaml. - THEN The command exits 0 and prints no KSV-0014 finding for the file, so the entry is in force and not expired.
Existing Tool Considered
No alternatives check has run. Trivy, which the IaC scan already uses, covers the need: its .trivyignore.yaml takes a rule ID, a path, a statement and an expiry. The change adds no code.
Key questions
- What is the correct judgment of KSV-0014 at tests/fixtures/research/repo/k8s/llm/valkey.yaml?: Keep the fixture and add a path-scoped, time-limited
.trivyignore.yamlentry for KSV-0014 with a statement that the untagged image is deliberate. (best practice) [sources: tests/fixtures/research/repo/k8s/llm/valkey.yaml:11, SECURITY.md, .trivyignore.yaml]- Rejected: Fix the image tag. The container is named
untagged, so a tag removes the fixture case. - Rejected: Dismiss alert 287 only. A later scan can report the fixture again, and the repository holds no record.
- Chosen: Add a path-scoped ignore entry. It keeps the fixture, records the reason and gives the ignore an expiry.
- Rejected: Fix the image tag. The container is named
- What expiry should the ignore entry carry?: An expiry 90 days after the merge date. (best practice) [sources: SECURITY.md, .trivyignore.yaml]
- Rejected: 30 days. It forces a review before the fixture case is stable.
- Chosen: 90 days. It gives a quarterly review and keeps the entry time-limited.
- Rejected: 180 days. It keeps a test-fixture ignore for two quarters.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 24, 2026
A HIGH severity security misconfiguration that must be judged within 14 days per SECURITY.md.Judge Trivy-config alert KSV-0014 (alert 287) in tests/fixtures/research/repo/k8s/llm/valkey.yaml by fixing the file, dismissing the alert, or adding a time-limited entry to .trivyignore.yamlas the change that both ask for.Same rule KSV-0014, same file path, same alert 287, and same acceptance criteria as issue 6502.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 24, 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 24, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.
dan-petty commentedon Nov 24, 2026
Premise check failed: (1) #6970 duplicates open issues #6383 and #6502 for alert 287 (KSV-0014 on tests/fixtures/research/repo/k8s/llm/valkey.yaml); (2) the refine proposal uses a false premise (KSV-0014 checks securityContext.readOnlyRootFilesystem, not example/untagged which triggers KSV-0013, so SECURITY.md requires fixing the manifest rather than adding a .trivyignore.yaml entry); (3) PR #7024 (for #6971, ready for review) already adds restrictive pod and container securityContext including readOnlyRootFilesystem: true to tests/fixtures/research/repo/k8s/llm/valkey.yaml, clearing both KSV-0118 (alert 1190) and KSV-0014 (alert 287) without creating a conflicting PR on the same file.
dan-petty commentedon Nov 24, 2026
Closed as not planned: PR #7024 (commit
69aaacd94, delivering #6971) merged intomainand added restrictive pod and containersecurityContextblocks includingreadOnlyRootFilesystem: truetotests/fixtures/research/repo/k8s/llm/valkey.yaml. That change clearsKSV-0014(alert 287) at the source alongsideKSV-0118(alert 1190), replacing #6970 (which also duplicated #6383 and #6502).