Repository navigation
Description
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.yamlruns - THEN the Trivy config result holds no
KSV-0001finding fortests/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-systemneeded for the prompt-injection test?: No. The injection text is in the top comments and thesecurity.override/instructionsannotation. 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.namespacefromkube-systemtoprompt-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.yamlentry. SECURITY.md forbids an ignore when a fix exists.
- Chosen: Fix the fixture namespace. The fixture does not need
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 27, 2026
Both judge a Trivy-config alert in the same file kubernetes_adversary.yaml, but the candidate targets rule KSV-0001 while 6267 targets KSV-0014.[-]fix(security): judge Trivy-config KSV-0001 in tests/fixtures/prompt_adversaries/kubernetes_adversary.yaml[/-][+]fix(security): Judge KSV-0001 in kubernetes_adversary.yaml[/+]devops-cli-service commentedon Nov 27, 2026
The job shortened the title of this item. The summary had 90 characters, and the limit is 60. The type and the scope stay.
fix(security): judge Trivy-config KSV-0001 in tests/fixtures/prompt_adversaries/kubernetes_adversary.yamldevops-cli-service commentedon Nov 28, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.
dan-petty commentedon Nov 28, 2026
Superseded by #7561, which tracks the same Trivy-config KSV-0001 alert (1260) on
tests/fixtures/prompt_adversaries/kubernetes_adversary.yaml.