Skip to content

fix(security): Judge Trivy-config KSV-0012 in gpu-feature-discovery #7105

Not planned

Description

@github-actions

Trivy reports a misconfiguration that no issue names.

  • Rule: KSV-0012
  • Path: k8s/gpu-feature-discovery/daemonset.yaml
  • Severity: MEDIUM

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 KSV-0012 on the gpu-feature-discovery DaemonSet. The container must run as root to read GPUs and /sys until #5646, so the repository needs a scoped, time-limited ignore.

Acceptance criteria

Requirement: Scoped time-limited KSV-0012 ignore

The repository SHALL add a time-limited .trivyignore.yaml entry under misconfigurations: for KSV-0012, scoped to k8s/gpu-feature-discovery/daemonset.yaml, with expired_at and a statement that names #5646.

Scenario: KSV-0012 is suppressed for the DaemonSet

  • WHEN uv run devops review path k8s/gpu-feature-discovery/daemonset.yaml runs
  • THEN the review reports no KSV-0012 finding for that file.

Existing Tool Considered

No alternatives check has run. Trivy is the open, maintained scanner that reports KSV-0012, and it reads .trivyignore.yaml for a scoped ignore. The change builds no code.

Key questions

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

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

    @devops-cli-service
    Contributor
    • Possible duplicate: fix(security): Judge Trivy-config KSV-0012 in gpu-feature-discovery #6973, which may ask for the same change. The model names Judge Trivy-config KSV-0012 in k8s/gpu-feature-discovery/daemonset.yaml (alert 271) as the change that both ask for. Both ask to judge the same KSV-0012 rule in the same file with the same alert 271. A person closes one of the two if that is so.
  4. changed the title [-]fix(security): judge Trivy-config KSV-0012 in k8s/gpu-feature-discovery/daemonset.yaml[/-] [+]fix(security): Judge Trivy-config KSV-0012 in gpu-feature-discovery[/+] on Nov 25, 2026
  5. devops-cli-service commented on Nov 25, 2026

    @devops-cli-service
    Contributor

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

    • Before: fix(security): judge Trivy-config KSV-0012 in k8s/gpu-feature-discovery/daemonset.yaml
    • After: fix(security): Judge Trivy-config KSV-0012 in gpu-feature-discovery
    • Source of the summary: the background model
  6. devops-cli-service commented on Nov 25, 2026

    @devops-cli-service
    Contributor

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

  7. dan-petty commented on Nov 26, 2026

    @dan-petty
    Owner

    Closed: duplicate of #6973, which holds the same rule KSV-0012, file and code scanning alert 271.

    gpu-feature-discovery is removed from the cluster (dan-petty/homelab#234). The copy in k8s/gpu-feature-discovery/ deploys nothing, and step 17 (#7290) deletes it. #6973 stays open until the alert shows fixed.

  8. removed
    status/new
    on Nov 26, 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/p2-mediumscope/securitytype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions