Repository navigation
Description
Trivy reports a misconfiguration that no issue names.
- Rule: KSV-0118
- Path: tests/fixtures/k8s_environment/llm/profiles/ollama-profiles.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 in tests/fixtures/k8s_environment/llm/profiles/ollama-profiles.yaml. No issue names alert 1258. The fixture is a test profile for the Ollama DaemonSet. The fix adds the pod security context that KSV-0118 requires. It closes the alert with no ignore entry.
Acceptance criteria
Requirement: Trivy reports no KSV-0118
The ollama profiles fixture SHALL satisfy Trivy rule KSV-0118.
Scenario: Trivy config scan of the fixture
- WHEN run
uv run devops review path tests/fixtures/k8s_environment/llm/profiles/ollama-profiles.yaml - THEN the Trivy config result holds no KSV-0118 finding.
Existing Tool Considered
No alternatives check has run. Trivy is the open, maintained scanner that reports KSV-0118, and the project already uses it. The change builds no code: it adds the pod security context to one fixture. The build cost is zero tokens and zero time.
Key questions
- How should the project judge KSV-0118 on the test fixture?: Fix the fixture. Add
securityContext.runAsNonRoot: trueunderspec.template.specso Trivy rule KSV-0118 passes. Do not dismiss alert 1258. Do not add a.trivyignore.yamlentry. (best practice) [sources: SECURITY.md, tests/fixtures/k8s_environment/llm/profiles/ollama-profiles.yaml]- Chosen: Fix the fixture. The fixture is project code. A pod security context removes the HIGH finding and keeps the scan clean.
- Rejected: Dismiss alert 1258. A dismissal hides the finding from the scan and needs a reason that the fixture cannot show.
- Rejected: Add a time-limited .trivyignore.yaml entry. The project uses an ignore only when no fix exists. The fixture can set the field.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 27, 2026
Both target ollama-profiles.yaml, but this candidate judges KSV-0118 (alert 1258) while #7107 judged KSV-0022 (alert 232).[-]fix(security): judge Trivy-config KSV-0118 in tests/fixtures/k8s_environment/llm/profiles/ollama-profiles.yaml[/-][+]fix(security): Judge Trivy-config KSV-0118 in ollama-profiles.yaml[/+]devops-cli-service commentedon Nov 27, 2026
The job shortened the title of this item. The summary had 95 characters, and the limit is 60. The type and the scope stay.
fix(security): judge Trivy-config KSV-0118 in tests/fixtures/k8s_environment/llm/profiles/ollama-profiles.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
Already resolved by PR #7567 (commit
53e5aaa11):tests/fixtures/k8s_environment/llm/profiles/ollama-profiles.yamlsetssecurityContext.runAsNonRoot: true,runAsUser: 10001,runAsGroup: 10001,fsGroup: 10001, andseccompProfile.type: RuntimeDefault, anduv run devops review path tests/fixtures/k8s_environment/llm/profiles/ollama-profiles.yamlreports 0 findings. Closing as not planned per AGENTS.md rule 2.