Skip to content

fix(security): Judge Trivy-config KSV-0014 in valkey.yaml #6502

Not planned

Description

@github-actions

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

  1. added
    type/bug
    scope/security
    on Nov 20, 2026
  2. added
    status/new
    value/medium
    effort/low
    on Nov 20, 2026
  3. devops-cli-service commented on Nov 20, 2026

    @devops-cli-service
    Contributor
    • Possible duplicate: fix(security): Judge Trivy-config KSV-0014 in valkey.yaml #6383, which may ask for the same change. The model names 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.yaml as 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.
  4. changed the title [-]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[/+] on Nov 20, 2026
  5. devops-cli-service commented on Nov 20, 2026

    @devops-cli-service
    Contributor

    The job shortened the title of this item. The summary had 79 characters, and the limit is 60. The type and the scope stay.

    • Before: fix(security): judge Trivy-config KSV-0014 in tests/fixtures/research/repo/k8s/llm/valkey.yaml
    • After: fix(security): Judge Trivy-config KSV-0014 in valkey.yaml
    • Source of the summary: the background model
  6. devops-cli-service commented on Nov 20, 2026

    @devops-cli-service
    Contributor

    Next step: the alternatives check records a verdict. See the section Proposed design of the body.

  7. dan-petty commented on Nov 21, 2026

    @dan-petty
    Owner

    Same finding as #6383. dan-petty/homelab#88 rebuilds k8s/llm/valkey.yaml on the infra Valkey base (dan-petty/infra#13) with a read-only root file system, so KSV-0014 for this file goes away.

  8. dan-petty commented on Nov 29, 2026

    @dan-petty
    Owner

    Closing as not planned: #5790 closed Trivy-config alert 287 (KSV-0014 on tests/fixtures/research/repo/k8s/llm/valkey.yaml, state: fixed) by skipping tests/fixtures.

  9. removed
    status/new
    on Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p2-mediumscope/securitytype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions