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 on the Harbor task-template Dockerfile inside .venv. The file belongs to the Harbor package, not to this project. The change records a time-limited suppression with a reason in .trivyignore.yaml, so the alert is judged and the vendored file stays unchanged.
Acceptance criteria
Requirement: Harbor template Dockerfile holds a dated ignore entry
The .trivyignore.yaml file SHALL hold a misconfigurations entry for DS-0029 that names the Harbor template Dockerfile, gives a reason, and sets an expired_at date.
Scenario: Trivy-config check accepts the dated ignore entry
- WHEN
trivy config --exit-code 1 --ignorefile .trivyignore.yaml .runs on the change. - 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.
Existing Tool Considered
No alternatives check has run. Trivy is the open, maintained tool that reports DS-0029 and reads .trivyignore.yaml; it lacks an automatic judgment of this alert, so the proposal records a dated suppression with a reason. No custom code is needed, so the build cost is zero.
Key questions
- How should the DS-0029 alert be judged?: Add a time-limited entry to
.trivyignore.yamlwith a statement and an expiry. The Dockerfile is a vendored Harbor template under.venv, so the project does not edit it. A GitHub dismissal alone leaves no durable in-repo record. (best practice) [sources: SECURITY.md, .trivyignore.yaml]- Rejected: Edit the Harbor template Dockerfile. The file is a vendored third-party template under
.venv; a package update would overwrite the change. - Rejected: Dismiss the alert in GitHub only. The dismissal leaves no durable in-repo record and no expiry that a check reads.
- Chosen: Add a dated entry to
.trivyignore.yaml. SECURITY.md requires a dated ignore entry for this Harbor template Dockerfile.
- Rejected: Edit the Harbor template Dockerfile. The file is a vendored third-party template under
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 19, 2026
A live HIGH-severity security misconfiguration that must be judged within 14 days.Judge Trivy DS-0029 in the task-template Dockerfile (alert 281): fix the file, dismiss the alert, or add a .trivyignore.yaml entryas the change that both ask for.Same rule DS-0029, same Dockerfile path, same alert 281, and same acceptance criteria as issue 5790.A person closes one of the two if that is so.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 DS-0029 in .venv/lib/python3.14/site-packages/harbor/cli/template-adapter/task-template/environment/Dockerfile[/-][+]fix(security): Add dated DS-0029 entry to .trivyignore.yaml[/+]devops-cli-service commentedon Nov 19, 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): Add dated DS-0029 entry to .trivyignore.yamldan-petty commentedon Nov 19, 2026
#5790 now fixes the cause:
trivy configskips.venv(andnode_modulesandtests/fixtures), and its PR deletes the DS-0029 entry. Keep a dated entry only until #5790 merges.dan-petty commentedon Nov 23, 2026
This issue is superseded by issue #6856 and pull request #6907. Commit 23a48a8 added the time-limited ignore entry for rule DS-0029 in the Harbor template Dockerfile to .trivyignore.yaml. Closed as not planned under AGENTS.md rule 2.