Skip to content

fix(security): Add a time-limited .trivyignore entry for KSV-0109 #6384

Not planned

Description

@github-actions

Trivy reports a misconfiguration that no issue names.

  • Rule: KSV-0109
  • Path: k8s/devops/renovate/configmap.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

Add a time-limited .trivyignore.yaml entry for KSV-0109 at k8s/devops/renovate/configmap.yaml. Trivy reports the HIGH misconfiguration, but the ConfigMap stores no secret: config.js reads the Renovate token from a file at runtime and deletes the file. The entry records the reason and an expiry so the IaC scan passes and the alert has a judged record.

Acceptance criteria

Requirement: Dated ignore entry for KSV-0109

The repository SHALL hold a time-limited .trivyignore.yaml entry for rule KSV-0109 at k8s/devops/renovate/configmap.yaml that states that the token line reads a file and is not a stored secret.

Scenario: The k8s CI row reads the ignore entry

  • WHEN the k8s CI row runs with uv run devops ci --check --only k8s
  • THEN the row passes and Trivy reports no KSV-0109 finding for k8s/devops/renovate/configmap.yaml.

Existing Tool Considered

No alternatives check has run. The repository already uses Trivy for config scanning. Its .trivyignore.yaml file with a reason and an expiry covers the need. Trivy lacks the context to know that the token line is a file read, so the ignore entry supplies that reason. No new tool or code is needed.

Key questions

  • Does k8s/devops/renovate/configmap.yaml store a secret?: No. The config.js entry reads the Renovate token from /token/github-token and unlinks the file. The 'token' key is quoted and receives the value that the init container wrote. The ConfigMap holds no secret value. [sources: k8s/devops/renovate/configmap.yaml]
  • How should the repository judge the KSV-0109 alert at k8s/devops/renovate/configmap.yaml?: Add a time-limited .trivyignore.yaml entry for KSV-0109 at that path. The entry states that the token line reads a file and is not a stored secret. The entry expires 90 days after the merge. (best practice) [sources: SECURITY.md, k8s/devops/renovate/configmap.yaml]
    • Rejected: Fix the embedded JavaScript. The token key is the Renovate option name. A rename or obfuscation makes the config less clear and does not remove the file read.
    • Rejected: Dismiss the GitHub alert with a reason. A dismissal is a GitHub setting and leaves no repository record. The next scan can open the alert again.
    • Chosen: Add a time-limited .trivyignore.yaml entry. The ignore file is the repository's documented mechanism. It holds the reason and an expiry, and the IaC scan reads it.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

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

    @devops-cli-service
    Contributor
  4. added
    priority/p1-high
    on Nov 19, 2026
  5. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service
    Contributor

    Next step: the alternatives check records a verdict. See the section Proposed design of the body.

  6. changed the title [-]fix(security): judge Trivy-config KSV-0109 in k8s/devops/renovate/configmap.yaml[/-] [+]fix(security): Add a time-limited .trivyignore entry for KSV-0109[/+] on Nov 19, 2026
  7. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service
    Contributor

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

    • Before: fix(security): judge Trivy-config KSV-0109 in k8s/devops/renovate/configmap.yaml
    • After: fix(security): Add a time-limited .trivyignore entry for KSV-0109
    • Source of the summary: the background model
  8. dan-petty commented on Nov 23, 2026

    @dan-petty
    Owner

    This issue is superseded by issue #6859 and pull request #6904. Commit 6ca8b26 added the time-limited ignore entry for rule KSV-0109 at k8s/devops/renovate/configmap.yaml to .trivyignore.yaml. Closed as not planned under AGENTS.md rule 2.

  9. removed
    status/new
    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