Skip to content

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

Not planned

Description

@github-actions

Trivy reports a misconfiguration that no issue names.

  • Rule: KSV-0118
  • 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-0118 at the GPU feature discovery DaemonSet. The HIGH alert needs a judgement under SECURITY.md. The NVIDIA container needs privileged host access until #5646. The proposal adds a dated ignore entry. The alert then closes or is dismissed with that reason.

Acceptance criteria

Requirement: Dated KSV-0118 ignore entry

The .trivyignore.yaml file SHALL hold a misconfigurations entry for KSV-0118 at k8s/gpu-feature-discovery/daemonset.yaml with a statement and an expiration.

Scenario: The IaC scan accepts the ignore entry

  • WHEN uv run devops ci --check --only k8s runs on the change
  • THEN The command reports no KSV-0118 finding for k8s/gpu-feature-discovery/daemonset.yaml and no invalid or expired ignore entry.

Requirement: Alert 269 leaves the open list

The code-scanning alert 269 SHALL be dismissed with a comment that names the ignore entry, or close as fixed.

Scenario: The alert state after the scan

  • WHEN gh api repos/dan-petty/devops-cli/code-scanning/alerts/269 --jq '.state, .dismissed_comment' runs after the scan
  • THEN The command prints dismissed and a comment that names the ignore entry, or prints fixed.

Existing Tool Considered

No alternatives check has run. Trivy is the open, maintained scanner that reports KSV-0118 and reads .trivyignore.yaml with an expiry. kube-linter already covers the same workload with ignore annotations. The proposal uses the Trivy ignore file and builds no new code.

Key questions

  • Which judgement does SECURITY.md require for a HIGH Trivy-config alert?: An agent judges the alert within 14 days. The agent fixes the file, dismisses the alert with a reason, or adds a time-limited .trivyignore.yaml entry. [sources: SECURITY.md]
  • Can the DaemonSet remove privileged host access now?: No. The NVIDIA container runs privileged to read GPUs through NVML and /sys. The kube-linter annotations defer that change to fix(security): remove privileged mode from gpu-feature-discovery #5646. [sources: k8s/gpu-feature-discovery/daemonset.yaml]
  • Which judgement should the proposal take?: Add a dated .trivyignore.yaml entry for KSV-0118 at the path. State the privileged GPU access and fix(security): remove privileged mode from gpu-feature-discovery #5646 as the reason. Set an expiry date no later than 90 days after the entry date. (best practice) [sources: SECURITY.md, k8s/gpu-feature-discovery/daemonset.yaml]
    • Rejected: Fix the manifest. The NVIDIA container needs privileged access to read GPUs and /sys. The kube-linter annotations defer the change to fix(security): remove privileged mode from gpu-feature-discovery #5646.
    • Rejected: Dismiss the alert with no ignore entry. A dismissal alone leaves the next scan to report the same finding. The project keeps a dated ignore entry.
    • Chosen: Add a dated ignore entry. The entry suppresses the finding until fix(security): remove privileged mode from gpu-feature-discovery #5646. The expiry makes the project judge the finding again.
    • Rejected: Add a permanent ignore entry. A permanent entry hides the finding after the workload changes. SECURITY.md asks for a time limit.
  • Which existing tool covers the need?: Trivy is already the scanner and it reads .trivyignore.yaml. kube-linter already covers the same workload. No new tool or custom code is needed. [sources: SECURITY.md, 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
    • Possible duplicate: fix(security): Judge KSV-0118 in gpu-feature-discovery daemonset #5372, which may ask for the same change. The model names Judge Trivy-config rule KSV-0118 in k8s/gpu-feature-discovery/daemonset.yaml (alert 269): fix the file, dismiss the alert, or add a time-limited entry to .trivyignore.yaml as the change that both ask for. Both items ask to judge the same rule KSV-0118 in the same file for the same alert 269 with identical acceptance criteria. A person closes one of the two if that is so.
  4. changed the title [-]fix(security): judge Trivy-config KSV-0118 in k8s/gpu-feature-discovery/daemonset.yaml[/-] [+]fix(security): Judge KSV-0118 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-0118 in k8s/gpu-feature-discovery/daemonset.yaml
    • After: fix(security): Judge KSV-0118 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: duplicate of #5372, which has the same rule, path and alert 269.

    gpu-feature-discovery is removed from the cluster (dan-petty/homelab#234). k8s/gpu-feature-discovery/daemonset.yaml in devops-cli deploys nothing, and step 17 (#7290) deletes it. The alert stays open until then, and #5372 tracks it.

  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