Skip to content

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

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 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.yaml entry 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.
  • 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

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

    @devops-cli-service
    Contributor
    • Priority: P1-High. A HIGH severity security misconfiguration that must be judged within 14 days per SECURITY.md.
    • Possible duplicate: fix(security): Judge Trivy-config KSV-0014 in valkey.yaml #6502, which may ask for the same change. The model names 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.yaml as 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.
  4. added
    priority/p1-high
    on Nov 24, 2026
  5. 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 24, 2026
  6. devops-cli-service commented on Nov 24, 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
  7. devops-cli-service commented on Nov 24, 2026

    @devops-cli-service
    Contributor

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

  8. dan-petty commented on Nov 24, 2026

    @dan-petty
    Owner

    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.

  9. dan-petty commented on Nov 24, 2026

    @dan-petty
    Owner

    Closed as not planned: PR #7024 (commit 69aaacd94, delivering #6971) merged into main and added restrictive pod and container securityContext blocks including readOnlyRootFilesystem: true to tests/fixtures/research/repo/k8s/llm/valkey.yaml. That change clears KSV-0014 (alert 287) at the source alongside KSV-0118 (alert 1190), replacing #6970 (which also duplicated #6383 and #6502).

  10. removed
    status/new
    on Nov 24, 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/p1-highscope/securitytype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions