Skip to content

fix(security): Judge Trivy-config KSV-0118 in ollama-profiles.yaml #7560

Done

Description

@github-actions

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 k8s exits 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' shows fixed or dismissed.

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.cpu to 1. 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

  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
    • Priority: A live HIGH severity security finding that must be judged within 14 days.
    • Possible duplicate: fix(security): Judge Trivy-config KSV-0118 in ollama-profiles.yaml #7394, which may ask for the same change. The model names 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.yaml as 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.
  4. added
    priority/p1-high
    on Nov 28, 2026
  5. changed the title [-]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[/+] on Nov 28, 2026
  6. devops-cli-service commented on Nov 28, 2026

    @devops-cli-service
    Contributor

    The job shortened the title of this item. The summary had 95 characters, and the limit is 60. The type and the scope stay.

    • Before: fix(security): judge Trivy-config KSV-0118 in tests/fixtures/k8s_environment/llm/profiles/ollama-profiles.yaml
    • Source of the summary: the background model
  7. 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.

  8. added
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 28, 2026
  9. removed
    status/in-review
    owner/agent
    on Nov 28, 2026
  10. devops-cli-service commented on Nov 28, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-28 17:56 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/p1-highscope/securitytype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions