Repository navigation
Description
Trivy reports a misconfiguration that no issue names.
- Rule: KSV-0014
- Path: tests/fixtures/image_pins/chart_render.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-0014, a HIGH misconfiguration, in tests/fixtures/image_pins/chart_render.yaml. The StatefulSet container has no security context. The change adds a restrictive security context so the fixture no longer triggers the rule and alert 283 can close.
Acceptance criteria
Requirement: KSV-0014 clears in the chart render fixture
The StatefulSet pod and its container in tests/fixtures/image_pins/chart_render.yaml SHALL set a restrictive security context that clears KSV-0014.
Scenario: Trivy check of KSV-0014
- WHEN
trivy config --checks AVD-KSV-0014 --exit-code 1 tests/fixtures/image_pins/chart_render.yamlruns - THEN Trivy exits 0 and reports no AVD-KSV-0014 finding for the fixture.
Requirement: The fixture stays valid for the test suite
The chart render fixture SHALL remain valid YAML that the repository tests parse.
Scenario: Repository test suite
- WHEN
uv run pytest tests/runs - THEN The test suite exits 0.
Existing Tool Considered
No alternatives check has run. Trivy, the open and maintained scanner that reported KSV-0014, covers detection and rescan of the rule. It lacks the judgment and the fixture edit, which this change supplies.
Key questions
- Should the KSV-0014 alert be fixed in the fixture, dismissed, or ignored with an expiry?: Fix the fixture by adding a restrictive security context to the StatefulSet pod and its container. (best practice) [sources: SECURITY.md, tests/fixtures/image_pins/chart_render.yaml]
- Chosen: Fix the fixture. Removes the finding at its source, keeps no suppression, and needs no expiry.
- Rejected: Dismiss alert 283 with a reason. Leaves the insecure fixture and the scanner finding in place; no evidence shows the fixture is intentionally insecure.
- Rejected: Add a time-limited
.trivyignore.yamlentry. Hides the finding and adds an expiry task; it does not correct the fixture.
- Which security context values should the fixture use?: Set
runAsNonRoot: true,runAsUser: 1000,allowPrivilegeEscalation: false,readOnlyRootFilesystem: true,capabilities.drop: ["ALL"], andseccompProfile.type: RuntimeDefaulton the container, with pod-level non-root and seccomp settings. (best practice) [sources: SECURITY.md, tests/fixtures/image_pins/chart_render.yaml]- Chosen: Full restrictive security context. Covers the common KSV checks and matches the least-privilege rule in
SECURITY.md. - Rejected: Minimal single field. May clear one check but leave related KSV checks and the least-privilege rule unmet.
- Chosen: Full restrictive security context. Covers the common KSV checks and matches the least-privilege rule in
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 21, 2026
A live HIGH-severity security vulnerability in a tracked file requires judgment within 14 days.Judge Trivy-config rule KSV-0014 in tests/fixtures/image_pins/chart_render.yaml (alert 283): fix the file, dismiss the alert, or add a time-limited entry to .trivyignore.yamlas the change that both ask for.Same rule KSV-0014, same file, same alert 283, same acceptance criteria as #5948.A person closes one of the two if that is so.[-]fix(security): judge Trivy-config KSV-0014 in tests/fixtures/image_pins/chart_render.yaml[/-][+]fix(security): judge KSV-0014 in chart_render.yaml[/+]devops-cli-service commentedon Nov 21, 2026
The job shortened the title of this item. The summary had 74 characters, and the limit is 60. The type and the scope stay.
fix(security): judge Trivy-config KSV-0014 in tests/fixtures/image_pins/chart_render.yamlfix(security): judge KSV-0014 in chart_render.yamldevops-cli-service commentedon Nov 21, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.
devops-cli-service commentedon Nov 23, 2026
Released in v0.203.5: https://github.com/dan-petty/devops-cli/releases/tag/v0.203.5