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
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.yamlstore a secret?: No. Theconfig.jsentry reads the Renovate token from/token/github-tokenand 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.yamlentry for KSV-0109 at that path. The entry states that thetokenline 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
tokenkey 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.yamlentry. The ignore file is the repository's documented mechanism. It holds the reason and an expiry, and the IaC scan reads it.
- Rejected: Fix the embedded JavaScript. The
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 19, 2026
A HIGH severity misconfiguration is a live high security vulnerability.Both judge a HIGH Trivy-config alert in a k8s YAML file, but target different rules and paths.devops-cli-service commentedon Nov 19, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.
[-]fix(security): judge Trivy-config KSV-0109 in k8s/devops/renovate/configmap.yaml[/-][+]fix(security): Add a time-limited .trivyignore entry for KSV-0109[/+]devops-cli-service commentedon Nov 19, 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): Add a time-limited .trivyignore entry for KSV-0109dan-petty commentedon Nov 23, 2026
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.