Repository navigation
Description
Trivy reports a misconfiguration that no issue names.
- Rule: DS-0002
- Path: .venv/lib/python3.14/site-packages/harbor/cli/template-task/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-0002 at HIGH severity for the harbor template Dockerfile under .venv. The file belongs to the installed harbor package and is not tracked by this repository. The project must judge the alert and keep the IaC scan clean with a time-limited exception.
Acceptance criteria
Requirement: Harbor template Dockerfile ignore entry
The .trivyignore.yaml file SHALL hold an unexpired entry for rule DS-0002 at .venv/lib/python3.14/site-packages/harbor/cli/template-task/environment/Dockerfile.
Scenario: The IaC scan reads the entry
- WHEN uv run devops ci --check --only trivy-config runs.
- THEN The command exits 0 and reports no DS-0002 finding for the harbor template Dockerfile.
Requirement: Ignore entry carries an expiry
The ignore entry SHALL carry an expired_at date that is later than the merge date and a reason.
Scenario: The validator reads the expiry and reason
- WHEN uv run devops ci --check --only trivy-config runs.
- THEN The command exits 0 and reports the entry as valid with its expiry and reason.
Existing Tool Considered
No alternatives check has run. The open, maintained tool is Trivy's native .trivyignore.yaml filter with the expired_at field. It covers a time-limited exception for one rule and one path. It lacks a way to fix the third-party Dockerfile, which is not in the repository. The change builds no code, so it has no build cost.
Key questions
- Should the change edit the Dockerfile under .venv?: No. The Dockerfile belongs to the installed harbor package and is not tracked. A change is lost when the package is reinstalled. The change adds a time-limited ignore entry instead. (best practice) [sources: SECURITY.md, docs/adr/0005-review-findings-come-from-tools-not-models.md]
- Rejected: Edit the third-party Dockerfile. The file is not in the repository and is lost on reinstall.
- Rejected: Dismiss the GitHub alert. A dismissal is GitHub state, not a reviewed, expiring project record.
- Chosen: Add a time-limited entry to .trivyignore.yaml. The policy and ADR 0005 keep a suppression with a reason and an expiry in project configuration.
- Which ignore mechanism holds the exception?: The .trivyignore.yaml file holds the entry. Trivy reads its expired_at field, so the finding returns after the date. (best practice) [sources: .trivyignore.yaml, openspec/specs/trivy-config-alerts/spec.md]
- Rejected: Inline Trivy comment in the Dockerfile. The file is third-party and not tracked.
- Chosen: .trivyignore.yaml with expired_at. Trivy reads the file and enforces the expiry.
- Rejected: GitHub alert dismissal. The dismissal leaves no expiring project record.
- What expiry period should the entry use?: The entry uses an expiry date 90 days after the merge date. This period covers one quarterly dependency update. (best practice) [sources: SECURITY.md, docs/adr/0005-review-findings-come-from-tools-not-models.md]
- Rejected: 30 days. A monthly update is shorter than the project's dependency cadence.
- Chosen: 90 days. It covers one quarterly dependency update and limits the exception.
- Rejected: 365 days. It keeps the exception for too long and hides a stale package.
- Which open, maintained tool covers the need?: No alternatives check has run. Trivy's .trivyignore.yaml with expired_at covers the need. The change builds no code, so it has no build cost. (best practice) [sources: .trivyignore.yaml]
- Rejected: Custom script to filter Trivy output. It adds code to build and keep, and Trivy already reads an ignore file.
- Chosen: Trivy .trivyignore.yaml with expired_at. The scanner reads the entry and enforces the expiry with no new code.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 24, 2026
A HIGH severity security misconfiguration is open and must be judged within 14 days.Both judge Trivy-config rule DS-0002 in a Dockerfile, but the candidate targets template-task/environment/Dockerfile while 6500 targets template-adapter/task-template/environment/Dockerfile.[-]fix(security): judge Trivy-config DS-0002 in .venv/lib/python3.14/site-packages/harbor/cli/template-task/environment/Dockerfile[/-][+]fix(security): Judge Trivy-config DS-0002 in the task Dockerfile[/+]devops-cli-service commentedon Nov 24, 2026
The job shortened the title of this item. The summary had 112 characters, and the limit is 60. The type and the scope stay.
fix(security): judge Trivy-config DS-0002 in .venv/lib/python3.14/site-packages/harbor/cli/template-task/environment/Dockerfilefix(security): Judge Trivy-config DS-0002 in the task Dockerfiledevops-cli-service commentedon Nov 24, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.
devops-cli-service commentedon Nov 25, 2026
Released in v0.211.4: https://github.com/dan-petty/devops-cli/releases/tag/v0.211.4
devops-cli-service commentedon Nov 25, 2026
Live since 2026-11-25 00:22 UTC