Skip to content

fix(security): Judge Trivy-config KSV-0017 in gpu-feature-discovery #6750

Not planned

Description

@github-actions

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

Trivy reports rule KSV-0017 at k8s/gpu-feature-discovery/daemonset.yaml with severity HIGH, and alert 217 holds it. No issue names it. SECURITY.md requires a judgment of the alert: fix the file, dismiss the alert with a reason, or add a time-limited entry to .trivyignore.yaml. An agent judges an alert that is not CRITICAL within 14 days.

Acceptance criteria

Requirement: Dated ignore entry for KSV-0017 in the GPU feature discovery manifest

The IaC scan MUST hold a dated ignore entry for rule KSV-0017 at k8s/gpu-feature-discovery/daemonset.yaml, with a reason that names the privileged NVIDIA reader (#5646) and an expiry date.

Scenario: The IaC scan reports no KSV-0017 finding for the GPU feature discovery manifest

  • WHEN The check runs uv run devops ci --check --only k8s
  • THEN The check passes, and its Trivy-config output holds no KSV-0017 finding for k8s/gpu-feature-discovery/daemonset.yaml.

Existing Tool Considered

No alternatives check has run. Trivy, which is open and maintained, covers the need: it reports the KSV-0017 finding, and it reads .trivyignore.yaml, whose entries name a rule, a path, a reason and an expiry date. The change builds no code. It adds one entry to that file, and the base spec trivy-config-alerts already holds the expiry behavior.

Key questions

  • Which judgments does SECURITY.md allow for a HIGH Trivy-config alert?: SECURITY.md gives three judgments: fix the file, dismiss the alert with a reason, or add a time-limited entry to .trivyignore.yaml. An agent judges an alert that is not CRITICAL within 14 days. [sources: SECURITY.md]
  • Which judgment applies to KSV-0017 at k8s/gpu-feature-discovery/daemonset.yaml?: Add a dated ignore entry to .trivyignore.yaml. The container runs privileged to read the GPUs and /sys until fix(security): remove privileged mode from gpu-feature-discovery #5646. The repository already judges the privileged and host-mount checks of this container with dated entries. (best practice) [sources: k8s/gpu-feature-discovery/daemonset.yaml, openspec/specs/trivy-config-alerts/spec.md, SECURITY.md]
    • Chosen: Add a dated entry to .trivyignore.yaml. The container keeps privileged mode and root until fix(security): remove privileged mode from gpu-feature-discovery #5646. The expiry date makes the next review due.
    • Rejected: Fix the security context in the manifest. A privileged container keeps root and all capabilities, so the settings that the rule asks for take no effect.
    • Rejected: Dismiss alert 217 on GitHub with no repository change. The repository then holds no record of the judgment, and the entry has no expiry date.
  • Which expiry date does the new ignore entry take?: Take the expiry date that the other dated ignore entries of this workload use, so one renewal covers them together. (best practice) [sources: .trivyignore.yaml, openspec/specs/trivy-config-alerts/spec.md]
    • Chosen: The expiry date of the other dated entries of this workload. One renewal then covers each ignore entry of the workload.
    • Rejected: A separate fixed date, such as 90 days from the merge. It adds a second renewal date for the same workload.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

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

    @devops-cli-service
    Contributor
    • Possible duplicate: fix(security): Judge KSV-0017 in gpu-feature-discovery daemonset #5371, which may ask for the same change. The model names Judge Trivy-config alert 217 (KSV-0017) in k8s/gpu-feature-discovery/daemonset.yaml by fixing the file, dismissing the alert, or adding a time-limited entry to .trivyignore.yaml as the change that both ask for. The candidate and #5371 both ask to judge the same alert 217 for the same rule KSV-0017 in the same file, 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-0017 in k8s/gpu-feature-discovery/daemonset.yaml[/-] [+]fix(security): Judge Trivy-config KSV-0017 in gpu-feature-discovery[/+] on Nov 22, 2026
  5. devops-cli-service commented on Nov 22, 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 Trivy-config KSV-0017 in gpu-feature-discovery
    • Source of the summary: the background model
  6. devops-cli-service commented on Nov 23, 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 #5371, which holds the same rule KSV-0017, file and code scanning alert 217.

    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. #5371 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