Repository navigation
Description
Trivy reports a misconfiguration that no issue names.
- Rule: DS-0029
- Path: .venv/lib/python3.14/site-packages/harbor/cli/template-adapter/task-template/environment/Dockerfile
- 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 DS-0029 at a Dockerfile inside the .venv site-packages of the harbor package. The path is not project source, so the project cannot fix it. The issue judges the HIGH alert and records a time-limited ignore entry in .trivyignore.yaml.
Acceptance criteria
Requirement: Dated DS-0029 ignore entry
The Trivy ignore file SHALL hold a dated misconfiguration entry for rule DS-0029 at the harbor template Dockerfile path, with a statement and a future expiry date.
Scenario: The IaC scan reads the dated entry
- WHEN
uv run devops ci --check --only trivyruns on the repository. - THEN The command exits 0 and reports no DS-0029 finding for
.venv/lib/python3.14/site-packages/harbor/cli/template-adapter/task-template/environment/Dockerfile.
Requirement: Alert 281 is no longer open
The project MUST record the DS-0029 alert as judged, so alert 281 is no longer open.
Scenario: The alert state after the next IaC scan
- WHEN
gh api repos/dan-petty/devops-cli/code-scanning/alerts/281 --jq .stateruns after the next IaC scan. - THEN The command prints
fixedordismissed.
Existing Tool Considered
No alternatives check has run. Trivy covers the need: its .trivyignore.yaml file supports a path-scoped misconfiguration entry with a statement and an expiry, and the IaC scan reads that file. Trivy lacks no part of this need. The proposal builds no code.
Key questions
- How should the DS-0029 alert for the harbor template Dockerfile be judged?: Add a time-limited entry to
.trivyignore.yamlfor DS-0029 at that exact path. Do not edit the Dockerfile, because it is inside.venvand is a third-party package template. Do not dismiss the alert alone, because a dismissal leaves no dated repository record that the IaC scan reads. (best practice) [sources: SECURITY.md, openspec/specs/trivy-config-alerts/spec.md]- Rejected: Fix the Dockerfile. The path is inside
.venvsite-packages and is not project source. A package install can overwrite a fix. - Rejected: Dismiss alert 281 with a reason. A dismissal hides the alert but leaves no dated repository entry that the IaC scan reads.
- Chosen: Add a dated
.trivyignore.yamlentry. SECURITY.md permits a time-limited ignore entry. The trivy-config-alerts spec requires a dated ignore entry for the harbor template Dockerfile.
- Rejected: Fix the Dockerfile. The path is inside
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 20, 2026
Live HIGH severity security misconfiguration with a 14-day judgment window.[-]fix(security): judge Trivy-config DS-0029 in .venv/lib/python3.14/site-packages/harbor/cli/template-adapter/task-template/environment/Dockerfile[/-][+]fix(security): Judge Trivy DS-0029 in the task-template Dockerfile[/+]devops-cli-service commentedon Nov 20, 2026
The job shortened the title of this item. The summary had 129 characters, and the limit is 60. The type and the scope stay.
fix(security): judge Trivy-config DS-0029 in .venv/lib/python3.14/site-packages/harbor/cli/template-adapter/task-template/environment/Dockerfilefix(security): Judge Trivy DS-0029 in the task-template Dockerfiledevops-cli-service commentedon Nov 20, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.
dan-petty commentedon Nov 23, 2026
Newer issue #6856 and PR #6907 replace this item. PR #6907 renewed the dated ignore entry for DS-0029 on the Harbor task-template Dockerfile in
.trivyignore.yaml. The finding is resolved.