Skip to content

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

Not planned

Description

@github-actions

Update 2026-11-26 (infra move): do not change or judge this manifest. The cluster no longer runs gpu-feature-discovery (removed in dan-petty/homelab), and #7290 deletes k8s/gpu-feature-discovery/ here. Close this issue after that merge, when alert 218 is closed.


Trivy reports a misconfiguration that no issue names.

  • Rule: KSV-0121
  • 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

Trivy alert 218 reports KSV-0121 on k8s/gpu-feature-discovery/daemonset.yaml. The GPU feature discovery DaemonSet must run privileged as root to read the GPUs until #5646. The change records a time-limited .trivyignore.yaml entry with a reason and an expiry. It changes no workload code.

Acceptance criteria

Requirement: Dated KSV-0121 ignore entry

The .trivyignore.yaml file MUST hold one misconfigurations entry with id: KSV-0121, the path k8s/gpu-feature-discovery/daemonset.yaml, a statement that names #5646, and an expired_at date no later than 90 days after the merge.

Scenario: The ignore file holds a bounded entry

  • WHEN uv run devops ci --check --only k8s runs
  • THEN The command exits 0 and the entry shows the KSV-0121 id, the one path, a statement with #5646, and a future expired_at date.

Requirement: The KSV-0121 alert is closed in the scan

The Trivy config scan MUST report no open KSV-0121 for k8s/gpu-feature-discovery/daemonset.yaml.

Scenario: The scan reads the new ignore entry

  • WHEN uv run devops ci --check --only k8s runs
  • THEN The command exits 0 and shows no open KSV-0121 for k8s/gpu-feature-discovery/daemonset.yaml.

Existing Tool Considered

No alternatives check has run. Trivy, the open, maintained scanner already in use, covers the need: it reports KSV-0121 and reads .trivyignore.yaml. It does not change the workload. The change adds a dated ignore entry and builds no code.

Key questions

  • Which action does SECURITY.md require for the KSV-0121 alert?: Add a time-limited .trivyignore.yaml entry. The DaemonSet must run privileged as root to read the GPUs until fix(security): remove privileged mode from gpu-feature-discovery #5646. A manifest fix would break that access. (best practice) [sources: SECURITY.md, k8s/gpu-feature-discovery/daemonset.yaml, .trivyignore.yaml]
    • Rejected: Fix the manifest. The container needs privileged root access to read the GPUs until fix(security): remove privileged mode from gpu-feature-discovery #5646.
    • Rejected: Dismiss the alert with a reason. A dismissal has no expiry in the repository, so the alert can return with no dated record.
    • Chosen: Add a time-limited .trivyignore.yaml entry. SECURITY.md names this path for an alert that the workload cannot fix, and the entry carries a reason and an expiry.
  • What expiry date does the KSV-0121 ignore entry use?: Set expired_at to 2027-02-28. This date is no more than 90 days after a late-November 2026 merge. Adjust the date to stay within 90 days of the actual merge. (best practice) [sources: SECURITY.md, k8s/gpu-feature-discovery/daemonset.yaml]
  • Does the GPU feature discovery DaemonSet need the privileged root context?: Yes. The manifest sets privileged: true, reads /sys, and names fix(security): remove privileged mode from gpu-feature-discovery #5646 as the item that removes the privileged context. [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 14, 2026
  2. added
    status/new
    value/medium
    effort/low
    on Nov 14, 2026
  3. devops-cli-service commented on Nov 14, 2026

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