Skip to content

fix(security): set non-root securityContext on ollama-profiles fixture - #7567

Merged
dan-petty merged 2 commits into
mainfrom
fix/7560-judge-ksv-0118-ollama-profiles
Nov 28, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/7560-judge-ksv-0118-ollama-profiles

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Set a non-root pod securityContext (runAsNonRoot: true, runAsUser: 10001, runAsGroup: 10001, fsGroup: 10001, seccompProfile.type: RuntimeDefault) on DaemonSet/ollama-16gib in tests/fixtures/k8s_environment/llm/profiles/ollama-profiles.yaml to resolve HIGH Trivy config finding KSV-0118 (alert 1258) at source.

Checks:

  • trivy config --severity LOW,MEDIUM,HIGH,CRITICAL tests/fixtures/k8s_environment/llm/profiles/ollama-profiles.yaml (0 misconfigurations across 24 checks)
  • uv run pytest tests/commands/k8s/test_k8s_gpu_placement.py tests/commands/k8s/test_k8s_ollama_prune.py (15 passed)
  • uv run devops openspec check and CI static checks (10/10 passed)

Closes #7560

Change: openspec/changes/archive/2026-11-28-7560-judge-ksv-0118-ollama-profiles/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/security Security linters (trivy, bandit, gitleaks, kubeconform) and Vault labels Nov 28, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 28, 2026 08:18
@dan-petty

Copy link
Copy Markdown
Owner Author

Check results

Head commit: 0f2913677cd3774c6b976d7c494c804c21081c2b

Check Conclusion Link
Tests & Coverage success run
devops-cli success run
zizmor success run
trivy-config success run
Plan Check skipped run
CodeQL success run
Changed-Test Independence success run
Dependency Freshness skipped run
Tests on Main skipped run
Test Job Duration skipped run
Tests & Coverage (shard 5 of 5) success run
Changed-Test Independence (run 3 of 3) success run
Tests & Coverage (shard 3 of 5) success run
Static Analysis success run
Tests & Coverage (shard 1 of 5) success run
Tests & Coverage (shard 4 of 5) success run
Service Image success run
Changed-Test Independence (run 2 of 3) success run
Runner Image success run
Changed-Test Independence (run 1 of 3) success run
Tests & Coverage (shard 2 of 5) success run
Design Tokens success run
Semantic PR title success run
Analyze (python) success run
Analyze (actions) success run

Skipped check: Plan Check
Skipped check: Dependency Freshness
Skipped check: Tests on Main
Skipped check: Test Job Duration

@dan-petty
dan-petty merged commit 53e5aaa into main Nov 28, 2026
25 checks passed
@dan-petty
dan-petty deleted the fix/7560-judge-ksv-0118-ollama-profiles branch November 28, 2026 12:36
dan-petty-release Bot added a commit that referenced this pull request Nov 28, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.233.0](v0.232.11...v0.233.0)
(2026-11-28)


### Features

* **gh:** refuse agent deployment review routes
([#7571](#7571))
([b3c8edf](b3c8edf))


### Bug Fixes

* **ci:** run Tests & Coverage in six balanced shards
([#7572](#7572))
([e6f5026](e6f5026)),
closes [#7550](#7550)
* **roadmap:** freeze clock in alternatives gauge test
([#7584](#7584))
([611de9d](611de9d))
* **roadmap:** the other rows leave out an item that left
([#7566](#7566))
([97c4576](97c4576))
* **security:** set non-root securityContext on ollama-profiles fixture
([#7567](#7567))
([53e5aaa](53e5aaa))
* **security:** skip .venv in TrivyConfigScanner
([#7570](#7570))
([1502b93](1502b93))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/security Security linters (trivy, bandit, gitleaks, kubeconform) and Vault type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant