Skip to content

fix(security): Judge KSV-0109 in k8s/devops/renovate/configmap.yaml #6503

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

Trivy reports KSV-0109 for k8s/devops/renovate/configmap.yaml. The embedded config.js reads a token from a file at runtime and does not store a token value in the ConfigMap. The issue judges this HIGH alert under the Trivy-config policy in SECURITY.md.

Acceptance criteria

Requirement: Time-limited KSV-0109 ignore entry

The repository MUST hold a .trivyignore.yaml entry for KSV-0109 at k8s/devops/renovate/configmap.yaml with a statement and an expiry date.

Scenario: The k8s check accepts the dated entry

  • WHEN A person runs uv run devops ci --check --only k8s.
  • THEN The command exits 0 and the KSV-0109 entry shows no missing statement or missing expiry.

Requirement: KSV-0109 is suppressed for the Renovate ConfigMap

The IaC scan MUST report no KSV-0109 finding for k8s/devops/renovate/configmap.yaml while the ignore entry is valid.

Scenario: Trivy reads the dated ignore entry

  • WHEN A person runs trivy config --ignorefile .trivyignore.yaml k8s/devops/renovate/configmap.yaml.
  • THEN Trivy exits 0 and reports no KSV-0109 finding for the file.

Existing Tool Considered

No alternatives check has run. Trivy, already used by the repository, covers the need: its .trivyignore.yaml holds a dated, reasoned ignore entry for KSV-0109. Trivy lacks a way to tell a runtime file read from a stored secret, so the dated entry is necessary. No custom code is needed.

Key questions

  • Which judgement does SECURITY.md allow for a HIGH Trivy-config alert?: SECURITY.md allows a fix, a dismissal with a reason, or a time-limited .trivyignore.yaml entry. An agent judges a HIGH alert. [sources: SECURITY.md]
  • Does the ConfigMap hold a token value?: No. The config.js value reads /token/github-token at runtime and exports the value in memory. The ConfigMap data holds no token literal. [sources: k8s/devops/renovate/configmap.yaml]
  • How should the HIGH KSV-0109 alert be judged?: Add a time-limited .trivyignore.yaml entry for KSV-0109 at k8s/devops/renovate/configmap.yaml. The entry gives the reason that the token is read from a file at runtime and is not stored in the ConfigMap. Set expired_at to 90 days after the merge date. (best practice) [sources: SECURITY.md, k8s/devops/renovate/configmap.yaml]
    • Chosen: Add a dated ignore entry. It records the false positive in source control with an expiry and keeps the Renovate token flow unchanged.
    • Rejected: Rewrite config.js to remove the token key. Renovate needs the token setting, and a workaround would hide the key without removing the false positive.
    • Rejected: Dismiss the GitHub alert only. A dismissal leaves no source-controlled record for the next scan or reviewer.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

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

    @devops-cli-service
    Contributor
    • Priority: P1-High. Live HIGH severity security misconfiguration alert with a 14-day deadline.
    • Related: fix(security): Add a time-limited .trivyignore entry for KSV-0109 #6384, which asks for a different change. Both address KSV-0109 in the same file and alert 286, but the candidate allows fix, dismiss, or trivyignore while 6384 requires only a trivyignore entry.
  4. added
    priority/p1-high
    on Nov 20, 2026
  5. changed the title [-]fix(security): judge Trivy-config KSV-0109 in k8s/devops/renovate/configmap.yaml[/-] [+]fix(security): Judge KSV-0109 in k8s/devops/renovate/configmap.yaml[/+] on Nov 20, 2026
  6. devops-cli-service commented on Nov 20, 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): Judge KSV-0109 in k8s/devops/renovate/configmap.yaml
    • Source of the summary: the background model
  7. devops-cli-service commented on Nov 20, 2026

    @devops-cli-service
    Contributor

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

  8. dan-petty commented on Nov 21, 2026

    @dan-petty
    Owner

    #6684 removes k8s/devops/renovate/configmap.yaml; its config moves into the homelab values of the upstream chart (dan-petty/homelab#95). Judge KSV-0109 on the homelab render after dan-petty/homelab#95, or close this item if the finding goes away there. #6608 is the same finding.

  9. dan-petty commented on Nov 23, 2026

    @dan-petty
    Owner

    Newer issue #6859 replaces this item. PR #6904 added a dated ignore entry for KSV-0109 in .trivyignore.yaml and merged into main. The finding is resolved.

  10. removed
    status/new
    on Nov 23, 2026
  11. dan-petty commented on Nov 24, 2026

    @dan-petty
    Owner

    The self-hosted Renovate workload moves out of the product into dan-petty/homelab#95.

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