Skip to content

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

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, a privileged container, for the GPU feature discovery DaemonSet. The container needs the privileged setting to read the GPUs through NVML and /sys until #5646. The change adds a dated ignore entry to .trivyignore.yaml so the scan passes and the alert closes.

Acceptance criteria

Requirement: Dated KSV-0001 ignore entry

The .trivyignore.yaml file SHALL hold a dated entry for KSV-0001 on k8s/gpu-feature-discovery/daemonset.yaml with the reason that the container runs privileged until #5646.

Scenario: The Trivy config scan ignores the privileged container.

  • WHEN uv run devops ci --check --only trivy runs.
  • THEN The command passes and reports no KSV-0001 finding for k8s/gpu-feature-discovery/daemonset.yaml.

Existing Tool Considered

No alternatives check has run. Trivy is the open, maintained scanner that reports the alert. It covers the config scan and the .trivyignore.yaml ignore file with an expiry. It lacks a way to keep the privileged container and pass KSV-0001 without an ignore entry. The change adds a dated ignore entry, so the scan passes until #5646.

Key questions

  • Does the GPU feature discovery container need the privileged setting?: Yes. The container reads the GPUs through NVML and the host /sys. The annotations defer the removal to fix(security): remove privileged mode from gpu-feature-discovery #5646. [sources: k8s/gpu-feature-discovery/daemonset.yaml]
  • How should the KSV-0001 alert be judged?: Add a dated ignore entry to .trivyignore.yaml for KSV-0001 on k8s/gpu-feature-discovery/daemonset.yaml. The entry names the reason that the container runs privileged until fix(security): remove privileged mode from gpu-feature-discovery #5646. (best practice) [sources: SECURITY.md, openspec/specs/trivy-config-alerts/spec.md, k8s/gpu-feature-discovery/daemonset.yaml]
  • What expiry date should the ignore entry use?: Set expired_at to a date within 90 days of the merge, and no later than the closure of fix(security): remove privileged mode from gpu-feature-discovery #5646. The entry expires then, and the scan reports the finding again. (best practice) [sources: SECURITY.md, openspec/specs/trivy-config-alerts/spec.md, k8s/gpu-feature-discovery/daemonset.yaml]
    • Rejected: 30 days. The GPU workload needs the privileged setting for longer than 30 days.
    • Chosen: 90 days. It bounds the exception to one quarter and matches the time limit of the policy.
    • Rejected: 180 days. It keeps the exception for two quarters and delays the review.

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
    • Possible duplicate: fix(security): Judge KSV-0001 in k8s/gpu-feature-discovery/daemonset.yaml #6271, which may ask for the same change. The model names Judge the KSV-0001 misconfiguration in k8s/gpu-feature-discovery/daemonset.yaml (alert 270): fix the file, dismiss the alert, or add a time-limited entry to .trivyignore.yaml as the change that both ask for. Same rule KSV-0001, same file, same alert 270, and identical acceptance criteria as item 6271. 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 19, 2026
  5. devops-cli-service commented on Nov 19, 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 19, 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