Skip to content

fix(security): Judge KSV-0118 in the GFD daemonset file #5792

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

The GFD daemonset triggers Trivy KSV-0118 and no issue names it. The daemonset needs privileged host /sys and the NFD features directory. The change judges the HIGH alert by adding a narrow, time-limited ignore entry in .trivyignore.yaml.

Acceptance criteria

Requirement: KSV-0118 ignore entry

.trivyignore.yaml SHALL hold one misconfiguration entry with id: KSV-0118 and only the GFD daemonset path.

Scenario: The ignore matches the alert

  • WHEN A test parses .trivyignore.yaml.
  • THEN The file has one entry for KSV-0118 whose paths list is only k8s/gpu-feature-discovery/daemonset.yaml.

Requirement: Time-limited statement

The KSV-0118 entry SHALL hold a statement that names the GFD reason and issue #5792, and an expired_at date no later than 3 days after the entry date.

Scenario: The entry expires within 3 days

  • WHEN A test reads the entry and the commit date of the change.
  • THEN The expired_at date is no later than the third day after the commit date, and the statement contains #5792.

Requirement: GFD workload stays unchanged

The change SHALL NOT change the privileged mode or the hostPath mounts of the GFD daemonset.

Scenario: The manifest keeps its mounts

  • WHEN A test reads the diff of the change.
  • THEN The diff changes no line under k8s/gpu-feature-discovery/daemonset.yaml.

Requirement: Existing KSV-0017 ignore stays

The change SHALL keep the existing KSV-0017 entry in .trivyignore.yaml.

Scenario: The existing ignore is unchanged

  • WHEN A test parses .trivyignore.yaml after the change.
  • THEN The KSV-0017 entry still has its original paths, statement and expired_at values.

Existing Tool Considered

No alternatives check has run. Trivy config, already in use, detects KSV-0118. It lacks a safe manifest fix for the GFD host mounts. The change uses its .trivyignore.yaml support and builds no code.

Key questions

  • Which judgment applies to KSV-0118?: Add a time-limited .trivyignore.yaml entry. The GFD daemonset needs privileged host /sys and the NFD features directory. Removing the hostPath mounts would break the workload. SECURITY.md names this entry as option 2. (best practice) [sources: SECURITY.md, k8s/gpu-feature-discovery/daemonset.yaml, .trivyignore.yaml]
    • Rejected: Fix the daemonset. Removing the hostPath mounts would stop GFD from reading GPU sysfs and writing NFD feature files.
    • Rejected: Dismiss the alert. Only a person dismisses an alert, and no person decision is recorded.
    • Chosen: Add a time-limited ignore. SECURITY.md allows this entry when the fix breaks the workload, and the entry expires by itself.
  • What expiry date does the KSV-0118 entry get?: Set expired_at to the entry date plus 3 days. The agent renews it at most to 14 days in all. (best practice) [sources: SECURITY.md]
    • Chosen: 3 days from the entry date. SECURITY.md sets the first agent entry to 3 days.
    • Rejected: 14 days from the entry date. 14 days is the maximum after renewals, not the first entry.
    • Rejected: A date set by the owner. No owner decision records another date.
  • Which file and key hold the KSV-0118 ignore?: .trivyignore.yaml under misconfigurations. [sources: .trivyignore.yaml, SECURITY.md]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

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

    @devops-cli-service
    Contributor
    • Priority: P1-High. The alert has HIGH severity, and the policy sets a 14-day judgement limit for it.
    • Possible duplicate: fix(security): Judge KSV-0118 in k8s/gpu-feature-discovery/daemonset.yaml #5641, which may ask for the same change. The model names Judge Trivy-config alert 269 for rule KSV-0118 in k8s/gpu-feature-discovery/daemonset.yaml as the change that both ask for. Item 5641 names the same rule, path and alert 269, so one delivery closes both. A person closes one of the two if that is so.
  4. added
    priority/p1-high
    on Nov 15, 2026
  5. changed the title [-]fix(security): judge Trivy-config KSV-0118 in k8s/gpu-feature-discovery/daemonset.yaml[/-] [+]fix(security): Judge KSV-0118 in the GFD daemonset file[/+] on Nov 15, 2026
  6. devops-cli-service commented on Nov 15, 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 the GFD daemonset file
    • Source of the summary: the background model
  7. devops-cli-service commented on Nov 15, 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-review
    and removed
    status/new
    on Nov 15, 2026
  9. removed
    status/in-review
    on Nov 15, 2026
  10. devops-cli-service commented on Nov 15, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-15 13:10 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/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions