Skip to content

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

Closed

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 KSV-0017 for the gpu-feature-discovery DaemonSet. The workload needs privileged access to GPU devices and host sysfs. The project must judge the alert with a dated ignore entry so the IaC scan passes.

Acceptance criteria

Requirement: KSV-0017 ignore entry

The project SHALL add an ignore entry for rule KSV-0017 at k8s/gpu-feature-discovery/daemonset.yaml to .trivyignore.yaml.

Scenario: The IaC scan accepts the new entry

  • WHEN uv run devops ci --check --only trivy runs on the change
  • THEN the command exits 0 and reports no open KSV-0017 finding for k8s/gpu-feature-discovery/daemonset.yaml.

Requirement: Reason and expiry of the ignore entry

The KSV-0017 ignore entry MUST state that gpu-feature-discovery needs privileged GPU device access and MUST have a future expiry date.

Scenario: The IaC scan reads a time-limited entry

  • WHEN uv run devops ci --check --only trivy runs on the change
  • THEN the command exits 0 and the KSV-0017 entry is not expired.

Existing Tool Considered

Trivy covers the detection of KSV-0017. It lacks the context that gpu-feature-discovery needs privileged access to GPU devices, so the project records a dated ignore entry in .trivyignore.yaml.

Key questions

  • Which action judges KSV-0017 for the gpu-feature-discovery DaemonSet?: Add a dated ignore entry to .trivyignore.yaml. Keep privileged: true because the workload needs GPU device access. (best practice) [sources: k8s/gpu-feature-discovery/daemonset.yaml, SECURITY.md, openspec/specs/trivy-config-alerts/spec.md]
    • Rejected: Remove privileged: true. gpu-feature-discovery runs the NVIDIA discovery binary and mounts host sysfs, so it needs privileged access to GPU devices.
    • Chosen: Add a dated ignore entry. The workload needs the privileged context, and the project policy allows a time-limited ignore entry.
  • What expiry period should the KSV-0017 ignore entry use?: 90 days. A person reviews the exception each quarter. (best practice) [sources: SECURITY.md, openspec/specs/trivy-config-alerts/spec.md]
    • Rejected: 30 days. It causes frequent churn for a stable workload requirement.
    • Chosen: 90 days. It forces a quarterly review and keeps the exception time-limited.
    • Rejected: 1 year. It lets a stale exception stay too long.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

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

    @devops-cli-service
    Contributor
    • Priority: P1-High. A live HIGH severity security misconfiguration alert that must be resolved within 14 days.
    • 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 KSV-0017 (alert 217) in k8s/gpu-feature-discovery/daemonset.yaml as the change that both ask for. Both items ask to judge the same rule KSV-0017 on the same file and the same alert 217. A person closes one of the two if that is so.
  4. added
    priority/p1-high
    on Nov 17, 2026
  5. 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 17, 2026
  6. devops-cli-service commented on Nov 17, 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
  7. 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.

  8. added
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 18, 2026
  9. removed
    status/in-review
    on Nov 18, 2026
  10. devops-cli-service commented on Nov 18, 2026

    @devops-cli-service
    Contributor
  11. devops-cli-service commented on Nov 18, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-18 01:56 UTC

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/p1-highscope/securitytype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions