Skip to content

fix(review): the review's scanner config drops the rules that never produced a valid finding on this repository #1024

Closed

Description

@dan-petty

Problem

Three scanner rules filled every branch review of release/v0.2.25 on 2026-10-02 with false findings, with no valid finding across S3 to S5 (.data/review-evaluation-20261002-s5.md, section 6.3, candidates/reported):

  • kube-linter dangling-service: 4 of 4 in every run;
  • Semgrep non-literal-import: 7/6, 7/6 and 7/1;
  • Semgrep exec-detected: 1/1, in S5 only.

Semgrep's logger-credential-disclosure (3/1, 3/1, 5/3) must stay: its one true positive across S3 to S5 is the secrets-audit defect in #1022. Its findings reach the verifier on the wrong line instead.

Acceptance criteria

  • The review's scanner configuration excludes kube-linter dangling-service and Semgrep non-literal-import and exec-detected, as a named table beside the scanner setup, each entry with the reason.
  • logger-credential-disclosure stays enabled.
  • A replay over the saved S3 to S5 candidates (.data/reviews/20261002-180320, -200610, -205520, trimmed to a fixture) loses no candidate the S5 evaluation classified valid, reported or not.
  • Tests run offline, call no scanner, and each runs well under 1 s.
  • uv run devops ci passes.
  • kube-linter dangling-service stays off unless fix(security): kube-linter findings carry their own check, message and manifest file, and scan reports keep each one #1045's object resolution proves the Service has no backing object: it was 200 of 200 false over the ten-run loop S12–S21 (review redesign, 2026-10-03).
  • Exclusions are by rule id only. Semgrep registry rule text is never copied or edited into the repository, under the registry rules' licence (internal use, no redistribution; the repository is public).
  • (person-run) Lenient precision on the review redesign's tuning inputs (the S11 input and the loop input), scored with feat(review): devops review score scores saved review sessions against a label file offline and reproduces the S11 and loop baselines #1138, is recorded on this issue.

Key questions

Strategic alignment

Activity

  1. added
    scope/security
    scope/review
    priority/p3-low
    on Oct 2, 2026
  2. dan-petty commented on Oct 3, 2026

    @dan-petty
    OwnerAuthor

    What S10 adds (review session 20261003-034353, release/v0.2.25 at d6ebe97; .data/review-evaluation-20261003-s10.md, section 4).

    23 of the 34 false reported rows come from this issue's rules:

    With this issue and #1021, about 21 rows would remain, with the same 12 valid ones, so about 57% lenient precision [estimate].

    The 16 services.yaml findings are false for a reason this issue doesn't name (D11): the review runs kube-linter one file at a time.

    • _scan_kubernetes_manifests (src/devops_cli/ai/review/pipeline.py:541-566) calls run_kubelinter_scan(yp) once per path (:551; its only caller is :2028).
    • So kube-linter never sees the DaemonSet pods in the sibling ollama-profiles.yaml. All 16 Service selectors match one of those pod templates.
    • Local kube-linter 0.8.3 gives 16 dangling-service on services.yaml alone and 0 on the two files together.

    Dropping the rule makes this moot. If dangling-service were kept, kube-linter would need to run once over the reviewed manifests together; nothing tracks that today. Any other cross-object check would have the same blind spot [inference].

  3. added
    priority/p2-medium
    and removed
    priority/p3-low
    on Oct 3, 2026
  4. dan-petty commented on Oct 9, 2026

    @dan-petty
    OwnerAuthor

    Folded in from the #1045 re-scope (2026-10-09)

    #1045 gives each kube-linter object its own identity but resolves no objects across files, and running kube-linter once over the whole manifest set still reports dangling-service for Services that select Helm-deployed pods (checked at da50329 and e3ff98c). So dangling-service stays excluded from the review config here.

  5. added
    status/ready
    effort/low
    value/low
    on Oct 28, 2026
  6. added
    type/bug
    and removed
    status/ready
    on Oct 30, 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/reviewscope/securitytype/bugvalue/low

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions