Skip to content

fix(security): Add dated DS-0029 entry to .trivyignore.yaml #6382

Not planned

Description

@github-actions

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.yaml with 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.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    type/bug
    scope/security
    on Nov 19, 2026
  2. added
    status/new
    value/medium
    effort/low
    on Nov 19, 2026
  3. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service
    Contributor
    • Priority: P1-High. A live HIGH-severity security misconfiguration that must be judged within 14 days.
    • Possible duplicate: fix(security): trivy config skips .venv, node_modules and tests/fixtures #5790, which may ask for the same change. The model names Judge Trivy DS-0029 in the task-template Dockerfile (alert 281): fix the file, dismiss the alert, or add a .trivyignore.yaml entry as 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.
  4. added
    priority/p1-high
    on Nov 19, 2026
  5. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service
    Contributor

    Next step: the alternatives check records a verdict. See the section Proposed design of the body.

  6. changed the title [-]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[/+] on Nov 19, 2026
  7. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service
    Contributor

    The job shortened the title of this item. The summary had 129 characters, and the limit is 60. The type and the scope stay.

    • Before: fix(security): judge Trivy-config DS-0029 in .venv/lib/python3.14/site-packages/harbor/cli/template-adapter/task-template/environment/Dockerfile
    • After: fix(security): Add dated DS-0029 entry to .trivyignore.yaml
    • Source of the summary: the background model
  8. dan-petty commented on Nov 19, 2026

    @dan-petty
    Owner

    #5790 now fixes the cause: trivy config skips .venv (and node_modules and tests/fixtures), and its PR deletes the DS-0029 entry. Keep a dated entry only until #5790 merges.

  9. dan-petty commented on Nov 23, 2026

    @dan-petty
    Owner

    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.

  10. removed
    status/new
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p1-highscope/securitytype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions