Skip to content

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

Done

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 for tests/fixtures/prompt_adversaries/kubernetes_adversary.yaml. Alert 1260 is MEDIUM. The fixture is a prompt-adversary manifest. The container security context omits allowPrivilegeEscalation. The fix sets it to false.

Acceptance criteria

Requirement: KSV-0001 is absent

The container security context in the prompt-adversary DaemonSet MUST set allowPrivilegeEscalation to false.

Scenario: Trivy scans the fixture

  • WHEN trivy config --severity MEDIUM tests/fixtures/prompt_adversaries/kubernetes_adversary.yaml runs
  • THEN the output contains no KSV-0001 finding for tests/fixtures/prompt_adversaries/kubernetes_adversary.yaml.

Existing Tool Considered

No alternatives check has run. Trivy is the open, maintained tool that reports KSV-0001. The change uses its existing config command and adds no code.

Key questions

  • Should the fixture set allowPrivilegeEscalation to false, or should the alert be suppressed?: Set allowPrivilegeEscalation to false in the container security context. The fixture keeps its prompt-injection annotation. A suppression is not needed. (best practice) [sources: SECURITY.md, tests/fixtures/prompt_adversaries/kubernetes_adversary.yaml]
    • Chosen: Set allowPrivilegeEscalation to false. The field is missing and the fixture can satisfy KSV-0001 without losing its test purpose.
    • Rejected: Add a time-limited .trivyignore.yaml entry. The fixture can be made compliant, so an ignore hides a fixable finding.
    • Rejected: Dismiss alert 1260 with no code change. A code fix removes the cause and the alert closes at the next scan.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

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

    @devops-cli-service
    Contributor
    • Possible duplicate: fix(security): Judge KSV-0001 in kubernetes_adversary.yaml #7395, which may ask for the same change. The model names Judge Trivy-config alert KSV-0001 (alert 1260) in tests/fixtures/prompt_adversaries/kubernetes_adversary.yaml by fixing the file, dismissing the alert, or adding a time-limited entry to .trivyignore.yaml as the change that both ask for. Both items ask to judge the same rule KSV-0001, same file, same alert 1260, with identical acceptance criteria. A person closes one of the two if that is so.
  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 28, 2026
  5. devops-cli-service commented on Nov 28, 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. added
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 28, 2026
  8. removed
    status/in-review
    owner/agent
    on Nov 28, 2026
  9. devops-cli-service commented on Nov 28, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-28 20:38 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/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