Skip to content

ci(trivy): scope false-positive exceptions - #6021

Open
SDAChess wants to merge 1 commit into
fix/6017-supervisor-healthcheck/SDAChessfrom
fix/6019-trivy-classification/SDAChess
Open

SDAChess wants to merge 1 commit into
fix/6017-supervisor-healthcheck/SDAChessfrom
fix/6019-trivy-classification/SDAChess

Conversation

@SDAChess

@SDAChess SDAChess commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Scope KSV-0037 exceptions to the two K3s HelmChart configuration manifests, whose application resources install outside kube-system. Keep actual namespace networking capabilities visible by removing the prior KSV-0056 Role exception.

Stack: #6014 → #6018 → #6020 → this PR.

Related Issue

Closes #6019

Changes

  • Except only openshell-helmchart.yaml and nvidia-device-plugin-helmchart.yaml; both specify non-system target namespaces.
  • Verify target namespaces and real-scanner behavior offline, including a kube-system Pod and a NetworkPolicy-creating Role that must remain findings.
  • Remove the existing exception for real Service/NetworkPolicy creation grants without changing RBAC.

K3s documents and implements spec.targetNamespace as the installation namespace (controller documentation, implementation); the Trivy rule checks object metadata without handling HelmChart semantics.

Release Notes

Testing

  • Offline tasks/scripts/trivy-scan-test.sh passes, including failing-before/passing-after scanner regressions.
  • Ignore-file validation, ShellCheck, bash syntax and whitespace checks pass.
  • Full scans of static manifests, defaults and all 14 Helm profiles pass differential comparison at every severity using the same candidate ignore policy on base and head.
  • Actual RBAC risks and unrelated kube-system workloads remain detected.
  • Combined stack plus current main: 524 gateway tests, 7 workspace tests and all Helm lint/render checks pass; full-profile scans show no new findings at any severity.
  • Combined-stack core E2E, Kubernetes HA and credential-driver E2E running via test:e2e and test:e2e-kubernetes.

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)

@github-actions github-actions Bot added the state:accepted A maintainer decided OpenShell should pursue this issue label Nov 26, 2026
@SDAChess SDAChess added area:build CI/CD workflows, releases, build targets, packaging, and artifact publication. topic:kubernetes Kubernetes operators, CRDs, deployment controllers, and native Kubernetes API integration. topic:security Vulnerability management, security analysis/auditing, bypass detection, and abuse prevention. labels Nov 26, 2026
@SDAChess SDAChess added test:e2e Requires end-to-end coverage test:e2e-kubernetes Requires Kubernetes end-to-end coverage labels Nov 26, 2026
Signed-off-by: Simon Scatton <sscatton@nvidia.com>
(cherry picked from commit b0c42cf766ce9d03b61ab156c9a05845aa2408ef)
@SDAChess
SDAChess force-pushed the fix/6019-trivy-classification/SDAChess branch from fc6c9a9 to fb6dfd6 Compare November 26, 2026 17:33
@SDAChess
SDAChess force-pushed the fix/6017-supervisor-healthcheck/SDAChess branch from 83e3385 to 9fa0d0d Compare November 26, 2026 17:33

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:build CI/CD workflows, releases, build targets, packaging, and artifact publication. state:accepted A maintainer decided OpenShell should pursue this issue test:e2e Requires end-to-end coverage test:e2e-kubernetes Requires Kubernetes end-to-end coverage topic:kubernetes Kubernetes operators, CRDs, deployment controllers, and native Kubernetes API integration. topic:security Vulnerability management, security analysis/auditing, bypass detection, and abuse prevention.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant