Skip to content

fix(security): Judge Trivy KSV-0118 in valkey.yaml #6971

Done

Description

@github-actions

Trivy reports a misconfiguration that no issue names.

  • Rule: KSV-0118
  • 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-0118 at HIGH severity on alert 1190 for tests/fixtures/research/repo/k8s/llm/valkey.yaml. The fixture holds an untagged image as test input, so a tag fix would remove the case that the fixture exercises. The issue needs a recorded judgment that keeps the fixture and suppresses the alert with a dated, path-scoped entry.

Acceptance criteria

Requirement: Dated ignore entry for KSV-0118

The repository MUST hold a dated, path-scoped entry in .trivyignore.yaml that suppresses KSV-0118 for tests/fixtures/research/repo/k8s/llm/valkey.yaml.

Scenario: Trivy scan with the ignore file

  • WHEN trivy config --ignorefile .trivyignore.yaml tests/fixtures/research/repo/k8s/llm/valkey.yaml runs
  • THEN The command exits 0 and its report holds no KSV-0118 finding.

Requirement: Fixture still exercises the rule

The fixture MUST keep the untagged image so that it still exercises KSV-0118.

Scenario: Trivy scan without the ignore file

  • WHEN trivy config tests/fixtures/research/repo/k8s/llm/valkey.yaml runs
  • THEN The report holds one KSV-0118 finding for the untagged container.

Existing Tool Considered

No alternatives check has run. Trivy is the open, maintained scanner that reports KSV-0118 and reads .trivyignore.yaml. It lacks a per-alert dismissal record inside the repository, so the proposal records the reason and the expiry in a path-scoped ignore entry. It builds no new code.

Key questions

  • How should the repository judge KSV-0118 on the valkey fixture?: Add a dated, path-scoped entry to .trivyignore.yaml for KSV-0118 and the fixture path. Keep the untagged image as test input. (best practice) [sources: SECURITY.md, tests/fixtures/research/repo/k8s/llm/valkey.yaml]
    • Chosen: Add a dated, path-scoped ignore entry. The policy allows a time-limited ignore entry, and the entry keeps the reason and the expiry in the repository.
    • Rejected: Pin the untagged image tag. The container name untagged and the missing tag are the fixture test input, so a pinned tag removes the case.
    • Rejected: Dismiss alert 1190 in GitHub only. The repository keeps no record, and a later scan can open the alert again.
  • Does the fixture deploy to a cluster?: No. The path is under tests/fixtures/research/repo/k8s/llm/, and the repository holds it as test data. [sources: tests/fixtures/research/repo/k8s/llm/valkey.yaml]
  • What image tag does the alert concern?: The container untagged sets image: example/untagged with no tag, so Kubernetes resolves it to latest. [sources: tests/fixtures/research/repo/k8s/llm/valkey.yaml]

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
  4. added
    priority/p1-high
    on Nov 24, 2026
  5. changed the title [-]fix(security): judge Trivy-config KSV-0118 in tests/fixtures/research/repo/k8s/llm/valkey.yaml[/-] [+]fix(security): Judge Trivy KSV-0118 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-0118 in tests/fixtures/research/repo/k8s/llm/valkey.yaml
    • After: fix(security): Judge Trivy KSV-0118 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. added
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 24, 2026
  9. removed
    status/in-review
    owner/agent
    on Nov 24, 2026
  10. devops-cli-service commented on Nov 24, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-24 21:14 UTC

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