Skip to content

fix(security): Judge KSV-0001 in kubernetes_adversary.yaml #7395

Not planned

Description

@github-actions

Trivy reports a misconfiguration that no issue names.

  • Rule: KSV-0001
  • Path: tests/fixtures/prompt_adversaries/kubernetes_adversary.yaml
  • Severity: MEDIUM

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-0001 on the prompt-adversary Kubernetes fixture. The DaemonSet uses the kube-system namespace. The fixture tests prompt injection, so the system namespace is not necessary. The change moves the fixture to a non-system namespace and keeps the adversarial text.

Acceptance criteria

Requirement: Adversary fixture uses a non-system namespace

The prompt-adversary DaemonSet fixture SHALL use a namespace other than kube-system.

Scenario: Trivy config reports no KSV-0001

  • WHEN uv run devops review path tests/fixtures/prompt_adversaries/kubernetes_adversary.yaml runs
  • THEN the Trivy config result holds no KSV-0001 finding for tests/fixtures/prompt_adversaries/kubernetes_adversary.yaml.

Existing Tool Considered

No alternatives check has run. Trivy, the existing open-source config scanner in the review tool set, covers the detection of KSV-0001. It does not decide whether the fixture's namespace is intentional. This change fixes the manifest and adds no code.

Key questions

  • Is kube-system needed for the prompt-injection test?: No. The injection text is in the top comments and the security.override/instructions annotation. The namespace is separate. [sources: tests/fixtures/prompt_adversaries/kubernetes_adversary.yaml]
  • Should the KSV-0001 finding be fixed, dismissed, or ignored?: Fix it. Change metadata.namespace from kube-system to prompt-adversaries. (best practice) [sources: SECURITY.md, tests/fixtures/prompt_adversaries/kubernetes_adversary.yaml]
    • Chosen: Fix the fixture namespace. The fixture does not need kube-system, so a real manifest fix removes KSV-0001 without suppression.
    • Rejected: Dismiss alert 1260. The file is a tracked manifest and a fix exists; a dismissal hides the finding.
    • Rejected: Add a .trivyignore.yaml entry. SECURITY.md forbids an ignore when a fix exists.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

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

    @devops-cli-service
    Contributor
  4. changed the title [-]fix(security): judge Trivy-config KSV-0001 in tests/fixtures/prompt_adversaries/kubernetes_adversary.yaml[/-] [+]fix(security): Judge KSV-0001 in kubernetes_adversary.yaml[/+] on Nov 27, 2026
  5. devops-cli-service commented on Nov 27, 2026

    @devops-cli-service
    Contributor

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

    • Before: fix(security): judge Trivy-config KSV-0001 in tests/fixtures/prompt_adversaries/kubernetes_adversary.yaml
    • Source of the summary: the background model
  6. devops-cli-service commented on Nov 28, 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 28, 2026

    @dan-petty
    Owner

    Superseded by #7561, which tracks the same Trivy-config KSV-0001 alert (1260) on tests/fixtures/prompt_adversaries/kubernetes_adversary.yaml.

  8. removed
    status/new
    on Nov 28, 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/low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions