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 for the Ollama profile fixture. The fixture is a Kubernetes DaemonSet. The scan finds no CPU limit on a container. The change sets a CPU limit on each container. The Trivy finding closes and the code scanning alert closes.
Acceptance criteria
Requirement: The Ollama profile fixture sets a CPU limit
The DaemonSet in tests/fixtures/k8s_environment/llm/profiles/ollama-profiles.yaml SHALL have at least one container, and each container SHALL set resources.limits.cpu to 1.
Scenario: Trivy config scan finds no KSV-0118
- WHEN the Trivy config scan runs on
tests/fixtures/k8s_environment/llm/profiles/ollama-profiles.yaml - THEN
uv run devops ci --check --only k8sexits 0 and reports no KSV-0118 finding for the fixture.
Requirement: Pending a person after the merge
The change MUST close code scanning alert 1258.
Scenario: Alert 1258 is not open
- WHEN the code scanning workflow runs after the merge
- THEN
devops gh api repos/dan-petty/devops-cli/code-scanning/alerts/1258 --jq '.state'showsfixedordismissed.
Existing Tool Considered
No alternatives check has run. The open, maintained tool is Trivy, which reports KSV-0118 and is already in the repository's security checks. This change edits the YAML fixture and builds no code, so it has no build cost.
Key questions
- Which judgement does SECURITY.md require for a HIGH Trivy-config alert in a test fixture?: Fix the file. The fixture is a Kubernetes manifest that the scan reads. Add the missing CPU limit to each container. Do not dismiss the alert or add an ignore entry, because the fix is simple and keeps the fixture a valid example. (best practice) [sources: SECURITY.md, tests/fixtures/k8s_environment/llm/profiles/ollama-profiles.yaml]
- Chosen: Fix the file. The missing CPU limit is a real misconfiguration in the manifest. A small edit removes the finding and keeps the fixture valid.
- Rejected: Dismiss the alert with a reason. The fixture is scanned as a manifest. A dismissal hides a real defect that a small edit can fix.
- Rejected: Add a time-limited .trivyignore.yaml entry. An ignore entry is for a finding with no fix. This finding has a simple fix in the file.
- Which CPU limit value does the fixture set?: Set
resources.limits.cputo1. The fixture is a test manifest and runs no real workload. One CPU is enough. (best practice) [sources: tests/fixtures/k8s_environment/llm/profiles/ollama-profiles.yaml]- Chosen: Set 1 CPU. A small, explicit limit satisfies KSV-0118 and does not model a large production workload.
- Rejected: Set 100m CPU. A limit of 100m is also valid, but one CPU is a clearer example for an Ollama DaemonSet.
- Rejected: Set 2 CPU. Two CPUs is more than a test fixture needs and gives no extra benefit.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 28, 2026
A live HIGH severity security finding that must be judged within 14 days.Judge Trivy-config alert 1258 (KSV-0118) in tests/fixtures/k8s_environment/llm/profiles/ollama-profiles.yaml by fixing the file, dismissing the alert, or adding a time-limited entry to .trivyignore.yamlas the change that both ask for.Same rule, same file path, same alert 1258, same acceptance criteria as issue 7394.A person closes one of the two if that is so.[-]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 28, 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.
devops-cli-service commentedon Nov 28, 2026
Released in v0.233.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.233.0
devops-cli-service commentedon Nov 28, 2026
Live since 2026-11-28 17:56 UTC