Skip to content

fix(security): Judge KSV-0118 in chart_render.yaml #5949

Not planned

Description

@github-actions

Trivy reports a misconfiguration that no issue names.

  • Rule: KSV-0118
  • 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

Fix tests/fixtures/image_pins/chart_render.yaml by setting securityContext.readOnlyRootFilesystem to true on the alertmanager container. Trivy reports KSV-0118 at this path with HIGH severity, and the alert is open. No person decision or outside dependency blocks the change.

Acceptance criteria

Requirement: Read-only root file system in chart render fixture

The alertmanager container in tests/fixtures/image_pins/chart_render.yaml SHALL set securityContext.readOnlyRootFilesystem to true.

Scenario: Trivy KSV-0118 check on the fixture

  • WHEN trivy config --severity HIGH tests/fixtures/image_pins/chart_render.yaml runs
  • THEN the output contains no KSV-0118 finding for the example-alertmanager StatefulSet.

Existing Tool Considered

No alternatives check has run. Trivy, the open and maintained scanner that raised the alert, covers the KSV-0118 check and its config scan is the validator. The change edits one YAML fixture and adds no code, so it has no build cost.

Key questions

  • Which action should the KSV-0118 alert get?: Fix tests/fixtures/image_pins/chart_render.yaml. Set securityContext.readOnlyRootFilesystem to true on the alertmanager container. Add no .trivyignore.yaml entry. (best practice) [sources: SECURITY.md, tests/fixtures/image_pins/chart_render.yaml]
    • Chosen: Fix the fixture. The file can change, and the fix removes the HIGH finding without a suppression.
    • Rejected: Dismiss the alert. The missing read-only root file system is a real finding in the file.
    • Rejected: Add a time-limited .trivyignore.yaml entry. An ignore hides a fixable finding and adds an expiry to maintain.
  • Does the fix change the image-pin cases?: No. The fix changes only the alertmanager container security context. The fixture keeps quay.io/example/alertmanager:v1.0.0 and ghcr.io/example/service:latest. [sources: tests/fixtures/image_pins/chart_render.yaml]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

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

    @devops-cli-service
    Contributor
  4. changed the title [-]fix(security): judge Trivy-config KSV-0118 in tests/fixtures/image_pins/chart_render.yaml[/-] [+]fix(security): Judge KSV-0118 in chart_render.yaml[/+] on Nov 16, 2026
  5. devops-cli-service commented on Nov 16, 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-0118 in tests/fixtures/image_pins/chart_render.yaml
    • After: fix(security): Judge KSV-0118 in chart_render.yaml
    • Source of the summary: the background model
  6. devops-cli-service commented on Nov 18, 2026

    @devops-cli-service
    Contributor

    Waiting for the alternatives check to run. The next refine round looks at the item again after the check records a verdict.

  7. dan-petty commented on Nov 29, 2026

    @dan-petty
    Owner

    Closing as not planned: #5790 closed Trivy-config alert 282 (KSV-0118 on tests/fixtures/image_pins/chart_render.yaml, state: fixed) by skipping tests/fixtures.

  8. removed
    status/new
    on Nov 29, 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