Skip to content

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

Not planned

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 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: true under spec.template.spec so Trivy rule KSV-0118 passes. Do not dismiss alert 1258. Do not add a .trivyignore.yaml entry. (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

  1. added
    type/bug
    scope/security
    on Nov 27, 2026
  2. added
    status/new
    value/medium
    effort/low
    on Nov 27, 2026
  3. devops-cli-service commented on Nov 27, 2026

    @devops-cli-service
    Contributor
  4. 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 27, 2026
  5. devops-cli-service commented on Nov 27, 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
  6. 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.

  7. dan-petty commented on Nov 28, 2026

    @dan-petty
    Owner

    Already resolved by PR #7567 (commit 53e5aaa11): tests/fixtures/k8s_environment/llm/profiles/ollama-profiles.yaml sets securityContext.runAsNonRoot: true, runAsUser: 10001, runAsGroup: 10001, fsGroup: 10001, and seccompProfile.type: RuntimeDefault, and uv run devops review path tests/fixtures/k8s_environment/llm/profiles/ollama-profiles.yaml reports 0 findings. Closing as not planned per AGENTS.md rule 2.

  8. removed
    status/new
    on Nov 28, 2026
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/p2-mediumscope/securitytype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions