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 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.yamlruns - THEN the output contains no
KSV-0001finding fortests/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
allowPrivilegeEscalationtofalse, or should the alert be suppressed?: SetallowPrivilegeEscalationtofalsein 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
allowPrivilegeEscalationtofalse. The field is missing and the fixture can satisfy KSV-0001 without losing its test purpose. - Rejected: Add a time-limited
.trivyignore.yamlentry. 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.
- Chosen: Set
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 28, 2026
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.yamlas 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.[-]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 28, 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.
devops-cli-service commentedon Nov 28, 2026
Released in v0.240.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.240.0
devops-cli-service commentedon Nov 28, 2026
Live since 2026-11-28 20:38 UTC