Repository navigation
Description
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 k8sruns - 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.jsink8s/devops/renovate/configmap.yamlhold a secret value?: No. The code reads the token from/token/github-tokenwithreadFileSync, 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.yamlbe judged?: Add a time-limited.trivyignore.yamlentry for KSV-0109 on the path. The entry states that the ConfigMap holds a runtime file read, not a secret, and setsexpired_atto 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.yamlentry. 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.
- Chosen: Add a time-limited
- 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
devops-cli-service commentedon Nov 21, 2026
HIGH severity security misconfiguration with a 14-day resolution window.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.[-]fix(security): judge Trivy-config KSV-0109 in k8s/devops/renovate/configmap.yaml[/-][+]fix(security): Judge KSV-0109 in k8s/devops/renovate/configmap.yaml[/+]devops-cli-service commentedon Nov 21, 2026
The job shortened the title of this item. The summary had 65 characters, and the limit is 60. The type and the scope stay.
fix(security): judge Trivy-config KSV-0109 in k8s/devops/renovate/configmap.yamlfix(security): Judge KSV-0109 in k8s/devops/renovate/configmap.yamldevops-cli-service commentedon Nov 21, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.
dan-petty commentedon Nov 21, 2026
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.
dan-petty commentedon Nov 23, 2026
Newer issue #6859 replaces this item. PR #6904 added a dated ignore entry for KSV-0109 in
.trivyignore.yamland merged intomain. The finding is resolved.dan-petty commentedon Nov 24, 2026
The self-hosted Renovate workload moves out of the product into dan-petty/homelab#95.