Skip to content

fix(security): Judge KSV-0001 in k8s/gpu-feature-discovery/daemonset.yaml #7104

Not planned

Description

@github-actions

Trivy reports a misconfiguration that no issue names.

  • Rule: KSV-0001
  • 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-0001 on the GPU feature discovery DaemonSet. The container must run privileged to read the GPUs through NVML and /sys until #5646. The issue asks for a judgment: fix the file, dismiss the alert, or add a time-limited ignore entry.

Acceptance criteria

Requirement: Time-limited Trivy ignore for KSV-0001

The repository SHALL add a time-limited .trivyignore.yaml entry for KSV-0001 on k8s/gpu-feature-discovery/daemonset.yaml that states the reason and the tracking issue.

Scenario: The review suppresses the alert

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

Existing Tool Considered

No alternatives check has run. Trivy (Apache-2.0, maintained by Aqua Security) covers the need: it detects KSV-0001 and reads .trivyignore.yaml with path scoping and an expiry. It lacks no feature for this change. This change adds no code; it adds one ignore entry.

Key questions

  • Which action judges the KSV-0001 alert?: Add a time-limited .trivyignore.yaml entry for KSV-0001 on k8s/gpu-feature-discovery/daemonset.yaml. (best practice) [sources: SECURITY.md, k8s/gpu-feature-discovery/daemonset.yaml]
    • Rejected: Fix the manifest. The container must run privileged to read the GPUs through NVML and /sys until fix(security): remove privileged mode from gpu-feature-discovery #5646. The file annotation already records this accepted risk.
    • Rejected: Dismiss the alert in GitHub. A dismissal changes GitHub state only. The repository holds no record of the judgment, and the issue delivers a pull request.
    • Chosen: Add a time-limited ignore entry. The entry scopes the accepted risk to the file, states the reason and expires.
  • What reason should the ignore entry state?: The NVIDIA manifest runs privileged to read the GPUs through NVML and /sys, until fix(security): remove privileged mode from gpu-feature-discovery #5646. [sources: k8s/gpu-feature-discovery/daemonset.yaml]
  • What expiry should the ignore entry use?: Set the expiry to the date that SECURITY.md sets for a Trivy-config ignore entry. (best practice) [sources: SECURITY.md]
    • Chosen: Use the SECURITY.md expiry for a Trivy-config alert. The project policy sets the time limit for this class of alert.
    • Rejected: Use the 3-day expiry of a package finding with no fix. That rule applies to a vulnerable package with no fix, not to a Trivy-config alert.

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 KSV-0001 in k8s/gpu-feature-discovery/daemonset.yaml #6972, which may ask for the same change. The model names Judge Trivy-config alert KSV-0001 (alert 270) in k8s/gpu-feature-discovery/daemonset.yaml by fixing the file, dismissing the alert, or adding a time-limited entry to .trivyignore.yaml as the change that both ask for. Both items ask to judge the same rule KSV-0001, same file, same alert 270, with the same acceptance criteria. A person closes one of the two if that is so.
  4. changed the title [-]fix(security): judge Trivy-config KSV-0001 in k8s/gpu-feature-discovery/daemonset.yaml[/-] [+]fix(security): Judge KSV-0001 in k8s/gpu-feature-discovery/daemonset.yaml[/+] 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-0001 in k8s/gpu-feature-discovery/daemonset.yaml
    • After: fix(security): Judge KSV-0001 in k8s/gpu-feature-discovery/daemonset.yaml
    • 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 #6271, which holds the same rule KSV-0001, file and code scanning alert 270.

    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. #6271 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