java-topology/defects/grafana/patch/CLEAN.md
russell@unturf.com 5b5355cb07 infra-cluster: consul/helm/doris CWE-407 scan; buildkit/containerd/traefik/grafana/victoria-metrics/nifi/samza CLEAN
consul-0001: makeMeshGatewayPeerFilterChain peerNames O(S×B×P) slice scan → map[string]struct{}
helm-0001: ResourceList.Difference/Intersect O(N²) via Contains → pre-built map index
doris-0001: EquivalenceClass.getEquivalenceSetList ArrayList visited O(V²) → IdentityHashMap
doris-0002: PlanNode.addConjunct ArrayList.contains O(C²) → LinkedHashSet

6 CLEAN: buildkit, containerd, traefik, grafana, victoria-metrics, nifi (except pre-existing 0001), samza
2026-03-29 19:54:13 -04:00

16 lines
580 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# grafana — CWE-407 Scan Result: CLEAN
Scanned 2026-03-29.
## Findings
`FolderTree.Contains` uses a map index (O(1)). `ResourcePermission.Contains` is
O(|Actions| × |targetActions|) but both are small fixed permission sets (< 20 items)
and the function is not called in a tight loop over large collections.
`ManagedRoutes.Contains` is a linear scan but is not called in an outer loop.
`Wildcards.Contains` walks a sorted slice of wildcard scopes — bounded by the number
of resource permission types (< 50).
**Verdict: CLEAN** — no CWE-407 defects warranting a patch.