Skip to content

fix(security): Judge KSV-0017 in gpu-feature-discovery daemonset #5371

Not planned

Description

@github-actions

Update 2026-11-26 (infra move): this workload is removed, so add no ignore entry and change no manifest.

  • dan-petty/homelab removed GPU feature discovery (dan-petty/homelab#234), because it set no node label.
  • k8s/gpu-feature-discovery/ here deploys nothing. Step 17 (refactor(k8s): delete the environment files from devops-cli #7290) deletes it and its .trivyignore.yaml entries.
  • Close this issue when step 17 is merged and code scanning shows alert 217 as fixed.

Trivy reports a misconfiguration that no issue names.

  • Rule: KSV-0017
  • Path: k8s/gpu-feature-discovery/daemonset.yaml
  • 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

Add a dated .trivyignore.yaml entry for KSV-0017 on k8s/gpu-feature-discovery/daemonset.yaml; do not remove the privileged setting. Trivy reports the rule as HIGH. The container must stay privileged to read NVIDIA GPUs through NVML until #5646. The manifest cannot remove that privilege now. Alert 217 is the open record.

Acceptance criteria

Requirement: Dated KSV-0017 ignore entry

The repository SHALL hold a .trivyignore.yaml entry for KSV-0017 on k8s/gpu-feature-discovery/daemonset.yaml with a statement that names #5646 and a future expiry date.

Scenario: The k8s check applies the KSV-0017 ignore entry

  • WHEN uv run devops ci --check --only k8s runs
  • THEN the check passes and reports no KSV-0017 alert for k8s/gpu-feature-discovery/daemonset.yaml.

Existing Tool Considered

No alternatives check has run. Trivy, already used by the repository, covers the need: .trivyignore.yaml holds a misconfiguration ID, a path, a statement and an expiry. The change builds no code. The tool lacks a manifest fix while the container stays privileged, so the ignore entry records the temporary exception.

Key questions

  • How should the repository judge the HIGH KSV-0017 alert for the GPU feature discovery daemonset?: Add a time-limited .trivyignore.yaml entry for KSV-0017 on k8s/gpu-feature-discovery/daemonset.yaml. The daemonset must stay privileged to read NVIDIA GPUs through NVML until fix(security): remove privileged mode from gpu-feature-discovery #5646. (best practice) [sources: SECURITY.md, k8s/gpu-feature-discovery/daemonset.yaml]
    • Chosen: Add a time-limited .trivyignore.yaml entry. The security policy allows a dated ignore entry, and the manifest cannot remove the privilege until fix(security): remove privileged mode from gpu-feature-discovery #5646.
    • Rejected: Set allowPrivilegeEscalation: false. A privileged container always has privilege escalation, so the field cannot fix KSV-0017 while privileged: true stays.
    • Rejected: Remove privileged: true. The NVIDIA container needs privilege to read the GPUs and /sys; fix(security): remove privileged mode from gpu-feature-discovery #5646 tracks that removal.
    • Rejected: Dismiss the alert with no repository record. A dismissal leaves no dated entry in the repository and does not show the expiry in review.
  • Which issue tracks the removal of the privileged GPU workload?: fix(security): remove privileged mode from gpu-feature-discovery #5646. The daemonset annotations cite fix(security): remove privileged mode from gpu-feature-discovery #5646 for the privileged, privilege-escalation, run-as-non-root and sensitive-host-mount exceptions. [sources: k8s/gpu-feature-discovery/daemonset.yaml]
  • Can the daemonset set allowPrivilegeEscalation: false and keep privileged: true?: No. A privileged container always has allowPrivilegeEscalation set to true, so the field does not suppress KSV-0017 while the container stays privileged. [sources: k8s/gpu-feature-discovery/daemonset.yaml]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

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

    @devops-cli-service
    Contributor
  4. changed the title [-]fix(security): judge Trivy-config KSV-0017 in k8s/gpu-feature-discovery/daemonset.yaml[/-] [+]fix(security): Judge KSV-0017 in gpu-feature-discovery daemonset[/+] on Nov 13, 2026
  5. devops-cli-service commented on Nov 13, 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-0017 in k8s/gpu-feature-discovery/daemonset.yaml
    • After: fix(security): Judge KSV-0017 in gpu-feature-discovery daemonset
    • Source of the summary: the background model
  6. devops-cli-service commented on Nov 17, 2026

    @devops-cli-service
    Contributor

    Waiting for the alternatives check to run. The next refine round looks at the item again after the check records a verdict.

  7. dan-petty commented on Nov 26, 2026

    @dan-petty
    Owner

    Closed: step 17 (#7317) deleted k8s/gpu-feature-discovery/daemonset.yaml, and code scanning shows alert 217 as fixed on 2026-11-26.

    No manifest of this repository needs a change and no ignore entry is needed.

  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