Skip to content

fix(security): judge KSV-0014 in chart_render.yaml #6606

Done

Description

@github-actions

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.yaml runs
  • 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.yaml entry. 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"], and seccompProfile.type: RuntimeDefault on 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.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

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

    @devops-cli-service
    Contributor
    • Priority: P1-High. A live HIGH-severity security vulnerability in a tracked file requires judgment within 14 days.
    • Possible duplicate: fix(security): judge KSV-0014 in image_pins/chart_render.yaml #5948, which may ask for the same change. The model names 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.yaml as 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.
  4. added
    priority/p1-high
    on Nov 21, 2026
  5. changed the title [-]fix(security): judge Trivy-config KSV-0014 in tests/fixtures/image_pins/chart_render.yaml[/-] [+]fix(security): judge KSV-0014 in chart_render.yaml[/+] on Nov 21, 2026
  6. devops-cli-service commented on Nov 21, 2026

    @devops-cli-service
    Contributor

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

    • Before: fix(security): judge Trivy-config KSV-0014 in tests/fixtures/image_pins/chart_render.yaml
    • After: fix(security): judge KSV-0014 in chart_render.yaml
    • Source of the summary: the background model
  7. devops-cli-service commented on Nov 21, 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 23, 2026
  9. removed
    status/in-review
    owner/agent
    on Nov 23, 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/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