Skip to content

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

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 alert 286 reports KSV-0109 on k8s/devops/renovate/configmap.yaml as a possible secret in a ConfigMap. The config.js entry reads the Renovate token from /token/github-token at runtime and unlinks the file. The ConfigMap holds no secret value, so the alert is a false positive. The issue needs a recorded judgment so the next IaC scan does not report the finding again.

Acceptance criteria

Requirement: Dated KSV-0109 ignore entry

The repository SHALL add a time-limited .trivyignore.yaml entry for KSV-0109 on k8s/devops/renovate/configmap.yaml with a statement and an expired_at date no later than 90 days after the merge.

Scenario: IaC scan accepts the dated ignore

  • WHEN uv run devops ci --check --only k8s runs
  • THEN The command exits 0, and its IaC scan step reports no KSV-0109 finding for k8s/devops/renovate/configmap.yaml.

Existing Tool Considered

No alternatives check has run. Trivy is the open, maintained scanner that covers the need: it detects KSV-0109 and reads .trivyignore.yaml. It lacks the context that the token line is a runtime file read, so the change adds a dated ignore entry and builds no code.

Key questions

  • Does config.js in k8s/devops/renovate/configmap.yaml hold a secret value?: No. The code reads the token from /token/github-token with readFileSync, exports it to Renovate, and unlinks the file. The ConfigMap holds only the code that reads the file. [sources: k8s/devops/renovate/configmap.yaml]
  • How should the KSV-0109 alert on k8s/devops/renovate/configmap.yaml be judged?: Add a time-limited .trivyignore.yaml entry for KSV-0109 on the path. The entry states that the ConfigMap holds a runtime file read, not a secret, and sets expired_at to 90 days after the merge. Keep the token handling unchanged. (best practice) [sources: SECURITY.md, k8s/devops/renovate/configmap.yaml]
    • Chosen: Add a time-limited .trivyignore.yaml entry. It records the false positive in the repository, expires, and keeps the token handling unchanged.
    • Rejected: Dismiss the GitHub code-scanning alert with a reason. The next IaC scan reports the same finding again, and the dismissal lives outside the repository.
    • Rejected: Change the token handling in config.js. It risks the Renovate token path for a false positive and is not needed.
  • What expiry period should the KSV-0109 ignore entry use?: Use 90 days after the merge. A shorter period forces a new review before the next quarter, and a longer period hides a HIGH finding for too long. (best practice) [sources: SECURITY.md]
    • Chosen: 90 days. It bounds the ignore to one quarter and forces a new review.
    • Rejected: One year. It hides a HIGH finding for too long.
    • Rejected: No expiry. The policy requires a time-limited entry.

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. HIGH severity security misconfiguration with a 14-day resolution window.
    • Possible duplicate: fix(security): Judge KSV-0109 in k8s/devops/renovate/configmap.yaml #6503, which may ask for the same change. The model names Judge Trivy-config alert KSV-0109 in k8s/devops/renovate/configmap.yaml (alert 286) as the change that both ask for. Same rule, same file, same alert 286, same body text; delivering one delivers the other. 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-0109 in k8s/devops/renovate/configmap.yaml[/-] [+]fix(security): Judge KSV-0109 in k8s/devops/renovate/configmap.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 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 21, 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

    Same finding as #6503. #6684 removes the file, and the config moves into the homelab values of dan-petty/homelab#95. Judge the finding there.

  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