Skip to content

fix(security): Judge KSV-0014 in GFD daemonset #5370

Not planned

Description

@github-actions

Trivy reports a misconfiguration that no issue names.

  • Rule: KSV-0014
  • 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 reports KSV-0014 as a HIGH misconfiguration on k8s/gpu-feature-discovery/daemonset.yaml. The GPU feature discovery container must stay privileged to read the GPUs through NVML and /sys until #5646. The issue judges the alert and records a dated ignore entry in .trivyignore.yaml.

Acceptance criteria

Requirement: Dated ignore entry for KSV-0014

The IaC ignore file SHALL hold an entry for KSV-0014 on k8s/gpu-feature-discovery/daemonset.yaml with an expiry date and a reason that names #5646.

Scenario: The k8s CI check reads the ignore entry

  • WHEN uv run devops ci --check --only k8s runs on the change
  • THEN the command exits 0 and the IaC scan shows no open KSV-0014 alert for the path.

Requirement: Ignore entry has a time limit

The KSV-0014 ignore entry MUST hold an expiry date so the alert returns after that date.

Scenario: The IaC scan reads the expiry of the ignore entry

  • WHEN uv run devops ci --check --only k8s runs on the change
  • THEN the command exits 0 and the IaC scan accepts the entry as valid until 2026-12-31.

Requirement: GFD daemonset keeps its privileged mode

The GFD daemonset MUST keep privileged: true and the /sys hostPath mount until #5646.

Scenario: The k8s check accepts the privileged GFD daemonset

  • WHEN uv run devops ci --check --only k8s runs on the change
  • THEN the command exits 0 and the IaC scan accepts the GFD daemonset with the dated ignore entry.

Existing Tool Considered

No alternatives check has run. Trivy, an open and maintained tool already used by the IaC scan, covers the detection of KSV-0014. It lacks a policy decision, so the change adds a dated ignore entry to .trivyignore.yaml and builds no code.

Key questions

  • Which action does SECURITY.md require for the KSV-0014 alert on the GFD daemonset?: Add a dated .trivyignore.yaml entry for KSV-0014 on k8s/gpu-feature-discovery/daemonset.yaml. The GFD container must stay privileged to read the GPUs through NVML and /sys until fix(security): remove privileged mode from gpu-feature-discovery #5646. (best practice) [sources: SECURITY.md, k8s/gpu-feature-discovery/daemonset.yaml, .trivyignore.yaml]
  • What expiry date should the KSV-0014 ignore entry use?: Use 2026-12-31. The entry must return the alert if fix(security): remove privileged mode from gpu-feature-discovery #5646 does not close by that date. (best practice) [sources: k8s/gpu-feature-discovery/daemonset.yaml]
    • Chosen: 2026-12-31. A fixed date forces a new judgment before the next quarter and ties the entry to fix(security): remove privileged mode from gpu-feature-discovery #5646.
    • Rejected: 90 days from the change. A moving date hides the removal condition and makes the expiry depend on the run date.
    • Rejected: No expiry. SECURITY.md requires a time-limited entry.
  • Which rule ID and path must the ignore entry name?: Name rule KSV-0014 and path k8s/gpu-feature-discovery/daemonset.yaml, as alert 268 reports. [sources: k8s/gpu-feature-discovery/daemonset.yaml]
  • Does the GFD daemonset need a change to its security context?: No. The container must stay privileged to read the GPUs and /sys until fix(security): remove privileged mode from gpu-feature-discovery #5646, and the manifest already sets readOnlyRootFilesystem to true. [sources: k8s/gpu-feature-discovery/daemonset.yaml, SECURITY.md]

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-0014 in k8s/gpu-feature-discovery/daemonset.yaml[/-] [+]fix(security): Judge KSV-0014 in GFD 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-0014 in k8s/gpu-feature-discovery/daemonset.yaml
    • After: fix(security): Judge KSV-0014 in GFD 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: alert 268 is fixed (2026-11-15).

    Also, dan-petty/homelab removed GPU feature discovery, and step 17 (#7290) deletes the dead copy of its manifest here.

  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